@bryntum/taskboard-angular 7.1.1 → 7.1.2

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 (76) hide show
  1. package/README.md +230 -15
  2. package/package.json +1 -1
  3. package/src/lib/bryntum-button-group.component.ts +1213 -0
  4. package/src/lib/bryntum-button.component.ts +1190 -0
  5. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  6. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  7. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  8. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  9. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  10. package/src/lib/bryntum-color-field.component.ts +1334 -0
  11. package/src/lib/bryntum-column-combo.component.ts +1645 -0
  12. package/src/lib/bryntum-column-filter-field.component.ts +1360 -0
  13. package/src/lib/bryntum-column-picker-button.component.ts +1200 -0
  14. package/src/lib/bryntum-column-scroll-button.component.ts +1200 -0
  15. package/src/lib/bryntum-combo.component.ts +1634 -0
  16. package/src/lib/bryntum-container.component.ts +1166 -0
  17. package/src/lib/bryntum-date-field.component.ts +1413 -0
  18. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  19. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  20. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  21. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  22. package/src/lib/bryntum-demo-header.component.ts +141 -0
  23. package/src/lib/bryntum-display-field.component.ts +1308 -0
  24. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  25. package/src/lib/bryntum-editor.component.ts +1343 -0
  26. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  27. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  28. package/src/lib/bryntum-field-set.component.ts +1408 -0
  29. package/src/lib/bryntum-file-field.component.ts +1313 -0
  30. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  31. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  32. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  33. package/src/lib/bryntum-hint.component.ts +1506 -0
  34. package/src/lib/bryntum-label.component.ts +989 -0
  35. package/src/lib/bryntum-list.component.ts +1196 -0
  36. package/src/lib/bryntum-menu.component.ts +1520 -0
  37. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  38. package/src/lib/bryntum-number-field.component.ts +1368 -0
  39. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  40. package/src/lib/bryntum-panel.component.ts +1377 -0
  41. package/src/lib/bryntum-password-field.component.ts +1296 -0
  42. package/src/lib/bryntum-project-combo.component.ts +1648 -0
  43. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  44. package/src/lib/bryntum-radio.component.ts +1333 -0
  45. package/src/lib/bryntum-resources-combo.component.ts +1644 -0
  46. package/src/lib/bryntum-scheduler-project-combo.component.ts +1638 -0
  47. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  48. package/src/lib/bryntum-slider.component.ts +1112 -0
  49. package/src/lib/bryntum-splitter.component.ts +1025 -0
  50. package/src/lib/bryntum-swimlane-combo.component.ts +1644 -0
  51. package/src/lib/bryntum-swimlane-filter-field.component.ts +1377 -0
  52. package/src/lib/bryntum-swimlane-picker-button.component.ts +1200 -0
  53. package/src/lib/bryntum-swimlane-scroll-button.component.ts +1200 -0
  54. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  55. package/src/lib/bryntum-tag-combo.component.ts +1651 -0
  56. package/src/lib/bryntum-task-board-base.component.ts +2388 -0
  57. package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1316 -0
  58. package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1254 -0
  59. package/src/lib/bryntum-task-board-project-model.component.ts +1026 -0
  60. package/src/lib/bryntum-task-board.component.ts +2392 -0
  61. package/src/lib/bryntum-task-color-combo.component.ts +1334 -0
  62. package/src/lib/bryntum-task-filter-field.component.ts +1377 -0
  63. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  64. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  65. package/src/lib/bryntum-text-field.component.ts +1321 -0
  66. package/src/lib/bryntum-time-field.component.ts +1388 -0
  67. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  68. package/src/lib/bryntum-todo-list-field.component.ts +1318 -0
  69. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  70. package/src/lib/bryntum-undo-redo.component.ts +1179 -0
  71. package/src/lib/bryntum-widget.component.ts +982 -0
  72. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  73. package/src/lib/bryntum-zoom-slider.component.ts +1122 -0
  74. package/src/lib/taskboard.module.ts +232 -0
  75. package/src/lib/wrapper.helper.ts +89 -0
  76. package/src/public-api.ts +77 -0
@@ -0,0 +1,1179 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum UndoRedo
4
+ */
5
+
6
+ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
7
+
8
+ import WrapperHelper from './wrapper.helper';
9
+
10
+ import { AlignSpec, Base, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, UndoRedo, UndoRedoListeners, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumUndoRedoProps = {
15
+ // Configs
16
+ /**
17
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
18
+ * content will be placed inside this element.
19
+ * ...
20
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-adopt)
21
+ */
22
+ adopt ? : HTMLElement|string
23
+ /**
24
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
25
+ * ...
26
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-align)
27
+ */
28
+ align ? : AlignSpec|string
29
+ /**
30
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
31
+ * flexbox layout. This config allows you to set this widget's
32
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
33
+ */
34
+ alignSelf ? : string
35
+ /**
36
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
37
+ * `true` to show a connector arrow pointing to the align target.
38
+ */
39
+ anchor ? : boolean
40
+ /**
41
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
42
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
43
+ */
44
+ appendTo ? : HTMLElement|string
45
+ /**
46
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
47
+ * into an element which will be linked using the `aria-describedby` attribute.
48
+ * ...
49
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-ariaDescription)
50
+ */
51
+ ariaDescription ? : string
52
+ /**
53
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
54
+ * the `aria-label` attribute.
55
+ * ...
56
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-ariaLabel)
57
+ */
58
+ ariaLabel ? : string
59
+ /**
60
+ * Update assigned [record](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-record) automatically on field changes
61
+ */
62
+ autoUpdateRecord ? : boolean
63
+ /**
64
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
65
+ * hierarchy when triggered.
66
+ * ...
67
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-bubbleEvents)
68
+ */
69
+ bubbleEvents ? : object
70
+ /**
71
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
72
+ * ...
73
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-callOnFunctions)
74
+ */
75
+ callOnFunctions ? : boolean
76
+ /**
77
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
78
+ * application state is undefined. Code which follows the event handler will *not* be executed.
79
+ * ...
80
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-catchEventHandlerExceptions)
81
+ */
82
+ catchEventHandlerExceptions ? : boolean
83
+ /**
84
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
85
+ * Set to `true` to centre the Widget in browser viewport space.
86
+ */
87
+ centered ? : boolean
88
+ /**
89
+ * Custom CSS classes to add to element.
90
+ * May be specified as a space separated string, or as an object in which property names
91
+ * with truthy values are used as the class names:
92
+ * ...
93
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-cls)
94
+ */
95
+ cls ? : string|object
96
+ /**
97
+ * Button color for the undo and redo buttons. See [color](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#config-color).
98
+ */
99
+ color ? : string
100
+ /**
101
+ * Programmatic control over which column to start in when used in a grid layout.
102
+ */
103
+ column ? : number
104
+ config ? : object
105
+ /**
106
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
107
+ * Element, Widget or Rectangle to which this Widget is constrained.
108
+ */
109
+ constrainTo ? : HTMLElement|Widget|Rectangle
110
+ /**
111
+ * The HTML content that coexists with sibling elements which may have been added to the
112
+ * [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
113
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-htmlCls)
114
+ * class added to its classList, to allow targeted styling.
115
+ */
116
+ content ? : string
117
+ /**
118
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
119
+ * May be specified as a space separated string, or as an object in which property names
120
+ * with truthy values are used as the class names:
121
+ * ...
122
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-contentElementCls)
123
+ */
124
+ contentElementCls ? : string|object
125
+ /**
126
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
127
+ * field on the expanded record to use for populating this widget's store (if applicable)
128
+ */
129
+ dataField ? : string
130
+ /**
131
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
132
+ */
133
+ dataset ? : Record<string, string>
134
+ /**
135
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
136
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
137
+ */
138
+ defaultBindProperty ? : string
139
+ /**
140
+ * A [query](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
141
+ * focus should be directed by default.
142
+ * ...
143
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-defaultFocus)
144
+ * @param {Core.widget.Widget} widget Widget passed to method
145
+ * @returns {boolean} truthy value if widget is the default one
146
+ */
147
+ defaultFocus ? : ((widget: Widget) => boolean)|string
148
+ /**
149
+ * A config object containing default settings to apply to all child widgets.
150
+ */
151
+ defaults ? : ContainerItemConfig
152
+ /**
153
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
154
+ * ...
155
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-detectCSSCompatibilityIssues)
156
+ */
157
+ detectCSSCompatibilityIssues ? : boolean
158
+ /**
159
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
160
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
161
+ * ...
162
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-disabled)
163
+ */
164
+ disabled ? : boolean|'inert'
165
+ /**
166
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
167
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
168
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
169
+ * body. Such widgets are called "edge strips".
170
+ * ...
171
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-dock)
172
+ */
173
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
174
+ /**
175
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
176
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
177
+ * property which controls when a drag should start.
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-draggable)
180
+ */
181
+ draggable ? : boolean|{
182
+ handleSelector?: string
183
+ }
184
+ /**
185
+ * An object specifying attributes to assign to the root element of this widget.
186
+ * Set `null` value to attribute to remove it.
187
+ * ...
188
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-elementAttributes)
189
+ */
190
+ elementAttributes ? : Record<string, string|null>
191
+ extraData ? : any
192
+ /**
193
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
194
+ * flexbox layout. This config allows you to set this widget's
195
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
196
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
197
+ * numeric-only values are interpreted as the `flex-grow` value.
198
+ */
199
+ flex ? : number|string
200
+ /**
201
+ * Set to `true` to move the widget out of the document flow and position it
202
+ * absolutely in browser viewport space.
203
+ */
204
+ floating ? : boolean
205
+ /**
206
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
207
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
208
+ * cases this config is convenient.
209
+ */
210
+ height ? : string|number
211
+ /**
212
+ * Configure with true to make widget initially hidden.
213
+ */
214
+ hidden ? : boolean
215
+ /**
216
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
217
+ * ...
218
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-hideAnimation)
219
+ */
220
+ hideAnimation ? : boolean|object
221
+ /**
222
+ * Specify `true` to make this container hide when it has no visible children (Either empty
223
+ * or all children hidden).
224
+ * ...
225
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-hideWhenEmpty)
226
+ */
227
+ hideWhenEmpty ? : boolean
228
+ /**
229
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
230
+ * ...
231
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-html)
232
+ * @param {Core.widget.Widget} widget The calling Widget
233
+ * @returns {string}
234
+ */
235
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
236
+ /**
237
+ * The CSS class(es) to add when HTML content is being applied to this widget.
238
+ */
239
+ htmlCls ? : string|object
240
+ /**
241
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
242
+ */
243
+ id ? : string
244
+ /**
245
+ * Determines if the widgets read-only state should be controlled by its parent.
246
+ * ...
247
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-ignoreParentReadOnly)
248
+ */
249
+ ignoreParentReadOnly ? : boolean
250
+ /**
251
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
252
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
253
+ * right, set this config to `'end'`.
254
+ * ...
255
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-inputFieldAlign)
256
+ */
257
+ inputFieldAlign ? : 'start'|'end'
258
+ /**
259
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
260
+ */
261
+ insertBefore ? : HTMLElement|string
262
+ /**
263
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
264
+ */
265
+ insertFirst ? : HTMLElement|string
266
+ /**
267
+ * An optional CSS class to add to child items of this container.
268
+ */
269
+ itemCls ? : string
270
+ /**
271
+ * An object containing typed child widget config objects or Widgets. May also be specified
272
+ * as an array.
273
+ * ...
274
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-items)
275
+ */
276
+ items ? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
277
+ /**
278
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
279
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
280
+ * are the name of the instance method to call when the keystroke is received.
281
+ * ...
282
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-keyMap)
283
+ */
284
+ keyMap ? : Record<string, KeyMapConfig>
285
+ /**
286
+ * Convenience setting to use same label placement on all child widgets.
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-labelPosition)
289
+ */
290
+ labelPosition ? : 'before'|'above'|'align-before'|'auto'|null
291
+ /**
292
+ * The short name of a helper class which manages rendering and styling of child items.
293
+ * ...
294
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-layout)
295
+ */
296
+ layout ? : string|ContainerLayoutConfig
297
+ /**
298
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
299
+ * ...
300
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-layoutStyle)
301
+ */
302
+ layoutStyle ? : object
303
+ /**
304
+ * An array of [child item](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-items) *config objects* which is to be converted into
305
+ * instances only when this Container is rendered, rather than eagerly at construct time.
306
+ * ...
307
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-lazyItems)
308
+ */
309
+ lazyItems ? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
310
+ /**
311
+ * The listener set for this object.
312
+ * ...
313
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-listeners)
314
+ */
315
+ listeners ? : UndoRedoListeners
316
+ /**
317
+ * A class translations of which are used for translating this entity.
318
+ * This is often used when translations of an item are defined on its container class.
319
+ * For example:
320
+ * ...
321
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-localeClass)
322
+ */
323
+ localeClass ? : typeof Base
324
+ /**
325
+ * Set to `false` to disable localization of this object.
326
+ */
327
+ localizable ? : boolean
328
+ /**
329
+ * List of properties which values should be translated automatically upon a locale applying.
330
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
331
+ * you could use 'localeKey' meta configuration.
332
+ * Example:
333
+ * ...
334
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-localizableProperties)
335
+ */
336
+ localizableProperties ? : string[]
337
+ /**
338
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
339
+ * numeric-only values are interpreted as pixels.
340
+ */
341
+ margin ? : number|string
342
+ /**
343
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
344
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
345
+ * values.
346
+ */
347
+ maskDefaults ? : MaskConfig
348
+ /**
349
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
350
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
351
+ */
352
+ masked ? : boolean|string|MaskConfig
353
+ /**
354
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
355
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
356
+ */
357
+ maxHeight ? : string|number
358
+ /**
359
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
360
+ * ...
361
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-maximizeOnMobile)
362
+ */
363
+ maximizeOnMobile ? : number|string
364
+ /**
365
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
366
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
367
+ */
368
+ maxWidth ? : string|number
369
+ /**
370
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
371
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
372
+ */
373
+ minHeight ? : string|number
374
+ /**
375
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
376
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
377
+ */
378
+ minWidth ? : string|number
379
+ /**
380
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
381
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
382
+ * layout.
383
+ * ...
384
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-monitorResize)
385
+ */
386
+ monitorResize ? : boolean|{
387
+ immediate?: boolean
388
+ }
389
+ /**
390
+ * An object containing default config objects which may be referenced by name in the [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-items)
391
+ * config. For example, a specialized [Menu](https://bryntum.com/products/taskboard/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
392
+ * value defined like this:
393
+ * ...
394
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-namedItems)
395
+ */
396
+ namedItems ? : Record<string, ContainerItemConfig>
397
+ /**
398
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
399
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
400
+ * the owner is <strong>always</strong> the encapsulating Container.
401
+ * ...
402
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-owner)
403
+ */
404
+ owner ? : Widget|any
405
+ /**
406
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement), but must
407
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
408
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
409
+ * ...
410
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-positioned)
411
+ */
412
+ positioned ? : boolean
413
+ /**
414
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
415
+ * menu on click etc, since the tooltip would be displayed at the same time.
416
+ */
417
+ preventTooltipOnTouch ? : boolean
418
+ /**
419
+ * Whether this widget is read-only. This is only valid if the widget is an input
420
+ * field, <strong>or contains input fields at any depth</strong>.
421
+ * ...
422
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-readOnly)
423
+ */
424
+ readOnly ? : boolean
425
+ /**
426
+ * [Record](https://bryntum.com/products/taskboard/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
427
+ * ...
428
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-record)
429
+ */
430
+ record ? : Model
431
+ relayStoreEvents ? : boolean
432
+ /**
433
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
434
+ * `type`.
435
+ * ...
436
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-rendition)
437
+ */
438
+ rendition ? : string|Record<string, string>|null
439
+ /**
440
+ * Configure as `true` to have the component display a translucent ripple when its
441
+ * [focusElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
442
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
443
+ * ...
444
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-ripple)
445
+ */
446
+ ripple ? : boolean|{
447
+ delegate?: string
448
+ color?: string
449
+ radius?: number
450
+ clip?: string
451
+ }
452
+ /**
453
+ * If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to `document.body`
454
+ */
455
+ rootElement ? : ShadowRoot|HTMLElement
456
+ /**
457
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
458
+ * ...
459
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-rtl)
460
+ */
461
+ rtl ? : boolean
462
+ /**
463
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
464
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
465
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
466
+ * CSS overflow properties thus:
467
+ * ...
468
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-scrollable)
469
+ */
470
+ scrollable ? : boolean|ScrollerConfig|Scroller
471
+ /**
472
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
473
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
474
+ */
475
+ scrollAction ? : 'hide'|'realign'|null
476
+ /**
477
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
478
+ * ...
479
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-showAnimation)
480
+ */
481
+ showAnimation ? : boolean|object
482
+ /**
483
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-disabled)
484
+ */
485
+ showTooltipWhenDisabled ? : boolean
486
+ /**
487
+ * Configure as `true` to show "0" badge on the undo and redo buttons when they have no actions
488
+ * left to perform. By default when there are no actions, no badge is displayed.
489
+ */
490
+ showZeroActionBadge ? : boolean
491
+ /**
492
+ * Programmatic control over how many columns to span when used in a grid layout.
493
+ */
494
+ span ? : number
495
+ /**
496
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-record),
497
+ * without falling back to `ref`.
498
+ */
499
+ strictRecordMapping ? : boolean
500
+ /**
501
+ * A configuration for the [tab](https://bryntum.com/products/taskboard/docs/api/Core/widget/Tab) created for this widget when it is placed in a
502
+ * [TabPanel](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
503
+ * this widget:
504
+ * ...
505
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-tab)
506
+ */
507
+ tab ? : boolean|TabConfig
508
+ /**
509
+ * When this container is used as a tab in a TabPanel, these items are added to the
510
+ * [TabBar](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabBar) when this container is the active tab.
511
+ * ...
512
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-tabBarItems)
513
+ */
514
+ tabBarItems ? : ToolbarItems[]|Widget[]
515
+ /**
516
+ * The tag name of this Widget's root element
517
+ */
518
+ tag ? : string
519
+ /**
520
+ * Configure as `true` to show "Undo" and "Redo" as button texts. The buttons always have a tooltip
521
+ * as a hint to the user as to their purpose.
522
+ */
523
+ text ? : boolean
524
+ /**
525
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
526
+ * ...
527
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-textAlign)
528
+ */
529
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
530
+ /**
531
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
532
+ * which specifies a default max-width that makes long text more readable.
533
+ * ...
534
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-textContent)
535
+ */
536
+ textContent ? : boolean
537
+ /**
538
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
539
+ */
540
+ title ? : string
541
+ /**
542
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
543
+ * ...
544
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-tooltip)
545
+ */
546
+ tooltip ? : string|TooltipConfig|null
547
+ type ? : 'taskboardundoredo'
548
+ /**
549
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
550
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
551
+ * values are used as the class names.
552
+ * ...
553
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-ui)
554
+ */
555
+ ui ? : string|object
556
+ /**
557
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
558
+ * Higher weights go further down.
559
+ */
560
+ weight ? : number
561
+ /**
562
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
563
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
564
+ * this config is convenient.
565
+ */
566
+ width ? : string|number
567
+ /**
568
+ * The x position for the widget.
569
+ * ...
570
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-x)
571
+ */
572
+ x ? : number
573
+ /**
574
+ * The y position for the widget.
575
+ * ...
576
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#config-y)
577
+ */
578
+ y ? : number
579
+
580
+ }
581
+
582
+ @Component({
583
+ selector : 'bryntum-undo-redo',
584
+ template : ''
585
+ })
586
+ export class BryntumUndoRedoComponent implements OnInit, OnDestroy {
587
+
588
+ public static instanceClass = UndoRedo;
589
+
590
+ public static instanceName = 'UndoRedo';
591
+
592
+ private static bryntumEvents: string[] = [
593
+ 'onBeforeDestroy',
594
+ 'onBeforeHide',
595
+ 'onBeforeSetRecord',
596
+ 'onBeforeShow',
597
+ 'onCatchAll',
598
+ 'onDestroy',
599
+ 'onDirtyStateChange',
600
+ 'onElementCreated',
601
+ 'onFocusIn',
602
+ 'onFocusOut',
603
+ 'onHide',
604
+ 'onPaint',
605
+ 'onReadOnly',
606
+ 'onRecompose',
607
+ 'onResize',
608
+ 'onShow'
609
+ ];
610
+
611
+ private static bryntumFeatureNames: string[] = [
612
+
613
+ ];
614
+
615
+ private static bryntumConfigs: string[] = BryntumUndoRedoComponent.bryntumFeatureNames.concat([
616
+ 'adopt',
617
+ 'align',
618
+ 'alignSelf',
619
+ 'anchor',
620
+ 'appendTo',
621
+ 'ariaDescription',
622
+ 'ariaLabel',
623
+ 'autoUpdateRecord',
624
+ 'bubbleEvents',
625
+ 'callOnFunctions',
626
+ 'catchEventHandlerExceptions',
627
+ 'centered',
628
+ 'cls',
629
+ 'color',
630
+ 'column',
631
+ 'config',
632
+ 'constrainTo',
633
+ 'content',
634
+ 'contentElementCls',
635
+ 'dataField',
636
+ 'dataset',
637
+ 'defaultBindProperty',
638
+ 'defaultFocus',
639
+ 'defaults',
640
+ 'detectCSSCompatibilityIssues',
641
+ 'disabled',
642
+ 'dock',
643
+ 'draggable',
644
+ 'elementAttributes',
645
+ 'extraData',
646
+ 'flex',
647
+ 'floating',
648
+ 'height',
649
+ 'hidden',
650
+ 'hideAnimation',
651
+ 'hideWhenEmpty',
652
+ 'html',
653
+ 'htmlCls',
654
+ 'id',
655
+ 'ignoreParentReadOnly',
656
+ 'inputFieldAlign',
657
+ 'insertBefore',
658
+ 'insertFirst',
659
+ 'itemCls',
660
+ 'items',
661
+ 'keyMap',
662
+ 'labelPosition',
663
+ 'layout',
664
+ 'layoutStyle',
665
+ 'lazyItems',
666
+ 'listeners',
667
+ 'localeClass',
668
+ 'localizable',
669
+ 'localizableProperties',
670
+ 'margin',
671
+ 'maskDefaults',
672
+ 'masked',
673
+ 'maxHeight',
674
+ 'maximizeOnMobile',
675
+ 'maxWidth',
676
+ 'minHeight',
677
+ 'minWidth',
678
+ 'monitorResize',
679
+ 'namedItems',
680
+ 'owner',
681
+ 'positioned',
682
+ 'preventTooltipOnTouch',
683
+ 'readOnly',
684
+ 'record',
685
+ 'relayStoreEvents',
686
+ 'rendition',
687
+ 'ripple',
688
+ 'rootElement',
689
+ 'rtl',
690
+ 'scrollable',
691
+ 'scrollAction',
692
+ 'showAnimation',
693
+ 'showTooltipWhenDisabled',
694
+ 'showZeroActionBadge',
695
+ 'span',
696
+ 'strictRecordMapping',
697
+ 'tab',
698
+ 'tabBarItems',
699
+ 'tag',
700
+ 'text',
701
+ 'textAlign',
702
+ 'textContent',
703
+ 'title',
704
+ 'tooltip',
705
+ 'type',
706
+ 'ui',
707
+ 'weight',
708
+ 'width',
709
+ 'x',
710
+ 'y'
711
+ ]);
712
+
713
+ private static bryntumConfigsOnly: string[] = [
714
+ 'adopt',
715
+ 'align',
716
+ 'anchor',
717
+ 'ariaDescription',
718
+ 'ariaLabel',
719
+ 'autoUpdateRecord',
720
+ 'bubbleEvents',
721
+ 'centered',
722
+ 'color',
723
+ 'config',
724
+ 'constrainTo',
725
+ 'contentElementCls',
726
+ 'dataField',
727
+ 'defaultBindProperty',
728
+ 'defaultFocus',
729
+ 'defaults',
730
+ 'detectCSSCompatibilityIssues',
731
+ 'dock',
732
+ 'draggable',
733
+ 'elementAttributes',
734
+ 'floating',
735
+ 'hideAnimation',
736
+ 'hideWhenEmpty',
737
+ 'htmlCls',
738
+ 'ignoreParentReadOnly',
739
+ 'itemCls',
740
+ 'lazyItems',
741
+ 'listeners',
742
+ 'localeClass',
743
+ 'localizable',
744
+ 'localizableProperties',
745
+ 'maskDefaults',
746
+ 'masked',
747
+ 'monitorResize',
748
+ 'namedItems',
749
+ 'owner',
750
+ 'positioned',
751
+ 'preventTooltipOnTouch',
752
+ 'relayStoreEvents',
753
+ 'ripple',
754
+ 'rootElement',
755
+ 'scrollAction',
756
+ 'showAnimation',
757
+ 'showTooltipWhenDisabled',
758
+ 'showZeroActionBadge',
759
+ 'tab',
760
+ 'tabBarItems',
761
+ 'tag',
762
+ 'text',
763
+ 'textAlign',
764
+ 'textContent',
765
+ 'title',
766
+ 'type',
767
+ 'ui',
768
+ 'weight'
769
+ ];
770
+
771
+ private static bryntumProps: string[] = BryntumUndoRedoComponent.bryntumFeatureNames.concat([
772
+ 'alignSelf',
773
+ 'anchorSize',
774
+ 'appendTo',
775
+ 'callOnFunctions',
776
+ 'catchEventHandlerExceptions',
777
+ 'cls',
778
+ 'column',
779
+ 'content',
780
+ 'dataset',
781
+ 'disabled',
782
+ 'extraData',
783
+ 'flex',
784
+ 'focusVisible',
785
+ 'hasChanges',
786
+ 'height',
787
+ 'hidden',
788
+ 'html',
789
+ 'id',
790
+ 'inputFieldAlign',
791
+ 'insertBefore',
792
+ 'insertFirst',
793
+ 'isSettingValues',
794
+ 'isValid',
795
+ 'items',
796
+ 'keyMap',
797
+ 'labelPosition',
798
+ 'layout',
799
+ 'layoutStyle',
800
+ 'margin',
801
+ 'maxHeight',
802
+ 'maximizeOnMobile',
803
+ 'maxWidth',
804
+ 'minHeight',
805
+ 'minWidth',
806
+ 'parent',
807
+ 'readOnly',
808
+ 'record',
809
+ 'rendition',
810
+ 'rtl',
811
+ 'scrollable',
812
+ 'span',
813
+ 'strictRecordMapping',
814
+ 'tooltip',
815
+ 'values',
816
+ 'width',
817
+ 'x',
818
+ 'y'
819
+ ]);
820
+
821
+ private elementRef: ElementRef;
822
+ public instance!: UndoRedo;
823
+
824
+ private bryntumConfig = {
825
+ adopt : undefined,
826
+ appendTo : undefined,
827
+ href : undefined,
828
+ angularComponent : this,
829
+ features : {},
830
+ listeners : {}
831
+ };
832
+
833
+ constructor(element: ElementRef) {
834
+ this.elementRef = element;
835
+ }
836
+
837
+ // Configs only
838
+ @Input() adopt ! : HTMLElement|string;
839
+ @Input() align ! : AlignSpec|string;
840
+ @Input() anchor ! : boolean;
841
+ @Input() ariaDescription ! : string;
842
+ @Input() ariaLabel ! : string;
843
+ @Input() autoUpdateRecord ! : boolean;
844
+ @Input() bubbleEvents ! : object;
845
+ @Input() centered ! : boolean;
846
+ @Input() color ! : string;
847
+ @Input() config ! : object;
848
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
849
+ @Input() contentElementCls ! : string|object;
850
+ @Input() dataField ! : string;
851
+ @Input() defaultBindProperty ! : string;
852
+ @Input() defaultFocus ! : ((widget: Widget) => boolean)|string;
853
+ @Input() defaults ! : ContainerItemConfig;
854
+ @Input() detectCSSCompatibilityIssues ! : boolean;
855
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
856
+ @Input() draggable ! : boolean|{
857
+ handleSelector?: string
858
+ };
859
+ @Input() elementAttributes ! : Record<string, string|null>;
860
+ @Input() floating ! : boolean;
861
+ @Input() hideAnimation ! : boolean|object;
862
+ @Input() hideWhenEmpty ! : boolean;
863
+ @Input() htmlCls ! : string|object;
864
+ @Input() ignoreParentReadOnly ! : boolean;
865
+ @Input() itemCls ! : string;
866
+ @Input() lazyItems ! : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[];
867
+ @Input() listeners ! : UndoRedoListeners;
868
+ @Input() localeClass ! : typeof Base;
869
+ @Input() localizable ! : boolean;
870
+ @Input() localizableProperties ! : string[];
871
+ @Input() maskDefaults ! : MaskConfig;
872
+ @Input() masked ! : boolean|string|MaskConfig;
873
+ @Input() monitorResize ! : boolean|{
874
+ immediate?: boolean
875
+ };
876
+ @Input() namedItems ! : Record<string, ContainerItemConfig>;
877
+ @Input() owner ! : Widget|any;
878
+ @Input() positioned ! : boolean;
879
+ @Input() preventTooltipOnTouch ! : boolean;
880
+ @Input() relayStoreEvents ! : boolean;
881
+ @Input() ripple ! : boolean|{
882
+ delegate?: string
883
+ color?: string
884
+ radius?: number
885
+ clip?: string
886
+ };
887
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
888
+ @Input() scrollAction ! : 'hide'|'realign'|null;
889
+ @Input() showAnimation ! : boolean|object;
890
+ @Input() showTooltipWhenDisabled ! : boolean;
891
+ @Input() showZeroActionBadge ! : boolean;
892
+ @Input() tab ! : boolean|TabConfig;
893
+ @Input() tabBarItems ! : ToolbarItems[]|Widget[];
894
+ @Input() tag ! : string;
895
+ @Input() text ! : boolean;
896
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
897
+ @Input() textContent ! : boolean;
898
+ @Input() title ! : string;
899
+ @Input() type ! : 'taskboardundoredo';
900
+ @Input() ui ! : string|object;
901
+ @Input() weight ! : number;
902
+
903
+ // Configs and properties
904
+ @Input() alignSelf ! : string;
905
+ @Input() appendTo ! : HTMLElement|string;
906
+ @Input() callOnFunctions ! : boolean;
907
+ @Input() catchEventHandlerExceptions ! : boolean;
908
+ @Input() cls ! : string|object;
909
+ @Input() column ! : number;
910
+ @Input() content ! : string;
911
+ @Input() dataset ! : object|Record<string, string>;
912
+ @Input() disabled ! : boolean|'inert';
913
+ @Input() extraData ! : any;
914
+ @Input() flex ! : number|string;
915
+ @Input() height ! : number|string;
916
+ @Input() hidden ! : boolean;
917
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
918
+ @Input() id ! : string;
919
+ @Input() inputFieldAlign ! : 'start'|'end';
920
+ @Input() insertBefore ! : HTMLElement|string;
921
+ @Input() insertFirst ! : HTMLElement|string;
922
+ @Input() items ! : (ContainerItemConfig|MenuItemConfig|Widget)[]|Record<string, ContainerItemConfig|MenuItemConfig>|Widget[]|Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[];
923
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
924
+ @Input() labelPosition ! : 'before'|'above'|'align-before'|'auto'|null;
925
+ @Input() layout ! : Layout|string|ContainerLayoutConfig;
926
+ @Input() layoutStyle ! : object;
927
+ @Input() margin ! : number|string;
928
+ @Input() maxHeight ! : string|number;
929
+ @Input() maximizeOnMobile ! : number|string;
930
+ @Input() maxWidth ! : string|number;
931
+ @Input() minHeight ! : string|number;
932
+ @Input() minWidth ! : string|number;
933
+ @Input() readOnly ! : boolean;
934
+ @Input() record ! : Model;
935
+ @Input() rendition ! : string|Record<string, string>|null;
936
+ @Input() rtl ! : boolean;
937
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
938
+ @Input() span ! : number;
939
+ @Input() strictRecordMapping ! : boolean;
940
+ @Input() tooltip ! : string|TooltipConfig|null;
941
+ @Input() width ! : number|string;
942
+ @Input() x ! : number;
943
+ @Input() y ! : number;
944
+
945
+ // Properties only
946
+ @Input() anchorSize ! : number[];
947
+ @Input() focusVisible ! : boolean;
948
+ @Input() hasChanges ! : boolean;
949
+ @Input() isSettingValues ! : boolean;
950
+ @Input() isValid ! : boolean;
951
+ @Input() parent ! : Widget;
952
+ @Input() values ! : Record<string, object>;
953
+
954
+ // Events emitters
955
+ /**
956
+ * Fires before an object is destroyed.
957
+ * @param {object} event Event object
958
+ * @param {Core.Base} event.source The Object that is being destroyed.
959
+ */
960
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
961
+ /**
962
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
963
+ * @param {object} event Event object
964
+ * @param {Core.widget.Widget} event.source The widget being hidden.
965
+ */
966
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
967
+ /**
968
+ * Fired before this container will load record values into its child fields. This is useful if you
969
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
970
+ * @param {object} event Event object
971
+ * @param {Core.widget.Container} event.source The container
972
+ * @param {Core.data.Model} event.record The record
973
+ */
974
+ @Output() onBeforeSetRecord: any = new EventEmitter<((event: { source: Container, record: Model }) => void)|string>();
975
+ /**
976
+ * Triggered before a widget is shown. Return `false` to prevent the action.
977
+ * @param {object} event Event object
978
+ * @param {Core.widget.Widget,any} event.source The widget being shown
979
+ */
980
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
981
+ /**
982
+ * Fires when any other event is fired from the object.
983
+ * ...
984
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#event-catchAll)
985
+ * @param {object} event Event object
986
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
987
+ * @param {string} event.event.type The type of the event which is caught by the listener
988
+ */
989
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
990
+ /**
991
+ * Fires when an object is destroyed.
992
+ * @param {object} event Event object
993
+ * @param {Core.Base} event.source The Object that is being destroyed.
994
+ */
995
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
996
+ /**
997
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-hasChanges) property changes
998
+ * @param {object} event Event object
999
+ * @param {Core.widget.Container} event.source The container.
1000
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
1001
+ */
1002
+ @Output() onDirtyStateChange: any = new EventEmitter<((event: { source: Container, dirty: boolean }) => void)|string>();
1003
+ /**
1004
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1005
+ * @param {object} event Event object
1006
+ * @param {HTMLElement} event.element The Widget's element.
1007
+ */
1008
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1009
+ /**
1010
+ * Fired when focus enters this Widget.
1011
+ * @param {object} event Event object
1012
+ * @param {Core.widget.Widget} event.source This Widget
1013
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1014
+ * @param {HTMLElement} event.toElement The element which gained focus.
1015
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1016
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1017
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1018
+ */
1019
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1020
+ /**
1021
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1022
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1023
+ * will not trigger this event. This is when focus exits this widget completely.
1024
+ * @param {object} event Event object
1025
+ * @param {Core.widget.Widget} event.source This Widget
1026
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1027
+ * @param {HTMLElement} event.toElement The element which gained focus.
1028
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1029
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1030
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1031
+ */
1032
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1033
+ /**
1034
+ * Triggered after a widget was hidden
1035
+ * @param {object} event Event object
1036
+ * @param {Core.widget.Widget} event.source The widget
1037
+ */
1038
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1039
+ /**
1040
+ * Triggered when a widget which had been in a non-visible state for any reason
1041
+ * achieves visibility.
1042
+ * ...
1043
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/UndoRedo#event-paint)
1044
+ * @param {object} event Event object
1045
+ * @param {Core.widget.Widget} event.source The widget being painted.
1046
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1047
+ */
1048
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1049
+ /**
1050
+ * Fired when a Widget's read only state is toggled
1051
+ * @param {object} event Event object
1052
+ * @param {boolean} event.readOnly Read only or not
1053
+ */
1054
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1055
+ /**
1056
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1057
+ * to [recompose](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
1058
+ */
1059
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1060
+ /**
1061
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
1062
+ * @param {object} event Event object
1063
+ * @param {Core.widget.Widget} event.source This Widget
1064
+ * @param {number} event.width The new width
1065
+ * @param {number} event.height The new height
1066
+ * @param {number} event.oldWidth The old width
1067
+ * @param {number} event.oldHeight The old height
1068
+ */
1069
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1070
+ /**
1071
+ * Triggered after a widget is shown.
1072
+ * @param {object} event Event object
1073
+ * @param {Core.widget.Widget} event.source The widget
1074
+ */
1075
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1076
+
1077
+ /**
1078
+ * Create and append the underlying widget
1079
+ */
1080
+ ngOnInit(): void {
1081
+ const
1082
+ me = this,
1083
+ {
1084
+ elementRef,
1085
+ bryntumConfig
1086
+ } = me,
1087
+ {
1088
+ instanceClass,
1089
+ instanceName,
1090
+ bryntumConfigs,
1091
+ bryntumEvents
1092
+ } = BryntumUndoRedoComponent;
1093
+
1094
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1095
+ // @ts-ignore
1096
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1097
+ if (['features', 'config'].includes(prop)) {
1098
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1099
+ }
1100
+ });
1101
+ // @ts-ignore
1102
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1103
+ const
1104
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1105
+ eventName = (str: string) => uncapitalize(str.slice(2));
1106
+
1107
+ // @ts-ignore
1108
+ bryntumConfig.listeners[eventName(event)] = e => {
1109
+ // @ts-ignore
1110
+ me[event].emit(e);
1111
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1112
+ // in Angular listeners
1113
+ return e.returnValue;
1114
+ };
1115
+ });
1116
+
1117
+ // If component has no container specified in config then use adopt to Wrapper's element
1118
+ const
1119
+ containerParam = [
1120
+ 'adopt',
1121
+ 'appendTo',
1122
+ 'insertAfter',
1123
+ 'insertBefore'
1124
+ // @ts-ignore
1125
+ ].find(prop => bryntumConfig[prop]);
1126
+ if (!containerParam) {
1127
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1128
+ // Button should always be <a> or <button> inside owner element
1129
+ bryntumConfig.appendTo = elementRef.nativeElement;
1130
+ }
1131
+ else {
1132
+ bryntumConfig.adopt = elementRef.nativeElement;
1133
+ }
1134
+ }
1135
+ else {
1136
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1137
+ }
1138
+
1139
+ // @ts-ignore
1140
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1141
+
1142
+ }
1143
+
1144
+ /**
1145
+ * Watch for changes
1146
+ * @param changes
1147
+ */
1148
+ ngOnChanges(changes: SimpleChanges): void {
1149
+ const
1150
+ { instance } = this,
1151
+ { instanceName } = BryntumUndoRedoComponent;
1152
+ if (!instance) {
1153
+ return;
1154
+ }
1155
+ // Iterate over all changes
1156
+ Object.entries(changes).forEach(([prop, change]) => {
1157
+ const
1158
+ newValue = (change as SimpleChange).currentValue,
1159
+ { instance } = this,
1160
+ { bryntumConfigsOnly, bryntumProps } = BryntumUndoRedoComponent;
1161
+ if (bryntumProps.includes(prop)) {
1162
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1163
+ if (bryntumConfigsOnly.includes(prop)) {
1164
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1165
+ }
1166
+ }
1167
+ });
1168
+ }
1169
+
1170
+ /**
1171
+ * Destroy the component
1172
+ */
1173
+ ngOnDestroy(): void {
1174
+ // @ts-ignore
1175
+ if (this.instance && this.instance.destroy) {
1176
+ this.instance.destroy();
1177
+ }
1178
+ }
1179
+ }