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