@bryntum/core-react-thin 7.2.4 → 7.3.1
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.
- package/lib/BryntumBooleanCombo.d.ts +262 -0
- package/lib/BryntumBooleanCombo.js +205 -0
- package/lib/BryntumBooleanCombo.js.map +1 -0
- package/lib/BryntumButton.d.ts +9 -17
- package/lib/BryntumButton.js +1 -2
- package/lib/BryntumButton.js.map +1 -1
- package/lib/BryntumButtonGroup.d.ts +9 -16
- package/lib/BryntumButtonGroup.js +2 -5
- package/lib/BryntumButtonGroup.js.map +1 -1
- package/lib/BryntumChatPanel.d.ts +19 -23
- package/lib/BryntumChatPanel.js +7 -6
- package/lib/BryntumChatPanel.js.map +1 -1
- package/lib/BryntumCheckbox.d.ts +10 -17
- package/lib/BryntumCheckbox.js +2 -2
- package/lib/BryntumCheckbox.js.map +1 -1
- package/lib/BryntumCheckboxGroup.d.ts +12 -24
- package/lib/BryntumCheckboxGroup.js +2 -6
- package/lib/BryntumCheckboxGroup.js.map +1 -1
- package/lib/BryntumChipView.d.ts +8 -16
- package/lib/BryntumChipView.js +1 -2
- package/lib/BryntumChipView.js.map +1 -1
- package/lib/BryntumCodeEditor.d.ts +12 -23
- package/lib/BryntumCodeEditor.js +2 -5
- package/lib/BryntumCodeEditor.js.map +1 -1
- package/lib/BryntumColorField.d.ts +9 -16
- package/lib/BryntumColorField.js +2 -2
- package/lib/BryntumColorField.js.map +1 -1
- package/lib/BryntumCombo.d.ts +12 -19
- package/lib/BryntumCombo.js +2 -2
- package/lib/BryntumCombo.js.map +1 -1
- package/lib/BryntumContainer.d.ts +8 -15
- package/lib/BryntumContainer.js +2 -5
- package/lib/BryntumContainer.js.map +1 -1
- package/lib/BryntumDateField.d.ts +9 -16
- package/lib/BryntumDateField.js +2 -2
- package/lib/BryntumDateField.js.map +1 -1
- package/lib/BryntumDatePicker.d.ts +12 -23
- package/lib/BryntumDatePicker.js +2 -5
- package/lib/BryntumDatePicker.js.map +1 -1
- package/lib/BryntumDateRangeField.d.ts +12 -19
- package/lib/BryntumDateRangeField.js +2 -2
- package/lib/BryntumDateRangeField.js.map +1 -1
- package/lib/BryntumDateTimeField.d.ts +9 -16
- package/lib/BryntumDateTimeField.js +2 -2
- package/lib/BryntumDateTimeField.js.map +1 -1
- package/lib/BryntumDemoCodeEditor.d.ts +12 -23
- package/lib/BryntumDemoCodeEditor.js +2 -5
- package/lib/BryntumDemoCodeEditor.js.map +1 -1
- package/lib/BryntumDisplayField.d.ts +9 -16
- package/lib/BryntumDisplayField.js +2 -2
- package/lib/BryntumDisplayField.js.map +1 -1
- package/lib/BryntumDurationField.d.ts +9 -16
- package/lib/BryntumDurationField.js +2 -2
- package/lib/BryntumDurationField.js.map +1 -1
- package/lib/BryntumEditor.d.ts +14 -24
- package/lib/BryntumEditor.js +2 -5
- package/lib/BryntumEditor.js.map +1 -1
- package/lib/BryntumFieldFilterPicker.d.ts +8 -15
- package/lib/BryntumFieldFilterPicker.js +2 -5
- package/lib/BryntumFieldFilterPicker.js.map +1 -1
- package/lib/BryntumFieldFilterPickerGroup.d.ts +9 -16
- package/lib/BryntumFieldFilterPickerGroup.js +2 -5
- package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumFieldSet.d.ts +12 -24
- package/lib/BryntumFieldSet.js +2 -6
- package/lib/BryntumFieldSet.js.map +1 -1
- package/lib/BryntumFileField.d.ts +9 -16
- package/lib/BryntumFileField.js +2 -2
- package/lib/BryntumFileField.js.map +1 -1
- package/lib/BryntumFilePicker.d.ts +8 -15
- package/lib/BryntumFilePicker.js +2 -5
- package/lib/BryntumFilePicker.js.map +1 -1
- package/lib/BryntumFilterField.d.ts +9 -16
- package/lib/BryntumFilterField.js +2 -2
- package/lib/BryntumFilterField.js.map +1 -1
- package/lib/BryntumHint.d.ts +24 -33
- package/lib/BryntumHint.js +2 -5
- package/lib/BryntumHint.js.map +1 -1
- package/lib/BryntumLabel.d.ts +7 -15
- package/lib/BryntumLabel.js +1 -2
- package/lib/BryntumLabel.js.map +1 -1
- package/lib/BryntumList.d.ts +8 -16
- package/lib/BryntumList.js +1 -2
- package/lib/BryntumList.js.map +1 -1
- package/lib/BryntumMenu.d.ts +23 -28
- package/lib/BryntumMenu.js +2 -6
- package/lib/BryntumMenu.js.map +1 -1
- package/lib/BryntumMonthPicker.d.ts +12 -23
- package/lib/BryntumMonthPicker.js +2 -5
- package/lib/BryntumMonthPicker.js.map +1 -1
- package/lib/BryntumNumberField.d.ts +9 -16
- package/lib/BryntumNumberField.js +2 -2
- package/lib/BryntumNumberField.js.map +1 -1
- package/lib/BryntumPagingToolbar.d.ts +12 -19
- package/lib/BryntumPagingToolbar.js +2 -5
- package/lib/BryntumPagingToolbar.js.map +1 -1
- package/lib/BryntumPanel.d.ts +12 -23
- package/lib/BryntumPanel.js +2 -5
- package/lib/BryntumPanel.js.map +1 -1
- package/lib/BryntumPasswordField.d.ts +9 -16
- package/lib/BryntumPasswordField.js +2 -2
- package/lib/BryntumPasswordField.js.map +1 -1
- package/lib/BryntumProgressBar.d.ts +7 -15
- package/lib/BryntumProgressBar.js +1 -2
- package/lib/BryntumProgressBar.js.map +1 -1
- package/lib/BryntumRadio.d.ts +10 -17
- package/lib/BryntumRadio.js +2 -2
- package/lib/BryntumRadio.js.map +1 -1
- package/lib/BryntumRadioGroup.d.ts +12 -24
- package/lib/BryntumRadioGroup.js +2 -6
- package/lib/BryntumRadioGroup.js.map +1 -1
- package/lib/BryntumSlideToggle.d.ts +10 -17
- package/lib/BryntumSlideToggle.js +2 -2
- package/lib/BryntumSlideToggle.js.map +1 -1
- package/lib/BryntumSlider.d.ts +8 -15
- package/lib/BryntumSlider.js +2 -2
- package/lib/BryntumSlider.js.map +1 -1
- package/lib/BryntumSplitter.d.ts +7 -15
- package/lib/BryntumSplitter.js +1 -2
- package/lib/BryntumSplitter.js.map +1 -1
- package/lib/BryntumTabPanel.d.ts +13 -24
- package/lib/BryntumTabPanel.js +2 -5
- package/lib/BryntumTabPanel.js.map +1 -1
- package/lib/BryntumTextAreaField.d.ts +10 -16
- package/lib/BryntumTextAreaField.js +3 -2
- package/lib/BryntumTextAreaField.js.map +1 -1
- package/lib/BryntumTextAreaPickerField.d.ts +10 -17
- package/lib/BryntumTextAreaPickerField.js +2 -2
- package/lib/BryntumTextAreaPickerField.js.map +1 -1
- package/lib/BryntumTextField.d.ts +9 -16
- package/lib/BryntumTextField.js +2 -2
- package/lib/BryntumTextField.js.map +1 -1
- package/lib/BryntumTimeField.d.ts +10 -17
- package/lib/BryntumTimeField.js +2 -2
- package/lib/BryntumTimeField.js.map +1 -1
- package/lib/BryntumTimePicker.d.ts +8 -15
- package/lib/BryntumTimePicker.js +2 -5
- package/lib/BryntumTimePicker.js.map +1 -1
- package/lib/BryntumToolbar.d.ts +12 -19
- package/lib/BryntumToolbar.js +2 -5
- package/lib/BryntumToolbar.js.map +1 -1
- package/lib/BryntumWidget.d.ts +7 -15
- package/lib/BryntumWidget.js +1 -2
- package/lib/BryntumWidget.js.map +1 -1
- package/lib/BryntumYearPicker.d.ts +12 -23
- package/lib/BryntumYearPicker.js +2 -5
- package/lib/BryntumYearPicker.js.map +1 -1
- package/lib/WrapperHelper.js +2 -2
- package/lib/WrapperHelper.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumBooleanCombo.tsx +1190 -0
- package/src/BryntumButton.tsx +72 -118
- package/src/BryntumButtonGroup.tsx +79 -124
- package/src/BryntumChatPanel.tsx +142 -172
- package/src/BryntumCheckbox.tsx +85 -119
- package/src/BryntumCheckboxGroup.tsx +112 -182
- package/src/BryntumChipView.tsx +67 -107
- package/src/BryntumCodeEditor.tsx +109 -170
- package/src/BryntumColorField.tsx +84 -118
- package/src/BryntumCombo.tsx +103 -153
- package/src/BryntumContainer.tsx +79 -125
- package/src/BryntumDateField.tsx +91 -124
- package/src/BryntumDatePicker.tsx +122 -196
- package/src/BryntumDateRangeField.tsx +90 -127
- package/src/BryntumDateTimeField.tsx +84 -118
- package/src/BryntumDemoCodeEditor.tsx +109 -170
- package/src/BryntumDisplayField.tsx +85 -120
- package/src/BryntumDurationField.tsx +91 -126
- package/src/BryntumEditor.tsx +95 -145
- package/src/BryntumFieldFilterPicker.tsx +81 -129
- package/src/BryntumFieldFilterPickerGroup.tsx +84 -134
- package/src/BryntumFieldSet.tsx +108 -175
- package/src/BryntumFileField.tsx +84 -118
- package/src/BryntumFilePicker.tsx +79 -125
- package/src/BryntumFilterField.tsx +87 -124
- package/src/BryntumHint.tsx +136 -193
- package/src/BryntumLabel.tsx +60 -96
- package/src/BryntumList.tsx +64 -103
- package/src/BryntumMenu.tsx +131 -191
- package/src/BryntumMonthPicker.tsx +109 -170
- package/src/BryntumNumberField.tsx +88 -122
- package/src/BryntumPagingToolbar.tsx +84 -131
- package/src/BryntumPanel.tsx +109 -170
- package/src/BryntumPasswordField.tsx +84 -118
- package/src/BryntumProgressBar.tsx +59 -94
- package/src/BryntumRadio.tsx +85 -119
- package/src/BryntumRadioGroup.tsx +112 -181
- package/src/BryntumSlideToggle.tsx +85 -119
- package/src/BryntumSlider.tsx +68 -102
- package/src/BryntumSplitter.tsx +62 -100
- package/src/BryntumTabPanel.tsx +111 -173
- package/src/BryntumTextAreaField.tsx +92 -120
- package/src/BryntumTextAreaPickerField.tsx +86 -121
- package/src/BryntumTextField.tsx +85 -120
- package/src/BryntumTimeField.tsx +90 -121
- package/src/BryntumTimePicker.tsx +79 -125
- package/src/BryntumToolbar.tsx +84 -131
- package/src/BryntumWidget.tsx +60 -96
- package/src/BryntumYearPicker.tsx +110 -172
- package/src/WrapperHelper.tsx +2 -2
- 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,
|
|
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
|
/**
|
|
@@ -99,6 +92,15 @@ export type BryntumDurationFieldProps = {
|
|
|
99
92
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
100
93
|
*/
|
|
101
94
|
centered? : boolean
|
|
95
|
+
/**
|
|
96
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
97
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
98
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
99
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-checkValidity)
|
|
100
|
+
* @param {Core.widget.Field} field The field being validated
|
|
101
|
+
* @returns {void}
|
|
102
|
+
*/
|
|
103
|
+
checkValidity? : ((field: Field) => void)|string
|
|
102
104
|
/**
|
|
103
105
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
104
106
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -109,15 +111,13 @@ export type BryntumDurationFieldProps = {
|
|
|
109
111
|
* Custom CSS classes to add to element.
|
|
110
112
|
* May be specified as a space separated string, or as an object in which property names
|
|
111
113
|
* 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)
|
|
114
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-cls)
|
|
114
115
|
*/
|
|
115
116
|
cls? : string|object
|
|
116
117
|
/**
|
|
117
118
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
118
119
|
* `style` block.
|
|
119
|
-
* ...
|
|
120
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-color)
|
|
120
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-color)
|
|
121
121
|
*/
|
|
122
122
|
color? : Color
|
|
123
123
|
/**
|
|
@@ -134,15 +134,13 @@ export type BryntumDurationFieldProps = {
|
|
|
134
134
|
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
135
135
|
* fields related to a [checkbox](https://bryntum.com/products/core/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
136
136
|
* these classes for examples of nested fields.
|
|
137
|
-
* ...
|
|
138
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-container)
|
|
137
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-container)
|
|
139
138
|
*/
|
|
140
|
-
container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig
|
|
139
|
+
container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig
|
|
141
140
|
/**
|
|
142
141
|
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
143
142
|
* [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)
|
|
143
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-containValues)
|
|
146
144
|
* @param {Core.widget.Field} field Field instance
|
|
147
145
|
* @returns {boolean}
|
|
148
146
|
*/
|
|
@@ -151,8 +149,7 @@ export type BryntumDurationFieldProps = {
|
|
|
151
149
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
152
150
|
* May be specified as a space separated string, or as an object in which property names
|
|
153
151
|
* 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)
|
|
152
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-contentElementCls)
|
|
156
153
|
*/
|
|
157
154
|
contentElementCls? : string|object
|
|
158
155
|
/**
|
|
@@ -174,16 +171,15 @@ export type BryntumDurationFieldProps = {
|
|
|
174
171
|
*/
|
|
175
172
|
defaultBindProperty? : string
|
|
176
173
|
/**
|
|
177
|
-
* Check for CSS compatibility issues
|
|
178
|
-
*
|
|
179
|
-
* [
|
|
174
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
175
|
+
* checks:
|
|
176
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-detectCSSCompatibilityIssues)
|
|
180
177
|
*/
|
|
181
178
|
detectCSSCompatibilityIssues? : boolean
|
|
182
179
|
/**
|
|
183
180
|
* 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
181
|
* 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)
|
|
182
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-disabled)
|
|
187
183
|
*/
|
|
188
184
|
disabled? : boolean|'inert'
|
|
189
185
|
/**
|
|
@@ -191,33 +187,28 @@ export type BryntumDurationFieldProps = {
|
|
|
191
187
|
* [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
192
188
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
193
189
|
* body. Such widgets are called "edge strips".
|
|
194
|
-
* ...
|
|
195
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-dock)
|
|
190
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-dock)
|
|
196
191
|
*/
|
|
197
192
|
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
198
193
|
/**
|
|
199
194
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
200
195
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
201
196
|
* property which controls when a drag should start.
|
|
202
|
-
* ...
|
|
203
|
-
*
|
|
197
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-draggable)
|
|
198
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
204
199
|
*/
|
|
205
|
-
draggable? : boolean|
|
|
206
|
-
handleSelector?: string
|
|
207
|
-
}
|
|
200
|
+
draggable? : boolean|object
|
|
208
201
|
/**
|
|
209
202
|
* Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
|
|
210
203
|
* [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
204
|
* 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)
|
|
205
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-editable)
|
|
214
206
|
*/
|
|
215
207
|
editable? : boolean
|
|
216
208
|
/**
|
|
217
209
|
* An object specifying attributes to assign to the root element of this widget.
|
|
218
210
|
* 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)
|
|
211
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-elementAttributes)
|
|
221
212
|
*/
|
|
222
213
|
elementAttributes? : Record<string, string|null>
|
|
223
214
|
extraData? : any
|
|
@@ -246,8 +237,7 @@ export type BryntumDurationFieldProps = {
|
|
|
246
237
|
hidden? : boolean
|
|
247
238
|
/**
|
|
248
239
|
* *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)
|
|
240
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hideAnimation)
|
|
251
241
|
*/
|
|
252
242
|
hideAnimation? : boolean|object
|
|
253
243
|
/**
|
|
@@ -257,8 +247,7 @@ export type BryntumDurationFieldProps = {
|
|
|
257
247
|
/**
|
|
258
248
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
259
249
|
* a field's units.
|
|
260
|
-
* ...
|
|
261
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hint)
|
|
250
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hint)
|
|
262
251
|
* @param {object} data A data object
|
|
263
252
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
264
253
|
* @param {any} data.value The current value of the field
|
|
@@ -269,8 +258,7 @@ export type BryntumDurationFieldProps = {
|
|
|
269
258
|
* 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
259
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
271
260
|
* 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)
|
|
261
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-hintHtml)
|
|
274
262
|
* @param {object} data A data object
|
|
275
263
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
276
264
|
* @param {any} data.value The current value of the field
|
|
@@ -283,16 +271,14 @@ export type BryntumDurationFieldProps = {
|
|
|
283
271
|
id? : string
|
|
284
272
|
/**
|
|
285
273
|
* 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)
|
|
274
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ignoreParentReadOnly)
|
|
288
275
|
*/
|
|
289
276
|
ignoreParentReadOnly? : boolean
|
|
290
277
|
/**
|
|
291
278
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
292
279
|
* [hbox](https://bryntum.com/products/core/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
293
280
|
* [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)
|
|
281
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-inline)
|
|
296
282
|
*/
|
|
297
283
|
inline? : boolean
|
|
298
284
|
/**
|
|
@@ -332,16 +318,14 @@ export type BryntumDurationFieldProps = {
|
|
|
332
318
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
333
319
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
334
320
|
* 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)
|
|
321
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyMap)
|
|
337
322
|
*/
|
|
338
323
|
keyMap? : Record<string, KeyMapConfig>
|
|
339
324
|
/**
|
|
340
325
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
341
326
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
342
327
|
* 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)
|
|
328
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-keyStrokeChangeDelay)
|
|
345
329
|
*/
|
|
346
330
|
keyStrokeChangeDelay? : number
|
|
347
331
|
/**
|
|
@@ -354,15 +338,15 @@ export type BryntumDurationFieldProps = {
|
|
|
354
338
|
labelCls? : string|object
|
|
355
339
|
/**
|
|
356
340
|
* 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)
|
|
341
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labelPosition)
|
|
359
342
|
*/
|
|
360
343
|
labelPosition? : 'before'|'above'|null
|
|
361
344
|
/**
|
|
362
345
|
* The labels to add either before or after the input field.
|
|
363
346
|
* Each label may have the following properties:
|
|
364
|
-
* ...
|
|
365
|
-
*
|
|
347
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-labels)
|
|
348
|
+
* @property {string} html Label text
|
|
349
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
366
350
|
*/
|
|
367
351
|
labels? : object[]
|
|
368
352
|
/**
|
|
@@ -371,16 +355,14 @@ export type BryntumDurationFieldProps = {
|
|
|
371
355
|
labelWidth? : string|number
|
|
372
356
|
/**
|
|
373
357
|
* The listener set for this object.
|
|
374
|
-
* ...
|
|
375
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-listeners)
|
|
358
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-listeners)
|
|
376
359
|
*/
|
|
377
360
|
listeners? : DurationFieldListeners
|
|
378
361
|
/**
|
|
379
362
|
* A class translations of which are used for translating this entity.
|
|
380
363
|
* This is often used when translations of an item are defined on its container class.
|
|
381
364
|
* For example:
|
|
382
|
-
* ...
|
|
383
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localeClass)
|
|
365
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localeClass)
|
|
384
366
|
*/
|
|
385
367
|
localeClass? : typeof Base
|
|
386
368
|
/**
|
|
@@ -392,8 +374,7 @@ export type BryntumDurationFieldProps = {
|
|
|
392
374
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
393
375
|
* you could use 'localeKey' meta configuration.
|
|
394
376
|
* Example:
|
|
395
|
-
* ...
|
|
396
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localizableProperties)
|
|
377
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-localizableProperties)
|
|
397
378
|
*/
|
|
398
379
|
localizableProperties? : string[]
|
|
399
380
|
/**
|
|
@@ -428,8 +409,7 @@ export type BryntumDurationFieldProps = {
|
|
|
428
409
|
maxHeight? : string|number
|
|
429
410
|
/**
|
|
430
411
|
* *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)
|
|
412
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-maximizeOnMobile)
|
|
433
413
|
*/
|
|
434
414
|
maximizeOnMobile? : number|string
|
|
435
415
|
/**
|
|
@@ -463,18 +443,15 @@ export type BryntumDurationFieldProps = {
|
|
|
463
443
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
464
444
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
465
445
|
* layout.
|
|
466
|
-
* ...
|
|
467
|
-
*
|
|
446
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-monitorResize)
|
|
447
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
468
448
|
*/
|
|
469
|
-
monitorResize? : boolean|
|
|
470
|
-
immediate?: boolean
|
|
471
|
-
}
|
|
449
|
+
monitorResize? : boolean|object
|
|
472
450
|
/**
|
|
473
451
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
474
452
|
* 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
453
|
* [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)
|
|
454
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-name)
|
|
478
455
|
*/
|
|
479
456
|
name? : string
|
|
480
457
|
/**
|
|
@@ -485,8 +462,7 @@ export type BryntumDurationFieldProps = {
|
|
|
485
462
|
* 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
463
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
487
464
|
* 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)
|
|
465
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-positioned)
|
|
490
466
|
*/
|
|
491
467
|
positioned? : boolean
|
|
492
468
|
/**
|
|
@@ -497,15 +473,13 @@ export type BryntumDurationFieldProps = {
|
|
|
497
473
|
/**
|
|
498
474
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
499
475
|
* are unresponsive.
|
|
500
|
-
* ...
|
|
501
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-readOnly)
|
|
476
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-readOnly)
|
|
502
477
|
*/
|
|
503
478
|
readOnly? : boolean
|
|
504
479
|
relayStoreEvents? : boolean
|
|
505
480
|
/**
|
|
506
481
|
* 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)
|
|
482
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rendition)
|
|
509
483
|
*/
|
|
510
484
|
rendition? : 'outlined'|'filled'|string
|
|
511
485
|
/**
|
|
@@ -524,23 +498,26 @@ export type BryntumDurationFieldProps = {
|
|
|
524
498
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
525
499
|
* [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
500
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
527
|
-
* ...
|
|
528
|
-
* [
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
501
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ripple)
|
|
502
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
503
|
+
* @property {string} [color] A CSS color name or specification.
|
|
504
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
505
|
+
* @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.
|
|
506
|
+
*/
|
|
507
|
+
ripple? : boolean|object
|
|
508
|
+
/**
|
|
509
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
510
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
511
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-role)
|
|
512
|
+
*/
|
|
513
|
+
role? : string
|
|
536
514
|
/**
|
|
537
515
|
* 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
516
|
*/
|
|
539
517
|
rootElement? : ShadowRoot|HTMLElement
|
|
540
518
|
/**
|
|
541
519
|
* 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)
|
|
520
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-rtl)
|
|
544
521
|
*/
|
|
545
522
|
rtl? : boolean
|
|
546
523
|
/**
|
|
@@ -550,8 +527,7 @@ export type BryntumDurationFieldProps = {
|
|
|
550
527
|
scrollAction? : 'hide'|'realign'|null
|
|
551
528
|
/**
|
|
552
529
|
* *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)
|
|
530
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-showAnimation)
|
|
555
531
|
*/
|
|
556
532
|
showAnimation? : boolean|object
|
|
557
533
|
/**
|
|
@@ -579,16 +555,14 @@ export type BryntumDurationFieldProps = {
|
|
|
579
555
|
/**
|
|
580
556
|
* Step size for spin button clicks. The `step` property may be set in object form specifying two properties,
|
|
581
557
|
* `magnitude`, a Number, and `unit`, a String.
|
|
582
|
-
* ...
|
|
583
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-step)
|
|
558
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-step)
|
|
584
559
|
*/
|
|
585
560
|
step? : DurationConfig|number|string
|
|
586
561
|
/**
|
|
587
562
|
* 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
563
|
* [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
564
|
* this widget:
|
|
590
|
-
* ...
|
|
591
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tab)
|
|
565
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tab)
|
|
592
566
|
*/
|
|
593
567
|
tab? : boolean|TabConfig
|
|
594
568
|
/**
|
|
@@ -596,14 +570,12 @@ export type BryntumDurationFieldProps = {
|
|
|
596
570
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
597
571
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
598
572
|
* to the element programmatically.
|
|
599
|
-
* ...
|
|
600
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tabIndex)
|
|
573
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tabIndex)
|
|
601
574
|
*/
|
|
602
575
|
tabIndex? : number
|
|
603
576
|
/**
|
|
604
577
|
* 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)
|
|
578
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-textAlign)
|
|
607
579
|
*/
|
|
608
580
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
609
581
|
/**
|
|
@@ -612,28 +584,27 @@ export type BryntumDurationFieldProps = {
|
|
|
612
584
|
title? : string
|
|
613
585
|
/**
|
|
614
586
|
* 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)
|
|
587
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-tooltip)
|
|
617
588
|
*/
|
|
618
589
|
tooltip? : string|TooltipConfig|null
|
|
619
590
|
/**
|
|
620
591
|
* Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/core/docs/api/Core/widget/Widget) instance
|
|
621
592
|
* which may be hidden, shown and observed and styled just like any other widget.
|
|
593
|
+
* @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)
|
|
594
|
+
* @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
595
|
*/
|
|
623
|
-
triggers? : Record<string, FieldTriggerConfig
|
|
596
|
+
triggers? : Record<string, FieldTriggerConfig>
|
|
624
597
|
type? : 'durationfield'|'duration'
|
|
625
598
|
/**
|
|
626
599
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
627
600
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
628
601
|
* values are used as the class names.
|
|
629
|
-
* ...
|
|
630
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ui)
|
|
602
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-ui)
|
|
631
603
|
*/
|
|
632
604
|
ui? : string|object
|
|
633
605
|
/**
|
|
634
606
|
* 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)
|
|
607
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-unit)
|
|
637
608
|
*/
|
|
638
609
|
unit? : DurationUnit
|
|
639
610
|
/**
|
|
@@ -650,8 +621,7 @@ export type BryntumDurationFieldProps = {
|
|
|
650
621
|
/**
|
|
651
622
|
* The `value` may be set either in object form specifying two properties, a numerical `magnitude` and a
|
|
652
623
|
* string `unit`:
|
|
653
|
-
* ...
|
|
654
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-value)
|
|
624
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-value)
|
|
655
625
|
*/
|
|
656
626
|
value? : string|number|DurationConfig|Duration
|
|
657
627
|
/**
|
|
@@ -667,14 +637,12 @@ export type BryntumDurationFieldProps = {
|
|
|
667
637
|
width? : string|number
|
|
668
638
|
/**
|
|
669
639
|
* The x position for the widget.
|
|
670
|
-
* ...
|
|
671
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-x)
|
|
640
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-x)
|
|
672
641
|
*/
|
|
673
642
|
x? : number
|
|
674
643
|
/**
|
|
675
644
|
* The y position for the widget.
|
|
676
|
-
* ...
|
|
677
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-y)
|
|
645
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-y)
|
|
678
646
|
*/
|
|
679
647
|
y? : number
|
|
680
648
|
|
|
@@ -685,7 +653,7 @@ export type BryntumDurationFieldProps = {
|
|
|
685
653
|
* @param {Core.data.Duration} event.value This field's value
|
|
686
654
|
* @param {Core.data.Duration} event.oldValue This field's previous value
|
|
687
655
|
* @param {boolean} event.valid True if this field is in a valid state.
|
|
688
|
-
* @param {Event} event.event The triggering DOM event if any.
|
|
656
|
+
* @param {Event} [event.event] The triggering DOM event if any.
|
|
689
657
|
* @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
690
658
|
* @param {Core.widget.DurationField} event.source This field
|
|
691
659
|
*/
|
|
@@ -701,7 +669,7 @@ export type BryntumDurationFieldProps = {
|
|
|
701
669
|
* @param {object} event Event object
|
|
702
670
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
703
671
|
*/
|
|
704
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
672
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
705
673
|
/**
|
|
706
674
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
707
675
|
* @param {object} event Event object
|
|
@@ -710,8 +678,7 @@ export type BryntumDurationFieldProps = {
|
|
|
710
678
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
711
679
|
/**
|
|
712
680
|
* 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)
|
|
681
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-catchAll)
|
|
715
682
|
* @param {object} event Event object
|
|
716
683
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
717
684
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -723,15 +690,14 @@ export type BryntumDurationFieldProps = {
|
|
|
723
690
|
* @param {Core.data.Duration} event.value This field's value
|
|
724
691
|
* @param {Core.data.Duration} event.oldValue This field's previous value
|
|
725
692
|
* @param {boolean} event.valid True if this field is in a valid state.
|
|
726
|
-
* @param {Event} event.event The triggering DOM event if any.
|
|
693
|
+
* @param {Event} [event.event] The triggering DOM event if any.
|
|
727
694
|
* @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
728
695
|
* @param {Core.widget.DurationField} event.source This field
|
|
729
696
|
*/
|
|
730
697
|
onChange? : ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string
|
|
731
698
|
/**
|
|
732
699
|
* 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)
|
|
700
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-clear)
|
|
735
701
|
* @param {object} event Event object
|
|
736
702
|
* @param {Core.widget.Field,any} event.source This Field
|
|
737
703
|
*/
|
|
@@ -789,8 +755,7 @@ export type BryntumDurationFieldProps = {
|
|
|
789
755
|
/**
|
|
790
756
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
791
757
|
* achieves visibility.
|
|
792
|
-
* ...
|
|
793
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-paint)
|
|
758
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#event-paint)
|
|
794
759
|
* @param {object} event Event object
|
|
795
760
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
796
761
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -852,6 +817,7 @@ export class BryntumDurationField extends React.Component<BryntumDurationFieldPr
|
|
|
852
817
|
'autoSelect',
|
|
853
818
|
'bubbleEvents',
|
|
854
819
|
'centered',
|
|
820
|
+
'checkValidity',
|
|
855
821
|
'clearable',
|
|
856
822
|
'color',
|
|
857
823
|
'config',
|
|
@@ -898,6 +864,7 @@ export class BryntumDurationField extends React.Component<BryntumDurationFieldPr
|
|
|
898
864
|
'relayStoreEvents',
|
|
899
865
|
'revertOnEscape',
|
|
900
866
|
'ripple',
|
|
867
|
+
'role',
|
|
901
868
|
'rootElement',
|
|
902
869
|
'scrollAction',
|
|
903
870
|
'showAnimation',
|
|
@@ -982,9 +949,7 @@ export class BryntumDurationField extends React.Component<BryntumDurationFieldPr
|
|
|
982
949
|
];
|
|
983
950
|
|
|
984
951
|
static propertyNames = [
|
|
985
|
-
'anchorSize',
|
|
986
952
|
'content',
|
|
987
|
-
'focusVisible',
|
|
988
953
|
'formula',
|
|
989
954
|
'html',
|
|
990
955
|
'input',
|