@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,1756 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum DatePicker
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, CalendarPanel, Container, ContainerItemConfig, ContainerLayoutConfig, DatePicker, DatePickerListeners, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Month, MonthConfig, 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 BryntumDatePickerProps = {
15
+ // Configs
16
+ /**
17
+ * The date that the user has navigated to using the UI *prior* to setting the widget's
18
+ * value by selecting it. The initial default is today's date. Can also be supplied as a `YYYY-MM-DD` date
19
+ * string.
20
+ * ...
21
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-activeDate)
22
+ */
23
+ activeDate ? : Date|'today'|string
24
+ /**
25
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
26
+ * content will be placed inside this element.
27
+ * ...
28
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-adopt)
29
+ */
30
+ adopt ? : HTMLElement|string
31
+ /**
32
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
33
+ * ...
34
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-align)
35
+ */
36
+ align ? : AlignSpec|string
37
+ /**
38
+ * 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
39
+ * flexbox layout. This config allows you to set this widget's
40
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
41
+ */
42
+ alignSelf ? : string
43
+ /**
44
+ * *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).*
45
+ * `true` to show a connector arrow pointing to the align target.
46
+ */
47
+ anchor ? : boolean
48
+ /**
49
+ * By default, when navigating through time, the next time
50
+ * block will be animated in from the appropriate direction.
51
+ * ...
52
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-animateTimeShift)
53
+ */
54
+ animateTimeShift ? : boolean
55
+ /**
56
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
57
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
58
+ */
59
+ appendTo ? : HTMLElement|string
60
+ /**
61
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
62
+ * into an element which will be linked using the `aria-describedby` attribute.
63
+ * ...
64
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-ariaDescription)
65
+ */
66
+ ariaDescription ? : string
67
+ /**
68
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
69
+ * the `aria-label` attribute.
70
+ * ...
71
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-ariaLabel)
72
+ */
73
+ ariaLabel ? : string
74
+ /**
75
+ * Update assigned [record](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-record) automatically on field changes
76
+ */
77
+ autoUpdateRecord ? : boolean
78
+ /**
79
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
80
+ * 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).
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-bbar)
83
+ */
84
+ bbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
85
+ /**
86
+ * Custom CSS classes to add to the panel's body element.
87
+ * ...
88
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-bodyCls)
89
+ */
90
+ bodyCls ? : string|object
91
+ /**
92
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
93
+ * hierarchy when triggered.
94
+ * ...
95
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-bubbleEvents)
96
+ */
97
+ bubbleEvents ? : object
98
+ /**
99
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
100
+ * ...
101
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-callOnFunctions)
102
+ */
103
+ callOnFunctions ? : boolean
104
+ /**
105
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
106
+ * application state is undefined. Code which follows the event handler will *not* be executed.
107
+ * ...
108
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-catchEventHandlerExceptions)
109
+ */
110
+ catchEventHandlerExceptions ? : boolean
111
+ /**
112
+ * A function (or the name of a function) which creates content in, and may mutate a day cell element.
113
+ * ...
114
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-cellRenderer)
115
+ * @param {object} renderData
116
+ * @param {HTMLElement} renderData.cell The cell's encapsulating element. This has the `b-calendar-panel-cell` class and is the element which receives focus, so this should be the target of any accessibility attributes.
117
+ * @param {HTMLElement} renderData.innerCell The inner element of the cell which contains the date number. This is the `aspect-ratio : 1` element which contains the date. It is not recommeneded to mutate this element. Instead use the `cellPayload` element (see below).
118
+ * @param {HTMLElement} renderData.cellPayload An empty, absolutely positioned element, by default docked at the bottom of the cell. Content may be added to this element to augment cell content.
119
+ * @param {Date} renderData.date The date for the cell
120
+ * @param {number} renderData.day The day for the cell (`0` to `6` for Sunday to Saturday)
121
+ * @param {number[]} renderData.rowIndex The row index, 0 to month row count (6 if [sixWeeks](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-sixWeeks) is `true`)
122
+ * @param {HTMLElement} renderData.row The row element encapsulating the week which the cell is a part of
123
+ * @param {Core.widget.CalendarPanel} renderData.source The widget being rendered
124
+ * @param {number[]} renderData.cellIndex The cell index in the whole panel. May be from `0` to up to `42`
125
+ * @param {number[]} renderData.columnIndex The column index, `0` to `6`
126
+ * @param {number[]} renderData.visibleColumnIndex The visible column index taking hidden non working days into account
127
+ * @returns {string,DomConfig,void}
128
+ */
129
+ cellRenderer ? : ((renderData: { cell: HTMLElement, innerCell: HTMLElement, cellPayload: HTMLElement, date: Date, day: number, rowIndex: number[], row: HTMLElement, source: CalendarPanel, cellIndex: number[], columnIndex: number[], visibleColumnIndex: number[] }) => string|DomConfig|void)|string
130
+ /**
131
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
132
+ * Set to `true` to centre the Widget in browser viewport space.
133
+ */
134
+ centered ? : boolean
135
+ /**
136
+ * Custom CSS classes to add to element.
137
+ * May be specified as a space separated string, or as an object in which property names
138
+ * with truthy values are used as the class names:
139
+ * ...
140
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-cls)
141
+ */
142
+ cls ? : string|object
143
+ /**
144
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
145
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible).
146
+ */
147
+ collapsed ? : boolean
148
+ /**
149
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsed).
150
+ * ...
151
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-collapsible)
152
+ */
153
+ collapsible ? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
154
+ /**
155
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
156
+ * `style` block.
157
+ * ...
158
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-color)
159
+ */
160
+ color ? : string
161
+ /**
162
+ * Programmatic control over which column to start in when used in a grid layout.
163
+ */
164
+ column ? : number
165
+ config ? : object
166
+ /**
167
+ * *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).*
168
+ * Element, Widget or Rectangle to which this Widget is constrained.
169
+ */
170
+ constrainTo ? : HTMLElement|Widget|Rectangle
171
+ /**
172
+ * The HTML content that coexists with sibling elements which may have been added to the
173
+ * [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
174
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-htmlCls)
175
+ * class added to its classList, to allow targeted styling.
176
+ */
177
+ content ? : string
178
+ /**
179
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
180
+ * May be specified as a space separated string, or as an object in which property names
181
+ * with truthy values are used as the class names:
182
+ * ...
183
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-contentElementCls)
184
+ */
185
+ contentElementCls ? : string|object
186
+ /**
187
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
188
+ * field on the expanded record to use for populating this widget's store (if applicable)
189
+ */
190
+ dataField ? : string
191
+ /**
192
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
193
+ */
194
+ dataset ? : Record<string, string>
195
+ /**
196
+ * The initially selected date (or a `YYYY-MM-DD` date string).
197
+ */
198
+ date ? : Date|string
199
+ /**
200
+ * The [DateHelper](https://bryntum.com/products/taskboard/docs/api/Core/helper/DateHelper) format string to format the day names.
201
+ */
202
+ dayNameFormat ? : string
203
+ /**
204
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
205
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
206
+ */
207
+ defaultBindProperty ? : string
208
+ /**
209
+ * A [query](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
210
+ * focus should be directed by default.
211
+ * ...
212
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-defaultFocus)
213
+ * @param {Core.widget.Widget} widget Widget passed to method
214
+ * @returns {boolean} truthy value if widget is the default one
215
+ */
216
+ defaultFocus ? : ((widget: Widget) => boolean)|string
217
+ /**
218
+ * A config object containing default settings to apply to all child widgets.
219
+ */
220
+ defaults ? : ContainerItemConfig
221
+ /**
222
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
223
+ * ...
224
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-detectCSSCompatibilityIssues)
225
+ */
226
+ detectCSSCompatibilityIssues ? : boolean
227
+ /**
228
+ * 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
229
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
230
+ * ...
231
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-disabled)
232
+ */
233
+ disabled ? : boolean|'inert'
234
+ /**
235
+ * The class name to add to disabled calendar cells.
236
+ */
237
+ disabledCls ? : string
238
+ /**
239
+ * Either an array of `Date` objects which are to be disabled (or date strings), or
240
+ * a function (or the name of a function), which, when passed a `Date` returns `true` if the
241
+ * date is disabled. Disabled dates cannot be interacted with.
242
+ * @param {Date} date Date to check
243
+ * @returns {boolean} Returns `true` if the provided date is disabled
244
+ */
245
+ disabledDates ? : ((date: Date) => boolean)|string|Date[]|string[]
246
+ /**
247
+ * Configure as `true` to render non working days as [disabledDates](https://bryntum.com/products/taskboard/docs/api/Core/widget/CalendarPanel#config-disabledDates).
248
+ * ...
249
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-disableNonWorkingDays)
250
+ */
251
+ disableNonWorkingDays ? : boolean
252
+ /**
253
+ * Configure this as true to disable pointer interaction with cells which are outside the
254
+ * range of the current month.
255
+ */
256
+ disableOtherMonthCells ? : boolean
257
+ /**
258
+ * Configure as `true` to render Saturdays and Sundays as [disabledDates](https://bryntum.com/products/taskboard/docs/api/Core/widget/CalendarPanel#config-disabledDates).
259
+ */
260
+ disableWeekends ? : boolean
261
+ /**
262
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
263
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
264
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
265
+ * body. Such widgets are called "edge strips".
266
+ * ...
267
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-dock)
268
+ */
269
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
270
+ /**
271
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
272
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
273
+ * property which controls when a drag should start.
274
+ * ...
275
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-draggable)
276
+ */
277
+ draggable ? : boolean|{
278
+ handleSelector?: string
279
+ }
280
+ /**
281
+ * This property is only valid if [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect) is set to `'range'`
282
+ * or `true`.
283
+ * ...
284
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-dragSelect)
285
+ */
286
+ dragSelect ? : boolean
287
+ /**
288
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
289
+ * ...
290
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-drawer)
291
+ * @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.
292
+ * @param {string,number} size The size of the drawer in its collapsible axis.
293
+ * @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.
294
+ * @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.
295
+ * @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.
296
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
297
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
298
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
299
+ */
300
+ 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}
301
+ /**
302
+ * By default, the month and year are editable. Configure this as `false` to prevent that.
303
+ */
304
+ editMonth ? : boolean
305
+ /**
306
+ * An object specifying attributes to assign to the root element of this widget.
307
+ * Set `null` value to attribute to remove it.
308
+ * ...
309
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-elementAttributes)
310
+ */
311
+ elementAttributes ? : Record<string, string|null>
312
+ extraData ? : any
313
+ /**
314
+ * 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
315
+ * flexbox layout. This config allows you to set this widget's
316
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
317
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
318
+ * numeric-only values are interpreted as the `flex-grow` value.
319
+ */
320
+ flex ? : number|string
321
+ /**
322
+ * Set to `true` to move the widget out of the document flow and position it
323
+ * absolutely in browser viewport space.
324
+ */
325
+ floating ? : boolean
326
+ /**
327
+ * By default, disabled dates cannot be navigated to, and they are skipped over
328
+ * during keyboard navigation. Configure this as `true` to enable navigation to
329
+ * disabled dates.
330
+ */
331
+ focusDisabledDates ? : boolean
332
+ /**
333
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
334
+ * 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).
335
+ * ...
336
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-footer)
337
+ */
338
+ footer ? : {
339
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
340
+ html?: string
341
+ cls?: string
342
+ }|string
343
+ /**
344
+ * 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`.
345
+ * ...
346
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-header)
347
+ */
348
+ header ? : string|boolean|PanelHeader
349
+ /**
350
+ * A function (or the name of a function) which creates content in, and may mutate a day header element.
351
+ * ...
352
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-headerRenderer)
353
+ * @param {HTMLElement} cell The header element
354
+ * @param {number} columnIndex The day column. Will be in the range `0` to `6`
355
+ * @param {number} weekDay The canonical day number where Monday is `0` and Sunday is `6`
356
+ * @returns {string,DomConfig,void}
357
+ */
358
+ headerRenderer ? : ((cell: HTMLElement, columnIndex: number, weekDay: number) => string|DomConfig|void)|string
359
+ /**
360
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
361
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
362
+ * cases this config is convenient.
363
+ */
364
+ height ? : string|number
365
+ /**
366
+ * Configure with true to make widget initially hidden.
367
+ */
368
+ hidden ? : boolean
369
+ /**
370
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
371
+ * ...
372
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-hideAnimation)
373
+ */
374
+ hideAnimation ? : boolean|object
375
+ /**
376
+ * Configure this as `true` to hide cells which are outside the range of the current month.
377
+ */
378
+ hideOtherMonthCells ? : boolean
379
+ /**
380
+ * Specify `true` to make this container hide when it has no visible children (Either empty
381
+ * or all children hidden).
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-hideWhenEmpty)
384
+ */
385
+ hideWhenEmpty ? : boolean
386
+ /**
387
+ * Configure as `true` to add a highlighted border and background to the week row which
388
+ * encapsulates the selected date.
389
+ */
390
+ highlightSelectedWeek ? : boolean
391
+ /**
392
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
393
+ * ...
394
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-html)
395
+ * @param {Core.widget.Widget} widget The calling Widget
396
+ * @returns {string}
397
+ */
398
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
399
+ /**
400
+ * The CSS class(es) to add when HTML content is being applied to this widget.
401
+ */
402
+ htmlCls ? : string|object
403
+ /**
404
+ * 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
405
+ * [DomConfig](https://bryntum.com/products/taskboard/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
406
+ */
407
+ icon ? : string|DomConfig
408
+ /**
409
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
410
+ */
411
+ id ? : string
412
+ /**
413
+ * Determines if the widgets read-only state should be controlled by its parent.
414
+ * ...
415
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-ignoreParentReadOnly)
416
+ */
417
+ ignoreParentReadOnly ? : boolean
418
+ /**
419
+ * By default, the year is visible. Configure this as `false` to prevent that.
420
+ */
421
+ includeYear ? : boolean
422
+ /**
423
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
424
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
425
+ * right, set this config to `'end'`.
426
+ * ...
427
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-inputFieldAlign)
428
+ */
429
+ inputFieldAlign ? : 'start'|'end'
430
+ /**
431
+ * 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.
432
+ */
433
+ insertBefore ? : HTMLElement|string
434
+ /**
435
+ * 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.
436
+ */
437
+ insertFirst ? : HTMLElement|string
438
+ /**
439
+ * An optional CSS class to add to child items of this container.
440
+ */
441
+ itemCls ? : string
442
+ /**
443
+ * An object containing typed child widget config objects or Widgets. May also be specified
444
+ * as an array.
445
+ * ...
446
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-items)
447
+ */
448
+ items ? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
449
+ /**
450
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
451
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
452
+ * are the name of the instance method to call when the keystroke is received.
453
+ * ...
454
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-keyMap)
455
+ */
456
+ keyMap ? : Record<string, KeyMapConfig>
457
+ /**
458
+ * Convenience setting to use same label placement on all child widgets.
459
+ * ...
460
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-labelPosition)
461
+ */
462
+ labelPosition ? : 'before'|'above'|'align-before'|'auto'|null
463
+ /**
464
+ * The short name of a helper class which manages rendering and styling of child items.
465
+ * ...
466
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-layout)
467
+ */
468
+ layout ? : string|ContainerLayoutConfig
469
+ /**
470
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
471
+ * ...
472
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-layoutStyle)
473
+ */
474
+ layoutStyle ? : object
475
+ /**
476
+ * 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
477
+ * instances only when this Container is rendered, rather than eagerly at construct time.
478
+ * ...
479
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-lazyItems)
480
+ */
481
+ lazyItems ? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
482
+ /**
483
+ * The listener set for this object.
484
+ * ...
485
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-listeners)
486
+ */
487
+ listeners ? : DatePickerListeners
488
+ /**
489
+ * A class translations of which are used for translating this entity.
490
+ * This is often used when translations of an item are defined on its container class.
491
+ * For example:
492
+ * ...
493
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-localeClass)
494
+ */
495
+ localeClass ? : typeof Base
496
+ /**
497
+ * Set to `false` to disable localization of this object.
498
+ */
499
+ localizable ? : boolean
500
+ /**
501
+ * List of properties which values should be translated automatically upon a locale applying.
502
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
503
+ * you could use 'localeKey' meta configuration.
504
+ * Example:
505
+ * ...
506
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-localizableProperties)
507
+ */
508
+ localizableProperties ? : string[]
509
+ /**
510
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
511
+ * numeric-only values are interpreted as pixels.
512
+ */
513
+ margin ? : number|string
514
+ /**
515
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
516
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
517
+ * values.
518
+ */
519
+ maskDefaults ? : MaskConfig
520
+ /**
521
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
522
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
523
+ */
524
+ masked ? : boolean|string|MaskConfig
525
+ /**
526
+ * The maximum selectable date. Selection of and navigation to dates after
527
+ * this date will not be possible.
528
+ */
529
+ maxDate ? : Date
530
+ /**
531
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
532
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
533
+ */
534
+ maxHeight ? : string|number
535
+ /**
536
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
537
+ * ...
538
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-maximizeOnMobile)
539
+ */
540
+ maximizeOnMobile ? : number|string
541
+ /**
542
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
543
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
544
+ */
545
+ maxWidth ? : string|number
546
+ /**
547
+ * By default, day cells flex to share available Panel width equally.
548
+ * ...
549
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-minColumnWidth)
550
+ */
551
+ minColumnWidth ? : number
552
+ /**
553
+ * The minimum selectable date. Selection of and navigation to dates prior
554
+ * to this date will not be possible.
555
+ */
556
+ minDate ? : Date
557
+ /**
558
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
559
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
560
+ */
561
+ minHeight ? : string|number
562
+ /**
563
+ * By default, week rows flex to share available Panel height equally.
564
+ * ...
565
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-minRowHeight)
566
+ */
567
+ minRowHeight ? : number|string
568
+ /**
569
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
570
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
571
+ */
572
+ minWidth ? : string|number
573
+ /**
574
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
575
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
576
+ * layout.
577
+ * ...
578
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-monitorResize)
579
+ */
580
+ monitorResize ? : boolean|{
581
+ immediate?: boolean
582
+ }
583
+ /**
584
+ * A [Month](https://bryntum.com/products/taskboard/docs/api/Core/util/Month) Month utility object which encapsulates this Panel's month
585
+ * and provides contextual information and navigation services.
586
+ */
587
+ month ? : Month|MonthConfig
588
+ /**
589
+ * The format string to use to create the text of the month button.
590
+ * ...
591
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-monthButtonFormat)
592
+ */
593
+ monthButtonFormat ? : string
594
+ /**
595
+ * Configure as `true` to enable selecting multiple discontiguous date ranges using
596
+ * click and Shift+click to create ranges and Ctrl+click to select/deselect individual dates.
597
+ * ...
598
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect)
599
+ */
600
+ multiSelect ? : boolean|'range'|'simple'
601
+ /**
602
+ * 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)
603
+ * config. For example, a specialized [Menu](https://bryntum.com/products/taskboard/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
604
+ * value defined like this:
605
+ * ...
606
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-namedItems)
607
+ */
608
+ namedItems ? : Record<string, ContainerItemConfig>
609
+ /**
610
+ * The class name to add to calendar cells which are [nonWorkingDays](https://bryntum.com/products/taskboard/docs/api/Core/widget/CalendarPanel#config-nonWorkingDays).
611
+ */
612
+ nonWorkingDayCls ? : string
613
+ /**
614
+ * Non-working days as an object where keys are day indices, 0-6 (Sunday-Saturday), and the value is `true`.
615
+ * Defaults to [nonWorkingDays](https://bryntum.com/products/taskboard/docs/api/Core/helper/DateHelper#property-nonWorkingDays-static).
616
+ */
617
+ nonWorkingDays ? : Record<number, boolean>
618
+ /**
619
+ * The class name to add to calendar cells which are in the previous or next month.
620
+ */
621
+ otherMonthCls ? : string
622
+ /**
623
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
624
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
625
+ * the owner is <strong>always</strong> the encapsulating Container.
626
+ * ...
627
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-owner)
628
+ */
629
+ owner ? : Widget|any
630
+ /**
631
+ * 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
632
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
633
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
634
+ * ...
635
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-positioned)
636
+ */
637
+ positioned ? : boolean
638
+ /**
639
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
640
+ * menu on click etc, since the tooltip would be displayed at the same time.
641
+ */
642
+ preventTooltipOnTouch ? : boolean
643
+ /**
644
+ * Whether this widget is read-only. This is only valid if the widget is an input
645
+ * field, <strong>or contains input fields at any depth</strong>.
646
+ * ...
647
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-readOnly)
648
+ */
649
+ readOnly ? : boolean
650
+ /**
651
+ * [Record](https://bryntum.com/products/taskboard/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
652
+ * ...
653
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-record)
654
+ */
655
+ record ? : Model
656
+ relayStoreEvents ? : boolean
657
+ /**
658
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
659
+ * `type`.
660
+ * ...
661
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-rendition)
662
+ */
663
+ rendition ? : string|Record<string, string>|null
664
+ /**
665
+ * Configure as `true` to have the component display a translucent ripple when its
666
+ * [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
667
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
668
+ * ...
669
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-ripple)
670
+ */
671
+ ripple ? : boolean|{
672
+ delegate?: string
673
+ color?: string
674
+ radius?: number
675
+ clip?: string
676
+ }
677
+ /**
678
+ * 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`
679
+ */
680
+ rootElement ? : ShadowRoot|HTMLElement
681
+ /**
682
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
683
+ * ...
684
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-rtl)
685
+ */
686
+ rtl ? : boolean
687
+ /**
688
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
689
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
690
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
691
+ * CSS overflow properties thus:
692
+ * ...
693
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-scrollable)
694
+ */
695
+ scrollable ? : boolean|ScrollerConfig|Scroller
696
+ /**
697
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
698
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
699
+ */
700
+ scrollAction ? : 'hide'|'realign'|null
701
+ /**
702
+ * If [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect) is configured as `true`, this is an array of dates
703
+ * which are selected. There may be multiple, discontiguous date ranges.
704
+ * ...
705
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-selection)
706
+ */
707
+ selection ? : Date[]|string[]
708
+ /**
709
+ * Configure as `true` to render past dates in a lighter text color.
710
+ */
711
+ shadePastDates ? : boolean
712
+ /**
713
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
714
+ * ...
715
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-showAnimation)
716
+ */
717
+ showAnimation ? : boolean|object
718
+ /**
719
+ * 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)
720
+ */
721
+ showTooltipWhenDisabled ? : boolean
722
+ /**
723
+ * Configure as `true` to show a week number column at the start of the calendar block.
724
+ */
725
+ showWeekColumn ? : boolean
726
+ /**
727
+ * Configure as `true` to always show a six-week calendar.
728
+ */
729
+ sixWeeks ? : boolean
730
+ /**
731
+ * Programmatic control over how many columns to span when used in a grid layout.
732
+ */
733
+ span ? : number
734
+ /**
735
+ * This value can be one of the following:
736
+ * ...
737
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-stateful)
738
+ */
739
+ stateful ? : boolean|object|string[]
740
+ /**
741
+ * The events that, when fired by this component, should trigger it to save its state by calling
742
+ * [saveState](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#function-saveState).
743
+ * ...
744
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-statefulEvents)
745
+ */
746
+ statefulEvents ? : object|string[]
747
+ /**
748
+ * 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
749
+ * 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)
750
+ * (if explicitly specified) will be used as the `stateId`.
751
+ * ...
752
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-stateId)
753
+ */
754
+ stateId ? : string
755
+ /**
756
+ * 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`
757
+ * will be saved using the [default state provider](https://bryntum.com/products/taskboard/docs/api/Core/state/StateProvider#property-instance-static).
758
+ * ...
759
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-stateProvider)
760
+ */
761
+ stateProvider ? : StateProvider
762
+ /**
763
+ * 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),
764
+ * without falling back to `ref`.
765
+ */
766
+ strictRecordMapping ? : boolean
767
+ /**
768
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
769
+ * [toolbars](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
770
+ * the toolbar's [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-items).
771
+ * ...
772
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-strips)
773
+ */
774
+ strips ? : Record<string, ContainerItemConfig>
775
+ /**
776
+ * 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
777
+ * [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
778
+ * this widget:
779
+ * ...
780
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tab)
781
+ */
782
+ tab ? : boolean|TabConfig
783
+ /**
784
+ * When this container is used as a tab in a TabPanel, these items are added to the
785
+ * [TabBar](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabBar) when this container is the active tab.
786
+ * ...
787
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tabBarItems)
788
+ */
789
+ tabBarItems ? : ToolbarItems[]|Widget[]
790
+ /**
791
+ * The tag name of this Widget's root element
792
+ */
793
+ tag ? : string
794
+ /**
795
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
796
+ * or array of config objects representing the child items of a Toolbar.
797
+ * This creates a toolbar docked to the top of the panel immediately below the header.
798
+ * ...
799
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tbar)
800
+ */
801
+ tbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
802
+ /**
803
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
804
+ * ...
805
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-textAlign)
806
+ */
807
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
808
+ /**
809
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
810
+ * which specifies a default max-width that makes long text more readable.
811
+ * ...
812
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-textContent)
813
+ */
814
+ textContent ? : boolean
815
+ /**
816
+ * A config object to create a tooltip which will show on hover of a date cell including disabled, weekend,
817
+ * and "other month" cells.
818
+ * ...
819
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tip)
820
+ */
821
+ tip ? : TooltipConfig
822
+ /**
823
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
824
+ * to the top if no header is configured.
825
+ * ...
826
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-title)
827
+ */
828
+ title ? : string
829
+ /**
830
+ * The class name to add to the calendar cell which contains today's date.
831
+ */
832
+ todayCls ? : string
833
+ /**
834
+ * 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
835
+ * property name is the reference by which an instantiated tool may be retrieved from the live
836
+ * `[tools](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
837
+ * ...
838
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tools)
839
+ */
840
+ tools ? : Record<string, ToolConfig>|null
841
+ /**
842
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
843
+ * ...
844
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-tooltip)
845
+ */
846
+ tooltip ? : string|TooltipConfig|null
847
+ /**
848
+ * By default, tabbing within a Panel is not contained, ie you can TAB out of the Panel
849
+ * forwards or backwards.
850
+ * Configure this as `true` to disallow tabbing out of the Panel, and make tabbing circular within this Panel.
851
+ */
852
+ trapFocus ? : boolean
853
+ type ? : 'datepicker'
854
+ /**
855
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
856
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
857
+ * values are used as the class names.
858
+ * ...
859
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-ui)
860
+ */
861
+ ui ? : 'plain'|'toolbar'|string|object
862
+ /**
863
+ * The header text for the week number column, if shown.
864
+ */
865
+ weekColumnHeader ? : string
866
+ /**
867
+ * The class name to add to calendar cells which are weekend dates.
868
+ */
869
+ weekendCls ? : string
870
+ /**
871
+ * A function (or the name of a function) which creates content in, and may mutate the week cell element at the start of a week row.
872
+ * ...
873
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-weekRenderer)
874
+ * @param {HTMLElement} weekCell The header element
875
+ * @param {number[]} week An array containing `[year, weekNumber]`
876
+ * @returns {string,DomConfig,void}
877
+ */
878
+ weekRenderer ? : ((weekCell: HTMLElement, week: number[]) => string|DomConfig|void)|string
879
+ /**
880
+ * The week start day, 0 meaning Sunday, 6 meaning Saturday.
881
+ * Defaults to [weekStartDay](https://bryntum.com/products/taskboard/docs/api/Core/helper/DateHelper#property-weekStartDay-static).
882
+ */
883
+ weekStartDay ? : number
884
+ /**
885
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
886
+ * Higher weights go further down.
887
+ */
888
+ weight ? : number
889
+ /**
890
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
891
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
892
+ * this config is convenient.
893
+ */
894
+ width ? : string|number
895
+ /**
896
+ * The x position for the widget.
897
+ * ...
898
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-x)
899
+ */
900
+ x ? : number
901
+ /**
902
+ * The y position for the widget.
903
+ * ...
904
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-y)
905
+ */
906
+ y ? : number
907
+
908
+ }
909
+
910
+ @Component({
911
+ selector : 'bryntum-date-picker',
912
+ template : ''
913
+ })
914
+ export class BryntumDatePickerComponent implements OnInit, OnDestroy {
915
+
916
+ public static instanceClass = DatePicker;
917
+
918
+ public static instanceName = 'DatePicker';
919
+
920
+ private static bryntumEvents: string[] = [
921
+ 'onBeforeDestroy',
922
+ 'onBeforeHide',
923
+ 'onBeforeRefresh',
924
+ 'onBeforeSetRecord',
925
+ 'onBeforeShow',
926
+ 'onBeforeStateApply',
927
+ 'onBeforeStateSave',
928
+ 'onCatchAll',
929
+ 'onCellClick',
930
+ 'onCollapse',
931
+ 'onDateChange',
932
+ 'onDestroy',
933
+ 'onDirtyStateChange',
934
+ 'onElementCreated',
935
+ 'onExpand',
936
+ 'onFocusIn',
937
+ 'onFocusOut',
938
+ 'onHide',
939
+ 'onPaint',
940
+ 'onReadOnly',
941
+ 'onRecompose',
942
+ 'onRefresh',
943
+ 'onResize',
944
+ 'onSelectionChange',
945
+ 'onShow',
946
+ 'onToolClick',
947
+ 'onWeekCellClick'
948
+ ];
949
+
950
+ private static bryntumFeatureNames: string[] = [
951
+
952
+ ];
953
+
954
+ private static bryntumConfigs: string[] = BryntumDatePickerComponent.bryntumFeatureNames.concat([
955
+ 'activeDate',
956
+ 'adopt',
957
+ 'align',
958
+ 'alignSelf',
959
+ 'anchor',
960
+ 'animateTimeShift',
961
+ 'appendTo',
962
+ 'ariaDescription',
963
+ 'ariaLabel',
964
+ 'autoUpdateRecord',
965
+ 'bbar',
966
+ 'bodyCls',
967
+ 'bubbleEvents',
968
+ 'callOnFunctions',
969
+ 'catchEventHandlerExceptions',
970
+ 'cellRenderer',
971
+ 'centered',
972
+ 'cls',
973
+ 'collapsed',
974
+ 'collapsible',
975
+ 'color',
976
+ 'column',
977
+ 'config',
978
+ 'constrainTo',
979
+ 'content',
980
+ 'contentElementCls',
981
+ 'dataField',
982
+ 'dataset',
983
+ 'date',
984
+ 'dayNameFormat',
985
+ 'defaultBindProperty',
986
+ 'defaultFocus',
987
+ 'defaults',
988
+ 'detectCSSCompatibilityIssues',
989
+ 'disabled',
990
+ 'disabledCls',
991
+ 'disabledDates',
992
+ 'disableNonWorkingDays',
993
+ 'disableOtherMonthCells',
994
+ 'disableWeekends',
995
+ 'dock',
996
+ 'draggable',
997
+ 'dragSelect',
998
+ 'drawer',
999
+ 'editMonth',
1000
+ 'elementAttributes',
1001
+ 'extraData',
1002
+ 'flex',
1003
+ 'floating',
1004
+ 'focusDisabledDates',
1005
+ 'footer',
1006
+ 'header',
1007
+ 'headerRenderer',
1008
+ 'height',
1009
+ 'hidden',
1010
+ 'hideAnimation',
1011
+ 'hideOtherMonthCells',
1012
+ 'hideWhenEmpty',
1013
+ 'highlightSelectedWeek',
1014
+ 'html',
1015
+ 'htmlCls',
1016
+ 'icon',
1017
+ 'id',
1018
+ 'ignoreParentReadOnly',
1019
+ 'includeYear',
1020
+ 'inputFieldAlign',
1021
+ 'insertBefore',
1022
+ 'insertFirst',
1023
+ 'itemCls',
1024
+ 'items',
1025
+ 'keyMap',
1026
+ 'labelPosition',
1027
+ 'layout',
1028
+ 'layoutStyle',
1029
+ 'lazyItems',
1030
+ 'listeners',
1031
+ 'localeClass',
1032
+ 'localizable',
1033
+ 'localizableProperties',
1034
+ 'margin',
1035
+ 'maskDefaults',
1036
+ 'masked',
1037
+ 'maxDate',
1038
+ 'maxHeight',
1039
+ 'maximizeOnMobile',
1040
+ 'maxWidth',
1041
+ 'minColumnWidth',
1042
+ 'minDate',
1043
+ 'minHeight',
1044
+ 'minRowHeight',
1045
+ 'minWidth',
1046
+ 'monitorResize',
1047
+ 'month',
1048
+ 'monthButtonFormat',
1049
+ 'multiSelect',
1050
+ 'namedItems',
1051
+ 'nonWorkingDayCls',
1052
+ 'nonWorkingDays',
1053
+ 'otherMonthCls',
1054
+ 'owner',
1055
+ 'positioned',
1056
+ 'preventTooltipOnTouch',
1057
+ 'readOnly',
1058
+ 'record',
1059
+ 'relayStoreEvents',
1060
+ 'rendition',
1061
+ 'ripple',
1062
+ 'rootElement',
1063
+ 'rtl',
1064
+ 'scrollable',
1065
+ 'scrollAction',
1066
+ 'selection',
1067
+ 'shadePastDates',
1068
+ 'showAnimation',
1069
+ 'showTooltipWhenDisabled',
1070
+ 'showWeekColumn',
1071
+ 'sixWeeks',
1072
+ 'span',
1073
+ 'stateful',
1074
+ 'statefulEvents',
1075
+ 'stateId',
1076
+ 'stateProvider',
1077
+ 'strictRecordMapping',
1078
+ 'strips',
1079
+ 'tab',
1080
+ 'tabBarItems',
1081
+ 'tag',
1082
+ 'tbar',
1083
+ 'textAlign',
1084
+ 'textContent',
1085
+ 'tip',
1086
+ 'title',
1087
+ 'todayCls',
1088
+ 'tools',
1089
+ 'tooltip',
1090
+ 'trapFocus',
1091
+ 'type',
1092
+ 'ui',
1093
+ 'weekColumnHeader',
1094
+ 'weekendCls',
1095
+ 'weekRenderer',
1096
+ 'weekStartDay',
1097
+ 'weight',
1098
+ 'width',
1099
+ 'x',
1100
+ 'y'
1101
+ ]);
1102
+
1103
+ private static bryntumConfigsOnly: string[] = [
1104
+ 'activeDate',
1105
+ 'adopt',
1106
+ 'align',
1107
+ 'anchor',
1108
+ 'ariaDescription',
1109
+ 'ariaLabel',
1110
+ 'autoUpdateRecord',
1111
+ 'bbar',
1112
+ 'bodyCls',
1113
+ 'bubbleEvents',
1114
+ 'cellRenderer',
1115
+ 'centered',
1116
+ 'collapsible',
1117
+ 'color',
1118
+ 'config',
1119
+ 'constrainTo',
1120
+ 'contentElementCls',
1121
+ 'dataField',
1122
+ 'dayNameFormat',
1123
+ 'defaultBindProperty',
1124
+ 'defaultFocus',
1125
+ 'defaults',
1126
+ 'detectCSSCompatibilityIssues',
1127
+ 'disabledCls',
1128
+ 'disabledDates',
1129
+ 'disableNonWorkingDays',
1130
+ 'disableOtherMonthCells',
1131
+ 'disableWeekends',
1132
+ 'dock',
1133
+ 'draggable',
1134
+ 'drawer',
1135
+ 'editMonth',
1136
+ 'elementAttributes',
1137
+ 'floating',
1138
+ 'focusDisabledDates',
1139
+ 'footer',
1140
+ 'header',
1141
+ 'headerRenderer',
1142
+ 'hideAnimation',
1143
+ 'hideOtherMonthCells',
1144
+ 'hideWhenEmpty',
1145
+ 'htmlCls',
1146
+ 'icon',
1147
+ 'ignoreParentReadOnly',
1148
+ 'includeYear',
1149
+ 'itemCls',
1150
+ 'lazyItems',
1151
+ 'listeners',
1152
+ 'localeClass',
1153
+ 'localizable',
1154
+ 'localizableProperties',
1155
+ 'maskDefaults',
1156
+ 'masked',
1157
+ 'maxDate',
1158
+ 'minColumnWidth',
1159
+ 'minDate',
1160
+ 'minRowHeight',
1161
+ 'monitorResize',
1162
+ 'month',
1163
+ 'monthButtonFormat',
1164
+ 'multiSelect',
1165
+ 'namedItems',
1166
+ 'nonWorkingDayCls',
1167
+ 'nonWorkingDays',
1168
+ 'otherMonthCls',
1169
+ 'owner',
1170
+ 'positioned',
1171
+ 'preventTooltipOnTouch',
1172
+ 'relayStoreEvents',
1173
+ 'ripple',
1174
+ 'rootElement',
1175
+ 'scrollAction',
1176
+ 'showAnimation',
1177
+ 'showTooltipWhenDisabled',
1178
+ 'showWeekColumn',
1179
+ 'sixWeeks',
1180
+ 'stateful',
1181
+ 'statefulEvents',
1182
+ 'stateId',
1183
+ 'stateProvider',
1184
+ 'strips',
1185
+ 'tab',
1186
+ 'tabBarItems',
1187
+ 'tag',
1188
+ 'tbar',
1189
+ 'textAlign',
1190
+ 'textContent',
1191
+ 'tip',
1192
+ 'todayCls',
1193
+ 'trapFocus',
1194
+ 'type',
1195
+ 'ui',
1196
+ 'weekendCls',
1197
+ 'weekRenderer',
1198
+ 'weekStartDay',
1199
+ 'weight'
1200
+ ];
1201
+
1202
+ private static bryntumProps: string[] = BryntumDatePickerComponent.bryntumFeatureNames.concat([
1203
+ 'alignSelf',
1204
+ 'anchorSize',
1205
+ 'animateTimeShift',
1206
+ 'appendTo',
1207
+ 'callOnFunctions',
1208
+ 'catchEventHandlerExceptions',
1209
+ 'cls',
1210
+ 'collapsed',
1211
+ 'column',
1212
+ 'content',
1213
+ 'dataset',
1214
+ 'date',
1215
+ 'disabled',
1216
+ 'dragSelect',
1217
+ 'extraData',
1218
+ 'flex',
1219
+ 'focusVisible',
1220
+ 'hasChanges',
1221
+ 'height',
1222
+ 'hidden',
1223
+ 'highlightSelectedWeek',
1224
+ 'html',
1225
+ 'id',
1226
+ 'inputFieldAlign',
1227
+ 'insertBefore',
1228
+ 'insertFirst',
1229
+ 'isSettingValues',
1230
+ 'isValid',
1231
+ 'items',
1232
+ 'keyMap',
1233
+ 'labelPosition',
1234
+ 'layout',
1235
+ 'layoutStyle',
1236
+ 'margin',
1237
+ 'maxHeight',
1238
+ 'maximizeOnMobile',
1239
+ 'maxWidth',
1240
+ 'minHeight',
1241
+ 'minWidth',
1242
+ 'parent',
1243
+ 'readOnly',
1244
+ 'record',
1245
+ 'rendition',
1246
+ 'rtl',
1247
+ 'scrollable',
1248
+ 'selection',
1249
+ 'shadePastDates',
1250
+ 'span',
1251
+ 'state',
1252
+ 'strictRecordMapping',
1253
+ 'title',
1254
+ 'tools',
1255
+ 'tooltip',
1256
+ 'values',
1257
+ 'weekColumnHeader',
1258
+ 'width',
1259
+ 'x',
1260
+ 'y'
1261
+ ]);
1262
+
1263
+ private elementRef: ElementRef;
1264
+ public instance!: DatePicker;
1265
+
1266
+ private bryntumConfig = {
1267
+ adopt : undefined,
1268
+ appendTo : undefined,
1269
+ href : undefined,
1270
+ angularComponent : this,
1271
+ features : {},
1272
+ listeners : {}
1273
+ };
1274
+
1275
+ constructor(element: ElementRef) {
1276
+ this.elementRef = element;
1277
+ }
1278
+
1279
+ // Configs only
1280
+ @Input() activeDate ! : Date|'today'|string;
1281
+ @Input() adopt ! : HTMLElement|string;
1282
+ @Input() align ! : AlignSpec|string;
1283
+ @Input() anchor ! : boolean;
1284
+ @Input() ariaDescription ! : string;
1285
+ @Input() ariaLabel ! : string;
1286
+ @Input() autoUpdateRecord ! : boolean;
1287
+ @Input() bbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1288
+ @Input() bodyCls ! : string|object;
1289
+ @Input() bubbleEvents ! : object;
1290
+ @Input() cellRenderer ! : ((renderData: { cell: HTMLElement, innerCell: HTMLElement, cellPayload: HTMLElement, date: Date, day: number, rowIndex: number[], row: HTMLElement, source: CalendarPanel, cellIndex: number[], columnIndex: number[], visibleColumnIndex: number[] }) => string|DomConfig|void)|string;
1291
+ @Input() centered ! : boolean;
1292
+ @Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
1293
+ @Input() color ! : string;
1294
+ @Input() config ! : object;
1295
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
1296
+ @Input() contentElementCls ! : string|object;
1297
+ @Input() dataField ! : string;
1298
+ @Input() dayNameFormat ! : string;
1299
+ @Input() defaultBindProperty ! : string;
1300
+ @Input() defaultFocus ! : ((widget: Widget) => boolean)|string;
1301
+ @Input() defaults ! : ContainerItemConfig;
1302
+ @Input() detectCSSCompatibilityIssues ! : boolean;
1303
+ @Input() disabledCls ! : string;
1304
+ @Input() disabledDates ! : ((date: Date) => boolean)|string|Date[]|string[];
1305
+ @Input() disableNonWorkingDays ! : boolean;
1306
+ @Input() disableOtherMonthCells ! : boolean;
1307
+ @Input() disableWeekends ! : boolean;
1308
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
1309
+ @Input() draggable ! : boolean|{
1310
+ handleSelector?: string
1311
+ };
1312
+ @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};
1313
+ @Input() editMonth ! : boolean;
1314
+ @Input() elementAttributes ! : Record<string, string|null>;
1315
+ @Input() floating ! : boolean;
1316
+ @Input() focusDisabledDates ! : boolean;
1317
+ @Input() footer ! : {
1318
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
1319
+ html?: string
1320
+ cls?: string
1321
+ }|string;
1322
+ @Input() header ! : string|boolean|PanelHeader;
1323
+ @Input() headerRenderer ! : ((cell: HTMLElement, columnIndex: number, weekDay: number) => string|DomConfig|void)|string;
1324
+ @Input() hideAnimation ! : boolean|object;
1325
+ @Input() hideOtherMonthCells ! : boolean;
1326
+ @Input() hideWhenEmpty ! : boolean;
1327
+ @Input() htmlCls ! : string|object;
1328
+ @Input() icon ! : string|DomConfig;
1329
+ @Input() ignoreParentReadOnly ! : boolean;
1330
+ @Input() includeYear ! : boolean;
1331
+ @Input() itemCls ! : string;
1332
+ @Input() lazyItems ! : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[];
1333
+ @Input() listeners ! : DatePickerListeners;
1334
+ @Input() localeClass ! : typeof Base;
1335
+ @Input() localizable ! : boolean;
1336
+ @Input() localizableProperties ! : string[];
1337
+ @Input() maskDefaults ! : MaskConfig;
1338
+ @Input() masked ! : boolean|string|MaskConfig;
1339
+ @Input() maxDate ! : Date;
1340
+ @Input() minColumnWidth ! : number;
1341
+ @Input() minDate ! : Date;
1342
+ @Input() minRowHeight ! : number|string;
1343
+ @Input() monitorResize ! : boolean|{
1344
+ immediate?: boolean
1345
+ };
1346
+ @Input() month ! : Month|MonthConfig;
1347
+ @Input() monthButtonFormat ! : string;
1348
+ @Input() multiSelect ! : boolean|'range'|'simple';
1349
+ @Input() namedItems ! : Record<string, ContainerItemConfig>;
1350
+ @Input() nonWorkingDayCls ! : string;
1351
+ @Input() nonWorkingDays ! : Record<number, boolean>;
1352
+ @Input() otherMonthCls ! : string;
1353
+ @Input() owner ! : Widget|any;
1354
+ @Input() positioned ! : boolean;
1355
+ @Input() preventTooltipOnTouch ! : boolean;
1356
+ @Input() relayStoreEvents ! : boolean;
1357
+ @Input() ripple ! : boolean|{
1358
+ delegate?: string
1359
+ color?: string
1360
+ radius?: number
1361
+ clip?: string
1362
+ };
1363
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1364
+ @Input() scrollAction ! : 'hide'|'realign'|null;
1365
+ @Input() showAnimation ! : boolean|object;
1366
+ @Input() showTooltipWhenDisabled ! : boolean;
1367
+ @Input() showWeekColumn ! : boolean;
1368
+ @Input() sixWeeks ! : boolean;
1369
+ @Input() stateful ! : boolean|object|string[];
1370
+ @Input() statefulEvents ! : object|string[];
1371
+ @Input() stateId ! : string;
1372
+ @Input() stateProvider ! : StateProvider;
1373
+ @Input() strips ! : Record<string, ContainerItemConfig>;
1374
+ @Input() tab ! : boolean|TabConfig;
1375
+ @Input() tabBarItems ! : ToolbarItems[]|Widget[];
1376
+ @Input() tag ! : string;
1377
+ @Input() tbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1378
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
1379
+ @Input() textContent ! : boolean;
1380
+ @Input() tip ! : TooltipConfig;
1381
+ @Input() todayCls ! : string;
1382
+ @Input() trapFocus ! : boolean;
1383
+ @Input() type ! : 'datepicker';
1384
+ @Input() ui ! : 'plain'|'toolbar'|string|object;
1385
+ @Input() weekendCls ! : string;
1386
+ @Input() weekRenderer ! : ((weekCell: HTMLElement, week: number[]) => string|DomConfig|void)|string;
1387
+ @Input() weekStartDay ! : number;
1388
+ @Input() weight ! : number;
1389
+
1390
+ // Configs and properties
1391
+ @Input() alignSelf ! : string;
1392
+ @Input() animateTimeShift ! : boolean;
1393
+ @Input() appendTo ! : HTMLElement|string;
1394
+ @Input() callOnFunctions ! : boolean;
1395
+ @Input() catchEventHandlerExceptions ! : boolean;
1396
+ @Input() cls ! : string|object;
1397
+ @Input() collapsed ! : boolean;
1398
+ @Input() column ! : number;
1399
+ @Input() content ! : string;
1400
+ @Input() dataset ! : object|Record<string, string>;
1401
+ @Input() date ! : Date|string;
1402
+ @Input() disabled ! : boolean|'inert';
1403
+ @Input() dragSelect ! : boolean;
1404
+ @Input() extraData ! : any;
1405
+ @Input() flex ! : number|string;
1406
+ @Input() height ! : number|string;
1407
+ @Input() hidden ! : boolean;
1408
+ @Input() highlightSelectedWeek ! : boolean;
1409
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
1410
+ @Input() id ! : string;
1411
+ @Input() inputFieldAlign ! : 'start'|'end';
1412
+ @Input() insertBefore ! : HTMLElement|string;
1413
+ @Input() insertFirst ! : HTMLElement|string;
1414
+ @Input() items ! : (ContainerItemConfig|MenuItemConfig|Widget)[]|Record<string, ContainerItemConfig|MenuItemConfig>|Widget[]|Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[];
1415
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1416
+ @Input() labelPosition ! : 'before'|'above'|'align-before'|'auto'|null;
1417
+ @Input() layout ! : Layout|string|ContainerLayoutConfig;
1418
+ @Input() layoutStyle ! : object;
1419
+ @Input() margin ! : number|string;
1420
+ @Input() maxHeight ! : string|number;
1421
+ @Input() maximizeOnMobile ! : number|string;
1422
+ @Input() maxWidth ! : string|number;
1423
+ @Input() minHeight ! : string|number;
1424
+ @Input() minWidth ! : string|number;
1425
+ @Input() readOnly ! : boolean;
1426
+ @Input() record ! : Model;
1427
+ @Input() rendition ! : string|Record<string, string>|null;
1428
+ @Input() rtl ! : boolean;
1429
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
1430
+ @Input() selection ! : Date[]|string[];
1431
+ @Input() shadePastDates ! : boolean;
1432
+ @Input() span ! : number;
1433
+ @Input() strictRecordMapping ! : boolean;
1434
+ @Input() title ! : string;
1435
+ @Input() tools ! : Record<string, Tool|ToolConfig>|null|Record<string, Tool>|Record<string, ToolConfig>;
1436
+ @Input() tooltip ! : string|TooltipConfig|null;
1437
+ @Input() weekColumnHeader ! : string;
1438
+ @Input() width ! : number|string;
1439
+ @Input() x ! : number;
1440
+ @Input() y ! : number;
1441
+
1442
+ // Properties only
1443
+ @Input() anchorSize ! : number[];
1444
+ @Input() focusVisible ! : boolean;
1445
+ @Input() hasChanges ! : boolean;
1446
+ @Input() isSettingValues ! : boolean;
1447
+ @Input() isValid ! : boolean;
1448
+ @Input() parent ! : Widget;
1449
+ @Input() state ! : any;
1450
+ @Input() values ! : Record<string, object>;
1451
+
1452
+ // Events emitters
1453
+ /**
1454
+ * Fires before an object is destroyed.
1455
+ * @param {object} event Event object
1456
+ * @param {Core.Base} event.source The Object that is being destroyed.
1457
+ */
1458
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1459
+ /**
1460
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1461
+ * @param {object} event Event object
1462
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1463
+ */
1464
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1465
+ /**
1466
+ * Fires before this CalendarPanel refreshes in response to changes in its month.
1467
+ * @param {object} event Event object
1468
+ * @param {Core.widget.DatePicker} event.source This DatePicker.
1469
+ */
1470
+ @Output() onBeforeRefresh: any = new EventEmitter<((event: { source: DatePicker }) => void)|string>();
1471
+ /**
1472
+ * Fired before this container will load record values into its child fields. This is useful if you
1473
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
1474
+ * @param {object} event Event object
1475
+ * @param {Core.widget.Container} event.source The container
1476
+ * @param {Core.data.Model} event.record The record
1477
+ */
1478
+ @Output() onBeforeSetRecord: any = new EventEmitter<((event: { source: Container, record: Model }) => void)|string>();
1479
+ /**
1480
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1481
+ * @param {object} event Event object
1482
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1483
+ */
1484
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1485
+ /**
1486
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
1487
+ * @param {object} event Event object
1488
+ * @param {any} event.state State object config
1489
+ */
1490
+ @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: any }) => Promise<boolean>|boolean|void)|string>();
1491
+ /**
1492
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1493
+ * @param {object} event Event object
1494
+ * @param {any} event.state State object config
1495
+ */
1496
+ @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: any }) => Promise<boolean>|boolean|void)|string>();
1497
+ /**
1498
+ * Fires when any other event is fired from the object.
1499
+ * ...
1500
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#event-catchAll)
1501
+ * @param {object} event Event object
1502
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1503
+ * @param {string} event.event.type The type of the event which is caught by the listener
1504
+ */
1505
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1506
+ /**
1507
+ * Fired when a date cell is clicked.
1508
+ * @param {object} event Event object
1509
+ * @param {HTMLElement} event.cell The clicked cell element.
1510
+ * @param {Date} event.date The date represented by the cell.
1511
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
1512
+ * @param {Event} event.domEvent The original DOM event.
1513
+ */
1514
+ @Output() onCellClick: any = new EventEmitter<((event: { cell: HTMLElement, date: Date, week: number[], domEvent: Event }) => void)|string>();
1515
+ /**
1516
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1517
+ * @param {object} event Event object
1518
+ * @param {Core.widget.Panel} event.source This Panel.
1519
+ */
1520
+ @Output() onCollapse: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
1521
+ /**
1522
+ * Fires when the date of this CalendarPanel is set.
1523
+ * @param {object} event Event object
1524
+ * @param {Date} event.value The new date.
1525
+ * @param {Date} event.oldValue The old date.
1526
+ * @param {object} event.changes An object which contains properties which indicate what part of the date changed.
1527
+ * @param {boolean} event.changes.d True if the date changed in any way.
1528
+ * @param {boolean} event.changes.w True if the week changed (including same week in a different year).
1529
+ * @param {boolean} event.changes.m True if the month changed (including same month in a different year).
1530
+ * @param {boolean} event.changes.y True if the year changed.
1531
+ */
1532
+ @Output() onDateChange: any = new EventEmitter<((event: { value: Date, oldValue: Date, changes: { d: boolean, w: boolean, m: boolean, y: boolean } }) => void)|string>();
1533
+ /**
1534
+ * Fires when an object is destroyed.
1535
+ * @param {object} event Event object
1536
+ * @param {Core.Base} event.source The Object that is being destroyed.
1537
+ */
1538
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1539
+ /**
1540
+ * 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
1541
+ * @param {object} event Event object
1542
+ * @param {Core.widget.Container} event.source The container.
1543
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
1544
+ */
1545
+ @Output() onDirtyStateChange: any = new EventEmitter<((event: { source: Container, dirty: boolean }) => void)|string>();
1546
+ /**
1547
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1548
+ * @param {object} event Event object
1549
+ * @param {HTMLElement} event.element The Widget's element.
1550
+ */
1551
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1552
+ /**
1553
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1554
+ * @param {object} event Event object
1555
+ * @param {Core.widget.Panel} event.source This Panel.
1556
+ */
1557
+ @Output() onExpand: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
1558
+ /**
1559
+ * Fired when focus enters this Widget.
1560
+ * @param {object} event Event object
1561
+ * @param {Core.widget.Widget} event.source This Widget
1562
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1563
+ * @param {HTMLElement} event.toElement The element which gained focus.
1564
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1565
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1566
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1567
+ */
1568
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1569
+ /**
1570
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1571
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1572
+ * will not trigger this event. This is when focus exits this widget completely.
1573
+ * @param {object} event Event object
1574
+ * @param {Core.widget.Widget} event.source This Widget
1575
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1576
+ * @param {HTMLElement} event.toElement The element which gained focus.
1577
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1578
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1579
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1580
+ */
1581
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1582
+ /**
1583
+ * Triggered after a widget was hidden
1584
+ * @param {object} event Event object
1585
+ * @param {Core.widget.Widget} event.source The widget
1586
+ */
1587
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1588
+ /**
1589
+ * Triggered when a widget which had been in a non-visible state for any reason
1590
+ * achieves visibility.
1591
+ * ...
1592
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#event-paint)
1593
+ * @param {object} event Event object
1594
+ * @param {Core.widget.Widget} event.source The widget being painted.
1595
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1596
+ */
1597
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1598
+ /**
1599
+ * Fired when a Widget's read only state is toggled
1600
+ * @param {object} event Event object
1601
+ * @param {boolean} event.readOnly Read only or not
1602
+ */
1603
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1604
+ /**
1605
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1606
+ * 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.
1607
+ */
1608
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1609
+ /**
1610
+ * Fires when this CalendarPanel refreshes.
1611
+ */
1612
+ @Output() onRefresh: any = new EventEmitter<(() => void)|string>();
1613
+ /**
1614
+ * 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`*.
1615
+ * @param {object} event Event object
1616
+ * @param {Core.widget.Widget} event.source This Widget
1617
+ * @param {number} event.width The new width
1618
+ * @param {number} event.height The new height
1619
+ * @param {number} event.oldWidth The old width
1620
+ * @param {number} event.oldHeight The old height
1621
+ */
1622
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1623
+ /**
1624
+ * Fires when a date or date range is selected. If [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect) is specified,
1625
+ * this will fire upon deselection and selection of dates.
1626
+ * @param {object} event Event object
1627
+ * @param {Date[]} event.selection The selected dates. If [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
1628
+ * @param {Date[]} event.oldSelection The previously selected dates. If [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
1629
+ * @param {boolean} event.userAction This will be `true` if the change was caused by user interaction as opposed to programmatic setting.
1630
+ */
1631
+ @Output() onSelectionChange: any = new EventEmitter<((event: { selection: Date[], oldSelection: Date[], userAction: boolean }) => void)|string>();
1632
+ /**
1633
+ * Triggered after a widget is shown.
1634
+ * @param {object} event Event object
1635
+ * @param {Core.widget.Widget} event.source The widget
1636
+ */
1637
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1638
+ /**
1639
+ * A header [tool](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-tools) has been clicked.
1640
+ * @param {object} event Event object
1641
+ * @param {Core.widget.Tool} event.source This Panel.
1642
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
1643
+ */
1644
+ @Output() onToolClick: any = new EventEmitter<((event: { source: Tool, tool: Tool }) => void)|string>();
1645
+ /**
1646
+ * Fired when a week number cell is clicked.
1647
+ * @param {object} event Event object
1648
+ * @param {Date} event.date The start date of the week.
1649
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
1650
+ * @param {Event} event.domEvent The original DOM event.
1651
+ */
1652
+ @Output() onWeekCellClick: any = new EventEmitter<((event: { date: Date, week: number[], domEvent: Event }) => void)|string>();
1653
+
1654
+ /**
1655
+ * Create and append the underlying widget
1656
+ */
1657
+ ngOnInit(): void {
1658
+ const
1659
+ me = this,
1660
+ {
1661
+ elementRef,
1662
+ bryntumConfig
1663
+ } = me,
1664
+ {
1665
+ instanceClass,
1666
+ instanceName,
1667
+ bryntumConfigs,
1668
+ bryntumEvents
1669
+ } = BryntumDatePickerComponent;
1670
+
1671
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1672
+ // @ts-ignore
1673
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1674
+ if (['features', 'config'].includes(prop)) {
1675
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1676
+ }
1677
+ });
1678
+ // @ts-ignore
1679
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1680
+ const
1681
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1682
+ eventName = (str: string) => uncapitalize(str.slice(2));
1683
+
1684
+ // @ts-ignore
1685
+ bryntumConfig.listeners[eventName(event)] = e => {
1686
+ // @ts-ignore
1687
+ me[event].emit(e);
1688
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1689
+ // in Angular listeners
1690
+ return e.returnValue;
1691
+ };
1692
+ });
1693
+
1694
+ // If component has no container specified in config then use adopt to Wrapper's element
1695
+ const
1696
+ containerParam = [
1697
+ 'adopt',
1698
+ 'appendTo',
1699
+ 'insertAfter',
1700
+ 'insertBefore'
1701
+ // @ts-ignore
1702
+ ].find(prop => bryntumConfig[prop]);
1703
+ if (!containerParam) {
1704
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1705
+ // Button should always be <a> or <button> inside owner element
1706
+ bryntumConfig.appendTo = elementRef.nativeElement;
1707
+ }
1708
+ else {
1709
+ bryntumConfig.adopt = elementRef.nativeElement;
1710
+ }
1711
+ }
1712
+ else {
1713
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1714
+ }
1715
+
1716
+ // @ts-ignore
1717
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1718
+
1719
+ }
1720
+
1721
+ /**
1722
+ * Watch for changes
1723
+ * @param changes
1724
+ */
1725
+ ngOnChanges(changes: SimpleChanges): void {
1726
+ const
1727
+ { instance } = this,
1728
+ { instanceName } = BryntumDatePickerComponent;
1729
+ if (!instance) {
1730
+ return;
1731
+ }
1732
+ // Iterate over all changes
1733
+ Object.entries(changes).forEach(([prop, change]) => {
1734
+ const
1735
+ newValue = (change as SimpleChange).currentValue,
1736
+ { instance } = this,
1737
+ { bryntumConfigsOnly, bryntumProps } = BryntumDatePickerComponent;
1738
+ if (bryntumProps.includes(prop)) {
1739
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1740
+ if (bryntumConfigsOnly.includes(prop)) {
1741
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1742
+ }
1743
+ }
1744
+ });
1745
+ }
1746
+
1747
+ /**
1748
+ * Destroy the component
1749
+ */
1750
+ ngOnDestroy(): void {
1751
+ // @ts-ignore
1752
+ if (this.instance && this.instance.destroy) {
1753
+ this.instance.destroy();
1754
+ }
1755
+ }
1756
+ }