@bryntum/grid-angular 7.1.2 → 7.2.0

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 (174) hide show
  1. package/README.md +12 -6
  2. package/bundles/bryntum-grid-angular.umd.js +1094 -302
  3. package/bundles/bryntum-grid-angular.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-a-i-filter-field.component.js +1 -1
  5. package/esm2015/lib/bryntum-button-group.component.js +6 -2
  6. package/esm2015/lib/bryntum-button.component.js +1 -1
  7. package/esm2015/lib/bryntum-chat-panel.component.js +6 -2
  8. package/esm2015/lib/bryntum-checkbox-group.component.js +6 -2
  9. package/esm2015/lib/bryntum-checklist-filter-combo.component.js +1 -1
  10. package/esm2015/lib/bryntum-chip-view.component.js +8 -8
  11. package/esm2015/lib/bryntum-code-editor.component.js +6 -2
  12. package/esm2015/lib/bryntum-combo.component.js +1 -1
  13. package/esm2015/lib/bryntum-container.component.js +6 -2
  14. package/esm2015/lib/bryntum-date-field.component.js +6 -2
  15. package/esm2015/lib/bryntum-date-picker.component.js +9 -5
  16. package/esm2015/lib/bryntum-date-range-field.component.js +1 -1
  17. package/esm2015/lib/bryntum-date-time-field.component.js +1 -1
  18. package/esm2015/lib/bryntum-demo-code-editor.component.js +6 -2
  19. package/esm2015/lib/bryntum-display-field.component.js +1 -1
  20. package/esm2015/lib/bryntum-duration-field.component.js +1 -1
  21. package/esm2015/lib/bryntum-editor.component.js +6 -2
  22. package/esm2015/lib/bryntum-field-filter-picker-group.component.js +6 -2
  23. package/esm2015/lib/bryntum-field-filter-picker.component.js +6 -2
  24. package/esm2015/lib/bryntum-field-set.component.js +6 -2
  25. package/esm2015/lib/bryntum-file-field.component.js +1 -1
  26. package/esm2015/lib/bryntum-file-picker.component.js +6 -2
  27. package/esm2015/lib/bryntum-filter-field.component.js +1 -1
  28. package/esm2015/lib/bryntum-grid-base.component.js +45 -16
  29. package/esm2015/lib/bryntum-grid-chart-designer.component.js +1 -1
  30. package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +6 -2
  31. package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +6 -2
  32. package/esm2015/lib/bryntum-grid.component.js +45 -16
  33. package/esm2015/lib/bryntum-group-bar.component.js +8 -8
  34. package/esm2015/lib/bryntum-hint.component.js +6 -2
  35. package/esm2015/lib/bryntum-label.component.js +1 -1
  36. package/esm2015/lib/bryntum-list.component.js +8 -8
  37. package/esm2015/lib/bryntum-menu.component.js +6 -2
  38. package/esm2015/lib/bryntum-month-picker.component.js +6 -2
  39. package/esm2015/lib/bryntum-number-field.component.js +1 -1
  40. package/esm2015/lib/bryntum-paging-toolbar.component.js +6 -2
  41. package/esm2015/lib/bryntum-panel.component.js +6 -2
  42. package/esm2015/lib/bryntum-password-field.component.js +1 -1
  43. package/esm2015/lib/bryntum-progress-bar.component.js +600 -0
  44. package/esm2015/lib/bryntum-radio-group.component.js +6 -2
  45. package/esm2015/lib/bryntum-slider.component.js +1 -1
  46. package/esm2015/lib/bryntum-splitter.component.js +1 -1
  47. package/esm2015/lib/bryntum-tab-panel.component.js +6 -2
  48. package/esm2015/lib/bryntum-text-area-field.component.js +1 -1
  49. package/esm2015/lib/bryntum-text-area-picker-field.component.js +1 -1
  50. package/esm2015/lib/bryntum-text-field.component.js +1 -1
  51. package/esm2015/lib/bryntum-time-field.component.js +6 -2
  52. package/esm2015/lib/bryntum-time-picker.component.js +6 -2
  53. package/esm2015/lib/bryntum-toolbar.component.js +6 -2
  54. package/esm2015/lib/bryntum-tree-combo.component.js +1 -1
  55. package/esm2015/lib/bryntum-tree-grid.component.js +45 -16
  56. package/esm2015/lib/bryntum-widget.component.js +1 -1
  57. package/esm2015/lib/bryntum-year-picker.component.js +6 -2
  58. package/esm2015/lib/grid.module.js +6 -1
  59. package/esm2015/public-api.js +2 -1
  60. package/fesm2015/bryntum-grid-angular.js +1087 -299
  61. package/fesm2015/bryntum-grid-angular.js.map +1 -1
  62. package/lib/bryntum-a-i-filter-field.component.d.ts +3 -3
  63. package/lib/bryntum-button-group.component.d.ts +6 -1
  64. package/lib/bryntum-button.component.d.ts +3 -3
  65. package/lib/bryntum-chat-panel.component.d.ts +9 -4
  66. package/lib/bryntum-checkbox-group.component.d.ts +9 -4
  67. package/lib/bryntum-checklist-filter-combo.component.d.ts +3 -3
  68. package/lib/bryntum-chip-view.component.d.ts +6 -6
  69. package/lib/bryntum-code-editor.component.d.ts +9 -4
  70. package/lib/bryntum-combo.component.d.ts +3 -3
  71. package/lib/bryntum-container.component.d.ts +9 -4
  72. package/lib/bryntum-date-field.component.d.ts +15 -5
  73. package/lib/bryntum-date-picker.component.d.ts +10 -5
  74. package/lib/bryntum-date-range-field.component.d.ts +3 -3
  75. package/lib/bryntum-date-time-field.component.d.ts +3 -3
  76. package/lib/bryntum-demo-code-editor.component.d.ts +9 -4
  77. package/lib/bryntum-display-field.component.d.ts +3 -3
  78. package/lib/bryntum-duration-field.component.d.ts +3 -3
  79. package/lib/bryntum-editor.component.d.ts +9 -4
  80. package/lib/bryntum-field-filter-picker-group.component.d.ts +9 -4
  81. package/lib/bryntum-field-filter-picker.component.d.ts +9 -4
  82. package/lib/bryntum-field-set.component.d.ts +9 -4
  83. package/lib/bryntum-file-field.component.d.ts +3 -3
  84. package/lib/bryntum-file-picker.component.d.ts +9 -4
  85. package/lib/bryntum-filter-field.component.d.ts +3 -3
  86. package/lib/bryntum-grid-base.component.d.ts +49 -18
  87. package/lib/bryntum-grid-chart-designer.component.d.ts +3 -3
  88. package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +9 -4
  89. package/lib/bryntum-grid-field-filter-picker.component.d.ts +9 -4
  90. package/lib/bryntum-grid.component.d.ts +49 -18
  91. package/lib/bryntum-group-bar.component.d.ts +6 -6
  92. package/lib/bryntum-hint.component.d.ts +9 -4
  93. package/lib/bryntum-label.component.d.ts +3 -3
  94. package/lib/bryntum-list.component.d.ts +6 -6
  95. package/lib/bryntum-menu.component.d.ts +9 -4
  96. package/lib/bryntum-month-picker.component.d.ts +9 -4
  97. package/lib/bryntum-number-field.component.d.ts +3 -3
  98. package/lib/bryntum-paging-toolbar.component.d.ts +9 -4
  99. package/lib/bryntum-panel.component.d.ts +9 -4
  100. package/lib/bryntum-password-field.component.d.ts +3 -3
  101. package/lib/bryntum-progress-bar.component.d.ts +705 -0
  102. package/lib/bryntum-radio-group.component.d.ts +9 -4
  103. package/lib/bryntum-slider.component.d.ts +3 -3
  104. package/lib/bryntum-splitter.component.d.ts +3 -3
  105. package/lib/bryntum-tab-panel.component.d.ts +9 -4
  106. package/lib/bryntum-text-area-field.component.d.ts +3 -3
  107. package/lib/bryntum-text-area-picker-field.component.d.ts +3 -3
  108. package/lib/bryntum-text-field.component.d.ts +3 -3
  109. package/lib/bryntum-time-field.component.d.ts +13 -4
  110. package/lib/bryntum-time-picker.component.d.ts +9 -4
  111. package/lib/bryntum-toolbar.component.d.ts +9 -4
  112. package/lib/bryntum-tree-combo.component.d.ts +3 -3
  113. package/lib/bryntum-tree-grid.component.d.ts +49 -18
  114. package/lib/bryntum-widget.component.d.ts +3 -3
  115. package/lib/bryntum-year-picker.component.d.ts +9 -4
  116. package/lib/grid.module.d.ts +18 -17
  117. package/package.json +1 -1
  118. package/public-api.d.ts +1 -0
  119. package/src/lib/bryntum-a-i-filter-field.component.ts +3 -3
  120. package/src/lib/bryntum-button-group.component.ts +7 -0
  121. package/src/lib/bryntum-button.component.ts +3 -3
  122. package/src/lib/bryntum-chat-panel.component.ts +10 -3
  123. package/src/lib/bryntum-checkbox-group.component.ts +10 -3
  124. package/src/lib/bryntum-checklist-filter-combo.component.ts +3 -3
  125. package/src/lib/bryntum-chip-view.component.ts +102 -102
  126. package/src/lib/bryntum-code-editor.component.ts +10 -3
  127. package/src/lib/bryntum-combo.component.ts +3 -3
  128. package/src/lib/bryntum-container.component.ts +10 -3
  129. package/src/lib/bryntum-date-field.component.ts +16 -4
  130. package/src/lib/bryntum-date-picker.component.ts +12 -5
  131. package/src/lib/bryntum-date-range-field.component.ts +3 -3
  132. package/src/lib/bryntum-date-time-field.component.ts +3 -3
  133. package/src/lib/bryntum-demo-code-editor.component.ts +10 -3
  134. package/src/lib/bryntum-display-field.component.ts +3 -3
  135. package/src/lib/bryntum-duration-field.component.ts +3 -3
  136. package/src/lib/bryntum-editor.component.ts +10 -3
  137. package/src/lib/bryntum-field-filter-picker-group.component.ts +10 -3
  138. package/src/lib/bryntum-field-filter-picker.component.ts +10 -3
  139. package/src/lib/bryntum-field-set.component.ts +10 -3
  140. package/src/lib/bryntum-file-field.component.ts +3 -3
  141. package/src/lib/bryntum-file-picker.component.ts +10 -3
  142. package/src/lib/bryntum-filter-field.component.ts +3 -3
  143. package/src/lib/bryntum-grid-base.component.ts +61 -25
  144. package/src/lib/bryntum-grid-chart-designer.component.ts +3 -3
  145. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +10 -3
  146. package/src/lib/bryntum-grid-field-filter-picker.component.ts +10 -3
  147. package/src/lib/bryntum-grid.component.ts +61 -25
  148. package/src/lib/bryntum-group-bar.component.ts +102 -102
  149. package/src/lib/bryntum-hint.component.ts +10 -3
  150. package/src/lib/bryntum-label.component.ts +3 -3
  151. package/src/lib/bryntum-list.component.ts +99 -99
  152. package/src/lib/bryntum-menu.component.ts +10 -3
  153. package/src/lib/bryntum-month-picker.component.ts +10 -3
  154. package/src/lib/bryntum-number-field.component.ts +3 -3
  155. package/src/lib/bryntum-paging-toolbar.component.ts +10 -3
  156. package/src/lib/bryntum-panel.component.ts +10 -3
  157. package/src/lib/bryntum-password-field.component.ts +3 -3
  158. package/src/lib/bryntum-progress-bar.component.ts +1019 -0
  159. package/src/lib/bryntum-radio-group.component.ts +10 -3
  160. package/src/lib/bryntum-slider.component.ts +3 -3
  161. package/src/lib/bryntum-splitter.component.ts +3 -3
  162. package/src/lib/bryntum-tab-panel.component.ts +10 -3
  163. package/src/lib/bryntum-text-area-field.component.ts +3 -3
  164. package/src/lib/bryntum-text-area-picker-field.component.ts +3 -3
  165. package/src/lib/bryntum-text-field.component.ts +3 -3
  166. package/src/lib/bryntum-time-field.component.ts +14 -3
  167. package/src/lib/bryntum-time-picker.component.ts +10 -3
  168. package/src/lib/bryntum-toolbar.component.ts +10 -3
  169. package/src/lib/bryntum-tree-combo.component.ts +3 -3
  170. package/src/lib/bryntum-tree-grid.component.ts +61 -25
  171. package/src/lib/bryntum-widget.component.ts +3 -3
  172. package/src/lib/bryntum-year-picker.component.ts +10 -3
  173. package/src/lib/grid.module.ts +3 -0
  174. package/src/public-api.ts +1 -0
@@ -0,0 +1,1019 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum ProgressBar
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, Color, DomConfig, KeyMapConfig, MaskConfig, ProgressBar, ProgressBarListeners, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/grid';
11
+
12
+ import { StringHelper } from '@bryntum/grid';
13
+
14
+ export type BryntumProgressBarProps = {
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/grid/docs/api/Core/widget/ProgressBar#config-adopt)
21
+ */
22
+ adopt ? : HTMLElement|string
23
+ /**
24
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
25
+ * ...
26
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-align)
27
+ */
28
+ align ? : AlignSpec|string
29
+ /**
30
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/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/grid/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/grid/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/grid/docs/api/Core/widget/ProgressBar#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/grid/docs/api/Core/widget/ProgressBar#config-ariaLabel)
57
+ */
58
+ ariaLabel ? : string
59
+ /**
60
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
61
+ * hierarchy when triggered.
62
+ * ...
63
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-bubbleEvents)
64
+ */
65
+ bubbleEvents ? : object
66
+ /**
67
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
68
+ * ...
69
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-callOnFunctions)
70
+ */
71
+ callOnFunctions ? : boolean
72
+ /**
73
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
74
+ * application state is undefined. Code which follows the event handler will *not* be executed.
75
+ * ...
76
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-catchEventHandlerExceptions)
77
+ */
78
+ catchEventHandlerExceptions ? : boolean
79
+ /**
80
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
81
+ * Set to `true` to centre the Widget in browser viewport space.
82
+ */
83
+ centered ? : boolean
84
+ /**
85
+ * Custom CSS classes to add to element.
86
+ * May be specified as a space separated string, or as an object in which property names
87
+ * with truthy values are used as the class names:
88
+ * ...
89
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-cls)
90
+ */
91
+ cls ? : string|object
92
+ /**
93
+ * Color of the progress bar ('b-green', 'b-yellow', 'b-orange', etc.)
94
+ */
95
+ color ? : Color
96
+ /**
97
+ * Programmatic control over which column to start in when used in a grid layout.
98
+ */
99
+ column ? : number
100
+ config ? : object
101
+ /**
102
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
103
+ * Element, Widget or Rectangle to which this Widget is constrained.
104
+ */
105
+ constrainTo ? : HTMLElement|Widget|Rectangle
106
+ /**
107
+ * The HTML content that coexists with sibling elements which may have been added to the
108
+ * [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
109
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-htmlCls)
110
+ * class added to its classList, to allow targeted styling.
111
+ */
112
+ content ? : string
113
+ /**
114
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
115
+ * May be specified as a space separated string, or as an object in which property names
116
+ * with truthy values are used as the class names:
117
+ * ...
118
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-contentElementCls)
119
+ */
120
+ contentElementCls ? : string|object
121
+ /**
122
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
123
+ * field on the expanded record to use for populating this widget's store (if applicable)
124
+ */
125
+ dataField ? : string
126
+ /**
127
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
128
+ */
129
+ dataset ? : Record<string, string>
130
+ /**
131
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
132
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
133
+ */
134
+ defaultBindProperty ? : string
135
+ /**
136
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
137
+ * ...
138
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-detectCSSCompatibilityIssues)
139
+ */
140
+ detectCSSCompatibilityIssues ? : boolean
141
+ /**
142
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
143
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
144
+ * ...
145
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-disabled)
146
+ */
147
+ disabled ? : boolean|'inert'
148
+ /**
149
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/grid/docs/api/Core/widget/Panel)
150
+ * [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
151
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
152
+ * body. Such widgets are called "edge strips".
153
+ * ...
154
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-dock)
155
+ */
156
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
157
+ /**
158
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
159
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
160
+ * property which controls when a drag should start.
161
+ * ...
162
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-draggable)
163
+ */
164
+ draggable ? : boolean|{
165
+ handleSelector?: string
166
+ }
167
+ /**
168
+ * An object specifying attributes to assign to the root element of this widget.
169
+ * Set `null` value to attribute to remove it.
170
+ * ...
171
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-elementAttributes)
172
+ */
173
+ elementAttributes ? : Record<string, string|null>
174
+ extraData ? : any
175
+ /**
176
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container), it will by default be participating in a
177
+ * flexbox layout. This config allows you to set this widget's
178
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
179
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
180
+ * numeric-only values are interpreted as the `flex-grow` value.
181
+ */
182
+ flex ? : number|string
183
+ /**
184
+ * Set to `true` to move the widget out of the document flow and position it
185
+ * absolutely in browser viewport space.
186
+ */
187
+ floating ? : boolean
188
+ /**
189
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
190
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
191
+ * cases this config is convenient.
192
+ */
193
+ height ? : string|number
194
+ /**
195
+ * Configure with true to make widget initially hidden.
196
+ */
197
+ hidden ? : boolean
198
+ /**
199
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
200
+ * ...
201
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-hideAnimation)
202
+ */
203
+ hideAnimation ? : boolean|object
204
+ /**
205
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
206
+ * ...
207
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-html)
208
+ * @param {Core.widget.Widget} widget The calling Widget
209
+ * @returns {string}
210
+ */
211
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
212
+ /**
213
+ * The CSS class(es) to add when HTML content is being applied to this widget.
214
+ */
215
+ htmlCls ? : string|object
216
+ /**
217
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
218
+ */
219
+ id ? : string
220
+ /**
221
+ * Determines if the widgets read-only state should be controlled by its parent.
222
+ * ...
223
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-ignoreParentReadOnly)
224
+ */
225
+ ignoreParentReadOnly ? : boolean
226
+ /**
227
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
228
+ */
229
+ insertBefore ? : HTMLElement|string
230
+ /**
231
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
232
+ */
233
+ insertFirst ? : HTMLElement|string
234
+ /**
235
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
236
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
237
+ * are the name of the instance method to call when the keystroke is received.
238
+ * ...
239
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-keyMap)
240
+ */
241
+ keyMap ? : Record<string, KeyMapConfig>
242
+ /**
243
+ * The label text to display at the top left
244
+ */
245
+ label ? : string
246
+ /**
247
+ * The listener set for this object.
248
+ * ...
249
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-listeners)
250
+ */
251
+ listeners ? : ProgressBarListeners
252
+ /**
253
+ * A class translations of which are used for translating this entity.
254
+ * This is often used when translations of an item are defined on its container class.
255
+ * For example:
256
+ * ...
257
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-localeClass)
258
+ */
259
+ localeClass ? : typeof Base
260
+ /**
261
+ * Set to `false` to disable localization of this object.
262
+ */
263
+ localizable ? : boolean
264
+ /**
265
+ * List of properties which values should be translated automatically upon a locale applying.
266
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
267
+ * you could use 'localeKey' meta configuration.
268
+ * Example:
269
+ * ...
270
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-localizableProperties)
271
+ */
272
+ localizableProperties ? : string[]
273
+ /**
274
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
275
+ * numeric-only values are interpreted as pixels.
276
+ */
277
+ margin ? : number|string
278
+ /**
279
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) created for the
280
+ * [masked](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
281
+ * values.
282
+ */
283
+ maskDefaults ? : MaskConfig
284
+ /**
285
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
286
+ * [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object.
287
+ */
288
+ masked ? : boolean|string|MaskConfig
289
+ /**
290
+ * Maximum value for progress calculation. When specified, value is treated as absolute.
291
+ */
292
+ max ? : number
293
+ /**
294
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
295
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
296
+ */
297
+ maxHeight ? : string|number
298
+ /**
299
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
300
+ * ...
301
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-maximizeOnMobile)
302
+ */
303
+ maximizeOnMobile ? : number|string
304
+ /**
305
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
306
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
307
+ */
308
+ maxWidth ? : string|number
309
+ /**
310
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
311
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
312
+ */
313
+ minHeight ? : string|number
314
+ /**
315
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
316
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
317
+ */
318
+ minWidth ? : string|number
319
+ /**
320
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
321
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
322
+ * layout.
323
+ * ...
324
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-monitorResize)
325
+ */
326
+ monitorResize ? : boolean|{
327
+ immediate?: boolean
328
+ }
329
+ /**
330
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
331
+ * [items](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
332
+ * the owner is <strong>always</strong> the encapsulating Container.
333
+ * ...
334
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-owner)
335
+ */
336
+ owner ? : Widget|any
337
+ /**
338
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement), but must
339
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
340
+ * widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
341
+ * ...
342
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-positioned)
343
+ */
344
+ positioned ? : boolean
345
+ /**
346
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
347
+ * menu on click etc, since the tooltip would be displayed at the same time.
348
+ */
349
+ preventTooltipOnTouch ? : boolean
350
+ /**
351
+ * Whether this widget is read-only. This is only valid if the widget is an input
352
+ * field, <strong>or contains input fields at any depth</strong>.
353
+ * ...
354
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-readOnly)
355
+ */
356
+ readOnly ? : boolean
357
+ relayStoreEvents ? : boolean
358
+ /**
359
+ * Configure as `true` to have the component display a translucent ripple when its
360
+ * [focusElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
361
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
362
+ * ...
363
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-ripple)
364
+ */
365
+ ripple ? : boolean|{
366
+ delegate?: string
367
+ color?: string
368
+ radius?: number
369
+ clip?: string
370
+ }
371
+ /**
372
+ * 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`
373
+ */
374
+ rootElement ? : ShadowRoot|HTMLElement
375
+ /**
376
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
377
+ * ...
378
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-rtl)
379
+ */
380
+ rtl ? : boolean
381
+ /**
382
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
383
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
384
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
385
+ * CSS overflow properties thus:
386
+ * ...
387
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-scrollable)
388
+ */
389
+ scrollable ? : boolean|ScrollerConfig|Scroller
390
+ /**
391
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
392
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
393
+ */
394
+ scrollAction ? : 'hide'|'realign'|null
395
+ /**
396
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
397
+ * ...
398
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-showAnimation)
399
+ */
400
+ showAnimation ? : boolean|object
401
+ /**
402
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-disabled)
403
+ */
404
+ showTooltipWhenDisabled ? : boolean
405
+ /**
406
+ * Programmatic control over how many columns to span when used in a grid layout.
407
+ */
408
+ span ? : number
409
+ /**
410
+ * A configuration for the [tab](https://bryntum.com/products/grid/docs/api/Core/widget/Tab) created for this widget when it is placed in a
411
+ * [TabPanel](https://bryntum.com/products/grid/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
412
+ * this widget:
413
+ * ...
414
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-tab)
415
+ */
416
+ tab ? : boolean|TabConfig
417
+ /**
418
+ * The tag name of this Widget's root element
419
+ */
420
+ tag ? : string
421
+ /**
422
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
423
+ * ...
424
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-textAlign)
425
+ */
426
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
427
+ /**
428
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
429
+ */
430
+ title ? : string
431
+ /**
432
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
433
+ * ...
434
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-tooltip)
435
+ */
436
+ tooltip ? : string|TooltipConfig|null
437
+ type ? : 'progressbar'
438
+ /**
439
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
440
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
441
+ * values are used as the class names.
442
+ * ...
443
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-ui)
444
+ */
445
+ ui ? : string|object
446
+ /**
447
+ * Progress value. If max is specified, this is an absolute value (e.g., 8 out of 10).
448
+ * If max is not specified, this should be between 0 and 1 (e.g., 0.5 for 50%)
449
+ */
450
+ value ? : number
451
+ /**
452
+ * Template function that can be used to customize the displayed value
453
+ * @param {number} value The value to provide a textual value for
454
+ * @param {number} max The max value of the progress bar
455
+ * @returns {string,number,void}
456
+ */
457
+ valueRenderer ? : (value: number, max: number) => string|number|void
458
+ /**
459
+ * The value text to display at the top right
460
+ * If not specified and max is provided, will auto-generate as "value/max"
461
+ */
462
+ valueText ? : string
463
+ /**
464
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container).
465
+ * Higher weights go further down.
466
+ */
467
+ weight ? : number
468
+ /**
469
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
470
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
471
+ * this config is convenient.
472
+ */
473
+ width ? : string|number
474
+ /**
475
+ * The x position for the widget.
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-x)
478
+ */
479
+ x ? : number
480
+ /**
481
+ * The y position for the widget.
482
+ * ...
483
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#config-y)
484
+ */
485
+ y ? : number
486
+
487
+ }
488
+
489
+ @Component({
490
+ selector : 'bryntum-progress-bar',
491
+ template : ''
492
+ })
493
+ export class BryntumProgressBarComponent implements OnInit, OnDestroy {
494
+
495
+ public static instanceClass = ProgressBar;
496
+
497
+ public static instanceName = 'ProgressBar';
498
+
499
+ private static bryntumEvents: string[] = [
500
+ 'onBeforeDestroy',
501
+ 'onBeforeHide',
502
+ 'onBeforeShow',
503
+ 'onCatchAll',
504
+ 'onDestroy',
505
+ 'onElementCreated',
506
+ 'onFocusIn',
507
+ 'onFocusOut',
508
+ 'onHide',
509
+ 'onPaint',
510
+ 'onReadOnly',
511
+ 'onRecompose',
512
+ 'onResize',
513
+ 'onShow'
514
+ ];
515
+
516
+ private static bryntumFeatureNames: string[] = [
517
+
518
+ ];
519
+
520
+ private static bryntumConfigs: string[] = BryntumProgressBarComponent.bryntumFeatureNames.concat([
521
+ 'adopt',
522
+ 'align',
523
+ 'alignSelf',
524
+ 'anchor',
525
+ 'appendTo',
526
+ 'ariaDescription',
527
+ 'ariaLabel',
528
+ 'bubbleEvents',
529
+ 'callOnFunctions',
530
+ 'catchEventHandlerExceptions',
531
+ 'centered',
532
+ 'cls',
533
+ 'color',
534
+ 'column',
535
+ 'config',
536
+ 'constrainTo',
537
+ 'content',
538
+ 'contentElementCls',
539
+ 'dataField',
540
+ 'dataset',
541
+ 'defaultBindProperty',
542
+ 'detectCSSCompatibilityIssues',
543
+ 'disabled',
544
+ 'dock',
545
+ 'draggable',
546
+ 'elementAttributes',
547
+ 'extraData',
548
+ 'flex',
549
+ 'floating',
550
+ 'height',
551
+ 'hidden',
552
+ 'hideAnimation',
553
+ 'html',
554
+ 'htmlCls',
555
+ 'id',
556
+ 'ignoreParentReadOnly',
557
+ 'insertBefore',
558
+ 'insertFirst',
559
+ 'keyMap',
560
+ 'label',
561
+ 'listeners',
562
+ 'localeClass',
563
+ 'localizable',
564
+ 'localizableProperties',
565
+ 'margin',
566
+ 'maskDefaults',
567
+ 'masked',
568
+ 'max',
569
+ 'maxHeight',
570
+ 'maximizeOnMobile',
571
+ 'maxWidth',
572
+ 'minHeight',
573
+ 'minWidth',
574
+ 'monitorResize',
575
+ 'owner',
576
+ 'positioned',
577
+ 'preventTooltipOnTouch',
578
+ 'readOnly',
579
+ 'relayStoreEvents',
580
+ 'ripple',
581
+ 'rootElement',
582
+ 'rtl',
583
+ 'scrollable',
584
+ 'scrollAction',
585
+ 'showAnimation',
586
+ 'showTooltipWhenDisabled',
587
+ 'span',
588
+ 'tab',
589
+ 'tag',
590
+ 'textAlign',
591
+ 'title',
592
+ 'tooltip',
593
+ 'type',
594
+ 'ui',
595
+ 'value',
596
+ 'valueRenderer',
597
+ 'valueText',
598
+ 'weight',
599
+ 'width',
600
+ 'x',
601
+ 'y'
602
+ ]);
603
+
604
+ private static bryntumConfigsOnly: string[] = [
605
+ 'adopt',
606
+ 'align',
607
+ 'anchor',
608
+ 'ariaDescription',
609
+ 'ariaLabel',
610
+ 'bubbleEvents',
611
+ 'centered',
612
+ 'config',
613
+ 'constrainTo',
614
+ 'contentElementCls',
615
+ 'dataField',
616
+ 'defaultBindProperty',
617
+ 'detectCSSCompatibilityIssues',
618
+ 'dock',
619
+ 'draggable',
620
+ 'elementAttributes',
621
+ 'floating',
622
+ 'hideAnimation',
623
+ 'htmlCls',
624
+ 'ignoreParentReadOnly',
625
+ 'listeners',
626
+ 'localeClass',
627
+ 'localizable',
628
+ 'localizableProperties',
629
+ 'maskDefaults',
630
+ 'masked',
631
+ 'monitorResize',
632
+ 'owner',
633
+ 'positioned',
634
+ 'preventTooltipOnTouch',
635
+ 'relayStoreEvents',
636
+ 'ripple',
637
+ 'rootElement',
638
+ 'scrollAction',
639
+ 'showAnimation',
640
+ 'showTooltipWhenDisabled',
641
+ 'tab',
642
+ 'tag',
643
+ 'textAlign',
644
+ 'title',
645
+ 'type',
646
+ 'ui',
647
+ 'weight'
648
+ ];
649
+
650
+ private static bryntumProps: string[] = BryntumProgressBarComponent.bryntumFeatureNames.concat([
651
+ 'alignSelf',
652
+ 'anchorSize',
653
+ 'appendTo',
654
+ 'callOnFunctions',
655
+ 'catchEventHandlerExceptions',
656
+ 'cls',
657
+ 'color',
658
+ 'column',
659
+ 'content',
660
+ 'dataset',
661
+ 'disabled',
662
+ 'extraData',
663
+ 'flex',
664
+ 'focusVisible',
665
+ 'height',
666
+ 'hidden',
667
+ 'html',
668
+ 'id',
669
+ 'insertBefore',
670
+ 'insertFirst',
671
+ 'keyMap',
672
+ 'label',
673
+ 'margin',
674
+ 'max',
675
+ 'maxHeight',
676
+ 'maximizeOnMobile',
677
+ 'maxWidth',
678
+ 'minHeight',
679
+ 'minWidth',
680
+ 'parent',
681
+ 'readOnly',
682
+ 'rtl',
683
+ 'scrollable',
684
+ 'span',
685
+ 'tooltip',
686
+ 'value',
687
+ 'valueRenderer',
688
+ 'valueText',
689
+ 'width',
690
+ 'x',
691
+ 'y'
692
+ ]);
693
+
694
+ private elementRef: ElementRef;
695
+ public instance!: ProgressBar;
696
+
697
+ private bryntumConfig = {
698
+ adopt : undefined,
699
+ appendTo : undefined,
700
+ href : undefined,
701
+ angularComponent : this,
702
+ features : {},
703
+ listeners : {}
704
+ };
705
+
706
+ constructor(element: ElementRef) {
707
+ this.elementRef = element;
708
+ }
709
+
710
+ // Configs only
711
+ @Input() adopt ! : HTMLElement|string;
712
+ @Input() align ! : AlignSpec|string;
713
+ @Input() anchor ! : boolean;
714
+ @Input() ariaDescription ! : string;
715
+ @Input() ariaLabel ! : string;
716
+ @Input() bubbleEvents ! : object;
717
+ @Input() centered ! : boolean;
718
+ @Input() config ! : object;
719
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
720
+ @Input() contentElementCls ! : string|object;
721
+ @Input() dataField ! : string;
722
+ @Input() defaultBindProperty ! : string;
723
+ @Input() detectCSSCompatibilityIssues ! : boolean;
724
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
725
+ @Input() draggable ! : boolean|{
726
+ handleSelector?: string
727
+ };
728
+ @Input() elementAttributes ! : Record<string, string|null>;
729
+ @Input() floating ! : boolean;
730
+ @Input() hideAnimation ! : boolean|object;
731
+ @Input() htmlCls ! : string|object;
732
+ @Input() ignoreParentReadOnly ! : boolean;
733
+ @Input() listeners ! : ProgressBarListeners;
734
+ @Input() localeClass ! : typeof Base;
735
+ @Input() localizable ! : boolean;
736
+ @Input() localizableProperties ! : string[];
737
+ @Input() maskDefaults ! : MaskConfig;
738
+ @Input() masked ! : boolean|string|MaskConfig;
739
+ @Input() monitorResize ! : boolean|{
740
+ immediate?: boolean
741
+ };
742
+ @Input() owner ! : Widget|any;
743
+ @Input() positioned ! : boolean;
744
+ @Input() preventTooltipOnTouch ! : boolean;
745
+ @Input() relayStoreEvents ! : boolean;
746
+ @Input() ripple ! : boolean|{
747
+ delegate?: string
748
+ color?: string
749
+ radius?: number
750
+ clip?: string
751
+ };
752
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
753
+ @Input() scrollAction ! : 'hide'|'realign'|null;
754
+ @Input() showAnimation ! : boolean|object;
755
+ @Input() showTooltipWhenDisabled ! : boolean;
756
+ @Input() tab ! : boolean|TabConfig;
757
+ @Input() tag ! : string;
758
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
759
+ @Input() title ! : string;
760
+ @Input() type ! : 'progressbar';
761
+ @Input() ui ! : string|object;
762
+ @Input() weight ! : number;
763
+
764
+ // Configs and properties
765
+ @Input() alignSelf ! : string;
766
+ @Input() appendTo ! : HTMLElement|string;
767
+ @Input() callOnFunctions ! : boolean;
768
+ @Input() catchEventHandlerExceptions ! : boolean;
769
+ @Input() cls ! : string|object;
770
+ @Input() color ! : Color;
771
+ @Input() column ! : number;
772
+ @Input() content ! : string;
773
+ @Input() dataset ! : object|Record<string, string>;
774
+ @Input() disabled ! : boolean|'inert';
775
+ @Input() extraData ! : any;
776
+ @Input() flex ! : number|string;
777
+ @Input() height ! : number|string;
778
+ @Input() hidden ! : boolean;
779
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
780
+ @Input() id ! : string;
781
+ @Input() insertBefore ! : HTMLElement|string;
782
+ @Input() insertFirst ! : HTMLElement|string;
783
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
784
+ @Input() label ! : string;
785
+ @Input() margin ! : number|string;
786
+ @Input() max ! : number;
787
+ @Input() maxHeight ! : string|number;
788
+ @Input() maximizeOnMobile ! : number|string;
789
+ @Input() maxWidth ! : string|number;
790
+ @Input() minHeight ! : string|number;
791
+ @Input() minWidth ! : string|number;
792
+ @Input() readOnly ! : boolean;
793
+ @Input() rtl ! : boolean;
794
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
795
+ @Input() span ! : number;
796
+ @Input() tooltip ! : string|TooltipConfig|null;
797
+ @Input() value ! : number;
798
+ @Input() valueRenderer ! : (value: number, max: number) => string|number|void;
799
+ @Input() valueText ! : string;
800
+ @Input() width ! : number|string;
801
+ @Input() x ! : number;
802
+ @Input() y ! : number;
803
+
804
+ // Properties only
805
+ @Input() anchorSize ! : number[];
806
+ @Input() focusVisible ! : boolean;
807
+ @Input() parent ! : Widget;
808
+
809
+ // Events emitters
810
+ /**
811
+ * Fires before an object is destroyed.
812
+ * @param {object} event Event object
813
+ * @param {Core.Base} event.source The Object that is being destroyed.
814
+ */
815
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
816
+ /**
817
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
818
+ * @param {object} event Event object
819
+ * @param {Core.widget.Widget} event.source The widget being hidden.
820
+ */
821
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
822
+ /**
823
+ * Triggered before a widget is shown. Return `false` to prevent the action.
824
+ * @param {object} event Event object
825
+ * @param {Core.widget.Widget,any} event.source The widget being shown
826
+ */
827
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
828
+ /**
829
+ * Fires when any other event is fired from the object.
830
+ * ...
831
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#event-catchAll)
832
+ * @param {object} event Event object
833
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
834
+ * @param {string} event.event.type The type of the event which is caught by the listener
835
+ */
836
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
837
+ /**
838
+ * Fires when an object is destroyed.
839
+ * @param {object} event Event object
840
+ * @param {Core.Base} event.source The Object that is being destroyed.
841
+ */
842
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
843
+ /**
844
+ * Triggered when a widget's [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element) is available.
845
+ * @param {object} event Event object
846
+ * @param {HTMLElement} event.element The Widget's element.
847
+ */
848
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
849
+ /**
850
+ * Fired when focus enters this Widget.
851
+ * @param {object} event Event object
852
+ * @param {Core.widget.Widget} event.source This Widget
853
+ * @param {HTMLElement} event.fromElement The element which lost focus.
854
+ * @param {HTMLElement} event.toElement The element which gained focus.
855
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
856
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
857
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
858
+ */
859
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
860
+ /**
861
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
862
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
863
+ * will not trigger this event. This is when focus exits this widget completely.
864
+ * @param {object} event Event object
865
+ * @param {Core.widget.Widget} event.source This Widget
866
+ * @param {HTMLElement} event.fromElement The element which lost focus.
867
+ * @param {HTMLElement} event.toElement The element which gained focus.
868
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
869
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
870
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
871
+ */
872
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
873
+ /**
874
+ * Triggered after a widget was hidden
875
+ * @param {object} event Event object
876
+ * @param {Core.widget.Widget} event.source The widget
877
+ */
878
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
879
+ /**
880
+ * Triggered when a widget which had been in a non-visible state for any reason
881
+ * achieves visibility.
882
+ * ...
883
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ProgressBar#event-paint)
884
+ * @param {object} event Event object
885
+ * @param {Core.widget.Widget} event.source The widget being painted.
886
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
887
+ */
888
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
889
+ /**
890
+ * Fired when a Widget's read only state is toggled
891
+ * @param {object} event Event object
892
+ * @param {boolean} event.readOnly Read only or not
893
+ */
894
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
895
+ /**
896
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
897
+ * to [recompose](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
898
+ */
899
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
900
+ /**
901
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
902
+ * @param {object} event Event object
903
+ * @param {Core.widget.Widget} event.source This Widget
904
+ * @param {number} event.width The new width
905
+ * @param {number} event.height The new height
906
+ * @param {number} event.oldWidth The old width
907
+ * @param {number} event.oldHeight The old height
908
+ */
909
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
910
+ /**
911
+ * Triggered after a widget is shown.
912
+ * @param {object} event Event object
913
+ * @param {Core.widget.Widget} event.source The widget
914
+ */
915
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
916
+
917
+ /**
918
+ * Create and append the underlying widget
919
+ */
920
+ ngOnInit(): void {
921
+ const
922
+ me = this,
923
+ {
924
+ elementRef,
925
+ bryntumConfig
926
+ } = me,
927
+ {
928
+ instanceClass,
929
+ instanceName,
930
+ bryntumConfigs,
931
+ bryntumEvents
932
+ } = BryntumProgressBarComponent;
933
+
934
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
935
+ // @ts-ignore
936
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
937
+ if (['features', 'config'].includes(prop)) {
938
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
939
+ }
940
+ });
941
+ // @ts-ignore
942
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
943
+ const
944
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
945
+ eventName = (str: string) => uncapitalize(str.slice(2));
946
+
947
+ // @ts-ignore
948
+ bryntumConfig.listeners[eventName(event)] = e => {
949
+ // @ts-ignore
950
+ me[event].emit(e);
951
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
952
+ // in Angular listeners
953
+ return e.returnValue;
954
+ };
955
+ });
956
+
957
+ // If component has no container specified in config then use adopt to Wrapper's element
958
+ const
959
+ containerParam = [
960
+ 'adopt',
961
+ 'appendTo',
962
+ 'insertAfter',
963
+ 'insertBefore'
964
+ // @ts-ignore
965
+ ].find(prop => bryntumConfig[prop]);
966
+ if (!containerParam) {
967
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
968
+ // Button should always be <a> or <button> inside owner element
969
+ bryntumConfig.appendTo = elementRef.nativeElement;
970
+ }
971
+ else {
972
+ bryntumConfig.adopt = elementRef.nativeElement;
973
+ }
974
+ }
975
+ else {
976
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
977
+ }
978
+
979
+ // @ts-ignore
980
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
981
+
982
+ }
983
+
984
+ /**
985
+ * Watch for changes
986
+ * @param changes
987
+ */
988
+ ngOnChanges(changes: SimpleChanges): void {
989
+ const
990
+ { instance } = this,
991
+ { instanceName } = BryntumProgressBarComponent;
992
+ if (!instance) {
993
+ return;
994
+ }
995
+ // Iterate over all changes
996
+ Object.entries(changes).forEach(([prop, change]) => {
997
+ const
998
+ newValue = (change as SimpleChange).currentValue,
999
+ { instance } = this,
1000
+ { bryntumConfigsOnly, bryntumProps } = BryntumProgressBarComponent;
1001
+ if (bryntumProps.includes(prop)) {
1002
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1003
+ if (bryntumConfigsOnly.includes(prop)) {
1004
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1005
+ }
1006
+ }
1007
+ });
1008
+ }
1009
+
1010
+ /**
1011
+ * Destroy the component
1012
+ */
1013
+ ngOnDestroy(): void {
1014
+ // @ts-ignore
1015
+ if (this.instance && this.instance.destroy) {
1016
+ this.instance.destroy();
1017
+ }
1018
+ }
1019
+ }