@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
package/src/BryntumDateField.tsx
CHANGED
|
@@ -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, DateField, DateFieldListeners, DatePickerConfig, DomConfig, DurationConfig, Field,
|
|
6
|
+
import { AlignSpec, Base, Color, CoreContainerItemConfig, DateField, DateFieldListeners, DatePickerConfig, DomConfig, DurationConfig, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, ReactJSX, Rectangle, Scroller, TabConfig, TimeField, 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 BryntumDateFieldProps = {
|
|
|
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/DateField#config-adopt)
|
|
15
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#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/DateField#config-align)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-align)
|
|
23
21
|
*/
|
|
24
22
|
align? : AlignSpec|string
|
|
25
23
|
/**
|
|
@@ -41,15 +39,13 @@ export type BryntumDateFieldProps = {
|
|
|
41
39
|
/**
|
|
42
40
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
43
41
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
44
|
-
* ...
|
|
45
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ariaDescription)
|
|
42
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ariaDescription)
|
|
46
43
|
*/
|
|
47
44
|
ariaDescription? : string
|
|
48
45
|
/**
|
|
49
46
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
50
47
|
* the `aria-label` attribute.
|
|
51
|
-
* ...
|
|
52
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ariaLabel)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ariaLabel)
|
|
53
49
|
*/
|
|
54
50
|
ariaLabel? : string
|
|
55
51
|
/**
|
|
@@ -72,21 +68,18 @@ export type BryntumDateFieldProps = {
|
|
|
72
68
|
/**
|
|
73
69
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
74
70
|
* hierarchy when triggered.
|
|
75
|
-
* ...
|
|
76
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-bubbleEvents)
|
|
71
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-bubbleEvents)
|
|
77
72
|
*/
|
|
78
73
|
bubbleEvents? : object
|
|
79
74
|
/**
|
|
80
75
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
81
|
-
* ...
|
|
82
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-callOnFunctions)
|
|
76
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-callOnFunctions)
|
|
83
77
|
*/
|
|
84
78
|
callOnFunctions? : boolean
|
|
85
79
|
/**
|
|
86
80
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
87
81
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
88
|
-
* ...
|
|
89
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-catchEventHandlerExceptions)
|
|
82
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-catchEventHandlerExceptions)
|
|
90
83
|
*/
|
|
91
84
|
catchEventHandlerExceptions? : boolean
|
|
92
85
|
/**
|
|
@@ -94,6 +87,15 @@ export type BryntumDateFieldProps = {
|
|
|
94
87
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
95
88
|
*/
|
|
96
89
|
centered? : boolean
|
|
90
|
+
/**
|
|
91
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
92
|
+
* 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)
|
|
93
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
94
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-checkValidity)
|
|
95
|
+
* @param {Core.widget.Field} field The field being validated
|
|
96
|
+
* @returns {void}
|
|
97
|
+
*/
|
|
98
|
+
checkValidity? : ((field: Field) => void)|string
|
|
97
99
|
/**
|
|
98
100
|
* 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
|
|
99
101
|
* 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
|
|
@@ -104,15 +106,13 @@ export type BryntumDateFieldProps = {
|
|
|
104
106
|
* Custom CSS classes to add to element.
|
|
105
107
|
* May be specified as a space separated string, or as an object in which property names
|
|
106
108
|
* with truthy values are used as the class names:
|
|
107
|
-
* ...
|
|
108
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-cls)
|
|
109
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-cls)
|
|
109
110
|
*/
|
|
110
111
|
cls? : string|object
|
|
111
112
|
/**
|
|
112
113
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
113
114
|
* `style` block.
|
|
114
|
-
* ...
|
|
115
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-color)
|
|
115
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-color)
|
|
116
116
|
*/
|
|
117
117
|
color? : Color
|
|
118
118
|
/**
|
|
@@ -129,15 +129,13 @@ export type BryntumDateFieldProps = {
|
|
|
129
129
|
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
130
130
|
* fields related to a [checkbox](https://bryntum.com/products/core/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
131
131
|
* these classes for examples of nested fields.
|
|
132
|
-
* ...
|
|
133
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-container)
|
|
132
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-container)
|
|
134
133
|
*/
|
|
135
|
-
container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig
|
|
134
|
+
container? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|FieldContainerConfig
|
|
136
135
|
/**
|
|
137
136
|
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
138
137
|
* [values](https://bryntum.com/products/core/docs/api/Core/widget/Container#property-values).
|
|
139
|
-
* ...
|
|
140
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-containValues)
|
|
138
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-containValues)
|
|
141
139
|
* @param {Core.widget.Field} field Field instance
|
|
142
140
|
* @returns {boolean}
|
|
143
141
|
*/
|
|
@@ -146,8 +144,7 @@ export type BryntumDateFieldProps = {
|
|
|
146
144
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
147
145
|
* May be specified as a space separated string, or as an object in which property names
|
|
148
146
|
* with truthy values are used as the class names:
|
|
149
|
-
* ...
|
|
150
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-contentElementCls)
|
|
147
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-contentElementCls)
|
|
151
148
|
*/
|
|
152
149
|
contentElementCls? : string|object
|
|
153
150
|
/**
|
|
@@ -165,16 +162,15 @@ export type BryntumDateFieldProps = {
|
|
|
165
162
|
*/
|
|
166
163
|
defaultBindProperty? : string
|
|
167
164
|
/**
|
|
168
|
-
* Check for CSS compatibility issues
|
|
169
|
-
*
|
|
170
|
-
* [
|
|
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/DateField#config-detectCSSCompatibilityIssues)
|
|
171
168
|
*/
|
|
172
169
|
detectCSSCompatibilityIssues? : boolean
|
|
173
170
|
/**
|
|
174
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
|
|
175
172
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
176
|
-
* ...
|
|
177
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-disabled)
|
|
173
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-disabled)
|
|
178
174
|
*/
|
|
179
175
|
disabled? : boolean|'inert'
|
|
180
176
|
/**
|
|
@@ -182,20 +178,17 @@ export type BryntumDateFieldProps = {
|
|
|
182
178
|
* [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
183
179
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
184
180
|
* body. Such widgets are called "edge strips".
|
|
185
|
-
* ...
|
|
186
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-dock)
|
|
181
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-dock)
|
|
187
182
|
*/
|
|
188
183
|
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
189
184
|
/**
|
|
190
185
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
191
186
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
192
187
|
* property which controls when a drag should start.
|
|
193
|
-
* ...
|
|
194
|
-
*
|
|
188
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-draggable)
|
|
189
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
195
190
|
*/
|
|
196
|
-
draggable? : boolean|
|
|
197
|
-
handleSelector?: string
|
|
198
|
-
}
|
|
191
|
+
draggable? : boolean|object
|
|
199
192
|
/**
|
|
200
193
|
* User can edit text in text field (otherwise only pick from attached picker)
|
|
201
194
|
*/
|
|
@@ -203,8 +196,7 @@ export type BryntumDateFieldProps = {
|
|
|
203
196
|
/**
|
|
204
197
|
* An object specifying attributes to assign to the root element of this widget.
|
|
205
198
|
* Set `null` value to attribute to remove it.
|
|
206
|
-
* ...
|
|
207
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-elementAttributes)
|
|
199
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-elementAttributes)
|
|
208
200
|
*/
|
|
209
201
|
elementAttributes? : Record<string, string|null>
|
|
210
202
|
extraData? : any
|
|
@@ -237,8 +229,7 @@ export type BryntumDateFieldProps = {
|
|
|
237
229
|
hidden? : boolean
|
|
238
230
|
/**
|
|
239
231
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
240
|
-
* ...
|
|
241
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hideAnimation)
|
|
232
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hideAnimation)
|
|
242
233
|
*/
|
|
243
234
|
hideAnimation? : boolean|object
|
|
244
235
|
/**
|
|
@@ -248,8 +239,7 @@ export type BryntumDateFieldProps = {
|
|
|
248
239
|
/**
|
|
249
240
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
250
241
|
* a field's units.
|
|
251
|
-
* ...
|
|
252
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hint)
|
|
242
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hint)
|
|
253
243
|
* @param {object} data A data object
|
|
254
244
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
255
245
|
* @param {any} data.value The current value of the field
|
|
@@ -260,8 +250,7 @@ export type BryntumDateFieldProps = {
|
|
|
260
250
|
* 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.
|
|
261
251
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
262
252
|
* encode such data (see [encodeHtml](https://bryntum.com/products/core/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
263
|
-
* ...
|
|
264
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hintHtml)
|
|
253
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-hintHtml)
|
|
265
254
|
* @param {object} data A data object
|
|
266
255
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
267
256
|
* @param {any} data.value The current value of the field
|
|
@@ -274,16 +263,14 @@ export type BryntumDateFieldProps = {
|
|
|
274
263
|
id? : string
|
|
275
264
|
/**
|
|
276
265
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
277
|
-
* ...
|
|
278
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ignoreParentReadOnly)
|
|
266
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ignoreParentReadOnly)
|
|
279
267
|
*/
|
|
280
268
|
ignoreParentReadOnly? : boolean
|
|
281
269
|
/**
|
|
282
270
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
283
271
|
* [hbox](https://bryntum.com/products/core/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
284
272
|
* [container](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-container).
|
|
285
|
-
* ...
|
|
286
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-inline)
|
|
273
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-inline)
|
|
287
274
|
*/
|
|
288
275
|
inline? : boolean
|
|
289
276
|
/**
|
|
@@ -322,24 +309,21 @@ export type BryntumDateFieldProps = {
|
|
|
322
309
|
/**
|
|
323
310
|
* A flag which indicates what time should be used for selected date.
|
|
324
311
|
* `false` by default which means time is reset to midnight.
|
|
325
|
-
* ...
|
|
326
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keepTime)
|
|
312
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keepTime)
|
|
327
313
|
*/
|
|
328
314
|
keepTime? : boolean|Date|string
|
|
329
315
|
/**
|
|
330
316
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
331
317
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
332
318
|
* are the name of the instance method to call when the keystroke is received.
|
|
333
|
-
* ...
|
|
334
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keyMap)
|
|
319
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keyMap)
|
|
335
320
|
*/
|
|
336
321
|
keyMap? : Record<string, KeyMapConfig>
|
|
337
322
|
/**
|
|
338
323
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
339
324
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
340
325
|
* immediate feedback, change will still be triggered on blur).
|
|
341
|
-
* ...
|
|
342
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keyStrokeChangeDelay)
|
|
326
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-keyStrokeChangeDelay)
|
|
343
327
|
*/
|
|
344
328
|
keyStrokeChangeDelay? : number
|
|
345
329
|
/**
|
|
@@ -352,15 +336,15 @@ export type BryntumDateFieldProps = {
|
|
|
352
336
|
labelCls? : string|object
|
|
353
337
|
/**
|
|
354
338
|
* Label position, either 'before' the field or 'above' the field
|
|
355
|
-
* ...
|
|
356
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-labelPosition)
|
|
339
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-labelPosition)
|
|
357
340
|
*/
|
|
358
341
|
labelPosition? : 'before'|'above'|null
|
|
359
342
|
/**
|
|
360
343
|
* The labels to add either before or after the input field.
|
|
361
344
|
* Each label may have the following properties:
|
|
362
|
-
* ...
|
|
363
|
-
*
|
|
345
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-labels)
|
|
346
|
+
* @property {string} html Label text
|
|
347
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
364
348
|
*/
|
|
365
349
|
labels? : object[]
|
|
366
350
|
/**
|
|
@@ -369,16 +353,14 @@ export type BryntumDateFieldProps = {
|
|
|
369
353
|
labelWidth? : string|number
|
|
370
354
|
/**
|
|
371
355
|
* The listener set for this object.
|
|
372
|
-
* ...
|
|
373
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-listeners)
|
|
356
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-listeners)
|
|
374
357
|
*/
|
|
375
358
|
listeners? : DateFieldListeners
|
|
376
359
|
/**
|
|
377
360
|
* A class translations of which are used for translating this entity.
|
|
378
361
|
* This is often used when translations of an item are defined on its container class.
|
|
379
362
|
* For example:
|
|
380
|
-
* ...
|
|
381
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-localeClass)
|
|
363
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-localeClass)
|
|
382
364
|
*/
|
|
383
365
|
localeClass? : typeof Base
|
|
384
366
|
/**
|
|
@@ -390,8 +372,7 @@ export type BryntumDateFieldProps = {
|
|
|
390
372
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
391
373
|
* you could use 'localeKey' meta configuration.
|
|
392
374
|
* Example:
|
|
393
|
-
* ...
|
|
394
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-localizableProperties)
|
|
375
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-localizableProperties)
|
|
395
376
|
*/
|
|
396
377
|
localizableProperties? : string[]
|
|
397
378
|
/**
|
|
@@ -421,8 +402,7 @@ export type BryntumDateFieldProps = {
|
|
|
421
402
|
maxHeight? : string|number
|
|
422
403
|
/**
|
|
423
404
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
424
|
-
* ...
|
|
425
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-maximizeOnMobile)
|
|
405
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-maximizeOnMobile)
|
|
426
406
|
*/
|
|
427
407
|
maximizeOnMobile? : number|string
|
|
428
408
|
/**
|
|
@@ -456,32 +436,27 @@ export type BryntumDateFieldProps = {
|
|
|
456
436
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
457
437
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
458
438
|
* layout.
|
|
459
|
-
* ...
|
|
460
|
-
*
|
|
439
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-monitorResize)
|
|
440
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
461
441
|
*/
|
|
462
|
-
monitorResize? : boolean|
|
|
463
|
-
immediate?: boolean
|
|
464
|
-
}
|
|
442
|
+
monitorResize? : boolean|object
|
|
465
443
|
/**
|
|
466
444
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
467
445
|
* Used prior to [ref](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
468
446
|
* [Container.values](https://bryntum.com/products/core/docs/api/Core/widget/Container#property-values).
|
|
469
|
-
* ...
|
|
470
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-name)
|
|
447
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-name)
|
|
471
448
|
*/
|
|
472
449
|
name? : string
|
|
473
450
|
/**
|
|
474
451
|
* A reference to a partner TimeField which this DateField should sync its value with.
|
|
475
452
|
* When the TimeField's value is changed, this DateField's value is updated to match.
|
|
476
453
|
* When this DateField's value is changed, the TimeField's value is updated to match.
|
|
477
|
-
* ...
|
|
478
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-partner)
|
|
454
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-partner)
|
|
479
455
|
*/
|
|
480
456
|
partner? : string|TimeField
|
|
481
457
|
/**
|
|
482
458
|
* A config object used to configure the [datePicker](https://bryntum.com/products/core/docs/api/Core/widget/DatePicker).
|
|
483
|
-
* ...
|
|
484
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-picker)
|
|
459
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-picker)
|
|
485
460
|
*/
|
|
486
461
|
picker? : DatePickerConfig
|
|
487
462
|
/**
|
|
@@ -500,8 +475,7 @@ export type BryntumDateFieldProps = {
|
|
|
500
475
|
* 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
|
|
501
476
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
502
477
|
* widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
503
|
-
* ...
|
|
504
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-positioned)
|
|
478
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-positioned)
|
|
505
479
|
*/
|
|
506
480
|
positioned? : boolean
|
|
507
481
|
/**
|
|
@@ -512,15 +486,13 @@ export type BryntumDateFieldProps = {
|
|
|
512
486
|
/**
|
|
513
487
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
514
488
|
* are unresponsive.
|
|
515
|
-
* ...
|
|
516
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-readOnly)
|
|
489
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-readOnly)
|
|
517
490
|
*/
|
|
518
491
|
readOnly? : boolean
|
|
519
492
|
relayStoreEvents? : boolean
|
|
520
493
|
/**
|
|
521
494
|
* Predefined style to use for the field. Possible values are:
|
|
522
|
-
* ...
|
|
523
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-rendition)
|
|
495
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-rendition)
|
|
524
496
|
*/
|
|
525
497
|
rendition? : 'outlined'|'filled'|string
|
|
526
498
|
/**
|
|
@@ -539,23 +511,26 @@ export type BryntumDateFieldProps = {
|
|
|
539
511
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
540
512
|
* [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
|
|
541
513
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
542
|
-
* ...
|
|
543
|
-
* [
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
514
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ripple)
|
|
515
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
516
|
+
* @property {string} [color] A CSS color name or specification.
|
|
517
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
518
|
+
* @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.
|
|
519
|
+
*/
|
|
520
|
+
ripple? : boolean|object
|
|
521
|
+
/**
|
|
522
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
523
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
524
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-role)
|
|
525
|
+
*/
|
|
526
|
+
role? : string
|
|
551
527
|
/**
|
|
552
528
|
* 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`
|
|
553
529
|
*/
|
|
554
530
|
rootElement? : ShadowRoot|HTMLElement
|
|
555
531
|
/**
|
|
556
532
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
557
|
-
* ...
|
|
558
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-rtl)
|
|
533
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-rtl)
|
|
559
534
|
*/
|
|
560
535
|
rtl? : boolean
|
|
561
536
|
/**
|
|
@@ -565,8 +540,7 @@ export type BryntumDateFieldProps = {
|
|
|
565
540
|
scrollAction? : 'hide'|'realign'|null
|
|
566
541
|
/**
|
|
567
542
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
568
|
-
* ...
|
|
569
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-showAnimation)
|
|
543
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-showAnimation)
|
|
570
544
|
*/
|
|
571
545
|
showAnimation? : boolean|object
|
|
572
546
|
/**
|
|
@@ -607,16 +581,14 @@ export type BryntumDateFieldProps = {
|
|
|
607
581
|
/**
|
|
608
582
|
* A flag which indicates whether the date parsing should be strict - meaning if the date
|
|
609
583
|
* is missing a year/month/day part - parsing fails.
|
|
610
|
-
* ...
|
|
611
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-strictParsing)
|
|
584
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-strictParsing)
|
|
612
585
|
*/
|
|
613
586
|
strictParsing? : boolean
|
|
614
587
|
/**
|
|
615
588
|
* 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
|
|
616
589
|
* [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
|
|
617
590
|
* this widget:
|
|
618
|
-
* ...
|
|
619
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tab)
|
|
591
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tab)
|
|
620
592
|
*/
|
|
621
593
|
tab? : boolean|TabConfig
|
|
622
594
|
/**
|
|
@@ -624,14 +596,12 @@ export type BryntumDateFieldProps = {
|
|
|
624
596
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
625
597
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
626
598
|
* to the element programmatically.
|
|
627
|
-
* ...
|
|
628
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tabIndex)
|
|
599
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tabIndex)
|
|
629
600
|
*/
|
|
630
601
|
tabIndex? : number
|
|
631
602
|
/**
|
|
632
603
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
633
|
-
* ...
|
|
634
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-textAlign)
|
|
604
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-textAlign)
|
|
635
605
|
*/
|
|
636
606
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
637
607
|
/**
|
|
@@ -640,22 +610,24 @@ export type BryntumDateFieldProps = {
|
|
|
640
610
|
title? : string
|
|
641
611
|
/**
|
|
642
612
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
643
|
-
* ...
|
|
644
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tooltip)
|
|
613
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-tooltip)
|
|
645
614
|
*/
|
|
646
615
|
tooltip? : string|TooltipConfig|null
|
|
647
616
|
/**
|
|
648
617
|
* Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/core/docs/api/Core/widget/Widget) instance
|
|
649
618
|
* which may be hidden, shown and observed and styled just like any other widget.
|
|
619
|
+
* @property {FieldTriggerConfig} triggers.expand Expands the date picker to select a date
|
|
620
|
+
* @property {FieldTriggerConfig} triggers.back Subtracts the [step](https://bryntum.com/products/core/docs/api/Core/widget/DateField#config-step) from the current date
|
|
621
|
+
* @property {FieldTriggerConfig} triggers.forward Adds the [step](https://bryntum.com/products/core/docs/api/Core/widget/DateField#config-step) to the current date
|
|
622
|
+
* @property {FieldTriggerConfig} triggers.clear Clears the field value, only available if this field is [clearable](https://bryntum.com/products/core/docs/api/Core/widget/DateField#config-clearable)
|
|
650
623
|
*/
|
|
651
|
-
triggers? : Record<string, FieldTriggerConfig
|
|
624
|
+
triggers? : Record<string, FieldTriggerConfig>
|
|
652
625
|
type? : 'datefield'|'date'
|
|
653
626
|
/**
|
|
654
627
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
655
628
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
656
629
|
* values are used as the class names.
|
|
657
|
-
* ...
|
|
658
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ui)
|
|
630
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-ui)
|
|
659
631
|
*/
|
|
660
632
|
ui? : string|object
|
|
661
633
|
/**
|
|
@@ -686,14 +658,12 @@ export type BryntumDateFieldProps = {
|
|
|
686
658
|
width? : string|number
|
|
687
659
|
/**
|
|
688
660
|
* The x position for the widget.
|
|
689
|
-
* ...
|
|
690
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-x)
|
|
661
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-x)
|
|
691
662
|
*/
|
|
692
663
|
x? : number
|
|
693
664
|
/**
|
|
694
665
|
* The y position for the widget.
|
|
695
|
-
* ...
|
|
696
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-y)
|
|
666
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-y)
|
|
697
667
|
*/
|
|
698
668
|
y? : number
|
|
699
669
|
|
|
@@ -723,7 +693,7 @@ export type BryntumDateFieldProps = {
|
|
|
723
693
|
* @param {object} event Event object
|
|
724
694
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
725
695
|
*/
|
|
726
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
696
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
727
697
|
/**
|
|
728
698
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
729
699
|
* @param {object} event Event object
|
|
@@ -732,8 +702,7 @@ export type BryntumDateFieldProps = {
|
|
|
732
702
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
733
703
|
/**
|
|
734
704
|
* Fires when any other event is fired from the object.
|
|
735
|
-
* ...
|
|
736
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-catchAll)
|
|
705
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-catchAll)
|
|
737
706
|
* @param {object} event Event object
|
|
738
707
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
739
708
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -753,8 +722,7 @@ export type BryntumDateFieldProps = {
|
|
|
753
722
|
onChange? : ((event: { source: DateField, value: Date, oldValue: Date, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string
|
|
754
723
|
/**
|
|
755
724
|
* Fired when this field is [cleared](https://bryntum.com/products/core/docs/api/Core/widget/Field#function-clear).
|
|
756
|
-
* ...
|
|
757
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-clear)
|
|
725
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-clear)
|
|
758
726
|
* @param {object} event Event object
|
|
759
727
|
* @param {Core.widget.Field,any} event.source This Field
|
|
760
728
|
*/
|
|
@@ -812,8 +780,7 @@ export type BryntumDateFieldProps = {
|
|
|
812
780
|
/**
|
|
813
781
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
814
782
|
* achieves visibility.
|
|
815
|
-
* ...
|
|
816
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-paint)
|
|
783
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#event-paint)
|
|
817
784
|
* @param {object} event Event object
|
|
818
785
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
819
786
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -875,6 +842,7 @@ export class BryntumDateField extends React.Component<BryntumDateFieldProps> {
|
|
|
875
842
|
'autoSelect',
|
|
876
843
|
'bubbleEvents',
|
|
877
844
|
'centered',
|
|
845
|
+
'checkValidity',
|
|
878
846
|
'clearable',
|
|
879
847
|
'color',
|
|
880
848
|
'config',
|
|
@@ -924,6 +892,7 @@ export class BryntumDateField extends React.Component<BryntumDateFieldProps> {
|
|
|
924
892
|
'relayStoreEvents',
|
|
925
893
|
'revertOnEscape',
|
|
926
894
|
'ripple',
|
|
895
|
+
'role',
|
|
927
896
|
'rootElement',
|
|
928
897
|
'scrollAction',
|
|
929
898
|
'showAnimation',
|
|
@@ -1009,9 +978,7 @@ export class BryntumDateField extends React.Component<BryntumDateFieldProps> {
|
|
|
1009
978
|
];
|
|
1010
979
|
|
|
1011
980
|
static propertyNames = [
|
|
1012
|
-
'anchorSize',
|
|
1013
981
|
'content',
|
|
1014
|
-
'focusVisible',
|
|
1015
982
|
'formula',
|
|
1016
983
|
'html',
|
|
1017
984
|
'input',
|