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