@bryntum/schedulerpro-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 +9 -9
- package/lib/chunks/{BhUeT19h.js → 7vz3cAx6.js} +9 -7
- package/lib/chunks/7vz3cAx6.js.map +1 -0
- package/lib/chunks/{9jfNe_y3.js → B1SaPsRu.js} +16 -8
- package/lib/chunks/B1SaPsRu.js.map +1 -0
- package/lib/chunks/{D4JDuI0s.js → B4dVznPx.js} +1 -8
- package/lib/chunks/B4dVznPx.js.map +1 -0
- package/lib/chunks/{DwzPrR90.js → B8GKehTJ.js} +10 -8
- package/lib/chunks/B8GKehTJ.js.map +1 -0
- package/lib/chunks/{C41opZKx.js → BhXv58eE.js} +23 -14
- package/lib/chunks/BhXv58eE.js.map +1 -0
- package/lib/chunks/{Dz-up1_i.js → BhfdqXGU.js} +10 -8
- package/lib/chunks/BhfdqXGU.js.map +1 -0
- package/lib/chunks/{CJFZbm_i.js → Bk2bIVfG.js} +25 -13
- package/lib/chunks/Bk2bIVfG.js.map +1 -0
- package/lib/chunks/{DlNFp5e-.js → C1vi1h_N.js} +13 -11
- package/lib/chunks/C1vi1h_N.js.map +1 -0
- package/lib/chunks/{DYBe70El.js → CEQZr1q6.js} +20 -11
- package/lib/chunks/CEQZr1q6.js.map +1 -0
- package/lib/chunks/{BTT_cGQU.js → CPjow0gO.js} +8 -9
- package/lib/chunks/CPjow0gO.js.map +1 -0
- package/lib/chunks/{BRGc8bUJ.js → Cb_akueu.js} +16 -13
- package/lib/chunks/Cb_akueu.js.map +1 -0
- package/lib/chunks/{BJPdcix1.js → Cc_DPp3S.js} +8 -6
- package/lib/chunks/Cc_DPp3S.js.map +1 -0
- package/lib/chunks/{BjTPjWi9.js → Cr5VTUbs.js} +10 -8
- package/lib/chunks/Cr5VTUbs.js.map +1 -0
- package/lib/chunks/{j8JzZ-07.js → D-hmgVVF.js} +13 -11
- package/lib/chunks/D-hmgVVF.js.map +1 -0
- package/lib/chunks/{BpAvqwr_.js → D-v-Wqj4.js} +25 -13
- package/lib/chunks/D-v-Wqj4.js.map +1 -0
- package/lib/chunks/{BbI7XKMd.js → D0hJ3P6L.js} +5 -3
- package/lib/chunks/D0hJ3P6L.js.map +1 -0
- package/lib/chunks/{CGbW6pgm.js → DPA-xEW5.js} +8 -9
- package/lib/chunks/DPA-xEW5.js.map +1 -0
- package/lib/chunks/{CuODT2-U.js → XQWZfDOm.js} +7 -5
- package/lib/chunks/XQWZfDOm.js.map +1 -0
- package/lib/chunks/{MOjUZ-Rj.js → eKXSEOkn.js} +7 -5
- package/lib/chunks/eKXSEOkn.js.map +1 -0
- package/lib/chunks/{DGV7a5Xo.js → edcDjaO2.js} +7 -5
- package/lib/chunks/edcDjaO2.js.map +1 -0
- package/lib/chunks/{BO8FwQoh.js → n2IZFQjR.js} +10 -8
- package/lib/chunks/n2IZFQjR.js.map +1 -0
- package/lib/chunks/{M0cBUV91.js → zY4Qxi9x.js} +8 -6
- package/lib/chunks/zY4Qxi9x.js.map +1 -0
- package/lib/components/BryntumCalendarEditor.js +1 -1
- package/lib/components/BryntumCalendarField.js +1 -1
- package/lib/components/BryntumConstraintTypePicker.js +1 -1
- package/lib/components/BryntumCostAccrualField.js +1 -1
- package/lib/components/BryntumDependencyTypePicker.js +1 -1
- package/lib/components/BryntumEffortField.js +1 -1
- package/lib/components/BryntumEndDateField.js +1 -1
- package/lib/components/BryntumModelCombo.js +1 -1
- package/lib/components/BryntumRateTableField.js +1 -1
- package/lib/components/BryntumResourceEditor.js +1 -1
- package/lib/components/BryntumResourceGrid.js +1 -1
- package/lib/components/BryntumResourceHistogram.js +1 -1
- package/lib/components/BryntumResourceTypeField.js +1 -1
- package/lib/components/BryntumResourceUtilization.js +1 -1
- package/lib/components/BryntumSchedulerPro.js +1 -1
- package/lib/components/BryntumSchedulerProBase.js +1 -1
- package/lib/components/BryntumSchedulerProProjectModel.js +1 -1
- package/lib/components/BryntumSchedulingDirectionPicker.js +1 -1
- package/lib/components/BryntumSchedulingModePicker.js +1 -1
- package/lib/components/BryntumStartDateField.js +1 -1
- package/lib/components/BryntumThemeCombo.js +57 -0
- package/lib/components/BryntumThemeCombo.js.map +1 -0
- package/lib/components/BryntumTimeline.js +1 -1
- package/lib/components/BryntumVersionGrid.js +1 -1
- package/lib/index.js +22 -22
- package/package.json +1 -1
- package/src/components/BryntumCalendarEditor.vue +191 -292
- package/src/components/BryntumCalendarEditorProps.ts +123 -177
- package/src/components/BryntumCalendarField.vue +172 -260
- package/src/components/BryntumCalendarFieldProps.ts +96 -143
- package/src/components/BryntumConstraintTypePicker.vue +172 -260
- package/src/components/BryntumConstraintTypePickerProps.ts +96 -143
- package/src/components/BryntumCostAccrualField.vue +172 -260
- package/src/components/BryntumCostAccrualFieldProps.ts +96 -143
- package/src/components/BryntumDependencyTypePicker.vue +172 -260
- package/src/components/BryntumDependencyTypePickerProps.ts +96 -143
- package/src/components/BryntumEffortField.vue +153 -224
- package/src/components/BryntumEffortFieldProps.ts +82 -114
- package/src/components/BryntumEndDateField.vue +159 -228
- package/src/components/BryntumEndDateFieldProps.ts +84 -114
- package/src/components/BryntumModelCombo.vue +172 -260
- package/src/components/BryntumModelComboProps.ts +96 -143
- package/src/components/BryntumRateTableField.vue +172 -260
- package/src/components/BryntumRateTableFieldProps.ts +96 -143
- package/src/components/BryntumResourceEditor.vue +190 -290
- package/src/components/BryntumResourceEditorProps.ts +122 -175
- package/src/components/BryntumResourceGrid.vue +730 -1045
- package/src/components/BryntumResourceGridProps.ts +192 -263
- package/src/components/BryntumResourceHistogram.vue +1098 -1539
- package/src/components/BryntumResourceHistogramProps.ts +292 -402
- package/src/components/BryntumResourceTypeField.vue +172 -260
- package/src/components/BryntumResourceTypeFieldProps.ts +96 -143
- package/src/components/BryntumResourceUtilization.vue +1114 -1561
- package/src/components/BryntumResourceUtilizationProps.ts +293 -404
- package/src/components/BryntumSchedulerPro.vue +2099 -2820
- package/src/components/BryntumSchedulerProBase.vue +2099 -2820
- package/src/components/BryntumSchedulerProBaseProps.ts +413 -556
- package/src/components/BryntumSchedulerProProjectModel.vue +192 -289
- package/src/components/BryntumSchedulerProProjectModelProps.ts +59 -88
- package/src/components/BryntumSchedulerProProps.ts +413 -556
- package/src/components/BryntumSchedulingDirectionPicker.vue +172 -260
- package/src/components/BryntumSchedulingDirectionPickerProps.ts +96 -143
- package/src/components/BryntumSchedulingModePicker.vue +173 -262
- package/src/components/BryntumSchedulingModePickerProps.ts +97 -145
- package/src/components/BryntumStartDateField.vue +161 -232
- package/src/components/BryntumStartDateFieldProps.ts +86 -118
- package/src/components/BryntumThemeCombo.vue +60 -0
- package/src/components/BryntumTimeline.vue +1846 -2517
- package/src/components/BryntumTimelineProps.ts +371 -519
- package/src/components/BryntumVersionGrid.vue +727 -1050
- package/src/components/BryntumVersionGridProps.ts +186 -261
- package/lib/chunks/9jfNe_y3.js.map +0 -1
- package/lib/chunks/BJPdcix1.js.map +0 -1
- package/lib/chunks/BO8FwQoh.js.map +0 -1
- package/lib/chunks/BRGc8bUJ.js.map +0 -1
- package/lib/chunks/BTT_cGQU.js.map +0 -1
- package/lib/chunks/BbI7XKMd.js.map +0 -1
- package/lib/chunks/BhUeT19h.js.map +0 -1
- package/lib/chunks/BjTPjWi9.js.map +0 -1
- package/lib/chunks/BpAvqwr_.js.map +0 -1
- package/lib/chunks/C41opZKx.js.map +0 -1
- package/lib/chunks/CGbW6pgm.js.map +0 -1
- package/lib/chunks/CJFZbm_i.js.map +0 -1
- package/lib/chunks/CuODT2-U.js.map +0 -1
- package/lib/chunks/D4JDuI0s.js.map +0 -1
- package/lib/chunks/DGV7a5Xo.js.map +0 -1
- package/lib/chunks/DYBe70El.js.map +0 -1
- package/lib/chunks/DlNFp5e-.js.map +0 -1
- package/lib/chunks/DwzPrR90.js.map +0 -1
- package/lib/chunks/Dz-up1_i.js.map +0 -1
- package/lib/chunks/M0cBUV91.js.map +0 -1
- package/lib/chunks/MOjUZ-Rj.js.map +0 -1
- package/lib/chunks/j8JzZ-07.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, Duration, DurationConfig, DurationField, DurationUnit, Field,
|
|
13
|
+
import type { AlignSpec, Base, Color, Duration, DurationConfig, DurationField, DurationUnit, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, TabConfig, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
14
14
|
import type { SchedulerProContainerItemConfig, EffortFieldListeners } from '@bryntum/schedulerpro-thin';
|
|
15
15
|
import { EffortField } from '@bryntum/schedulerpro-thin';
|
|
16
16
|
|
|
@@ -21,14 +21,12 @@ defineProps<{
|
|
|
21
21
|
/**
|
|
22
22
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
23
23
|
* content will be placed inside this element.
|
|
24
|
-
* ...
|
|
25
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-adopt)
|
|
24
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-adopt)
|
|
26
25
|
*/
|
|
27
26
|
adopt ? : HTMLElement|string
|
|
28
27
|
/**
|
|
29
28
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
|
|
30
|
-
* ...
|
|
31
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-align)
|
|
29
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-align)
|
|
32
30
|
*/
|
|
33
31
|
align ? : AlignSpec|string
|
|
34
32
|
/**
|
|
@@ -59,15 +57,13 @@ defineProps<{
|
|
|
59
57
|
/**
|
|
60
58
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
61
59
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
62
|
-
* ...
|
|
63
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ariaDescription)
|
|
60
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ariaDescription)
|
|
64
61
|
*/
|
|
65
62
|
ariaDescription ? : string
|
|
66
63
|
/**
|
|
67
64
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
68
65
|
* the `aria-label` attribute.
|
|
69
|
-
* ...
|
|
70
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ariaLabel)
|
|
66
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ariaLabel)
|
|
71
67
|
*/
|
|
72
68
|
ariaLabel ? : string
|
|
73
69
|
/**
|
|
@@ -86,21 +82,18 @@ defineProps<{
|
|
|
86
82
|
/**
|
|
87
83
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
88
84
|
* hierarchy when triggered.
|
|
89
|
-
* ...
|
|
90
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-bubbleEvents)
|
|
85
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-bubbleEvents)
|
|
91
86
|
*/
|
|
92
87
|
bubbleEvents ? : object
|
|
93
88
|
/**
|
|
94
89
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
95
|
-
* ...
|
|
96
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-callOnFunctions)
|
|
90
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-callOnFunctions)
|
|
97
91
|
*/
|
|
98
92
|
callOnFunctions ? : Boolean
|
|
99
93
|
/**
|
|
100
94
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
101
95
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
102
|
-
* ...
|
|
103
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-catchEventHandlerExceptions)
|
|
96
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-catchEventHandlerExceptions)
|
|
104
97
|
*/
|
|
105
98
|
catchEventHandlerExceptions ? : Boolean
|
|
106
99
|
/**
|
|
@@ -108,6 +101,15 @@ defineProps<{
|
|
|
108
101
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
109
102
|
*/
|
|
110
103
|
centered ? : Boolean
|
|
104
|
+
/**
|
|
105
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
106
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-isValid)
|
|
107
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
108
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-checkValidity)
|
|
109
|
+
* @param {Core.widget.Field} field The field being validated
|
|
110
|
+
* @returns {void}
|
|
111
|
+
*/
|
|
112
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
111
113
|
/**
|
|
112
114
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
113
115
|
* in the [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -118,15 +120,13 @@ defineProps<{
|
|
|
118
120
|
* Custom CSS classes to add to element.
|
|
119
121
|
* May be specified as a space separated string, or as an object in which property names
|
|
120
122
|
* with truthy values are used as the class names:
|
|
121
|
-
* ...
|
|
122
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-cls)
|
|
123
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-cls)
|
|
123
124
|
*/
|
|
124
125
|
cls ? : string|object
|
|
125
126
|
/**
|
|
126
127
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
127
128
|
* `style` block.
|
|
128
|
-
* ...
|
|
129
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-color)
|
|
129
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-color)
|
|
130
130
|
*/
|
|
131
131
|
color ? : Color
|
|
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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-container)
|
|
146
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-container)
|
|
148
147
|
*/
|
|
149
|
-
container ? : Record<string, SchedulerProContainerItemConfig>|SchedulerProContainerItemConfig[]|FieldContainerConfig
|
|
148
|
+
container ? : Record<string, SchedulerProContainerItemConfig>|SchedulerProContainerItemConfig[]|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/schedulerpro/docs/api/Core/widget/Container#property-values).
|
|
153
|
-
* ...
|
|
154
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-containValues)
|
|
152
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-contentElementCls)
|
|
161
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-contentElementCls)
|
|
165
162
|
*/
|
|
166
163
|
contentElementCls ? : string|object
|
|
167
164
|
/**
|
|
@@ -183,16 +180,15 @@ defineProps<{
|
|
|
183
180
|
*/
|
|
184
181
|
defaultBindProperty ? : string
|
|
185
182
|
/**
|
|
186
|
-
* Check for CSS compatibility issues
|
|
187
|
-
*
|
|
188
|
-
* [
|
|
183
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
184
|
+
* checks:
|
|
185
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-detectCSSCompatibilityIssues)
|
|
189
186
|
*/
|
|
190
187
|
detectCSSCompatibilityIssues ? : Boolean
|
|
191
188
|
/**
|
|
192
189
|
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
193
190
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
194
|
-
* ...
|
|
195
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-disabled)
|
|
191
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-disabled)
|
|
196
192
|
*/
|
|
197
193
|
disabled ? : Boolean|'inert'
|
|
198
194
|
/**
|
|
@@ -200,33 +196,28 @@ defineProps<{
|
|
|
200
196
|
* [strips collection](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
201
197
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
202
198
|
* body. Such widgets are called "edge strips".
|
|
203
|
-
* ...
|
|
204
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-dock)
|
|
199
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-dock)
|
|
205
200
|
*/
|
|
206
201
|
dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
207
202
|
/**
|
|
208
203
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
|
|
209
204
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
210
205
|
* property which controls when a drag should start.
|
|
211
|
-
* ...
|
|
212
|
-
*
|
|
206
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-draggable)
|
|
207
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
213
208
|
*/
|
|
214
|
-
draggable ? : Boolean|
|
|
215
|
-
handleSelector?: string
|
|
216
|
-
}
|
|
209
|
+
draggable ? : Boolean|object
|
|
217
210
|
/**
|
|
218
211
|
* Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
|
|
219
212
|
* [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), but for PickerFields there is a distinction where it allows you to pick a value
|
|
220
213
|
* but not to type one in the field.
|
|
221
|
-
* ...
|
|
222
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-editable)
|
|
214
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-editable)
|
|
223
215
|
*/
|
|
224
216
|
editable ? : Boolean
|
|
225
217
|
/**
|
|
226
218
|
* An object specifying attributes to assign to the root element of this widget.
|
|
227
219
|
* Set `null` value to attribute to remove it.
|
|
228
|
-
* ...
|
|
229
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-elementAttributes)
|
|
220
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-elementAttributes)
|
|
230
221
|
*/
|
|
231
222
|
elementAttributes ? : Record<string, string|null>
|
|
232
223
|
extraData ? : any
|
|
@@ -255,8 +246,7 @@ defineProps<{
|
|
|
255
246
|
hidden ? : Boolean
|
|
256
247
|
/**
|
|
257
248
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
|
|
258
|
-
* ...
|
|
259
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hideAnimation)
|
|
249
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hideAnimation)
|
|
260
250
|
*/
|
|
261
251
|
hideAnimation ? : Boolean|object
|
|
262
252
|
/**
|
|
@@ -266,8 +256,7 @@ defineProps<{
|
|
|
266
256
|
/**
|
|
267
257
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
268
258
|
* a field's units.
|
|
269
|
-
* ...
|
|
270
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hint)
|
|
259
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hint)
|
|
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
|
|
@@ -278,8 +267,7 @@ defineProps<{
|
|
|
278
267
|
* This config is similar to [hint](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
|
|
279
268
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
280
269
|
* encode such data (see [encodeHtml](https://bryntum.com/products/schedulerpro/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
281
|
-
* ...
|
|
282
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hintHtml)
|
|
270
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hintHtml)
|
|
283
271
|
* @param {object} data A data object
|
|
284
272
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
285
273
|
* @param {any} data.value The current value of the field
|
|
@@ -292,16 +280,14 @@ defineProps<{
|
|
|
292
280
|
id ? : string
|
|
293
281
|
/**
|
|
294
282
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
295
|
-
* ...
|
|
296
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ignoreParentReadOnly)
|
|
283
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ignoreParentReadOnly)
|
|
297
284
|
*/
|
|
298
285
|
ignoreParentReadOnly ? : Boolean
|
|
299
286
|
/**
|
|
300
287
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
301
288
|
* [hbox](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
302
289
|
* [container](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-container).
|
|
303
|
-
* ...
|
|
304
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-inline)
|
|
290
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-inline)
|
|
305
291
|
*/
|
|
306
292
|
inline ? : Boolean
|
|
307
293
|
/**
|
|
@@ -341,16 +327,14 @@ defineProps<{
|
|
|
341
327
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
342
328
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
343
329
|
* are the name of the instance method to call when the keystroke is received.
|
|
344
|
-
* ...
|
|
345
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-keyMap)
|
|
330
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-keyMap)
|
|
346
331
|
*/
|
|
347
332
|
keyMap ? : Record<string, KeyMapConfig>
|
|
348
333
|
/**
|
|
349
334
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
350
335
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
351
336
|
* immediate feedback, change will still be triggered on blur).
|
|
352
|
-
* ...
|
|
353
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-keyStrokeChangeDelay)
|
|
337
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-keyStrokeChangeDelay)
|
|
354
338
|
*/
|
|
355
339
|
keyStrokeChangeDelay ? : number
|
|
356
340
|
/**
|
|
@@ -363,15 +347,15 @@ defineProps<{
|
|
|
363
347
|
labelCls ? : string|object
|
|
364
348
|
/**
|
|
365
349
|
* Label position, either 'before' the field or 'above' the field
|
|
366
|
-
* ...
|
|
367
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-labelPosition)
|
|
350
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-labelPosition)
|
|
368
351
|
*/
|
|
369
352
|
labelPosition ? : 'before'|'above'|null
|
|
370
353
|
/**
|
|
371
354
|
* The labels to add either before or after the input field.
|
|
372
355
|
* Each label may have the following properties:
|
|
373
|
-
* ...
|
|
374
|
-
*
|
|
356
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-labels)
|
|
357
|
+
* @property {string} html Label text
|
|
358
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
375
359
|
*/
|
|
376
360
|
labels ? : object[]
|
|
377
361
|
/**
|
|
@@ -380,16 +364,14 @@ defineProps<{
|
|
|
380
364
|
labelWidth ? : string|number
|
|
381
365
|
/**
|
|
382
366
|
* The listener set for this object.
|
|
383
|
-
* ...
|
|
384
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-listeners)
|
|
367
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-listeners)
|
|
385
368
|
*/
|
|
386
369
|
listeners ? : EffortFieldListeners
|
|
387
370
|
/**
|
|
388
371
|
* A class translations of which are used for translating this entity.
|
|
389
372
|
* This is often used when translations of an item are defined on its container class.
|
|
390
373
|
* For example:
|
|
391
|
-
* ...
|
|
392
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localeClass)
|
|
374
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localeClass)
|
|
393
375
|
*/
|
|
394
376
|
localeClass ? : typeof Base
|
|
395
377
|
/**
|
|
@@ -401,8 +383,7 @@ defineProps<{
|
|
|
401
383
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
402
384
|
* you could use 'localeKey' meta configuration.
|
|
403
385
|
* Example:
|
|
404
|
-
* ...
|
|
405
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localizableProperties)
|
|
386
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localizableProperties)
|
|
406
387
|
*/
|
|
407
388
|
localizableProperties ? : string[]
|
|
408
389
|
/**
|
|
@@ -437,8 +418,7 @@ defineProps<{
|
|
|
437
418
|
maxHeight ? : string|number
|
|
438
419
|
/**
|
|
439
420
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
|
|
440
|
-
* ...
|
|
441
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-maximizeOnMobile)
|
|
421
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-maximizeOnMobile)
|
|
442
422
|
*/
|
|
443
423
|
maximizeOnMobile ? : number|string
|
|
444
424
|
/**
|
|
@@ -472,18 +452,15 @@ defineProps<{
|
|
|
472
452
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
473
453
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
474
454
|
* layout.
|
|
475
|
-
* ...
|
|
476
|
-
*
|
|
455
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-monitorResize)
|
|
456
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
477
457
|
*/
|
|
478
|
-
monitorResize ? : Boolean|
|
|
479
|
-
immediate?: Boolean
|
|
480
|
-
}
|
|
458
|
+
monitorResize ? : Boolean|object
|
|
481
459
|
/**
|
|
482
460
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
483
461
|
* Used prior to [ref](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
484
462
|
* [Container.values](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container#property-values).
|
|
485
|
-
* ...
|
|
486
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-name)
|
|
463
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-name)
|
|
487
464
|
*/
|
|
488
465
|
name ? : string
|
|
489
466
|
/**
|
|
@@ -494,8 +471,7 @@ defineProps<{
|
|
|
494
471
|
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
495
472
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
496
473
|
* widget's [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement).
|
|
497
|
-
* ...
|
|
498
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-positioned)
|
|
474
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-positioned)
|
|
499
475
|
*/
|
|
500
476
|
positioned ? : Boolean
|
|
501
477
|
/**
|
|
@@ -506,15 +482,13 @@ defineProps<{
|
|
|
506
482
|
/**
|
|
507
483
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
508
484
|
* are unresponsive.
|
|
509
|
-
* ...
|
|
510
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-readOnly)
|
|
485
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-readOnly)
|
|
511
486
|
*/
|
|
512
487
|
readOnly ? : Boolean
|
|
513
488
|
relayStoreEvents ? : Boolean
|
|
514
489
|
/**
|
|
515
490
|
* Predefined style to use for the field. Possible values are:
|
|
516
|
-
* ...
|
|
517
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rendition)
|
|
491
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rendition)
|
|
518
492
|
*/
|
|
519
493
|
rendition ? : 'outlined'|'filled'|string
|
|
520
494
|
/**
|
|
@@ -533,23 +507,26 @@ defineProps<{
|
|
|
533
507
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
534
508
|
* [focusElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
535
509
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
536
|
-
* ...
|
|
537
|
-
* [
|
|
510
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ripple)
|
|
511
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
512
|
+
* @property {string} [color] A CSS color name or specification.
|
|
513
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
514
|
+
* @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.
|
|
515
|
+
*/
|
|
516
|
+
ripple ? : Boolean|object
|
|
517
|
+
/**
|
|
518
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
519
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
520
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-role)
|
|
538
521
|
*/
|
|
539
|
-
|
|
540
|
-
delegate?: string
|
|
541
|
-
color?: string
|
|
542
|
-
radius?: number
|
|
543
|
-
clip?: string
|
|
544
|
-
}
|
|
522
|
+
role ? : string
|
|
545
523
|
/**
|
|
546
524
|
* 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`
|
|
547
525
|
*/
|
|
548
526
|
rootElement ? : ShadowRoot|HTMLElement
|
|
549
527
|
/**
|
|
550
528
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
551
|
-
* ...
|
|
552
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rtl)
|
|
529
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rtl)
|
|
553
530
|
*/
|
|
554
531
|
rtl ? : Boolean
|
|
555
532
|
/**
|
|
@@ -559,8 +536,7 @@ defineProps<{
|
|
|
559
536
|
scrollAction ? : 'hide'|'realign'|null
|
|
560
537
|
/**
|
|
561
538
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
|
|
562
|
-
* ...
|
|
563
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-showAnimation)
|
|
539
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-showAnimation)
|
|
564
540
|
*/
|
|
565
541
|
showAnimation ? : Boolean|object
|
|
566
542
|
/**
|
|
@@ -588,16 +564,14 @@ defineProps<{
|
|
|
588
564
|
/**
|
|
589
565
|
* Step size for spin button clicks. The `step` property may be set in object form specifying two properties,
|
|
590
566
|
* `magnitude`, a Number, and `unit`, a String.
|
|
591
|
-
* ...
|
|
592
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-step)
|
|
567
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-step)
|
|
593
568
|
*/
|
|
594
569
|
step ? : DurationConfig|number|string
|
|
595
570
|
/**
|
|
596
571
|
* A configuration for the [tab](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
597
572
|
* [TabPanel](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
598
573
|
* this widget:
|
|
599
|
-
* ...
|
|
600
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tab)
|
|
574
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tab)
|
|
601
575
|
*/
|
|
602
576
|
tab ? : Boolean|TabConfig
|
|
603
577
|
/**
|
|
@@ -605,14 +579,12 @@ defineProps<{
|
|
|
605
579
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
606
580
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
607
581
|
* to the element programmatically.
|
|
608
|
-
* ...
|
|
609
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tabIndex)
|
|
582
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tabIndex)
|
|
610
583
|
*/
|
|
611
584
|
tabIndex ? : number
|
|
612
585
|
/**
|
|
613
586
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
614
|
-
* ...
|
|
615
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-textAlign)
|
|
587
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-textAlign)
|
|
616
588
|
*/
|
|
617
589
|
textAlign ? : 'left'|'center'|'right'|'start'|'end'
|
|
618
590
|
/**
|
|
@@ -621,28 +593,27 @@ defineProps<{
|
|
|
621
593
|
title ? : string
|
|
622
594
|
/**
|
|
623
595
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
624
|
-
* ...
|
|
625
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tooltip)
|
|
596
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tooltip)
|
|
626
597
|
*/
|
|
627
598
|
tooltip ? : string|TooltipConfig|null
|
|
628
599
|
/**
|
|
629
600
|
* Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget) instance
|
|
630
601
|
* which may be hidden, shown and observed and styled just like any other widget.
|
|
602
|
+
* @property {FieldTriggerConfig} triggers.spin Shows up and down arrows to increase or decrease the field value based on the [step](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DurationField#config-step)
|
|
603
|
+
* @property {FieldTriggerConfig} triggers.clear Clears the field value, only available if this field is [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DurationField#config-clearable)
|
|
631
604
|
*/
|
|
632
|
-
triggers ? : Record<string, FieldTriggerConfig
|
|
605
|
+
triggers ? : Record<string, FieldTriggerConfig>
|
|
633
606
|
type ? : 'effort'|'effortfield'
|
|
634
607
|
/**
|
|
635
608
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
636
609
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
637
610
|
* values are used as the class names.
|
|
638
|
-
* ...
|
|
639
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ui)
|
|
611
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ui)
|
|
640
612
|
*/
|
|
641
613
|
ui ? : string|object
|
|
642
614
|
/**
|
|
643
615
|
* The duration unit to use with the current magnitude value.
|
|
644
|
-
* ...
|
|
645
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-unit)
|
|
616
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-unit)
|
|
646
617
|
*/
|
|
647
618
|
unit ? : DurationUnit
|
|
648
619
|
/**
|
|
@@ -659,8 +630,7 @@ defineProps<{
|
|
|
659
630
|
/**
|
|
660
631
|
* The `value` may be set either in object form specifying two properties, a numerical `magnitude` and a
|
|
661
632
|
* string `unit`:
|
|
662
|
-
* ...
|
|
663
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-value)
|
|
633
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-value)
|
|
664
634
|
*/
|
|
665
635
|
value ? : string|number|DurationConfig|Duration
|
|
666
636
|
/**
|
|
@@ -676,14 +646,12 @@ defineProps<{
|
|
|
676
646
|
width ? : string|number
|
|
677
647
|
/**
|
|
678
648
|
* The x position for the widget.
|
|
679
|
-
* ...
|
|
680
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-x)
|
|
649
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-x)
|
|
681
650
|
*/
|
|
682
651
|
x ? : number
|
|
683
652
|
/**
|
|
684
653
|
* The y position for the widget.
|
|
685
|
-
* ...
|
|
686
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-y)
|
|
654
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-y)
|
|
687
655
|
*/
|
|
688
656
|
y ? : number
|
|
689
657
|
|
|
@@ -694,120 +662,98 @@ const emit = defineEmits<{
|
|
|
694
662
|
* User performed the default action (typed into this field or hit the triggers).
|
|
695
663
|
* @param {string} e Event name
|
|
696
664
|
* @param {object} params Event parameters
|
|
697
|
-
* @param {
|
|
698
|
-
* @param {
|
|
699
|
-
* @param {
|
|
700
|
-
* @param {
|
|
701
|
-
* @param {
|
|
702
|
-
* @param {boolean} params.
|
|
703
|
-
* @param {
|
|
704
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
705
|
-
* @param {Core.widget.DurationField} params.params.event.source This field
|
|
665
|
+
* @param {object} params.event Event object
|
|
666
|
+
* @param {Core.data.Duration} params.event.value This field's value
|
|
667
|
+
* @param {Core.data.Duration} params.event.oldValue This field's previous value
|
|
668
|
+
* @param {boolean} params.event.valid True if this field is in a valid state.
|
|
669
|
+
* @param {Event} [params.event.event] The triggering DOM event if any.
|
|
670
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
671
|
+
* @param {Core.widget.DurationField} params.event.source This field
|
|
706
672
|
*/
|
|
707
673
|
(e: 'action', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
|
|
708
674
|
/**
|
|
709
675
|
* Fires before an object is destroyed.
|
|
710
676
|
* @param {string} e Event name
|
|
711
677
|
* @param {object} params Event parameters
|
|
712
|
-
* @param {
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {object} params.params.event Event object
|
|
715
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
678
|
+
* @param {object} params.event Event object
|
|
679
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
716
680
|
*/
|
|
717
681
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
718
682
|
/**
|
|
719
683
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
720
684
|
* @param {string} e Event name
|
|
721
685
|
* @param {object} params Event parameters
|
|
722
|
-
* @param {
|
|
723
|
-
* @param {
|
|
724
|
-
* @param {object} params.params.event Event object
|
|
725
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
686
|
+
* @param {object} params.event Event object
|
|
687
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
726
688
|
*/
|
|
727
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
689
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
728
690
|
/**
|
|
729
691
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
730
692
|
* @param {string} e Event name
|
|
731
693
|
* @param {object} params Event parameters
|
|
732
|
-
* @param {
|
|
733
|
-
* @param {
|
|
734
|
-
* @param {object} params.params.event Event object
|
|
735
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
694
|
+
* @param {object} params.event Event object
|
|
695
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
736
696
|
*/
|
|
737
697
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
738
698
|
/**
|
|
739
699
|
* Fires when any other event is fired from the object.
|
|
740
|
-
* ...
|
|
741
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-catchAll)
|
|
700
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-catchAll)
|
|
742
701
|
* @param {string} e Event name
|
|
743
702
|
* @param {object} params Event parameters
|
|
744
|
-
* @param {
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {
|
|
747
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
748
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
703
|
+
* @param {object} params.event Event object
|
|
704
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
705
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
749
706
|
*/
|
|
750
707
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
751
708
|
/**
|
|
752
709
|
* Fired when this field's value changes.
|
|
753
710
|
* @param {string} e Event name
|
|
754
711
|
* @param {object} params Event parameters
|
|
755
|
-
* @param {
|
|
756
|
-
* @param {
|
|
757
|
-
* @param {
|
|
758
|
-
* @param {
|
|
759
|
-
* @param {
|
|
760
|
-
* @param {boolean} params.
|
|
761
|
-
* @param {
|
|
762
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
763
|
-
* @param {Core.widget.DurationField} params.params.event.source This field
|
|
712
|
+
* @param {object} params.event Event object
|
|
713
|
+
* @param {Core.data.Duration} params.event.value This field's value
|
|
714
|
+
* @param {Core.data.Duration} params.event.oldValue This field's previous value
|
|
715
|
+
* @param {boolean} params.event.valid True if this field is in a valid state.
|
|
716
|
+
* @param {Event} [params.event.event] The triggering DOM event if any.
|
|
717
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
718
|
+
* @param {Core.widget.DurationField} params.event.source This field
|
|
764
719
|
*/
|
|
765
720
|
(e: 'change', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
|
|
766
721
|
/**
|
|
767
722
|
* Fired when this field is [cleared](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#function-clear).
|
|
768
|
-
* ...
|
|
769
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-clear)
|
|
723
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-clear)
|
|
770
724
|
* @param {string} e Event name
|
|
771
725
|
* @param {object} params Event parameters
|
|
772
|
-
* @param {
|
|
773
|
-
* @param {
|
|
774
|
-
* @param {object} params.params.event Event object
|
|
775
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
726
|
+
* @param {object} params.event Event object
|
|
727
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
776
728
|
*/
|
|
777
729
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
778
730
|
/**
|
|
779
731
|
* Fires when an object is destroyed.
|
|
780
732
|
* @param {string} e Event name
|
|
781
733
|
* @param {object} params Event parameters
|
|
782
|
-
* @param {
|
|
783
|
-
* @param {
|
|
784
|
-
* @param {object} params.params.event Event object
|
|
785
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
734
|
+
* @param {object} params.event Event object
|
|
735
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
786
736
|
*/
|
|
787
737
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
788
738
|
/**
|
|
789
739
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
790
740
|
* @param {string} e Event name
|
|
791
741
|
* @param {object} params Event parameters
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {
|
|
794
|
-
* @param {object} params.params.event Event object
|
|
795
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
742
|
+
* @param {object} params.event Event object
|
|
743
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
796
744
|
*/
|
|
797
745
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
798
746
|
/**
|
|
799
747
|
* Fired when focus enters this Widget.
|
|
800
748
|
* @param {string} e Event name
|
|
801
749
|
* @param {object} params Event parameters
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {
|
|
806
|
-
* @param {
|
|
807
|
-
* @param {
|
|
808
|
-
* @param {
|
|
809
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
810
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
750
|
+
* @param {object} params.event Event object
|
|
751
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
752
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
753
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
754
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
755
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
756
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
811
757
|
*/
|
|
812
758
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
813
759
|
/**
|
|
@@ -816,61 +762,50 @@ const emit = defineEmits<{
|
|
|
816
762
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
817
763
|
* @param {string} e Event name
|
|
818
764
|
* @param {object} params Event parameters
|
|
819
|
-
* @param {
|
|
820
|
-
* @param {
|
|
821
|
-
* @param {
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {
|
|
825
|
-
* @param {
|
|
826
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
827
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
765
|
+
* @param {object} params.event Event object
|
|
766
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
767
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
768
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
769
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
770
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
771
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
828
772
|
*/
|
|
829
773
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
830
774
|
/**
|
|
831
775
|
* Triggered after a widget was hidden
|
|
832
776
|
* @param {string} e Event name
|
|
833
777
|
* @param {object} params Event parameters
|
|
834
|
-
* @param {
|
|
835
|
-
* @param {
|
|
836
|
-
* @param {object} params.params.event Event object
|
|
837
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
778
|
+
* @param {object} params.event Event object
|
|
779
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
838
780
|
*/
|
|
839
781
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
840
782
|
/**
|
|
841
783
|
* Fired when the user types into this field.
|
|
842
784
|
* @param {string} e Event name
|
|
843
785
|
* @param {object} params Event parameters
|
|
844
|
-
* @param {
|
|
845
|
-
* @param {
|
|
846
|
-
* @param {
|
|
847
|
-
* @param {
|
|
848
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
849
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
786
|
+
* @param {object} params.event Event object
|
|
787
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
788
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
789
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
850
790
|
*/
|
|
851
791
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
852
792
|
/**
|
|
853
793
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
854
794
|
* achieves visibility.
|
|
855
|
-
* ...
|
|
856
|
-
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-paint)
|
|
795
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-paint)
|
|
857
796
|
* @param {string} e Event name
|
|
858
797
|
* @param {object} params Event parameters
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {
|
|
861
|
-
* @param {
|
|
862
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
863
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
798
|
+
* @param {object} params.event Event object
|
|
799
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
800
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
864
801
|
*/
|
|
865
802
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
866
803
|
/**
|
|
867
804
|
* Fired when a Widget's read only state is toggled
|
|
868
805
|
* @param {string} e Event name
|
|
869
806
|
* @param {object} params Event parameters
|
|
870
|
-
* @param {
|
|
871
|
-
* @param {
|
|
872
|
-
* @param {object} params.params.event Event object
|
|
873
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
807
|
+
* @param {object} params.event Event object
|
|
808
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
874
809
|
*/
|
|
875
810
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
876
811
|
/**
|
|
@@ -882,35 +817,29 @@ const emit = defineEmits<{
|
|
|
882
817
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
883
818
|
* @param {string} e Event name
|
|
884
819
|
* @param {object} params Event parameters
|
|
885
|
-
* @param {
|
|
886
|
-
* @param {
|
|
887
|
-
* @param {
|
|
888
|
-
* @param {
|
|
889
|
-
* @param {number} params.
|
|
890
|
-
* @param {number} params.
|
|
891
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
892
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
820
|
+
* @param {object} params.event Event object
|
|
821
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
822
|
+
* @param {number} params.event.width The new width
|
|
823
|
+
* @param {number} params.event.height The new height
|
|
824
|
+
* @param {number} params.event.oldWidth The old width
|
|
825
|
+
* @param {number} params.event.oldHeight The old height
|
|
893
826
|
*/
|
|
894
827
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
895
828
|
/**
|
|
896
829
|
* Triggered after a widget is shown.
|
|
897
830
|
* @param {string} e Event name
|
|
898
831
|
* @param {object} params Event parameters
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {
|
|
901
|
-
* @param {object} params.params.event Event object
|
|
902
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
832
|
+
* @param {object} params.event Event object
|
|
833
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
903
834
|
*/
|
|
904
835
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
905
836
|
/**
|
|
906
837
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
907
838
|
* @param {string} e Event name
|
|
908
839
|
* @param {object} params Event parameters
|
|
909
|
-
* @param {
|
|
910
|
-
* @param {
|
|
911
|
-
* @param {
|
|
912
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
913
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
840
|
+
* @param {object} params.event Event object
|
|
841
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
842
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
914
843
|
*/
|
|
915
844
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
916
845
|
}>();
|
|
@@ -930,6 +859,7 @@ const widgetData = {
|
|
|
930
859
|
'autoSelect',
|
|
931
860
|
'bubbleEvents',
|
|
932
861
|
'centered',
|
|
862
|
+
'checkValidity',
|
|
933
863
|
'clearable',
|
|
934
864
|
'color',
|
|
935
865
|
'config',
|
|
@@ -976,6 +906,7 @@ const widgetData = {
|
|
|
976
906
|
'relayStoreEvents',
|
|
977
907
|
'revertOnEscape',
|
|
978
908
|
'ripple',
|
|
909
|
+
'role',
|
|
979
910
|
'rootElement',
|
|
980
911
|
'scrollAction',
|
|
981
912
|
'showAnimation',
|
|
@@ -1058,9 +989,7 @@ const widgetData = {
|
|
|
1058
989
|
'y'
|
|
1059
990
|
],
|
|
1060
991
|
propertyNames : [
|
|
1061
|
-
'anchorSize',
|
|
1062
992
|
'content',
|
|
1063
|
-
'focusVisible',
|
|
1064
993
|
'formula',
|
|
1065
994
|
'html',
|
|
1066
995
|
'input',
|