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