@bryntum/scheduler-vue-3-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/README.md +8 -8
- package/lib/chunks/{B0m0r-NV.js → BTSObfAz.js} +11 -9
- package/lib/chunks/BTSObfAz.js.map +1 -0
- package/lib/chunks/BXIuEgYD.js +265 -0
- package/lib/chunks/BXIuEgYD.js.map +1 -0
- package/lib/chunks/{DerP_qo7.js → CCTV8qn0.js} +18 -10
- package/lib/chunks/CCTV8qn0.js.map +1 -0
- package/lib/chunks/{CsoS615B.js → COFzBhB8.js} +11 -9
- package/lib/chunks/COFzBhB8.js.map +1 -0
- package/lib/chunks/{BD-Hg3lY.js → DB0UHrA3.js} +17 -24
- package/lib/chunks/DB0UHrA3.js.map +1 -0
- package/lib/chunks/{C7ZFK2B7.js → DJSlX0qP.js} +18 -10
- package/lib/chunks/DJSlX0qP.js.map +1 -0
- package/lib/chunks/{DmQj0tBi.js → DP61St-u.js} +14 -6
- package/lib/chunks/DP61St-u.js.map +1 -0
- package/lib/chunks/{mKqb8_2f.js → LNqNYJck.js} +9 -7
- package/lib/chunks/LNqNYJck.js.map +1 -0
- package/lib/chunks/{CP1Mm_Ak.js → R69sJLmF.js} +16 -17
- package/lib/chunks/R69sJLmF.js.map +1 -0
- package/lib/chunks/{BNGLBrCN.js → WykRcMCN.js} +7 -5
- package/lib/chunks/WykRcMCN.js.map +1 -0
- package/lib/chunks/{C0UqC4Uj.js → eUISgYXE.js} +9 -9
- package/lib/chunks/eUISgYXE.js.map +1 -0
- package/lib/chunks/{C2PT-Ukt.js → t8aiH3XL.js} +13 -14
- package/lib/chunks/t8aiH3XL.js.map +1 -0
- package/lib/components/BryntumEventColorField.js +1 -1
- package/lib/components/BryntumProjectCombo.js +1 -1
- package/lib/components/BryntumResourceCombo.js +1 -1
- package/lib/components/BryntumResourceFilter.js +1 -1
- package/lib/components/BryntumScheduler.js +1 -1
- package/lib/components/BryntumSchedulerBase.js +1 -1
- package/lib/components/BryntumSchedulerDatePicker.js +1 -1
- package/lib/components/BryntumSchedulerProjectModel.js +1 -1
- package/lib/components/BryntumThemeCombo.js +57 -0
- package/lib/components/BryntumThemeCombo.js.map +1 -0
- package/lib/components/BryntumTimeZoomSlider.js +5 -0
- package/lib/components/BryntumTimeZoomSlider.js.map +1 -0
- package/lib/components/BryntumTimelineHistogram.js +1 -1
- package/lib/components/BryntumUndoRedo.js +1 -1
- package/lib/components/BryntumViewPresetCombo.js +1 -1
- package/lib/index.js +18 -16
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/BryntumEventColorField.vue +152 -222
- package/src/components/BryntumEventColorFieldProps.ts +77 -108
- package/src/components/BryntumProjectCombo.vue +171 -258
- package/src/components/BryntumProjectComboProps.ts +95 -141
- package/src/components/BryntumResourceCombo.vue +172 -260
- package/src/components/BryntumResourceComboProps.ts +96 -143
- package/src/components/BryntumResourceFilter.vue +132 -211
- package/src/components/BryntumResourceFilterProps.ts +60 -98
- package/src/components/BryntumScheduler.vue +1847 -2520
- package/src/components/BryntumSchedulerBase.vue +1847 -2520
- package/src/components/BryntumSchedulerBaseProps.ts +372 -522
- package/src/components/BryntumSchedulerDatePicker.vue +205 -331
- package/src/components/BryntumSchedulerDatePickerProps.ts +116 -187
- package/src/components/BryntumSchedulerProjectModel.vue +23 -46
- package/src/components/BryntumSchedulerProjectModelProps.ts +10 -20
- package/src/components/BryntumSchedulerProps.ts +372 -522
- package/src/components/BryntumThemeCombo.vue +60 -0
- package/src/components/BryntumTimeZoomSlider.vue +829 -0
- package/src/components/BryntumTimeZoomSliderProps.ts +482 -0
- package/src/components/BryntumTimelineHistogram.vue +1034 -1461
- package/src/components/BryntumTimelineHistogramProps.ts +275 -388
- package/src/components/BryntumUndoRedo.vue +127 -204
- package/src/components/BryntumUndoRedoProps.ts +74 -116
- package/src/components/BryntumViewPresetCombo.vue +144 -210
- package/src/components/BryntumViewPresetComboProps.ts +72 -99
- package/src/index.ts +2 -0
- package/lib/chunks/B0m0r-NV.js.map +0 -1
- package/lib/chunks/BD-Hg3lY.js.map +0 -1
- package/lib/chunks/BNGLBrCN.js.map +0 -1
- package/lib/chunks/C0UqC4Uj.js.map +0 -1
- package/lib/chunks/C2PT-Ukt.js.map +0 -1
- package/lib/chunks/C7ZFK2B7.js.map +0 -1
- package/lib/chunks/CP1Mm_Ak.js.map +0 -1
- package/lib/chunks/CsoS615B.js.map +0 -1
- package/lib/chunks/DerP_qo7.js.map +0 -1
- package/lib/chunks/DmQj0tBi.js.map +0 -1
- package/lib/chunks/mKqb8_2f.js.map +0 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';
|
|
12
12
|
|
|
13
|
-
import type { AlignSpec, Base, ColorDescriptor, Field,
|
|
13
|
+
import type { AlignSpec, Base, ColorDescriptor, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, Rectangle, TabConfig, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
14
14
|
import type { SchedulerContainerItemConfig, EventColorFieldListeners } from '@bryntum/scheduler-thin';
|
|
15
15
|
import { EventColorField } from '@bryntum/scheduler-thin';
|
|
16
16
|
|
|
@@ -25,14 +25,12 @@ defineProps<{
|
|
|
25
25
|
/**
|
|
26
26
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
27
27
|
* content will be placed inside this element.
|
|
28
|
-
* ...
|
|
29
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-adopt)
|
|
28
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-adopt)
|
|
30
29
|
*/
|
|
31
30
|
adopt ? : HTMLElement|string
|
|
32
31
|
/**
|
|
33
32
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
34
|
-
* ...
|
|
35
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-align)
|
|
33
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-align)
|
|
36
34
|
*/
|
|
37
35
|
align ? : AlignSpec|string
|
|
38
36
|
/**
|
|
@@ -54,15 +52,13 @@ defineProps<{
|
|
|
54
52
|
/**
|
|
55
53
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
56
54
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
57
|
-
* ...
|
|
58
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ariaDescription)
|
|
55
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ariaDescription)
|
|
59
56
|
*/
|
|
60
57
|
ariaDescription ? : string
|
|
61
58
|
/**
|
|
62
59
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
63
60
|
* the `aria-label` attribute.
|
|
64
|
-
* ...
|
|
65
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ariaLabel)
|
|
61
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ariaLabel)
|
|
66
62
|
*/
|
|
67
63
|
ariaLabel ? : string
|
|
68
64
|
/**
|
|
@@ -85,21 +81,18 @@ defineProps<{
|
|
|
85
81
|
/**
|
|
86
82
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
87
83
|
* hierarchy when triggered.
|
|
88
|
-
* ...
|
|
89
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-bubbleEvents)
|
|
84
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-bubbleEvents)
|
|
90
85
|
*/
|
|
91
86
|
bubbleEvents ? : object
|
|
92
87
|
/**
|
|
93
88
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
94
|
-
* ...
|
|
95
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-callOnFunctions)
|
|
89
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-callOnFunctions)
|
|
96
90
|
*/
|
|
97
91
|
callOnFunctions ? : Boolean
|
|
98
92
|
/**
|
|
99
93
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
100
94
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
101
|
-
* ...
|
|
102
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-catchEventHandlerExceptions)
|
|
95
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-catchEventHandlerExceptions)
|
|
103
96
|
*/
|
|
104
97
|
catchEventHandlerExceptions ? : Boolean
|
|
105
98
|
/**
|
|
@@ -107,6 +100,15 @@ defineProps<{
|
|
|
107
100
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
108
101
|
*/
|
|
109
102
|
centered ? : Boolean
|
|
103
|
+
/**
|
|
104
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
105
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-isValid)
|
|
106
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
107
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-checkValidity)
|
|
108
|
+
* @param {Core.widget.Field} field The field being validated
|
|
109
|
+
* @returns {void}
|
|
110
|
+
*/
|
|
111
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
110
112
|
/**
|
|
111
113
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
112
114
|
* in the [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -117,16 +119,14 @@ defineProps<{
|
|
|
117
119
|
* Custom CSS classes to add to element.
|
|
118
120
|
* May be specified as a space separated string, or as an object in which property names
|
|
119
121
|
* with truthy values are used as the class names:
|
|
120
|
-
* ...
|
|
121
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-cls)
|
|
122
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-cls)
|
|
122
123
|
*/
|
|
123
124
|
cls ? : string|object
|
|
124
125
|
/**
|
|
125
126
|
* The `colors` property can be an array of string CSS colors or of objects with `color`
|
|
126
127
|
* and `text` properties from which the user can chose from. This will override the
|
|
127
128
|
* [pickers default colors](https://bryntum.com/products/scheduler/docs/api/Core/widget/ColorPicker#config-colors).
|
|
128
|
-
* ...
|
|
129
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-colors)
|
|
129
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-colors)
|
|
130
130
|
*/
|
|
131
131
|
colors ? : (string|ColorDescriptor)[]
|
|
132
132
|
/**
|
|
@@ -143,15 +143,13 @@ defineProps<{
|
|
|
143
143
|
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
144
144
|
* fields related to a [checkbox](https://bryntum.com/products/scheduler/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
145
145
|
* these classes for examples of nested fields.
|
|
146
|
-
* ...
|
|
147
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-container)
|
|
146
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-container)
|
|
148
147
|
*/
|
|
149
|
-
container ? : Record<string, SchedulerContainerItemConfig>|SchedulerContainerItemConfig[]|FieldContainerConfig
|
|
148
|
+
container ? : Record<string, SchedulerContainerItemConfig>|SchedulerContainerItemConfig[]|FieldContainerConfig
|
|
150
149
|
/**
|
|
151
150
|
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
152
151
|
* [values](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-values).
|
|
153
|
-
* ...
|
|
154
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-containValues)
|
|
152
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-containValues)
|
|
155
153
|
* @param {Core.widget.Field} field Field instance
|
|
156
154
|
* @returns {boolean}
|
|
157
155
|
*/
|
|
@@ -160,8 +158,7 @@ defineProps<{
|
|
|
160
158
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
|
|
161
159
|
* May be specified as a space separated string, or as an object in which property names
|
|
162
160
|
* with truthy values are used as the class names:
|
|
163
|
-
* ...
|
|
164
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-contentElementCls)
|
|
161
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-contentElementCls)
|
|
165
162
|
*/
|
|
166
163
|
contentElementCls ? : string|object
|
|
167
164
|
/**
|
|
@@ -179,16 +176,15 @@ defineProps<{
|
|
|
179
176
|
*/
|
|
180
177
|
defaultBindProperty ? : string
|
|
181
178
|
/**
|
|
182
|
-
* Check for CSS compatibility issues
|
|
183
|
-
*
|
|
184
|
-
* [
|
|
179
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
180
|
+
* checks:
|
|
181
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-detectCSSCompatibilityIssues)
|
|
185
182
|
*/
|
|
186
183
|
detectCSSCompatibilityIssues ? : Boolean
|
|
187
184
|
/**
|
|
188
185
|
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
189
186
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
190
|
-
* ...
|
|
191
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-disabled)
|
|
187
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-disabled)
|
|
192
188
|
*/
|
|
193
189
|
disabled ? : Boolean|'inert'
|
|
194
190
|
/**
|
|
@@ -196,25 +192,21 @@ defineProps<{
|
|
|
196
192
|
* [strips collection](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
197
193
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
198
194
|
* body. Such widgets are called "edge strips".
|
|
199
|
-
* ...
|
|
200
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-dock)
|
|
195
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-dock)
|
|
201
196
|
*/
|
|
202
197
|
dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
203
198
|
/**
|
|
204
199
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
205
200
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
206
201
|
* property which controls when a drag should start.
|
|
207
|
-
* ...
|
|
208
|
-
*
|
|
202
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-draggable)
|
|
203
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
209
204
|
*/
|
|
210
|
-
draggable ? : Boolean|
|
|
211
|
-
handleSelector?: string
|
|
212
|
-
}
|
|
205
|
+
draggable ? : Boolean|object
|
|
213
206
|
/**
|
|
214
207
|
* An object specifying attributes to assign to the root element of this widget.
|
|
215
208
|
* Set `null` value to attribute to remove it.
|
|
216
|
-
* ...
|
|
217
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-elementAttributes)
|
|
209
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-elementAttributes)
|
|
218
210
|
*/
|
|
219
211
|
elementAttributes ? : Record<string, string|null>
|
|
220
212
|
extraData ? : any
|
|
@@ -243,8 +235,7 @@ defineProps<{
|
|
|
243
235
|
hidden ? : Boolean
|
|
244
236
|
/**
|
|
245
237
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
246
|
-
* ...
|
|
247
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hideAnimation)
|
|
238
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hideAnimation)
|
|
248
239
|
*/
|
|
249
240
|
hideAnimation ? : Boolean|object
|
|
250
241
|
/**
|
|
@@ -254,8 +245,7 @@ defineProps<{
|
|
|
254
245
|
/**
|
|
255
246
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
256
247
|
* a field's units.
|
|
257
|
-
* ...
|
|
258
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hint)
|
|
248
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hint)
|
|
259
249
|
* @param {object} data A data object
|
|
260
250
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
261
251
|
* @param {any} data.value The current value of the field
|
|
@@ -266,8 +256,7 @@ defineProps<{
|
|
|
266
256
|
* This config is similar to [hint](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
|
|
267
257
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
268
258
|
* encode such data (see [encodeHtml](https://bryntum.com/products/scheduler/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
269
|
-
* ...
|
|
270
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hintHtml)
|
|
259
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-hintHtml)
|
|
271
260
|
* @param {object} data A data object
|
|
272
261
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
273
262
|
* @param {any} data.value The current value of the field
|
|
@@ -280,16 +269,14 @@ defineProps<{
|
|
|
280
269
|
id ? : string
|
|
281
270
|
/**
|
|
282
271
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
283
|
-
* ...
|
|
284
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ignoreParentReadOnly)
|
|
272
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ignoreParentReadOnly)
|
|
285
273
|
*/
|
|
286
274
|
ignoreParentReadOnly ? : Boolean
|
|
287
275
|
/**
|
|
288
276
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
289
277
|
* [hbox](https://bryntum.com/products/scheduler/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
290
278
|
* [container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-container).
|
|
291
|
-
* ...
|
|
292
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-inline)
|
|
279
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-inline)
|
|
293
280
|
*/
|
|
294
281
|
inline ? : Boolean
|
|
295
282
|
/**
|
|
@@ -329,16 +316,14 @@ defineProps<{
|
|
|
329
316
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
330
317
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
331
318
|
* are the name of the instance method to call when the keystroke is received.
|
|
332
|
-
* ...
|
|
333
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-keyMap)
|
|
319
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-keyMap)
|
|
334
320
|
*/
|
|
335
321
|
keyMap ? : Record<string, KeyMapConfig>
|
|
336
322
|
/**
|
|
337
323
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
338
324
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
339
325
|
* immediate feedback, change will still be triggered on blur).
|
|
340
|
-
* ...
|
|
341
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-keyStrokeChangeDelay)
|
|
326
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-keyStrokeChangeDelay)
|
|
342
327
|
*/
|
|
343
328
|
keyStrokeChangeDelay ? : number
|
|
344
329
|
/**
|
|
@@ -351,15 +336,15 @@ defineProps<{
|
|
|
351
336
|
labelCls ? : string|object
|
|
352
337
|
/**
|
|
353
338
|
* Label position, either 'before' the field or 'above' the field
|
|
354
|
-
* ...
|
|
355
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-labelPosition)
|
|
339
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-labelPosition)
|
|
356
340
|
*/
|
|
357
341
|
labelPosition ? : 'before'|'above'|null
|
|
358
342
|
/**
|
|
359
343
|
* The labels to add either before or after the input field.
|
|
360
344
|
* Each label may have the following properties:
|
|
361
|
-
* ...
|
|
362
|
-
*
|
|
345
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-labels)
|
|
346
|
+
* @property {string} html Label text
|
|
347
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
363
348
|
*/
|
|
364
349
|
labels ? : object[]
|
|
365
350
|
/**
|
|
@@ -368,16 +353,14 @@ defineProps<{
|
|
|
368
353
|
labelWidth ? : string|number
|
|
369
354
|
/**
|
|
370
355
|
* The listener set for this object.
|
|
371
|
-
* ...
|
|
372
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-listeners)
|
|
356
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-listeners)
|
|
373
357
|
*/
|
|
374
358
|
listeners ? : EventColorFieldListeners
|
|
375
359
|
/**
|
|
376
360
|
* A class translations of which are used for translating this entity.
|
|
377
361
|
* This is often used when translations of an item are defined on its container class.
|
|
378
362
|
* For example:
|
|
379
|
-
* ...
|
|
380
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-localeClass)
|
|
363
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-localeClass)
|
|
381
364
|
*/
|
|
382
365
|
localeClass ? : typeof Base
|
|
383
366
|
/**
|
|
@@ -389,8 +372,7 @@ defineProps<{
|
|
|
389
372
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
390
373
|
* you could use 'localeKey' meta configuration.
|
|
391
374
|
* Example:
|
|
392
|
-
* ...
|
|
393
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-localizableProperties)
|
|
375
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-localizableProperties)
|
|
394
376
|
*/
|
|
395
377
|
localizableProperties ? : string[]
|
|
396
378
|
/**
|
|
@@ -416,8 +398,7 @@ defineProps<{
|
|
|
416
398
|
maxHeight ? : string|number
|
|
417
399
|
/**
|
|
418
400
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
419
|
-
* ...
|
|
420
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-maximizeOnMobile)
|
|
401
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-maximizeOnMobile)
|
|
421
402
|
*/
|
|
422
403
|
maximizeOnMobile ? : number|string
|
|
423
404
|
/**
|
|
@@ -447,18 +428,15 @@ defineProps<{
|
|
|
447
428
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
448
429
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
449
430
|
* layout.
|
|
450
|
-
* ...
|
|
451
|
-
*
|
|
431
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-monitorResize)
|
|
432
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
452
433
|
*/
|
|
453
|
-
monitorResize ? : Boolean|
|
|
454
|
-
immediate?: Boolean
|
|
455
|
-
}
|
|
434
|
+
monitorResize ? : Boolean|object
|
|
456
435
|
/**
|
|
457
436
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
458
437
|
* Used prior to [ref](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
459
438
|
* [Container.values](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-values).
|
|
460
|
-
* ...
|
|
461
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-name)
|
|
439
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-name)
|
|
462
440
|
*/
|
|
463
441
|
name ? : string
|
|
464
442
|
/**
|
|
@@ -473,8 +451,7 @@ defineProps<{
|
|
|
473
451
|
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
474
452
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
475
453
|
* widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
|
|
476
|
-
* ...
|
|
477
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-positioned)
|
|
454
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-positioned)
|
|
478
455
|
*/
|
|
479
456
|
positioned ? : Boolean
|
|
480
457
|
/**
|
|
@@ -485,15 +462,13 @@ defineProps<{
|
|
|
485
462
|
/**
|
|
486
463
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
487
464
|
* are unresponsive.
|
|
488
|
-
* ...
|
|
489
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-readOnly)
|
|
465
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-readOnly)
|
|
490
466
|
*/
|
|
491
467
|
readOnly ? : Boolean
|
|
492
468
|
relayStoreEvents ? : Boolean
|
|
493
469
|
/**
|
|
494
470
|
* Predefined style to use for the field. Possible values are:
|
|
495
|
-
* ...
|
|
496
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-rendition)
|
|
471
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-rendition)
|
|
497
472
|
*/
|
|
498
473
|
rendition ? : 'outlined'|'filled'|string
|
|
499
474
|
/**
|
|
@@ -512,23 +487,26 @@ defineProps<{
|
|
|
512
487
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
513
488
|
* [focusElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
514
489
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
515
|
-
* ...
|
|
516
|
-
* [
|
|
490
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ripple)
|
|
491
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
492
|
+
* @property {string} [color] A CSS color name or specification.
|
|
493
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
494
|
+
* @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.
|
|
495
|
+
*/
|
|
496
|
+
ripple ? : Boolean|object
|
|
497
|
+
/**
|
|
498
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
499
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
500
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-role)
|
|
517
501
|
*/
|
|
518
|
-
|
|
519
|
-
delegate?: string
|
|
520
|
-
color?: string
|
|
521
|
-
radius?: number
|
|
522
|
-
clip?: string
|
|
523
|
-
}
|
|
502
|
+
role ? : string
|
|
524
503
|
/**
|
|
525
504
|
* 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`
|
|
526
505
|
*/
|
|
527
506
|
rootElement ? : ShadowRoot|HTMLElement
|
|
528
507
|
/**
|
|
529
508
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
530
|
-
* ...
|
|
531
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-rtl)
|
|
509
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-rtl)
|
|
532
510
|
*/
|
|
533
511
|
rtl ? : Boolean
|
|
534
512
|
/**
|
|
@@ -538,8 +516,7 @@ defineProps<{
|
|
|
538
516
|
scrollAction ? : 'hide'|'realign'|null
|
|
539
517
|
/**
|
|
540
518
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
541
|
-
* ...
|
|
542
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-showAnimation)
|
|
519
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-showAnimation)
|
|
543
520
|
*/
|
|
544
521
|
showAnimation ? : Boolean|object
|
|
545
522
|
/**
|
|
@@ -568,8 +545,7 @@ defineProps<{
|
|
|
568
545
|
* A configuration for the [tab](https://bryntum.com/products/scheduler/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
569
546
|
* [TabPanel](https://bryntum.com/products/scheduler/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
570
547
|
* this widget:
|
|
571
|
-
* ...
|
|
572
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tab)
|
|
548
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tab)
|
|
573
549
|
*/
|
|
574
550
|
tab ? : Boolean|TabConfig
|
|
575
551
|
/**
|
|
@@ -577,14 +553,12 @@ defineProps<{
|
|
|
577
553
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
578
554
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
579
555
|
* to the element programmatically.
|
|
580
|
-
* ...
|
|
581
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tabIndex)
|
|
556
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tabIndex)
|
|
582
557
|
*/
|
|
583
558
|
tabIndex ? : number
|
|
584
559
|
/**
|
|
585
560
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
586
|
-
* ...
|
|
587
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-textAlign)
|
|
561
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-textAlign)
|
|
588
562
|
*/
|
|
589
563
|
textAlign ? : 'left'|'center'|'right'|'start'|'end'
|
|
590
564
|
/**
|
|
@@ -593,24 +567,21 @@ defineProps<{
|
|
|
593
567
|
title ? : string
|
|
594
568
|
/**
|
|
595
569
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
596
|
-
* ...
|
|
597
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tooltip)
|
|
570
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-tooltip)
|
|
598
571
|
*/
|
|
599
572
|
tooltip ? : string|TooltipConfig|null
|
|
600
573
|
/**
|
|
601
574
|
* The triggers to add either before or after the input field. Each property name is the reference by which
|
|
602
575
|
* an instantiated Trigger Widget may be retrieved from the live `triggers` property.
|
|
603
|
-
* ...
|
|
604
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-triggers)
|
|
576
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-triggers)
|
|
605
577
|
*/
|
|
606
|
-
triggers ? : Record<string, FieldTriggerConfig
|
|
578
|
+
triggers ? : Record<string, FieldTriggerConfig>
|
|
607
579
|
type ? : 'eventcolorfield'
|
|
608
580
|
/**
|
|
609
581
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
610
582
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
611
583
|
* values are used as the class names.
|
|
612
|
-
* ...
|
|
613
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ui)
|
|
584
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-ui)
|
|
614
585
|
*/
|
|
615
586
|
ui ? : string|object
|
|
616
587
|
/**
|
|
@@ -635,14 +606,12 @@ defineProps<{
|
|
|
635
606
|
width ? : string|number
|
|
636
607
|
/**
|
|
637
608
|
* The x position for the widget.
|
|
638
|
-
* ...
|
|
639
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-x)
|
|
609
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-x)
|
|
640
610
|
*/
|
|
641
611
|
x ? : number
|
|
642
612
|
/**
|
|
643
613
|
* The y position for the widget.
|
|
644
|
-
* ...
|
|
645
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-y)
|
|
614
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-y)
|
|
646
615
|
*/
|
|
647
616
|
y ? : number
|
|
648
617
|
|
|
@@ -653,124 +622,102 @@ const emit = defineEmits<{
|
|
|
653
622
|
* User performed default action (typed into this field).
|
|
654
623
|
* @param {string} e Event name
|
|
655
624
|
* @param {object} params Event parameters
|
|
656
|
-
* @param {
|
|
657
|
-
* @param {
|
|
658
|
-
* @param {
|
|
659
|
-
* @param {
|
|
660
|
-
* @param {
|
|
661
|
-
* @param {
|
|
662
|
-
* @param {
|
|
663
|
-
* @param {
|
|
664
|
-
* @param {
|
|
665
|
-
* @param {
|
|
666
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
667
|
-
* @param {boolean} params.params.event.checked
|
|
625
|
+
* @param {object} params.event Event object
|
|
626
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
627
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
628
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
629
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
630
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
631
|
+
* @param {Core.data.Model} params.event.record Selected record. Available for fields with records selection functionality
|
|
632
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array. Available for fields with records selection functionality
|
|
633
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
634
|
+
* @param {boolean} params.event.checked
|
|
668
635
|
*/
|
|
669
636
|
(e: 'action', params: ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, record: Model, records: Model[], userAction: boolean, checked: boolean }) => void)|string): void
|
|
670
637
|
/**
|
|
671
638
|
* Fires before an object is destroyed.
|
|
672
639
|
* @param {string} e Event name
|
|
673
640
|
* @param {object} params Event parameters
|
|
674
|
-
* @param {
|
|
675
|
-
* @param {
|
|
676
|
-
* @param {object} params.params.event Event object
|
|
677
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
641
|
+
* @param {object} params.event Event object
|
|
642
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
678
643
|
*/
|
|
679
644
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
680
645
|
/**
|
|
681
646
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
682
647
|
* @param {string} e Event name
|
|
683
648
|
* @param {object} params Event parameters
|
|
684
|
-
* @param {
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {object} params.params.event Event object
|
|
687
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
649
|
+
* @param {object} params.event Event object
|
|
650
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
688
651
|
*/
|
|
689
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
652
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
690
653
|
/**
|
|
691
654
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
692
655
|
* @param {string} e Event name
|
|
693
656
|
* @param {object} params Event parameters
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {object} params.params.event Event object
|
|
697
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
657
|
+
* @param {object} params.event Event object
|
|
658
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
698
659
|
*/
|
|
699
660
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
700
661
|
/**
|
|
701
662
|
* Fires when any other event is fired from the object.
|
|
702
|
-
* ...
|
|
703
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-catchAll)
|
|
663
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-catchAll)
|
|
704
664
|
* @param {string} e Event name
|
|
705
665
|
* @param {object} params Event parameters
|
|
706
|
-
* @param {
|
|
707
|
-
* @param {
|
|
708
|
-
* @param {
|
|
709
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
710
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
666
|
+
* @param {object} params.event Event object
|
|
667
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
668
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
711
669
|
*/
|
|
712
670
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
713
671
|
/**
|
|
714
672
|
* Fired when this field's value changes.
|
|
715
673
|
* @param {string} e Event name
|
|
716
674
|
* @param {object} params Event parameters
|
|
717
|
-
* @param {
|
|
718
|
-
* @param {
|
|
719
|
-
* @param {
|
|
720
|
-
* @param {
|
|
721
|
-
* @param {
|
|
722
|
-
* @param {
|
|
723
|
-
* @param {boolean} params.
|
|
724
|
-
* @param {
|
|
725
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
726
|
-
* @param {boolean} params.params.event.checked
|
|
675
|
+
* @param {object} params.event Event object
|
|
676
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
677
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
678
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
679
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
680
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
681
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
682
|
+
* @param {boolean} params.event.checked
|
|
727
683
|
*/
|
|
728
684
|
(e: 'change', params: ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string): void
|
|
729
685
|
/**
|
|
730
686
|
* Fired when this field is [cleared](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#function-clear).
|
|
731
|
-
* ...
|
|
732
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-clear)
|
|
687
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-clear)
|
|
733
688
|
* @param {string} e Event name
|
|
734
689
|
* @param {object} params Event parameters
|
|
735
|
-
* @param {
|
|
736
|
-
* @param {
|
|
737
|
-
* @param {object} params.params.event Event object
|
|
738
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
690
|
+
* @param {object} params.event Event object
|
|
691
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
739
692
|
*/
|
|
740
693
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
741
694
|
/**
|
|
742
695
|
* Fires when an object is destroyed.
|
|
743
696
|
* @param {string} e Event name
|
|
744
697
|
* @param {object} params Event parameters
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {
|
|
747
|
-
* @param {object} params.params.event Event object
|
|
748
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
698
|
+
* @param {object} params.event Event object
|
|
699
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
749
700
|
*/
|
|
750
701
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
751
702
|
/**
|
|
752
703
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
753
704
|
* @param {string} e Event name
|
|
754
705
|
* @param {object} params Event parameters
|
|
755
|
-
* @param {
|
|
756
|
-
* @param {
|
|
757
|
-
* @param {object} params.params.event Event object
|
|
758
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
706
|
+
* @param {object} params.event Event object
|
|
707
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
759
708
|
*/
|
|
760
709
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
761
710
|
/**
|
|
762
711
|
* Fired when focus enters this Widget.
|
|
763
712
|
* @param {string} e Event name
|
|
764
713
|
* @param {object} params Event parameters
|
|
765
|
-
* @param {
|
|
766
|
-
* @param {
|
|
767
|
-
* @param {
|
|
768
|
-
* @param {
|
|
769
|
-
* @param {
|
|
770
|
-
* @param {
|
|
771
|
-
* @param {
|
|
772
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
773
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
714
|
+
* @param {object} params.event Event object
|
|
715
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
716
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
717
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
718
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
719
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
720
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
774
721
|
*/
|
|
775
722
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
776
723
|
/**
|
|
@@ -779,61 +726,50 @@ const emit = defineEmits<{
|
|
|
779
726
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
780
727
|
* @param {string} e Event name
|
|
781
728
|
* @param {object} params Event parameters
|
|
782
|
-
* @param {
|
|
783
|
-
* @param {
|
|
784
|
-
* @param {
|
|
785
|
-
* @param {
|
|
786
|
-
* @param {
|
|
787
|
-
* @param {
|
|
788
|
-
* @param {
|
|
789
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
790
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
729
|
+
* @param {object} params.event Event object
|
|
730
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
731
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
732
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
733
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
734
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
735
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
791
736
|
*/
|
|
792
737
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
793
738
|
/**
|
|
794
739
|
* Triggered after a widget was hidden
|
|
795
740
|
* @param {string} e Event name
|
|
796
741
|
* @param {object} params Event parameters
|
|
797
|
-
* @param {
|
|
798
|
-
* @param {
|
|
799
|
-
* @param {object} params.params.event Event object
|
|
800
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
742
|
+
* @param {object} params.event Event object
|
|
743
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
801
744
|
*/
|
|
802
745
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
803
746
|
/**
|
|
804
747
|
* Fired when the user types into this field.
|
|
805
748
|
* @param {string} e Event name
|
|
806
749
|
* @param {object} params Event parameters
|
|
807
|
-
* @param {
|
|
808
|
-
* @param {
|
|
809
|
-
* @param {
|
|
810
|
-
* @param {
|
|
811
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
812
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
750
|
+
* @param {object} params.event Event object
|
|
751
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
752
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
753
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
813
754
|
*/
|
|
814
755
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
815
756
|
/**
|
|
816
757
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
817
758
|
* achieves visibility.
|
|
818
|
-
* ...
|
|
819
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-paint)
|
|
759
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-paint)
|
|
820
760
|
* @param {string} e Event name
|
|
821
761
|
* @param {object} params Event parameters
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {
|
|
825
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
826
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
762
|
+
* @param {object} params.event Event object
|
|
763
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
764
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
827
765
|
*/
|
|
828
766
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
829
767
|
/**
|
|
830
768
|
* Fired when a Widget's read only state is toggled
|
|
831
769
|
* @param {string} e Event name
|
|
832
770
|
* @param {object} params Event parameters
|
|
833
|
-
* @param {
|
|
834
|
-
* @param {
|
|
835
|
-
* @param {object} params.params.event Event object
|
|
836
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
771
|
+
* @param {object} params.event Event object
|
|
772
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
837
773
|
*/
|
|
838
774
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
839
775
|
/**
|
|
@@ -845,35 +781,29 @@ const emit = defineEmits<{
|
|
|
845
781
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
846
782
|
* @param {string} e Event name
|
|
847
783
|
* @param {object} params Event parameters
|
|
848
|
-
* @param {
|
|
849
|
-
* @param {
|
|
850
|
-
* @param {
|
|
851
|
-
* @param {
|
|
852
|
-
* @param {number} params.
|
|
853
|
-
* @param {number} params.
|
|
854
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
855
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
784
|
+
* @param {object} params.event Event object
|
|
785
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
786
|
+
* @param {number} params.event.width The new width
|
|
787
|
+
* @param {number} params.event.height The new height
|
|
788
|
+
* @param {number} params.event.oldWidth The old width
|
|
789
|
+
* @param {number} params.event.oldHeight The old height
|
|
856
790
|
*/
|
|
857
791
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
858
792
|
/**
|
|
859
793
|
* Triggered after a widget is shown.
|
|
860
794
|
* @param {string} e Event name
|
|
861
795
|
* @param {object} params Event parameters
|
|
862
|
-
* @param {
|
|
863
|
-
* @param {
|
|
864
|
-
* @param {object} params.params.event Event object
|
|
865
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
796
|
+
* @param {object} params.event Event object
|
|
797
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
866
798
|
*/
|
|
867
799
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
868
800
|
/**
|
|
869
801
|
* User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
|
|
870
802
|
* @param {string} e Event name
|
|
871
803
|
* @param {object} params Event parameters
|
|
872
|
-
* @param {
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
876
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
804
|
+
* @param {object} params.event Event object
|
|
805
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
806
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
877
807
|
*/
|
|
878
808
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
879
809
|
}>();
|
|
@@ -893,6 +823,7 @@ const widgetData = {
|
|
|
893
823
|
'autoSelect',
|
|
894
824
|
'bubbleEvents',
|
|
895
825
|
'centered',
|
|
826
|
+
'checkValidity',
|
|
896
827
|
'clearable',
|
|
897
828
|
'config',
|
|
898
829
|
'constrainTo',
|
|
@@ -938,6 +869,7 @@ const widgetData = {
|
|
|
938
869
|
'relayStoreEvents',
|
|
939
870
|
'revertOnEscape',
|
|
940
871
|
'ripple',
|
|
872
|
+
'role',
|
|
941
873
|
'rootElement',
|
|
942
874
|
'scrollAction',
|
|
943
875
|
'showAnimation',
|
|
@@ -1014,10 +946,8 @@ const widgetData = {
|
|
|
1014
946
|
'y'
|
|
1015
947
|
],
|
|
1016
948
|
propertyNames : [
|
|
1017
|
-
'anchorSize',
|
|
1018
949
|
'content',
|
|
1019
950
|
'editable',
|
|
1020
|
-
'focusVisible',
|
|
1021
951
|
'formula',
|
|
1022
952
|
'html',
|
|
1023
953
|
'input',
|