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