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