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