@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, Color, Combo,
|
|
13
|
+
import type { AlignSpec, Base, Color, Combo, Duration, DurationConfig, Field, KeyMapConfig, MaskConfig, Model, Rectangle, TabConfig, Widget } from '@bryntum/core-thin';
|
|
14
14
|
import type { TimelineBase, ViewPresetComboListeners } from '@bryntum/scheduler-thin';
|
|
15
15
|
import { ViewPresetCombo } from '@bryntum/scheduler-thin';
|
|
16
16
|
|
|
@@ -20,8 +20,7 @@ defineProps<{
|
|
|
20
20
|
// Configs
|
|
21
21
|
/**
|
|
22
22
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
23
|
-
* ...
|
|
24
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-align)
|
|
23
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-align)
|
|
25
24
|
*/
|
|
26
25
|
align ? : AlignSpec|string
|
|
27
26
|
/**
|
|
@@ -43,15 +42,13 @@ defineProps<{
|
|
|
43
42
|
/**
|
|
44
43
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
45
44
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
46
|
-
* ...
|
|
47
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ariaDescription)
|
|
45
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ariaDescription)
|
|
48
46
|
*/
|
|
49
47
|
ariaDescription ? : string
|
|
50
48
|
/**
|
|
51
49
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
52
50
|
* the `aria-label` attribute.
|
|
53
|
-
* ...
|
|
54
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ariaLabel)
|
|
51
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ariaLabel)
|
|
55
52
|
*/
|
|
56
53
|
ariaLabel ? : string
|
|
57
54
|
/**
|
|
@@ -61,27 +58,23 @@ defineProps<{
|
|
|
61
58
|
/**
|
|
62
59
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
63
60
|
* hierarchy when triggered.
|
|
64
|
-
* ...
|
|
65
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-bubbleEvents)
|
|
61
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-bubbleEvents)
|
|
66
62
|
*/
|
|
67
63
|
bubbleEvents ? : object
|
|
68
64
|
/**
|
|
69
65
|
* Enable caching of the last retrieved result until the timeout is reached.
|
|
70
|
-
* ...
|
|
71
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-cacheLastResult)
|
|
66
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-cacheLastResult)
|
|
72
67
|
*/
|
|
73
68
|
cacheLastResult ? : number|string|Duration|DurationConfig
|
|
74
69
|
/**
|
|
75
70
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
76
|
-
* ...
|
|
77
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-callOnFunctions)
|
|
71
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-callOnFunctions)
|
|
78
72
|
*/
|
|
79
73
|
callOnFunctions ? : Boolean
|
|
80
74
|
/**
|
|
81
75
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
82
76
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
83
|
-
* ...
|
|
84
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-catchEventHandlerExceptions)
|
|
77
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-catchEventHandlerExceptions)
|
|
85
78
|
*/
|
|
86
79
|
catchEventHandlerExceptions ? : Boolean
|
|
87
80
|
/**
|
|
@@ -89,6 +82,15 @@ defineProps<{
|
|
|
89
82
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
90
83
|
*/
|
|
91
84
|
centered ? : Boolean
|
|
85
|
+
/**
|
|
86
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
87
|
+
* 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)
|
|
88
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
89
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-checkValidity)
|
|
90
|
+
* @param {Core.widget.Field} field The field being validated
|
|
91
|
+
* @returns {void}
|
|
92
|
+
*/
|
|
93
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
92
94
|
/**
|
|
93
95
|
* Specify `false` to not clear value typed to a multiselect combo when an item is selected.
|
|
94
96
|
*/
|
|
@@ -106,15 +108,13 @@ defineProps<{
|
|
|
106
108
|
* Custom CSS classes to add to element.
|
|
107
109
|
* May be specified as a space separated string, or as an object in which property names
|
|
108
110
|
* with truthy values are used as the class names:
|
|
109
|
-
* ...
|
|
110
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-cls)
|
|
111
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-cls)
|
|
111
112
|
*/
|
|
112
113
|
cls ? : string|object
|
|
113
114
|
/**
|
|
114
115
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
115
116
|
* `style` block.
|
|
116
|
-
* ...
|
|
117
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-color)
|
|
117
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-color)
|
|
118
118
|
*/
|
|
119
119
|
color ? : Color
|
|
120
120
|
/**
|
|
@@ -131,8 +131,7 @@ defineProps<{
|
|
|
131
131
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
|
|
132
132
|
* May be specified as a space separated string, or as an object in which property names
|
|
133
133
|
* with truthy values are used as the class names:
|
|
134
|
-
* ...
|
|
135
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-contentElementCls)
|
|
134
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-contentElementCls)
|
|
136
135
|
*/
|
|
137
136
|
contentElementCls ? : string|object
|
|
138
137
|
/**
|
|
@@ -146,16 +145,15 @@ defineProps<{
|
|
|
146
145
|
*/
|
|
147
146
|
defaultBindProperty ? : string
|
|
148
147
|
/**
|
|
149
|
-
* Check for CSS compatibility issues
|
|
150
|
-
*
|
|
151
|
-
* [
|
|
148
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
149
|
+
* checks:
|
|
150
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-detectCSSCompatibilityIssues)
|
|
152
151
|
*/
|
|
153
152
|
detectCSSCompatibilityIssues ? : Boolean
|
|
154
153
|
/**
|
|
155
154
|
* 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
|
|
156
155
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
157
|
-
* ...
|
|
158
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-disabled)
|
|
156
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-disabled)
|
|
159
157
|
*/
|
|
160
158
|
disabled ? : Boolean|'inert'
|
|
161
159
|
/**
|
|
@@ -163,20 +161,17 @@ defineProps<{
|
|
|
163
161
|
* [strips collection](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
164
162
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
165
163
|
* body. Such widgets are called "edge strips".
|
|
166
|
-
* ...
|
|
167
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-dock)
|
|
164
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-dock)
|
|
168
165
|
*/
|
|
169
166
|
dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
170
167
|
/**
|
|
171
168
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
172
169
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
173
170
|
* property which controls when a drag should start.
|
|
174
|
-
* ...
|
|
175
|
-
*
|
|
171
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-draggable)
|
|
172
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
176
173
|
*/
|
|
177
|
-
draggable ? : Boolean|
|
|
178
|
-
handleSelector?: string
|
|
179
|
-
}
|
|
174
|
+
draggable ? : Boolean|object
|
|
180
175
|
/**
|
|
181
176
|
* User can edit text in text field (otherwise only pick from attached picker)
|
|
182
177
|
*/
|
|
@@ -184,8 +179,7 @@ defineProps<{
|
|
|
184
179
|
/**
|
|
185
180
|
* An object specifying attributes to assign to the root element of this widget.
|
|
186
181
|
* Set `null` value to attribute to remove it.
|
|
187
|
-
* ...
|
|
188
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-elementAttributes)
|
|
182
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-elementAttributes)
|
|
189
183
|
*/
|
|
190
184
|
elementAttributes ? : Record<string, string|null>
|
|
191
185
|
extraData ? : any
|
|
@@ -214,8 +208,7 @@ defineProps<{
|
|
|
214
208
|
hidden ? : Boolean
|
|
215
209
|
/**
|
|
216
210
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
217
|
-
* ...
|
|
218
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hideAnimation)
|
|
211
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hideAnimation)
|
|
219
212
|
*/
|
|
220
213
|
hideAnimation ? : Boolean|object
|
|
221
214
|
/**
|
|
@@ -227,8 +220,7 @@ defineProps<{
|
|
|
227
220
|
/**
|
|
228
221
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
229
222
|
* a field's units.
|
|
230
|
-
* ...
|
|
231
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hint)
|
|
223
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hint)
|
|
232
224
|
* @param {object} data A data object
|
|
233
225
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
234
226
|
* @param {any} data.value The current value of the field
|
|
@@ -239,8 +231,7 @@ defineProps<{
|
|
|
239
231
|
* 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.
|
|
240
232
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
241
233
|
* encode such data (see [encodeHtml](https://bryntum.com/products/scheduler/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
242
|
-
* ...
|
|
243
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hintHtml)
|
|
234
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-hintHtml)
|
|
244
235
|
* @param {object} data A data object
|
|
245
236
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
246
237
|
* @param {any} data.value The current value of the field
|
|
@@ -253,8 +244,7 @@ defineProps<{
|
|
|
253
244
|
id ? : string
|
|
254
245
|
/**
|
|
255
246
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
256
|
-
* ...
|
|
257
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ignoreParentReadOnly)
|
|
247
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ignoreParentReadOnly)
|
|
258
248
|
*/
|
|
259
249
|
ignoreParentReadOnly ? : Boolean
|
|
260
250
|
/**
|
|
@@ -290,8 +280,7 @@ defineProps<{
|
|
|
290
280
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
291
281
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
292
282
|
* are the name of the instance method to call when the keystroke is received.
|
|
293
|
-
* ...
|
|
294
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-keyMap)
|
|
283
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-keyMap)
|
|
295
284
|
*/
|
|
296
285
|
keyMap ? : Record<string, KeyMapConfig>
|
|
297
286
|
/**
|
|
@@ -304,15 +293,15 @@ defineProps<{
|
|
|
304
293
|
labelCls ? : string|object
|
|
305
294
|
/**
|
|
306
295
|
* Label position, either 'before' the field or 'above' the field
|
|
307
|
-
* ...
|
|
308
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-labelPosition)
|
|
296
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-labelPosition)
|
|
309
297
|
*/
|
|
310
298
|
labelPosition ? : 'before'|'above'|null
|
|
311
299
|
/**
|
|
312
300
|
* The labels to add either before or after the input field.
|
|
313
301
|
* Each label may have the following properties:
|
|
314
|
-
* ...
|
|
315
|
-
*
|
|
302
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-labels)
|
|
303
|
+
* @property {string} html Label text
|
|
304
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
316
305
|
*/
|
|
317
306
|
labels ? : object[]
|
|
318
307
|
/**
|
|
@@ -325,24 +314,21 @@ defineProps<{
|
|
|
325
314
|
listCls ? : string
|
|
326
315
|
/**
|
|
327
316
|
* The listener set for this object.
|
|
328
|
-
* ...
|
|
329
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-listeners)
|
|
317
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-listeners)
|
|
330
318
|
*/
|
|
331
319
|
listeners ? : ViewPresetComboListeners
|
|
332
320
|
/**
|
|
333
321
|
* Template string used to render the list items in the dropdown list
|
|
334
|
-
* ...
|
|
335
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-listItemTpl)
|
|
322
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-listItemTpl)
|
|
336
323
|
* @param {Core.data.Model} record The record representing the item being rendered
|
|
337
324
|
* @returns {string,void}
|
|
338
325
|
*/
|
|
339
|
-
listItemTpl ? : (record: Model
|
|
326
|
+
listItemTpl ? : (record: Model) => string|void
|
|
340
327
|
/**
|
|
341
328
|
* A class translations of which are used for translating this entity.
|
|
342
329
|
* This is often used when translations of an item are defined on its container class.
|
|
343
330
|
* For example:
|
|
344
|
-
* ...
|
|
345
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-localeClass)
|
|
331
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-localeClass)
|
|
346
332
|
*/
|
|
347
333
|
localeClass ? : typeof Base
|
|
348
334
|
/**
|
|
@@ -354,8 +340,7 @@ defineProps<{
|
|
|
354
340
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
355
341
|
* you could use 'localeKey' meta configuration.
|
|
356
342
|
* Example:
|
|
357
|
-
* ...
|
|
358
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-localizableProperties)
|
|
343
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-localizableProperties)
|
|
359
344
|
*/
|
|
360
345
|
localizableProperties ? : string[]
|
|
361
346
|
/**
|
|
@@ -381,8 +366,7 @@ defineProps<{
|
|
|
381
366
|
maxHeight ? : string|number
|
|
382
367
|
/**
|
|
383
368
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
384
|
-
* ...
|
|
385
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-maximizeOnMobile)
|
|
369
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-maximizeOnMobile)
|
|
386
370
|
*/
|
|
387
371
|
maximizeOnMobile ? : number|string
|
|
388
372
|
/**
|
|
@@ -404,18 +388,15 @@ defineProps<{
|
|
|
404
388
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
405
389
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
406
390
|
* layout.
|
|
407
|
-
* ...
|
|
408
|
-
*
|
|
391
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-monitorResize)
|
|
392
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
409
393
|
*/
|
|
410
|
-
monitorResize ? : Boolean|
|
|
411
|
-
immediate?: Boolean
|
|
412
|
-
}
|
|
394
|
+
monitorResize ? : Boolean|object
|
|
413
395
|
/**
|
|
414
396
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
415
397
|
* Used prior to [ref](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
416
398
|
* [Container.values](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-values).
|
|
417
|
-
* ...
|
|
418
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-name)
|
|
399
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-name)
|
|
419
400
|
*/
|
|
420
401
|
name ? : string
|
|
421
402
|
/**
|
|
@@ -431,8 +412,7 @@ defineProps<{
|
|
|
431
412
|
* 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
|
|
432
413
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
433
414
|
* widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
|
|
434
|
-
* ...
|
|
435
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-positioned)
|
|
415
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-positioned)
|
|
436
416
|
*/
|
|
437
417
|
positioned ? : Boolean
|
|
438
418
|
/**
|
|
@@ -450,38 +430,39 @@ defineProps<{
|
|
|
450
430
|
/**
|
|
451
431
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
452
432
|
* are unresponsive.
|
|
453
|
-
* ...
|
|
454
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-readOnly)
|
|
433
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-readOnly)
|
|
455
434
|
*/
|
|
456
435
|
readOnly ? : Boolean
|
|
457
436
|
relayStoreEvents ? : Boolean
|
|
458
437
|
/**
|
|
459
438
|
* Predefined style to use for the field. Possible values are:
|
|
460
|
-
* ...
|
|
461
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-rendition)
|
|
439
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-rendition)
|
|
462
440
|
*/
|
|
463
441
|
rendition ? : 'outlined'|'filled'|string
|
|
464
442
|
/**
|
|
465
443
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
466
444
|
* [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
|
|
467
445
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
468
|
-
* ...
|
|
469
|
-
* [
|
|
446
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ripple)
|
|
447
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
448
|
+
* @property {string} [color] A CSS color name or specification.
|
|
449
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
450
|
+
* @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.
|
|
451
|
+
*/
|
|
452
|
+
ripple ? : Boolean|object
|
|
453
|
+
/**
|
|
454
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
455
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
456
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-role)
|
|
470
457
|
*/
|
|
471
|
-
|
|
472
|
-
delegate?: string
|
|
473
|
-
color?: string
|
|
474
|
-
radius?: number
|
|
475
|
-
clip?: string
|
|
476
|
-
}
|
|
458
|
+
role ? : string
|
|
477
459
|
/**
|
|
478
460
|
* 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`
|
|
479
461
|
*/
|
|
480
462
|
rootElement ? : ShadowRoot|HTMLElement
|
|
481
463
|
/**
|
|
482
464
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
483
|
-
* ...
|
|
484
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-rtl)
|
|
465
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-rtl)
|
|
485
466
|
*/
|
|
486
467
|
rtl ? : Boolean
|
|
487
468
|
/**
|
|
@@ -491,8 +472,7 @@ defineProps<{
|
|
|
491
472
|
scrollAction ? : 'hide'|'realign'|null
|
|
492
473
|
/**
|
|
493
474
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
|
|
494
|
-
* ...
|
|
495
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-showAnimation)
|
|
475
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-showAnimation)
|
|
496
476
|
*/
|
|
497
477
|
showAnimation ? : Boolean|object
|
|
498
478
|
/**
|
|
@@ -516,8 +496,7 @@ defineProps<{
|
|
|
516
496
|
* 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
|
|
517
497
|
* [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
|
|
518
498
|
* this widget:
|
|
519
|
-
* ...
|
|
520
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-tab)
|
|
499
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-tab)
|
|
521
500
|
*/
|
|
522
501
|
tab ? : Boolean|TabConfig
|
|
523
502
|
/**
|
|
@@ -525,14 +504,12 @@ defineProps<{
|
|
|
525
504
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
526
505
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
527
506
|
* to the element programmatically.
|
|
528
|
-
* ...
|
|
529
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-tabIndex)
|
|
507
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-tabIndex)
|
|
530
508
|
*/
|
|
531
509
|
tabIndex ? : number
|
|
532
510
|
/**
|
|
533
511
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
534
|
-
* ...
|
|
535
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-textAlign)
|
|
512
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-textAlign)
|
|
536
513
|
*/
|
|
537
514
|
textAlign ? : 'left'|'center'|'right'|'start'|'end'
|
|
538
515
|
type ? : 'viewpresetcombo'
|
|
@@ -540,8 +517,7 @@ defineProps<{
|
|
|
540
517
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
541
518
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
542
519
|
* values are used as the class names.
|
|
543
|
-
* ...
|
|
544
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ui)
|
|
520
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-ui)
|
|
545
521
|
*/
|
|
546
522
|
ui ? : string|object
|
|
547
523
|
/**
|
|
@@ -551,8 +527,7 @@ defineProps<{
|
|
|
551
527
|
* [start](https://bryntum.com/products/scheduler/docs/api/Scheduler/preset/ViewPreset#field-start) configured, this will be added to the calculation. The
|
|
552
528
|
* `endDate` will then be calculated by adding the ViewPreset's
|
|
553
529
|
* [defaultSpan](https://bryntum.com/products/scheduler/docs/api/Scheduler/preset/ViewPreset#field-defaultSpan) to the `startDate`.
|
|
554
|
-
* ...
|
|
555
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-useFixedDuration)
|
|
530
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-useFixedDuration)
|
|
556
531
|
*/
|
|
557
532
|
useFixedDuration ? : Boolean
|
|
558
533
|
/**
|
|
@@ -568,14 +543,12 @@ defineProps<{
|
|
|
568
543
|
width ? : string|number
|
|
569
544
|
/**
|
|
570
545
|
* The x position for the widget.
|
|
571
|
-
* ...
|
|
572
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-x)
|
|
546
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-x)
|
|
573
547
|
*/
|
|
574
548
|
x ? : number
|
|
575
549
|
/**
|
|
576
550
|
* The y position for the widget.
|
|
577
|
-
* ...
|
|
578
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-y)
|
|
551
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#config-y)
|
|
579
552
|
*/
|
|
580
553
|
y ? : number
|
|
581
554
|
|
|
@@ -586,120 +559,98 @@ const emit = defineEmits<{
|
|
|
586
559
|
* The default action was performed (an item in the list was selected)
|
|
587
560
|
* @param {string} e Event name
|
|
588
561
|
* @param {object} params Event parameters
|
|
589
|
-
* @param {
|
|
590
|
-
* @param {
|
|
591
|
-
* @param {
|
|
592
|
-
* @param {Core.
|
|
593
|
-
* @param {
|
|
594
|
-
* @param {
|
|
595
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
596
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
562
|
+
* @param {object} params.event Event object
|
|
563
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
564
|
+
* @param {any} params.event.value The [value](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-valueField) of the selected record
|
|
565
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
566
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
567
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
597
568
|
*/
|
|
598
569
|
(e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
599
570
|
/**
|
|
600
571
|
* Fires before an object is destroyed.
|
|
601
572
|
* @param {string} e Event name
|
|
602
573
|
* @param {object} params Event parameters
|
|
603
|
-
* @param {
|
|
604
|
-
* @param {
|
|
605
|
-
* @param {object} params.params.event Event object
|
|
606
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
574
|
+
* @param {object} params.event Event object
|
|
575
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
607
576
|
*/
|
|
608
577
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
609
578
|
/**
|
|
610
579
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
611
580
|
* @param {string} e Event name
|
|
612
581
|
* @param {object} params Event parameters
|
|
613
|
-
* @param {
|
|
614
|
-
* @param {
|
|
615
|
-
* @param {object} params.params.event Event object
|
|
616
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
582
|
+
* @param {object} params.event Event object
|
|
583
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
617
584
|
*/
|
|
618
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
585
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
619
586
|
/**
|
|
620
587
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
621
588
|
* @param {string} e Event name
|
|
622
589
|
* @param {object} params Event parameters
|
|
623
|
-
* @param {
|
|
624
|
-
* @param {
|
|
625
|
-
* @param {object} params.params.event Event object
|
|
626
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
590
|
+
* @param {object} params.event Event object
|
|
591
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
627
592
|
*/
|
|
628
593
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
629
594
|
/**
|
|
630
595
|
* Fires when any other event is fired from the object.
|
|
631
|
-
* ...
|
|
632
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-catchAll)
|
|
596
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-catchAll)
|
|
633
597
|
* @param {string} e Event name
|
|
634
598
|
* @param {object} params Event parameters
|
|
635
|
-
* @param {
|
|
636
|
-
* @param {
|
|
637
|
-
* @param {
|
|
638
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
639
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
599
|
+
* @param {object} params.event Event object
|
|
600
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
601
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
640
602
|
*/
|
|
641
603
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
642
604
|
/**
|
|
643
605
|
* Fired when this field's value changes.
|
|
644
606
|
* @param {string} e Event name
|
|
645
607
|
* @param {object} params Event parameters
|
|
646
|
-
* @param {
|
|
647
|
-
* @param {
|
|
648
|
-
* @param {
|
|
649
|
-
* @param {
|
|
650
|
-
* @param {
|
|
651
|
-
* @param {
|
|
652
|
-
* @param {boolean} params.
|
|
653
|
-
* @param {
|
|
654
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
655
|
-
* @param {boolean} params.params.event.checked
|
|
608
|
+
* @param {object} params.event Event object
|
|
609
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
610
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
611
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
612
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
613
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
614
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
615
|
+
* @param {boolean} params.event.checked
|
|
656
616
|
*/
|
|
657
617
|
(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
|
|
658
618
|
/**
|
|
659
619
|
* Fired when this field is [cleared](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#function-clear).
|
|
660
|
-
* ...
|
|
661
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-clear)
|
|
620
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-clear)
|
|
662
621
|
* @param {string} e Event name
|
|
663
622
|
* @param {object} params Event parameters
|
|
664
|
-
* @param {
|
|
665
|
-
* @param {
|
|
666
|
-
* @param {object} params.params.event Event object
|
|
667
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
623
|
+
* @param {object} params.event Event object
|
|
624
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
668
625
|
*/
|
|
669
626
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
670
627
|
/**
|
|
671
628
|
* Fires when an object is destroyed.
|
|
672
629
|
* @param {string} e Event name
|
|
673
630
|
* @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.
|
|
631
|
+
* @param {object} params.event Event object
|
|
632
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
678
633
|
*/
|
|
679
634
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
680
635
|
/**
|
|
681
636
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
682
637
|
* @param {string} e Event name
|
|
683
638
|
* @param {object} params Event parameters
|
|
684
|
-
* @param {
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {object} params.params.event Event object
|
|
687
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
639
|
+
* @param {object} params.event Event object
|
|
640
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
688
641
|
*/
|
|
689
642
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
690
643
|
/**
|
|
691
644
|
* Fired when focus enters this Widget.
|
|
692
645
|
* @param {string} e Event name
|
|
693
646
|
* @param {object} params Event parameters
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {
|
|
697
|
-
* @param {
|
|
698
|
-
* @param {
|
|
699
|
-
* @param {
|
|
700
|
-
* @param {
|
|
701
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
702
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
647
|
+
* @param {object} params.event Event object
|
|
648
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
649
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
650
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
651
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
652
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
653
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
703
654
|
*/
|
|
704
655
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
705
656
|
/**
|
|
@@ -708,49 +659,40 @@ const emit = defineEmits<{
|
|
|
708
659
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
709
660
|
* @param {string} e Event name
|
|
710
661
|
* @param {object} params Event parameters
|
|
711
|
-
* @param {
|
|
712
|
-
* @param {
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {
|
|
715
|
-
* @param {
|
|
716
|
-
* @param {
|
|
717
|
-
* @param {
|
|
718
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
719
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
662
|
+
* @param {object} params.event Event object
|
|
663
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
664
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
665
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
666
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
667
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
668
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
720
669
|
*/
|
|
721
670
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
722
671
|
/**
|
|
723
672
|
* Triggered after a widget was hidden
|
|
724
673
|
* @param {string} e Event name
|
|
725
674
|
* @param {object} params Event parameters
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {object} params.params.event Event object
|
|
729
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
675
|
+
* @param {object} params.event Event object
|
|
676
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
730
677
|
*/
|
|
731
678
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
732
679
|
/**
|
|
733
680
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
734
681
|
* achieves visibility.
|
|
735
|
-
* ...
|
|
736
|
-
* [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-paint)
|
|
682
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ViewPresetCombo#event-paint)
|
|
737
683
|
* @param {string} e Event name
|
|
738
684
|
* @param {object} params Event parameters
|
|
739
|
-
* @param {
|
|
740
|
-
* @param {
|
|
741
|
-
* @param {
|
|
742
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
743
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
685
|
+
* @param {object} params.event Event object
|
|
686
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
687
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
744
688
|
*/
|
|
745
689
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
746
690
|
/**
|
|
747
691
|
* Fired when a Widget's read only state is toggled
|
|
748
692
|
* @param {string} e Event name
|
|
749
693
|
* @param {object} params Event parameters
|
|
750
|
-
* @param {
|
|
751
|
-
* @param {
|
|
752
|
-
* @param {object} params.params.event Event object
|
|
753
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
694
|
+
* @param {object} params.event Event object
|
|
695
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
754
696
|
*/
|
|
755
697
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
756
698
|
/**
|
|
@@ -762,48 +704,40 @@ const emit = defineEmits<{
|
|
|
762
704
|
* 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`*.
|
|
763
705
|
* @param {string} e Event name
|
|
764
706
|
* @param {object} params Event parameters
|
|
765
|
-
* @param {
|
|
766
|
-
* @param {
|
|
767
|
-
* @param {
|
|
768
|
-
* @param {
|
|
769
|
-
* @param {number} params.
|
|
770
|
-
* @param {number} params.
|
|
771
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
772
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
707
|
+
* @param {object} params.event Event object
|
|
708
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
709
|
+
* @param {number} params.event.width The new width
|
|
710
|
+
* @param {number} params.event.height The new height
|
|
711
|
+
* @param {number} params.event.oldWidth The old width
|
|
712
|
+
* @param {number} params.event.oldHeight The old height
|
|
773
713
|
*/
|
|
774
714
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
775
715
|
/**
|
|
776
716
|
* An item in the list was selected
|
|
777
717
|
* @param {string} e Event name
|
|
778
718
|
* @param {object} params Event parameters
|
|
779
|
-
* @param {
|
|
780
|
-
* @param {
|
|
781
|
-
* @param {
|
|
782
|
-
* @param {Core.
|
|
783
|
-
* @param {
|
|
784
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
785
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
719
|
+
* @param {object} params.event Event object
|
|
720
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
721
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
722
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
723
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
786
724
|
*/
|
|
787
725
|
(e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
788
726
|
/**
|
|
789
727
|
* Triggered after a widget is shown.
|
|
790
728
|
* @param {string} e Event name
|
|
791
729
|
* @param {object} params Event parameters
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {
|
|
794
|
-
* @param {object} params.params.event Event object
|
|
795
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
730
|
+
* @param {object} params.event Event object
|
|
731
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
796
732
|
*/
|
|
797
733
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
798
734
|
/**
|
|
799
735
|
* User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
|
|
800
736
|
* @param {string} e Event name
|
|
801
737
|
* @param {object} params Event parameters
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
806
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
738
|
+
* @param {object} params.event Event object
|
|
739
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
740
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
807
741
|
*/
|
|
808
742
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
809
743
|
}>();
|
|
@@ -820,6 +754,7 @@ const widgetData = {
|
|
|
820
754
|
'bubbleEvents',
|
|
821
755
|
'cacheLastResult',
|
|
822
756
|
'centered',
|
|
757
|
+
'checkValidity',
|
|
823
758
|
'clearTextOnSelection',
|
|
824
759
|
'clearWhenInputEmpty',
|
|
825
760
|
'client',
|
|
@@ -864,6 +799,7 @@ const widgetData = {
|
|
|
864
799
|
'preventTooltipOnTouch',
|
|
865
800
|
'relayStoreEvents',
|
|
866
801
|
'ripple',
|
|
802
|
+
'role',
|
|
867
803
|
'rootElement',
|
|
868
804
|
'scrollAction',
|
|
869
805
|
'showAnimation',
|
|
@@ -931,8 +867,6 @@ const widgetData = {
|
|
|
931
867
|
'y'
|
|
932
868
|
],
|
|
933
869
|
propertyNames : [
|
|
934
|
-
'anchorSize',
|
|
935
|
-
'focusVisible',
|
|
936
870
|
'formula',
|
|
937
871
|
'input',
|
|
938
872
|
'multiSelect',
|