@bryntum/core-react-thin 7.2.3 → 7.3.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 (204) hide show
  1. package/lib/BryntumBooleanCombo.d.ts +261 -0
  2. package/lib/BryntumBooleanCombo.js +204 -0
  3. package/lib/BryntumBooleanCombo.js.map +1 -0
  4. package/lib/BryntumButton.d.ts +6 -14
  5. package/lib/BryntumButton.js +1 -2
  6. package/lib/BryntumButton.js.map +1 -1
  7. package/lib/BryntumButtonGroup.d.ts +8 -15
  8. package/lib/BryntumButtonGroup.js +2 -5
  9. package/lib/BryntumButtonGroup.js.map +1 -1
  10. package/lib/BryntumChatPanel.d.ts +16 -20
  11. package/lib/BryntumChatPanel.js +7 -6
  12. package/lib/BryntumChatPanel.js.map +1 -1
  13. package/lib/BryntumCheckbox.d.ts +7 -15
  14. package/lib/BryntumCheckbox.js +1 -2
  15. package/lib/BryntumCheckbox.js.map +1 -1
  16. package/lib/BryntumCheckboxGroup.d.ts +9 -21
  17. package/lib/BryntumCheckboxGroup.js +2 -6
  18. package/lib/BryntumCheckboxGroup.js.map +1 -1
  19. package/lib/BryntumChipView.d.ts +6 -14
  20. package/lib/BryntumChipView.js +1 -2
  21. package/lib/BryntumChipView.js.map +1 -1
  22. package/lib/BryntumCodeEditor.d.ts +9 -20
  23. package/lib/BryntumCodeEditor.js +2 -5
  24. package/lib/BryntumCodeEditor.js.map +1 -1
  25. package/lib/BryntumColorField.d.ts +7 -15
  26. package/lib/BryntumColorField.js +1 -2
  27. package/lib/BryntumColorField.js.map +1 -1
  28. package/lib/BryntumCombo.d.ts +10 -18
  29. package/lib/BryntumCombo.js +1 -2
  30. package/lib/BryntumCombo.js.map +1 -1
  31. package/lib/BryntumContainer.d.ts +7 -14
  32. package/lib/BryntumContainer.js +2 -5
  33. package/lib/BryntumContainer.js.map +1 -1
  34. package/lib/BryntumDateField.d.ts +7 -15
  35. package/lib/BryntumDateField.js +1 -2
  36. package/lib/BryntumDateField.js.map +1 -1
  37. package/lib/BryntumDatePicker.d.ts +9 -20
  38. package/lib/BryntumDatePicker.js +2 -5
  39. package/lib/BryntumDatePicker.js.map +1 -1
  40. package/lib/BryntumDateRangeField.d.ts +10 -18
  41. package/lib/BryntumDateRangeField.js +1 -2
  42. package/lib/BryntumDateRangeField.js.map +1 -1
  43. package/lib/BryntumDateTimeField.d.ts +7 -15
  44. package/lib/BryntumDateTimeField.js +1 -2
  45. package/lib/BryntumDateTimeField.js.map +1 -1
  46. package/lib/BryntumDemoCodeEditor.d.ts +9 -20
  47. package/lib/BryntumDemoCodeEditor.js +2 -5
  48. package/lib/BryntumDemoCodeEditor.js.map +1 -1
  49. package/lib/BryntumDisplayField.d.ts +7 -15
  50. package/lib/BryntumDisplayField.js +1 -2
  51. package/lib/BryntumDisplayField.js.map +1 -1
  52. package/lib/BryntumDurationField.d.ts +7 -15
  53. package/lib/BryntumDurationField.js +1 -2
  54. package/lib/BryntumDurationField.js.map +1 -1
  55. package/lib/BryntumEditor.d.ts +9 -19
  56. package/lib/BryntumEditor.js +2 -5
  57. package/lib/BryntumEditor.js.map +1 -1
  58. package/lib/BryntumFieldFilterPicker.d.ts +7 -14
  59. package/lib/BryntumFieldFilterPicker.js +2 -5
  60. package/lib/BryntumFieldFilterPicker.js.map +1 -1
  61. package/lib/BryntumFieldFilterPickerGroup.d.ts +7 -14
  62. package/lib/BryntumFieldFilterPickerGroup.js +2 -5
  63. package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
  64. package/lib/BryntumFieldSet.d.ts +9 -21
  65. package/lib/BryntumFieldSet.js +2 -6
  66. package/lib/BryntumFieldSet.js.map +1 -1
  67. package/lib/BryntumFileField.d.ts +7 -15
  68. package/lib/BryntumFileField.js +1 -2
  69. package/lib/BryntumFileField.js.map +1 -1
  70. package/lib/BryntumFilePicker.d.ts +7 -14
  71. package/lib/BryntumFilePicker.js +2 -5
  72. package/lib/BryntumFilePicker.js.map +1 -1
  73. package/lib/BryntumFilterField.d.ts +7 -15
  74. package/lib/BryntumFilterField.js +1 -2
  75. package/lib/BryntumFilterField.js.map +1 -1
  76. package/lib/BryntumHint.d.ts +21 -30
  77. package/lib/BryntumHint.js +2 -5
  78. package/lib/BryntumHint.js.map +1 -1
  79. package/lib/BryntumLabel.d.ts +6 -14
  80. package/lib/BryntumLabel.js +1 -2
  81. package/lib/BryntumLabel.js.map +1 -1
  82. package/lib/BryntumList.d.ts +6 -14
  83. package/lib/BryntumList.js +1 -2
  84. package/lib/BryntumList.js.map +1 -1
  85. package/lib/BryntumMenu.d.ts +20 -25
  86. package/lib/BryntumMenu.js +2 -6
  87. package/lib/BryntumMenu.js.map +1 -1
  88. package/lib/BryntumMonthPicker.d.ts +9 -20
  89. package/lib/BryntumMonthPicker.js +2 -5
  90. package/lib/BryntumMonthPicker.js.map +1 -1
  91. package/lib/BryntumNumberField.d.ts +7 -15
  92. package/lib/BryntumNumberField.js +1 -2
  93. package/lib/BryntumNumberField.js.map +1 -1
  94. package/lib/BryntumPagingToolbar.d.ts +10 -17
  95. package/lib/BryntumPagingToolbar.js +2 -5
  96. package/lib/BryntumPagingToolbar.js.map +1 -1
  97. package/lib/BryntumPanel.d.ts +9 -20
  98. package/lib/BryntumPanel.js +2 -5
  99. package/lib/BryntumPanel.js.map +1 -1
  100. package/lib/BryntumPasswordField.d.ts +7 -15
  101. package/lib/BryntumPasswordField.js +1 -2
  102. package/lib/BryntumPasswordField.js.map +1 -1
  103. package/lib/BryntumProgressBar.d.ts +6 -14
  104. package/lib/BryntumProgressBar.js +1 -2
  105. package/lib/BryntumProgressBar.js.map +1 -1
  106. package/lib/BryntumRadio.d.ts +7 -15
  107. package/lib/BryntumRadio.js +1 -2
  108. package/lib/BryntumRadio.js.map +1 -1
  109. package/lib/BryntumRadioGroup.d.ts +9 -21
  110. package/lib/BryntumRadioGroup.js +2 -6
  111. package/lib/BryntumRadioGroup.js.map +1 -1
  112. package/lib/BryntumSlideToggle.d.ts +7 -15
  113. package/lib/BryntumSlideToggle.js +1 -2
  114. package/lib/BryntumSlideToggle.js.map +1 -1
  115. package/lib/BryntumSlider.d.ts +7 -14
  116. package/lib/BryntumSlider.js +2 -2
  117. package/lib/BryntumSlider.js.map +1 -1
  118. package/lib/BryntumSplitter.d.ts +6 -14
  119. package/lib/BryntumSplitter.js +1 -2
  120. package/lib/BryntumSplitter.js.map +1 -1
  121. package/lib/BryntumTabPanel.d.ts +9 -20
  122. package/lib/BryntumTabPanel.js +2 -5
  123. package/lib/BryntumTabPanel.js.map +1 -1
  124. package/lib/BryntumTextAreaField.d.ts +8 -15
  125. package/lib/BryntumTextAreaField.js +2 -2
  126. package/lib/BryntumTextAreaField.js.map +1 -1
  127. package/lib/BryntumTextAreaPickerField.d.ts +8 -16
  128. package/lib/BryntumTextAreaPickerField.js +1 -2
  129. package/lib/BryntumTextAreaPickerField.js.map +1 -1
  130. package/lib/BryntumTextField.d.ts +7 -15
  131. package/lib/BryntumTextField.js +1 -2
  132. package/lib/BryntumTextField.js.map +1 -1
  133. package/lib/BryntumTimeField.d.ts +8 -16
  134. package/lib/BryntumTimeField.js +1 -2
  135. package/lib/BryntumTimeField.js.map +1 -1
  136. package/lib/BryntumTimePicker.d.ts +7 -14
  137. package/lib/BryntumTimePicker.js +2 -5
  138. package/lib/BryntumTimePicker.js.map +1 -1
  139. package/lib/BryntumToolbar.d.ts +10 -17
  140. package/lib/BryntumToolbar.js +2 -5
  141. package/lib/BryntumToolbar.js.map +1 -1
  142. package/lib/BryntumWidget.d.ts +6 -14
  143. package/lib/BryntumWidget.js +1 -2
  144. package/lib/BryntumWidget.js.map +1 -1
  145. package/lib/BryntumYearPicker.d.ts +9 -20
  146. package/lib/BryntumYearPicker.js +2 -5
  147. package/lib/BryntumYearPicker.js.map +1 -1
  148. package/lib/WrapperHelper.js +2 -2
  149. package/lib/WrapperHelper.js.map +1 -1
  150. package/lib/index.d.ts +1 -0
  151. package/lib/index.js +1 -0
  152. package/lib/index.js.map +1 -1
  153. package/package.json +1 -1
  154. package/src/BryntumBooleanCombo.tsx +1180 -0
  155. package/src/BryntumButton.tsx +69 -115
  156. package/src/BryntumButtonGroup.tsx +78 -123
  157. package/src/BryntumChatPanel.tsx +139 -169
  158. package/src/BryntumCheckbox.tsx +73 -117
  159. package/src/BryntumCheckboxGroup.tsx +109 -179
  160. package/src/BryntumChipView.tsx +65 -105
  161. package/src/BryntumCodeEditor.tsx +106 -167
  162. package/src/BryntumColorField.tsx +73 -117
  163. package/src/BryntumCombo.tsx +92 -152
  164. package/src/BryntumContainer.tsx +78 -124
  165. package/src/BryntumDateField.tsx +80 -123
  166. package/src/BryntumDatePicker.tsx +119 -193
  167. package/src/BryntumDateRangeField.tsx +79 -126
  168. package/src/BryntumDateTimeField.tsx +73 -117
  169. package/src/BryntumDemoCodeEditor.tsx +106 -167
  170. package/src/BryntumDisplayField.tsx +74 -119
  171. package/src/BryntumDurationField.tsx +80 -125
  172. package/src/BryntumEditor.tsx +90 -140
  173. package/src/BryntumFieldFilterPicker.tsx +80 -128
  174. package/src/BryntumFieldFilterPickerGroup.tsx +82 -132
  175. package/src/BryntumFieldSet.tsx +105 -172
  176. package/src/BryntumFileField.tsx +73 -117
  177. package/src/BryntumFilePicker.tsx +78 -124
  178. package/src/BryntumFilterField.tsx +76 -123
  179. package/src/BryntumHint.tsx +133 -190
  180. package/src/BryntumLabel.tsx +59 -95
  181. package/src/BryntumList.tsx +62 -101
  182. package/src/BryntumMenu.tsx +128 -188
  183. package/src/BryntumMonthPicker.tsx +106 -167
  184. package/src/BryntumNumberField.tsx +77 -121
  185. package/src/BryntumPagingToolbar.tsx +82 -129
  186. package/src/BryntumPanel.tsx +106 -167
  187. package/src/BryntumPasswordField.tsx +73 -117
  188. package/src/BryntumProgressBar.tsx +58 -93
  189. package/src/BryntumRadio.tsx +73 -117
  190. package/src/BryntumRadioGroup.tsx +109 -178
  191. package/src/BryntumSlideToggle.tsx +73 -117
  192. package/src/BryntumSlider.tsx +67 -101
  193. package/src/BryntumSplitter.tsx +61 -99
  194. package/src/BryntumTabPanel.tsx +107 -169
  195. package/src/BryntumTextAreaField.tsx +81 -119
  196. package/src/BryntumTextAreaPickerField.tsx +75 -120
  197. package/src/BryntumTextField.tsx +74 -119
  198. package/src/BryntumTimeField.tsx +79 -120
  199. package/src/BryntumTimePicker.tsx +78 -124
  200. package/src/BryntumToolbar.tsx +82 -129
  201. package/src/BryntumWidget.tsx +59 -95
  202. package/src/BryntumYearPicker.tsx +107 -169
  203. package/src/WrapperHelper.tsx +2 -2
  204. package/src/index.ts +1 -0
@@ -3,7 +3,7 @@
3
3
  */
4
4
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
5
  import React, { RefObject } from 'react';
6
- import { AlignSpec, Base, Color, CoreContainerItemConfig, DomConfig, Duration, DurationConfig, DurationField, DurationFieldListeners, DurationUnit, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
6
+ import { AlignSpec, Base, Color, CoreContainerItemConfig, DomConfig, Duration, DurationConfig, DurationField, DurationFieldListeners, DurationUnit, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, ReactJSX, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
7
 
8
8
  import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
9
 
@@ -12,14 +12,12 @@ export type BryntumDurationFieldProps = {
12
12
  /**
13
13
  * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
14
14
  * content will be placed inside this element.
15
- * ...
16
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-adopt)
15
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-adopt)
17
16
  */
18
17
  adopt? : HTMLElement|string
19
18
  /**
20
19
  * *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
21
- * ...
22
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-align)
20
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-align)
23
21
  */
24
22
  align? : AlignSpec|string
25
23
  /**
@@ -50,15 +48,13 @@ export type BryntumDurationFieldProps = {
50
48
  /**
51
49
  * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
52
50
  * into an element which will be linked using the `aria-describedby` attribute.
53
- * ...
54
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ariaDescription)
51
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ariaDescription)
55
52
  */
56
53
  ariaDescription? : string
57
54
  /**
58
55
  * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
59
56
  * the `aria-label` attribute.
60
- * ...
61
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ariaLabel)
57
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ariaLabel)
62
58
  */
63
59
  ariaLabel? : string
64
60
  /**
@@ -77,21 +73,18 @@ export type BryntumDurationFieldProps = {
77
73
  /**
78
74
  * An object where property names with a truthy value indicate which events should bubble up the ownership
79
75
  * hierarchy when triggered.
80
- * ...
81
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-bubbleEvents)
76
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-bubbleEvents)
82
77
  */
83
78
  bubbleEvents? : object
84
79
  /**
85
80
  * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
86
- * ...
87
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-callOnFunctions)
81
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-callOnFunctions)
88
82
  */
89
83
  callOnFunctions? : boolean
90
84
  /**
91
85
  * By default, if an event handler throws an exception, the error propagates up the stack and the
92
86
  * application state is undefined. Code which follows the event handler will *not* be executed.
93
- * ...
94
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-catchEventHandlerExceptions)
87
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-catchEventHandlerExceptions)
95
88
  */
96
89
  catchEventHandlerExceptions? : boolean
97
90
  /**
@@ -109,15 +102,13 @@ export type BryntumDurationFieldProps = {
109
102
  * Custom CSS classes to add to element.
110
103
  * May be specified as a space separated string, or as an object in which property names
111
104
  * with truthy values are used as the class names:
112
- * ...
113
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-cls)
105
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-cls)
114
106
  */
115
107
  cls? : string|object
116
108
  /**
117
109
  * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
118
110
  * `style` block.
119
- * ...
120
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-color)
111
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-color)
121
112
  */
122
113
  color? : Color
123
114
  /**
@@ -134,15 +125,13 @@ export type BryntumDurationFieldProps = {
134
125
  * The configuration for additional items associated to this field. This is typically used to add contextual
135
126
  * fields related to a [checkbox](https://bryntum.com/products/core/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
136
127
  * these classes for examples of nested fields.
137
- * ...
138
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-container)
128
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-container)
139
129
  */
140
- container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig|FieldContainer
130
+ container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig
141
131
  /**
142
132
  * The config controls how the value of nested items are handled when a parent container gets or sets its
143
133
  * [values](https://bryntum.com/products/core/docs/api/Core/widget/Container#property-values).
144
- * ...
145
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-containValues)
134
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-containValues)
146
135
  * @param {Core.widget.Field} field Field instance
147
136
  * @returns {boolean}
148
137
  */
@@ -151,8 +140,7 @@ export type BryntumDurationFieldProps = {
151
140
  * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
152
141
  * May be specified as a space separated string, or as an object in which property names
153
142
  * with truthy values are used as the class names:
154
- * ...
155
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-contentElementCls)
143
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-contentElementCls)
156
144
  */
157
145
  contentElementCls? : string|object
158
146
  /**
@@ -174,16 +162,15 @@ export type BryntumDurationFieldProps = {
174
162
  */
175
163
  defaultBindProperty? : string
176
164
  /**
177
- * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
178
- * ...
179
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-detectCSSCompatibilityIssues)
165
+ * Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
166
+ * checks:
167
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-detectCSSCompatibilityIssues)
180
168
  */
181
169
  detectCSSCompatibilityIssues? : boolean
182
170
  /**
183
171
  * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
184
172
  * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
185
- * ...
186
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-disabled)
173
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-disabled)
187
174
  */
188
175
  disabled? : boolean|'inert'
189
176
  /**
@@ -191,33 +178,28 @@ export type BryntumDurationFieldProps = {
191
178
  * [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
192
179
  * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
193
180
  * body. Such widgets are called "edge strips".
194
- * ...
195
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-dock)
181
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-dock)
196
182
  */
197
183
  dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
198
184
  /**
199
185
  * *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
200
186
  * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
201
187
  * property which controls when a drag should start.
202
- * ...
203
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-draggable)
188
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-draggable)
189
+ * @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
204
190
  */
205
- draggable? : boolean|{
206
- handleSelector?: string
207
- }
191
+ draggable? : boolean|object
208
192
  /**
209
193
  * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
210
194
  * [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly), but for PickerFields there is a distinction where it allows you to pick a value
211
195
  * but not to type one in the field.
212
- * ...
213
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-editable)
196
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-editable)
214
197
  */
215
198
  editable? : boolean
216
199
  /**
217
200
  * An object specifying attributes to assign to the root element of this widget.
218
201
  * Set `null` value to attribute to remove it.
219
- * ...
220
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-elementAttributes)
202
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-elementAttributes)
221
203
  */
222
204
  elementAttributes? : Record<string, string|null>
223
205
  extraData? : any
@@ -246,8 +228,7 @@ export type BryntumDurationFieldProps = {
246
228
  hidden? : boolean
247
229
  /**
248
230
  * *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
249
- * ...
250
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hideAnimation)
231
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hideAnimation)
251
232
  */
252
233
  hideAnimation? : boolean|object
253
234
  /**
@@ -257,8 +238,7 @@ export type BryntumDurationFieldProps = {
257
238
  /**
258
239
  * An optional string to display inside the input field as an overlay. This can be useful for displaying
259
240
  * a field's units.
260
- * ...
261
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hint)
241
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hint)
262
242
  * @param {object} data A data object
263
243
  * @param {Core.widget.Field} data.source A reference to the field instance
264
244
  * @param {any} data.value The current value of the field
@@ -269,8 +249,7 @@ export type BryntumDurationFieldProps = {
269
249
  * This config is similar to [hint](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
270
250
  * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
271
251
  * encode such data (see [encodeHtml](https://bryntum.com/products/core/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
272
- * ...
273
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hintHtml)
252
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hintHtml)
274
253
  * @param {object} data A data object
275
254
  * @param {Core.widget.Field} data.source A reference to the field instance
276
255
  * @param {any} data.value The current value of the field
@@ -283,16 +262,14 @@ export type BryntumDurationFieldProps = {
283
262
  id? : string
284
263
  /**
285
264
  * Determines if the widgets read-only state should be controlled by its parent.
286
- * ...
287
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ignoreParentReadOnly)
265
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ignoreParentReadOnly)
288
266
  */
289
267
  ignoreParentReadOnly? : boolean
290
268
  /**
291
269
  * Set this config to `true` to always display items horizontally along with this field. This assigns an
292
270
  * [hbox](https://bryntum.com/products/core/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
293
271
  * [container](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-container).
294
- * ...
295
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-inline)
272
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-inline)
296
273
  */
297
274
  inline? : boolean
298
275
  /**
@@ -332,16 +309,14 @@ export type BryntumDurationFieldProps = {
332
309
  * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
333
310
  * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
334
311
  * are the name of the instance method to call when the keystroke is received.
335
- * ...
336
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyMap)
312
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyMap)
337
313
  */
338
314
  keyMap? : Record<string, KeyMapConfig>
339
315
  /**
340
316
  * The delay in milliseconds to wait after the last keystroke before triggering a change event.
341
317
  * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
342
318
  * immediate feedback, change will still be triggered on blur).
343
- * ...
344
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyStrokeChangeDelay)
319
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyStrokeChangeDelay)
345
320
  */
346
321
  keyStrokeChangeDelay? : number
347
322
  /**
@@ -354,15 +329,15 @@ export type BryntumDurationFieldProps = {
354
329
  labelCls? : string|object
355
330
  /**
356
331
  * Label position, either 'before' the field or 'above' the field
357
- * ...
358
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labelPosition)
332
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labelPosition)
359
333
  */
360
334
  labelPosition? : 'before'|'above'|null
361
335
  /**
362
336
  * The labels to add either before or after the input field.
363
337
  * Each label may have the following properties:
364
- * ...
365
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labels)
338
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labels)
339
+ * @property {string} html Label text
340
+ * @property {'start','end'} align Which end of the file the label should go
366
341
  */
367
342
  labels? : object[]
368
343
  /**
@@ -371,16 +346,14 @@ export type BryntumDurationFieldProps = {
371
346
  labelWidth? : string|number
372
347
  /**
373
348
  * The listener set for this object.
374
- * ...
375
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-listeners)
349
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-listeners)
376
350
  */
377
351
  listeners? : DurationFieldListeners
378
352
  /**
379
353
  * A class translations of which are used for translating this entity.
380
354
  * This is often used when translations of an item are defined on its container class.
381
355
  * For example:
382
- * ...
383
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localeClass)
356
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localeClass)
384
357
  */
385
358
  localeClass? : typeof Base
386
359
  /**
@@ -392,8 +365,7 @@ export type BryntumDurationFieldProps = {
392
365
  * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
393
366
  * you could use 'localeKey' meta configuration.
394
367
  * Example:
395
- * ...
396
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localizableProperties)
368
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localizableProperties)
397
369
  */
398
370
  localizableProperties? : string[]
399
371
  /**
@@ -428,8 +400,7 @@ export type BryntumDurationFieldProps = {
428
400
  maxHeight? : string|number
429
401
  /**
430
402
  * *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
431
- * ...
432
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-maximizeOnMobile)
403
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-maximizeOnMobile)
433
404
  */
434
405
  maximizeOnMobile? : number|string
435
406
  /**
@@ -463,18 +434,15 @@ export type BryntumDurationFieldProps = {
463
434
  * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
464
435
  * is used to monitor this element for size changes caused by either style manipulation, or by CSS
465
436
  * layout.
466
- * ...
467
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-monitorResize)
437
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-monitorResize)
438
+ * @property {boolean} immediate Set to `true` to receive resize notifications immediately.
468
439
  */
469
- monitorResize? : boolean|{
470
- immediate?: boolean
471
- }
440
+ monitorResize? : boolean|object
472
441
  /**
473
442
  * Name of the field which is used as a key to get/set values from/to the field.
474
443
  * Used prior to [ref](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
475
444
  * [Container.values](https://bryntum.com/products/core/docs/api/Core/widget/Container#property-values).
476
- * ...
477
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-name)
445
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-name)
478
446
  */
479
447
  name? : string
480
448
  /**
@@ -485,8 +453,7 @@ export type BryntumDurationFieldProps = {
485
453
  * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement), but must
486
454
  * not participate in the standard layout of that widget, and must be positioned relatively to that
487
455
  * widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
488
- * ...
489
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-positioned)
456
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-positioned)
490
457
  */
491
458
  positioned? : boolean
492
459
  /**
@@ -497,15 +464,13 @@ export type BryntumDurationFieldProps = {
497
464
  /**
498
465
  * Makes the field unmodifiable by user action. The input area is not editable, and triggers
499
466
  * are unresponsive.
500
- * ...
501
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-readOnly)
467
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-readOnly)
502
468
  */
503
469
  readOnly? : boolean
504
470
  relayStoreEvents? : boolean
505
471
  /**
506
472
  * Predefined style to use for the field. Possible values are:
507
- * ...
508
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rendition)
473
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rendition)
509
474
  */
510
475
  rendition? : 'outlined'|'filled'|string
511
476
  /**
@@ -524,23 +489,26 @@ export type BryntumDurationFieldProps = {
524
489
  * Configure as `true` to have the component display a translucent ripple when its
525
490
  * [focusElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
526
491
  * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
527
- * ...
528
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ripple)
529
- */
530
- ripple? : boolean|{
531
- delegate?: string
532
- color?: string
533
- radius?: number
534
- clip?: string
535
- }
492
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ripple)
493
+ * @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
494
+ * @property {string} [color] A CSS color name or specification.
495
+ * @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
496
+ * @property {string} [clip] A string which describes how to clip the ripple if it is not to be clipped to the default element. Either the property of the widget to use as the clipping element, or a selector to allow clipping to the closest matching ancestor to the target element.
497
+ */
498
+ ripple? : boolean|object
499
+ /**
500
+ * The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
501
+ * accidentally applying a role which may interfere with screen readers.
502
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-role)
503
+ */
504
+ role? : string
536
505
  /**
537
506
  * 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`
538
507
  */
539
508
  rootElement? : ShadowRoot|HTMLElement
540
509
  /**
541
510
  * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
542
- * ...
543
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rtl)
511
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rtl)
544
512
  */
545
513
  rtl? : boolean
546
514
  /**
@@ -550,8 +518,7 @@ export type BryntumDurationFieldProps = {
550
518
  scrollAction? : 'hide'|'realign'|null
551
519
  /**
552
520
  * *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
553
- * ...
554
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-showAnimation)
521
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-showAnimation)
555
522
  */
556
523
  showAnimation? : boolean|object
557
524
  /**
@@ -579,16 +546,14 @@ export type BryntumDurationFieldProps = {
579
546
  /**
580
547
  * Step size for spin button clicks. The `step` property may be set in object form specifying two properties,
581
548
  * `magnitude`, a Number, and `unit`, a String.
582
- * ...
583
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-step)
549
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-step)
584
550
  */
585
551
  step? : DurationConfig|number|string
586
552
  /**
587
553
  * A configuration for the [tab](https://bryntum.com/products/core/docs/api/Core/widget/Tab) created for this widget when it is placed in a
588
554
  * [TabPanel](https://bryntum.com/products/core/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
589
555
  * this widget:
590
- * ...
591
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tab)
556
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tab)
592
557
  */
593
558
  tab? : boolean|TabConfig
594
559
  /**
@@ -596,14 +561,12 @@ export type BryntumDurationFieldProps = {
596
561
  * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
597
562
  * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
598
563
  * to the element programmatically.
599
- * ...
600
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tabIndex)
564
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tabIndex)
601
565
  */
602
566
  tabIndex? : number
603
567
  /**
604
568
  * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
605
- * ...
606
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-textAlign)
569
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-textAlign)
607
570
  */
608
571
  textAlign? : 'left'|'center'|'right'|'start'|'end'
609
572
  /**
@@ -612,28 +575,27 @@ export type BryntumDurationFieldProps = {
612
575
  title? : string
613
576
  /**
614
577
  * Tooltip for the widget, either as a string or as a Tooltip config object.
615
- * ...
616
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tooltip)
578
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tooltip)
617
579
  */
618
580
  tooltip? : string|TooltipConfig|null
619
581
  /**
620
582
  * Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/core/docs/api/Core/widget/Widget) instance
621
583
  * which may be hidden, shown and observed and styled just like any other widget.
584
+ * @property {FieldTriggerConfig} triggers.spin Shows up and down arrows to increase or decrease the field value based on the [step](https://bryntum.com/products/core/docs/api/Core/widget/DurationField#config-step)
585
+ * @property {FieldTriggerConfig} triggers.clear Clears the field value, only available if this field is [clearable](https://bryntum.com/products/core/docs/api/Core/widget/DurationField#config-clearable)
622
586
  */
623
- triggers? : Record<string, FieldTriggerConfig>|Record<string, Widget>
587
+ triggers? : Record<string, FieldTriggerConfig>
624
588
  type? : 'durationfield'|'duration'
625
589
  /**
626
590
  * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
627
591
  * as a space separated string, an array of strings, or as an object in which property names with truthy
628
592
  * values are used as the class names.
629
- * ...
630
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ui)
593
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ui)
631
594
  */
632
595
  ui? : string|object
633
596
  /**
634
597
  * The duration unit to use with the current magnitude value.
635
- * ...
636
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-unit)
598
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-unit)
637
599
  */
638
600
  unit? : DurationUnit
639
601
  /**
@@ -650,8 +612,7 @@ export type BryntumDurationFieldProps = {
650
612
  /**
651
613
  * The `value` may be set either in object form specifying two properties, a numerical `magnitude` and a
652
614
  * string `unit`:
653
- * ...
654
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-value)
615
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-value)
655
616
  */
656
617
  value? : string|number|DurationConfig|Duration
657
618
  /**
@@ -667,14 +628,12 @@ export type BryntumDurationFieldProps = {
667
628
  width? : string|number
668
629
  /**
669
630
  * The x position for the widget.
670
- * ...
671
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-x)
631
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-x)
672
632
  */
673
633
  x? : number
674
634
  /**
675
635
  * The y position for the widget.
676
- * ...
677
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-y)
636
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-y)
678
637
  */
679
638
  y? : number
680
639
 
@@ -685,7 +644,7 @@ export type BryntumDurationFieldProps = {
685
644
  * @param {Core.data.Duration} event.value This field's value
686
645
  * @param {Core.data.Duration} event.oldValue This field's previous value
687
646
  * @param {boolean} event.valid True if this field is in a valid state.
688
- * @param {Event} event.event The triggering DOM event if any.
647
+ * @param {Event} [event.event] The triggering DOM event if any.
689
648
  * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
690
649
  * @param {Core.widget.DurationField} event.source This field
691
650
  */
@@ -710,8 +669,7 @@ export type BryntumDurationFieldProps = {
710
669
  onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
711
670
  /**
712
671
  * Fires when any other event is fired from the object.
713
- * ...
714
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-catchAll)
672
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-catchAll)
715
673
  * @param {object} event Event object
716
674
  * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
717
675
  * @param {string} event.event.type The type of the event which is caught by the listener
@@ -723,15 +681,14 @@ export type BryntumDurationFieldProps = {
723
681
  * @param {Core.data.Duration} event.value This field's value
724
682
  * @param {Core.data.Duration} event.oldValue This field's previous value
725
683
  * @param {boolean} event.valid True if this field is in a valid state.
726
- * @param {Event} event.event The triggering DOM event if any.
684
+ * @param {Event} [event.event] The triggering DOM event if any.
727
685
  * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
728
686
  * @param {Core.widget.DurationField} event.source This field
729
687
  */
730
688
  onChange? : ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string
731
689
  /**
732
690
  * Fired when this field is [cleared](https://bryntum.com/products/core/docs/api/Core/widget/Field#function-clear).
733
- * ...
734
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-clear)
691
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-clear)
735
692
  * @param {object} event Event object
736
693
  * @param {Core.widget.Field,any} event.source This Field
737
694
  */
@@ -789,8 +746,7 @@ export type BryntumDurationFieldProps = {
789
746
  /**
790
747
  * Triggered when a widget which had been in a non-visible state for any reason
791
748
  * achieves visibility.
792
- * ...
793
- * [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-paint)
749
+ * [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-paint)
794
750
  * @param {object} event Event object
795
751
  * @param {Core.widget.Widget} event.source The widget being painted.
796
752
  * @param {boolean} event.firstPaint `true` if this is the first paint.
@@ -898,6 +854,7 @@ export class BryntumDurationField extends React.Component<BryntumDurationFieldPr
898
854
  'relayStoreEvents',
899
855
  'revertOnEscape',
900
856
  'ripple',
857
+ 'role',
901
858
  'rootElement',
902
859
  'scrollAction',
903
860
  'showAnimation',
@@ -982,9 +939,7 @@ export class BryntumDurationField extends React.Component<BryntumDurationFieldPr
982
939
  ];
983
940
 
984
941
  static propertyNames = [
985
- 'anchorSize',
986
942
  'content',
987
- 'focusVisible',
988
943
  'formula',
989
944
  'html',
990
945
  'input',