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