@bryntum/schedulerpro-vue-3-thin 7.1.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.
Files changed (144) hide show
  1. package/README.md +53 -0
  2. package/lib/chunks/B12rdbvL.js +380 -0
  3. package/lib/chunks/B12rdbvL.js.map +1 -0
  4. package/lib/chunks/BBN-5eeI.js +380 -0
  5. package/lib/chunks/BBN-5eeI.js.map +1 -0
  6. package/lib/chunks/BaiH7rub.js +591 -0
  7. package/lib/chunks/BaiH7rub.js.map +1 -0
  8. package/lib/chunks/BrUxjEMx.js +380 -0
  9. package/lib/chunks/BrUxjEMx.js.map +1 -0
  10. package/lib/chunks/BtVT0xgl.js +344 -0
  11. package/lib/chunks/BtVT0xgl.js.map +1 -0
  12. package/lib/chunks/C0N8aq7Y.js +340 -0
  13. package/lib/chunks/C0N8aq7Y.js.map +1 -0
  14. package/lib/chunks/C9qY739P.js +380 -0
  15. package/lib/chunks/C9qY739P.js.map +1 -0
  16. package/lib/chunks/CB9cdxRl.js +935 -0
  17. package/lib/chunks/CB9cdxRl.js.map +1 -0
  18. package/lib/chunks/CDbPwyl3.js +326 -0
  19. package/lib/chunks/CDbPwyl3.js.map +1 -0
  20. package/lib/chunks/Ct_m9O9h.js +380 -0
  21. package/lib/chunks/Ct_m9O9h.js.map +1 -0
  22. package/lib/chunks/D45V9XRN.js +308 -0
  23. package/lib/chunks/D45V9XRN.js.map +1 -0
  24. package/lib/chunks/D6AiSClA.js +1139 -0
  25. package/lib/chunks/D6AiSClA.js.map +1 -0
  26. package/lib/chunks/DQYJMaQ_.js +350 -0
  27. package/lib/chunks/DQYJMaQ_.js.map +1 -0
  28. package/lib/chunks/DT6XYs9d.js +1356 -0
  29. package/lib/chunks/DT6XYs9d.js.map +1 -0
  30. package/lib/chunks/DgESZupU.js +380 -0
  31. package/lib/chunks/DgESZupU.js.map +1 -0
  32. package/lib/chunks/DvFm-5Hh.js +382 -0
  33. package/lib/chunks/DvFm-5Hh.js.map +1 -0
  34. package/lib/chunks/DzO9n33e.js +939 -0
  35. package/lib/chunks/DzO9n33e.js.map +1 -0
  36. package/lib/chunks/H51_wkdg.js +1358 -0
  37. package/lib/chunks/H51_wkdg.js.map +1 -0
  38. package/lib/chunks/ggN9GDPJ.js +384 -0
  39. package/lib/chunks/ggN9GDPJ.js.map +1 -0
  40. package/lib/chunks/qKNUUeE0.js +380 -0
  41. package/lib/chunks/qKNUUeE0.js.map +1 -0
  42. package/lib/chunks/xk_S9thL.js +578 -0
  43. package/lib/chunks/xk_S9thL.js.map +1 -0
  44. package/lib/chunks/yCHi3rZC.js +336 -0
  45. package/lib/chunks/yCHi3rZC.js.map +1 -0
  46. package/lib/components/BryntumCalendarEditor.js +5 -0
  47. package/lib/components/BryntumCalendarEditor.js.map +1 -0
  48. package/lib/components/BryntumCalendarField.js +5 -0
  49. package/lib/components/BryntumCalendarField.js.map +1 -0
  50. package/lib/components/BryntumConstraintTypePicker.js +5 -0
  51. package/lib/components/BryntumConstraintTypePicker.js.map +1 -0
  52. package/lib/components/BryntumCostAccrualField.js +5 -0
  53. package/lib/components/BryntumCostAccrualField.js.map +1 -0
  54. package/lib/components/BryntumDependencyTypePicker.js +5 -0
  55. package/lib/components/BryntumDependencyTypePicker.js.map +1 -0
  56. package/lib/components/BryntumEffortField.js +5 -0
  57. package/lib/components/BryntumEffortField.js.map +1 -0
  58. package/lib/components/BryntumEndDateField.js +5 -0
  59. package/lib/components/BryntumEndDateField.js.map +1 -0
  60. package/lib/components/BryntumModelCombo.js +5 -0
  61. package/lib/components/BryntumModelCombo.js.map +1 -0
  62. package/lib/components/BryntumRateTableField.js +5 -0
  63. package/lib/components/BryntumRateTableField.js.map +1 -0
  64. package/lib/components/BryntumResourceEditor.js +5 -0
  65. package/lib/components/BryntumResourceEditor.js.map +1 -0
  66. package/lib/components/BryntumResourceGrid.js +5 -0
  67. package/lib/components/BryntumResourceGrid.js.map +1 -0
  68. package/lib/components/BryntumResourceHistogram.js +5 -0
  69. package/lib/components/BryntumResourceHistogram.js.map +1 -0
  70. package/lib/components/BryntumResourceTypeField.js +5 -0
  71. package/lib/components/BryntumResourceTypeField.js.map +1 -0
  72. package/lib/components/BryntumResourceUtilization.js +5 -0
  73. package/lib/components/BryntumResourceUtilization.js.map +1 -0
  74. package/lib/components/BryntumSchedulerPro.js +5 -0
  75. package/lib/components/BryntumSchedulerPro.js.map +1 -0
  76. package/lib/components/BryntumSchedulerProBase.js +5 -0
  77. package/lib/components/BryntumSchedulerProBase.js.map +1 -0
  78. package/lib/components/BryntumSchedulerProProjectModel.js +5 -0
  79. package/lib/components/BryntumSchedulerProProjectModel.js.map +1 -0
  80. package/lib/components/BryntumSchedulingDirectionPicker.js +5 -0
  81. package/lib/components/BryntumSchedulingDirectionPicker.js.map +1 -0
  82. package/lib/components/BryntumSchedulingModePicker.js +5 -0
  83. package/lib/components/BryntumSchedulingModePicker.js.map +1 -0
  84. package/lib/components/BryntumStartDateField.js +5 -0
  85. package/lib/components/BryntumStartDateField.js.map +1 -0
  86. package/lib/components/BryntumTimeline.js +5 -0
  87. package/lib/components/BryntumTimeline.js.map +1 -0
  88. package/lib/components/BryntumVersionGrid.js +5 -0
  89. package/lib/components/BryntumVersionGrid.js.map +1 -0
  90. package/lib/helper/WrapperHelper.js +291 -0
  91. package/lib/helper/WrapperHelper.js.map +1 -0
  92. package/lib/index.d.ts +5 -0
  93. package/lib/index.js +47 -0
  94. package/lib/index.js.map +1 -0
  95. package/license.pdf +0 -0
  96. package/licenses.md +310 -0
  97. package/package.json +27 -0
  98. package/src/components/BryntumCalendarEditor.vue +1268 -0
  99. package/src/components/BryntumCalendarEditorProps.ts +776 -0
  100. package/src/components/BryntumCalendarField.vue +1350 -0
  101. package/src/components/BryntumCalendarFieldProps.ts +849 -0
  102. package/src/components/BryntumConstraintTypePicker.vue +1337 -0
  103. package/src/components/BryntumConstraintTypePickerProps.ts +838 -0
  104. package/src/components/BryntumCostAccrualField.vue +1337 -0
  105. package/src/components/BryntumCostAccrualFieldProps.ts +838 -0
  106. package/src/components/BryntumDependencyTypePicker.vue +1337 -0
  107. package/src/components/BryntumDependencyTypePickerProps.ts +838 -0
  108. package/src/components/BryntumEffortField.vue +1140 -0
  109. package/src/components/BryntumEffortFieldProps.ts +683 -0
  110. package/src/components/BryntumEndDateField.vue +1167 -0
  111. package/src/components/BryntumEndDateFieldProps.ts +701 -0
  112. package/src/components/BryntumModelCombo.vue +1337 -0
  113. package/src/components/BryntumModelComboProps.ts +838 -0
  114. package/src/components/BryntumRateTableField.vue +1337 -0
  115. package/src/components/BryntumRateTableFieldProps.ts +838 -0
  116. package/src/components/BryntumResourceEditor.vue +1247 -0
  117. package/src/components/BryntumResourceEditorProps.ts +758 -0
  118. package/src/components/BryntumResourceGrid.vue +2924 -0
  119. package/src/components/BryntumResourceGridProps.ts +1040 -0
  120. package/src/components/BryntumResourceHistogram.vue +4495 -0
  121. package/src/components/BryntumResourceHistogramProps.ts +1697 -0
  122. package/src/components/BryntumResourceTypeField.vue +1337 -0
  123. package/src/components/BryntumResourceTypeFieldProps.ts +838 -0
  124. package/src/components/BryntumResourceUtilization.vue +4525 -0
  125. package/src/components/BryntumResourceUtilizationProps.ts +1683 -0
  126. package/src/components/BryntumSchedulerPro.vue +7153 -0
  127. package/src/components/BryntumSchedulerProBase.vue +7151 -0
  128. package/src/components/BryntumSchedulerProBaseProps.ts +2169 -0
  129. package/src/components/BryntumSchedulerProProjectModel.vue +1192 -0
  130. package/src/components/BryntumSchedulerProProjectModelProps.ts +597 -0
  131. package/src/components/BryntumSchedulerProProps.ts +2170 -0
  132. package/src/components/BryntumSchedulingDirectionPicker.vue +1337 -0
  133. package/src/components/BryntumSchedulingDirectionPickerProps.ts +838 -0
  134. package/src/components/BryntumSchedulingModePicker.vue +1345 -0
  135. package/src/components/BryntumSchedulingModePickerProps.ts +845 -0
  136. package/src/components/BryntumStartDateField.vue +1185 -0
  137. package/src/components/BryntumStartDateFieldProps.ts +717 -0
  138. package/src/components/BryntumTimeline.vue +6311 -0
  139. package/src/components/BryntumTimelineProps.ts +2041 -0
  140. package/src/components/BryntumVersionGrid.vue +2970 -0
  141. package/src/components/BryntumVersionGridProps.ts +1053 -0
  142. package/src/helper/WrapperHelper.ts +573 -0
  143. package/src/index.ts +48 -0
  144. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,1140 @@
1
+ <!-- Vue 3 wrapper for Bryntum EffortField -->
2
+
3
+ <template>
4
+ <div ref="refElement">
5
+
6
+ </div>
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+
11
+ import { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';
12
+
13
+ import type { AlignSpec, Base, Duration, DurationConfig, DurationField, DurationUnit, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, TabConfig, TooltipConfig, Widget } from '@bryntum/core-thin';
14
+ import type { SchedulerProContainerItemConfig, EffortFieldListeners } from '@bryntum/schedulerpro-thin';
15
+ import { EffortField } from '@bryntum/schedulerpro-thin';
16
+
17
+ import { WrapperHelper } from '../helper/WrapperHelper';
18
+
19
+ defineProps<{
20
+ // Configs
21
+ /**
22
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
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)
26
+ */
27
+ adopt ? : HTMLElement|string
28
+ /**
29
+ * *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)
32
+ */
33
+ align ? : AlignSpec|string
34
+ /**
35
+ * When this widget is a child of a [Container](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container), it will by default be participating in a
36
+ * flexbox layout. This config allows you to set this widget's
37
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
38
+ */
39
+ alignSelf ? : string
40
+ /**
41
+ * Comma-separated list of units to allow in this field, e.g. "day,hour,year". Leave blank to allow all
42
+ * valid units (the default)
43
+ */
44
+ allowedUnits ? : string
45
+ /**
46
+ * Set to `true` to allow negative duration
47
+ */
48
+ allowNegative ? : Boolean
49
+ /**
50
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
51
+ * `true` to show a connector arrow pointing to the align target.
52
+ */
53
+ anchor ? : Boolean
54
+ /**
55
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
56
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element).
57
+ */
58
+ appendTo ? : HTMLElement|string
59
+ /**
60
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
61
+ * 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)
64
+ */
65
+ ariaDescription ? : string
66
+ /**
67
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
68
+ * the `aria-label` attribute.
69
+ * ...
70
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ariaLabel)
71
+ */
72
+ ariaLabel ? : string
73
+ /**
74
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
75
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
76
+ */
77
+ autoComplete ? : string
78
+ /**
79
+ * Specify `true` to auto select field contents on focus
80
+ */
81
+ autoSelect ? : Boolean
82
+ /**
83
+ * Initial text to show in badge.
84
+ */
85
+ badge ? : string
86
+ /**
87
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
88
+ * hierarchy when triggered.
89
+ * ...
90
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-bubbleEvents)
91
+ */
92
+ bubbleEvents ? : object
93
+ /**
94
+ * 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)
97
+ */
98
+ callOnFunctions ? : Boolean
99
+ /**
100
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
101
+ * 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)
104
+ */
105
+ catchEventHandlerExceptions ? : Boolean
106
+ /**
107
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
108
+ * Set to `true` to centre the Widget in browser viewport space.
109
+ */
110
+ centered ? : Boolean
111
+ /**
112
+ * 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
+ * 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
114
+ * configures the `clear` [trigger](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers).
115
+ */
116
+ clearable ? : Boolean|FieldTriggerConfig
117
+ /**
118
+ * Custom CSS classes to add to element.
119
+ * May be specified as a space separated string, or as an object in which property names
120
+ * 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
+ */
124
+ cls ? : string|object
125
+ /**
126
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
127
+ * `style` block.
128
+ * ...
129
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-color)
130
+ */
131
+ color ? : string
132
+ /**
133
+ * Programmatic control over which column to start in when used in a grid layout.
134
+ */
135
+ column ? : number
136
+ config ? : object
137
+ /**
138
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
139
+ * Element, Widget or Rectangle to which this Widget is constrained.
140
+ */
141
+ constrainTo ? : HTMLElement|Widget|Rectangle
142
+ /**
143
+ * The configuration for additional items associated to this field. This is typically used to add contextual
144
+ * fields related to a [checkbox](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
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)
148
+ */
149
+ container ? : Record<string, SchedulerProContainerItemConfig>|SchedulerProContainerItemConfig[]|FieldContainerConfig|FieldContainer
150
+ /**
151
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
152
+ * [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)
155
+ * @param {Core.widget.Field} field Field instance
156
+ * @returns {boolean}
157
+ */
158
+ containValues ? : Boolean|string|((field: Field) => Boolean)
159
+ /**
160
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement).
161
+ * May be specified as a space separated string, or as an object in which property names
162
+ * 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)
165
+ */
166
+ contentElementCls ? : string|object
167
+ /**
168
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
169
+ * field on the expanded record to use for populating this widget's store (if applicable)
170
+ */
171
+ dataField ? : string
172
+ /**
173
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
174
+ */
175
+ dataset ? : Record<string, string>
176
+ /**
177
+ * The number of decimal places to allow. Defaults to no constraint.
178
+ */
179
+ decimalPrecision ? : number
180
+ /**
181
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
182
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
183
+ */
184
+ defaultBindProperty ? : string
185
+ /**
186
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
187
+ * ...
188
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-detectCSSCompatibilityIssues)
189
+ */
190
+ detectCSSCompatibilityIssues ? : Boolean
191
+ /**
192
+ * 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
+ * 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)
196
+ */
197
+ disabled ? : Boolean|'inert'
198
+ /**
199
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Panel)
200
+ * [strips collection](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
201
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
202
+ * body. Such widgets are called "edge strips".
203
+ * ...
204
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-dock)
205
+ */
206
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
207
+ /**
208
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
209
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
210
+ * property which controls when a drag should start.
211
+ * ...
212
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-draggable)
213
+ */
214
+ draggable ? : Boolean|{
215
+ handleSelector?: string
216
+ }
217
+ /**
218
+ * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
219
+ * [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
+ * 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)
223
+ */
224
+ editable ? : Boolean
225
+ /**
226
+ * An object specifying attributes to assign to the root element of this widget.
227
+ * 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)
230
+ */
231
+ elementAttributes ? : Record<string, string|null>
232
+ extraData ? : any
233
+ /**
234
+ * When this widget is a child of a [Container](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container), it will by default be participating in a
235
+ * flexbox layout. This config allows you to set this widget's
236
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
237
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
238
+ * numeric-only values are interpreted as the `flex-grow` value.
239
+ */
240
+ flex ? : number|string
241
+ /**
242
+ * Set to `true` to move the widget out of the document flow and position it
243
+ * absolutely in browser viewport space.
244
+ */
245
+ floating ? : Boolean
246
+ /**
247
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
248
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
249
+ * cases this config is convenient.
250
+ */
251
+ height ? : string|number
252
+ /**
253
+ * Configure with true to make widget initially hidden.
254
+ */
255
+ hidden ? : Boolean
256
+ /**
257
+ * *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)
260
+ */
261
+ hideAnimation ? : Boolean|object
262
+ /**
263
+ * Specify `true` to highlight field after external value changes
264
+ */
265
+ highlightExternalChange ? : Boolean
266
+ /**
267
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
268
+ * a field's units.
269
+ * ...
270
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-hint)
271
+ * @param {object} data A data object
272
+ * @param {Core.widget.Field} data.source A reference to the field instance
273
+ * @param {any} data.value The current value of the field
274
+ * @returns {string}
275
+ */
276
+ hint ? : string|((data: { source: Field, value: any }) => string)
277
+ /**
278
+ * 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
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
280
+ * 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)
283
+ * @param {object} data A data object
284
+ * @param {Core.widget.Field} data.source A reference to the field instance
285
+ * @param {any} data.value The current value of the field
286
+ * @returns {string}
287
+ */
288
+ hintHtml ? : string|((data: { source: Field, value: any }) => string)
289
+ /**
290
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
291
+ */
292
+ id ? : string
293
+ /**
294
+ * 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)
297
+ */
298
+ ignoreParentReadOnly ? : Boolean
299
+ /**
300
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
301
+ * [hbox](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
302
+ * [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)
305
+ */
306
+ inline ? : Boolean
307
+ /**
308
+ * Text alignment for the input field.
309
+ */
310
+ inputAlign ? : string
311
+ /**
312
+ * Sets custom attributes of the underlying input element. For more information, please refer to
313
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
314
+ */
315
+ inputAttributes ? : Record<string, string>
316
+ /**
317
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
318
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
319
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
320
+ * element.
321
+ */
322
+ inputTag ? : string
323
+ /**
324
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
325
+ */
326
+ inputType ? : string
327
+ /**
328
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
329
+ * triggers. If a number is specified, `px` will be used.
330
+ */
331
+ inputWidth ? : string|number
332
+ /**
333
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
334
+ */
335
+ insertBefore ? : HTMLElement|string
336
+ /**
337
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
338
+ */
339
+ insertFirst ? : HTMLElement|string
340
+ /**
341
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
342
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
343
+ * 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)
346
+ */
347
+ keyMap ? : Record<string, KeyMapConfig>
348
+ /**
349
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
350
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
351
+ * 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)
354
+ */
355
+ keyStrokeChangeDelay ? : number
356
+ /**
357
+ * Label, prepended to field
358
+ */
359
+ label ? : string
360
+ /**
361
+ * CSS class name or class names to add to any configured [label](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/mixin/Labelable#config-label)
362
+ */
363
+ labelCls ? : string|object
364
+ /**
365
+ * 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)
368
+ */
369
+ labelPosition ? : 'before'|'above'|null
370
+ /**
371
+ * The labels to add either before or after the input field.
372
+ * Each label may have the following properties:
373
+ * ...
374
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-labels)
375
+ */
376
+ labels ? : object[]
377
+ /**
378
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
379
+ */
380
+ labelWidth ? : string|number
381
+ /**
382
+ * The listener set for this object.
383
+ * ...
384
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-listeners)
385
+ */
386
+ listeners ? : EffortFieldListeners
387
+ /**
388
+ * A class translations of which are used for translating this entity.
389
+ * This is often used when translations of an item are defined on its container class.
390
+ * For example:
391
+ * ...
392
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localeClass)
393
+ */
394
+ localeClass ? : typeof Base
395
+ /**
396
+ * Set to `false` to disable localization of this object.
397
+ */
398
+ localizable ? : Boolean
399
+ /**
400
+ * List of properties which values should be translated automatically upon a locale applying.
401
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
402
+ * you could use 'localeKey' meta configuration.
403
+ * Example:
404
+ * ...
405
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-localizableProperties)
406
+ */
407
+ localizableProperties ? : string[]
408
+ /**
409
+ * The duration magnitude to use with the current unit value. Can be either an integer or a float value.
410
+ * Both "," and "." are valid decimal separators.
411
+ */
412
+ magnitude ? : number
413
+ /**
414
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
415
+ * numeric-only values are interpreted as pixels.
416
+ */
417
+ margin ? : number|string
418
+ /**
419
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Mask) created for the
420
+ * [masked](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
421
+ * values.
422
+ */
423
+ maskDefaults ? : MaskConfig
424
+ /**
425
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
426
+ * [Mask](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Mask) config object.
427
+ */
428
+ masked ? : Boolean|string|MaskConfig
429
+ /**
430
+ * Max duration value (e.g. 10d)
431
+ */
432
+ max ? : string
433
+ /**
434
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
435
+ * like [height](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
436
+ */
437
+ maxHeight ? : string|number
438
+ /**
439
+ * *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)
442
+ */
443
+ maximizeOnMobile ? : number|string
444
+ /**
445
+ * The max number of characters for the input field
446
+ */
447
+ maxLength ? : number
448
+ /**
449
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
450
+ * like [width](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
451
+ */
452
+ maxWidth ? : string|number
453
+ /**
454
+ * Minimum duration value (e.g. 1d)
455
+ */
456
+ min ? : string
457
+ /**
458
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
459
+ * like [height](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
460
+ */
461
+ minHeight ? : string|number
462
+ /**
463
+ * The min number of characters for the input field
464
+ */
465
+ minLength ? : number
466
+ /**
467
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
468
+ * like [width](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
469
+ */
470
+ minWidth ? : string|number
471
+ /**
472
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
473
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
474
+ * layout.
475
+ * ...
476
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-monitorResize)
477
+ */
478
+ monitorResize ? : Boolean|{
479
+ immediate?: Boolean
480
+ }
481
+ /**
482
+ * Name of the field which is used as a key to get/set values from/to the field.
483
+ * 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
+ * [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)
487
+ */
488
+ name ? : string
489
+ /**
490
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
491
+ * [items](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
492
+ * the owner is <strong>always</strong> the encapsulating Container.
493
+ * ...
494
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-owner)
495
+ */
496
+ owner ? : Widget|any
497
+ /**
498
+ * Text to display in empty field.
499
+ */
500
+ placeholder ? : string
501
+ /**
502
+ * 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
503
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
504
+ * widget's [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement).
505
+ * ...
506
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-positioned)
507
+ */
508
+ positioned ? : Boolean
509
+ /**
510
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
511
+ * menu on click etc, since the tooltip would be displayed at the same time.
512
+ */
513
+ preventTooltipOnTouch ? : Boolean
514
+ /**
515
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
516
+ * are unresponsive.
517
+ * ...
518
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-readOnly)
519
+ */
520
+ readOnly ? : Boolean
521
+ relayStoreEvents ? : Boolean
522
+ /**
523
+ * Predefined style to use for the field. Possible values are:
524
+ * ...
525
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rendition)
526
+ */
527
+ rendition ? : 'outlined'|'filled'|string
528
+ /**
529
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
530
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
531
+ */
532
+ required ? : Boolean
533
+ /**
534
+ * If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
535
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
536
+ * the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
537
+ * behaviour will be activated.
538
+ */
539
+ revertOnEscape ? : Boolean
540
+ /**
541
+ * Configure as `true` to have the component display a translucent ripple when its
542
+ * [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
543
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
544
+ * ...
545
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ripple)
546
+ */
547
+ ripple ? : Boolean|{
548
+ delegate?: string
549
+ color?: string
550
+ radius?: number
551
+ clip?: string
552
+ }
553
+ /**
554
+ * 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`
555
+ */
556
+ rootElement ? : ShadowRoot|HTMLElement
557
+ /**
558
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
559
+ * ...
560
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-rtl)
561
+ */
562
+ rtl ? : Boolean
563
+ /**
564
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
565
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
566
+ */
567
+ scrollAction ? : 'hide'|'realign'|null
568
+ /**
569
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
570
+ * ...
571
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-showAnimation)
572
+ */
573
+ showAnimation ? : Boolean|object
574
+ /**
575
+ * `true` to automatically display a * after the label for this field when it is [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-required).
576
+ */
577
+ showRequiredIndicator ? : string
578
+ /**
579
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-disabled)
580
+ */
581
+ showTooltipWhenDisabled ? : Boolean
582
+ /**
583
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
584
+ * to the user).
585
+ */
586
+ skipValidation ? : Boolean
587
+ /**
588
+ * Programmatic control over how many columns to span when used in a grid layout.
589
+ */
590
+ span ? : number
591
+ /**
592
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
593
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
594
+ */
595
+ spellCheck ? : Boolean
596
+ /**
597
+ * Step size for spin button clicks. The `step` property may be set in object form specifying two properties,
598
+ * `magnitude`, a Number, and `unit`, a String.
599
+ * ...
600
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-step)
601
+ */
602
+ step ? : DurationConfig|number|string
603
+ /**
604
+ * 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
605
+ * [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
606
+ * this widget:
607
+ * ...
608
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tab)
609
+ */
610
+ tab ? : Boolean|TabConfig
611
+ /**
612
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
613
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
614
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
615
+ * to the element programmatically.
616
+ * ...
617
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tabIndex)
618
+ */
619
+ tabIndex ? : number
620
+ /**
621
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
622
+ * ...
623
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-textAlign)
624
+ */
625
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
626
+ /**
627
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
628
+ */
629
+ title ? : string
630
+ /**
631
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
632
+ * ...
633
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-tooltip)
634
+ */
635
+ tooltip ? : string|TooltipConfig|null
636
+ /**
637
+ * Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget) instance
638
+ * which may be hidden, shown and observed and styled just like any other widget.
639
+ */
640
+ triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
641
+ type ? : 'effort'|'effortfield'
642
+ /**
643
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
644
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
645
+ * values are used as the class names.
646
+ * ...
647
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-ui)
648
+ */
649
+ ui ? : string|object
650
+ /**
651
+ * The duration unit to use with the current magnitude value.
652
+ * ...
653
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-unit)
654
+ */
655
+ unit ? : DurationUnit
656
+ /**
657
+ * When set to `true` the field will use short names of unit durations
658
+ * (as returned by [getShortNameOfUnit](https://bryntum.com/products/schedulerpro/docs/api/Core/helper/DateHelper#function-getShortNameOfUnit-static)) when creating the
659
+ * input field's display value.
660
+ */
661
+ useAbbreviation ? : Boolean
662
+ /**
663
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
664
+ * or similar.
665
+ */
666
+ validateOnInput ? : Boolean
667
+ /**
668
+ * The `value` may be set either in object form specifying two properties, a numerical `magnitude` and a
669
+ * string `unit`:
670
+ * ...
671
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-value)
672
+ */
673
+ value ? : string|number|DurationConfig|Duration
674
+ /**
675
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container).
676
+ * Higher weights go further down.
677
+ */
678
+ weight ? : number
679
+ /**
680
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
681
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
682
+ * this config is convenient.
683
+ */
684
+ width ? : string|number
685
+ /**
686
+ * The x position for the widget.
687
+ * ...
688
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-x)
689
+ */
690
+ x ? : number
691
+ /**
692
+ * The y position for the widget.
693
+ * ...
694
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-y)
695
+ */
696
+ y ? : number
697
+
698
+ }>();
699
+
700
+ const emit = defineEmits<{
701
+ /**
702
+ * User performed the default action (typed into this field or hit the triggers).
703
+ * @param {string} e Event name
704
+ * @param {object} params Event parameters
705
+ * @param {string} params.e Event name
706
+ * @param {object} params.params Event parameters
707
+ * @param {object} params.params.event Event object
708
+ * @param {Core.data.Duration} params.params.event.value This field's value
709
+ * @param {Core.data.Duration} params.params.event.oldValue This field's previous value
710
+ * @param {boolean} params.params.event.valid True if this field is in a valid state.
711
+ * @param {Event} params.params.event.event The triggering DOM event if any.
712
+ * @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
713
+ * @param {Core.widget.DurationField} params.params.event.source This field
714
+ */
715
+ (e: 'action', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
716
+ /**
717
+ * Fires before an object is destroyed.
718
+ * @param {string} e Event name
719
+ * @param {object} params Event parameters
720
+ * @param {string} params.e Event name
721
+ * @param {object} params.params Event parameters
722
+ * @param {object} params.params.event Event object
723
+ * @param {Core.Base} params.params.event.source The Object that is being destroyed.
724
+ */
725
+ (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
726
+ /**
727
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
728
+ * @param {string} e Event name
729
+ * @param {object} params Event parameters
730
+ * @param {string} params.e Event name
731
+ * @param {object} params.params Event parameters
732
+ * @param {object} params.params.event Event object
733
+ * @param {Core.widget.Widget} params.params.event.source The widget being hidden.
734
+ */
735
+ (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
736
+ /**
737
+ * Triggered before a widget is shown. Return `false` to prevent the action.
738
+ * @param {string} e Event name
739
+ * @param {object} params Event parameters
740
+ * @param {string} params.e Event name
741
+ * @param {object} params.params Event parameters
742
+ * @param {object} params.params.event Event object
743
+ * @param {Core.widget.Widget,any} params.params.event.source The widget being shown
744
+ */
745
+ (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
746
+ /**
747
+ * Fires when any other event is fired from the object.
748
+ * ...
749
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-catchAll)
750
+ * @param {string} e Event name
751
+ * @param {object} params Event parameters
752
+ * @param {string} params.e Event name
753
+ * @param {object} params.params Event parameters
754
+ * @param {object} params.params.event Event object
755
+ * @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
756
+ * @param {string} params.params.event.event.type The type of the event which is caught by the listener
757
+ */
758
+ (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
759
+ /**
760
+ * Fired when this field's value changes.
761
+ * @param {string} e Event name
762
+ * @param {object} params Event parameters
763
+ * @param {string} params.e Event name
764
+ * @param {object} params.params Event parameters
765
+ * @param {object} params.params.event Event object
766
+ * @param {Core.data.Duration} params.params.event.value This field's value
767
+ * @param {Core.data.Duration} params.params.event.oldValue This field's previous value
768
+ * @param {boolean} params.params.event.valid True if this field is in a valid state.
769
+ * @param {Event} params.params.event.event The triggering DOM event if any.
770
+ * @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
771
+ * @param {Core.widget.DurationField} params.params.event.source This field
772
+ */
773
+ (e: 'change', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
774
+ /**
775
+ * Fired when this field is [cleared](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#function-clear).
776
+ * ...
777
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-clear)
778
+ * @param {string} e Event name
779
+ * @param {object} params Event parameters
780
+ * @param {string} params.e Event name
781
+ * @param {object} params.params Event parameters
782
+ * @param {object} params.params.event Event object
783
+ * @param {Core.widget.Field,any} params.params.event.source This Field
784
+ */
785
+ (e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
786
+ /**
787
+ * Fires when an object is destroyed.
788
+ * @param {string} e Event name
789
+ * @param {object} params Event parameters
790
+ * @param {string} params.e Event name
791
+ * @param {object} params.params Event parameters
792
+ * @param {object} params.params.event Event object
793
+ * @param {Core.Base} params.params.event.source The Object that is being destroyed.
794
+ */
795
+ (e: 'destroy', params: ((event: { source: Base }) => void)|string): void
796
+ /**
797
+ * Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
798
+ * @param {string} e Event name
799
+ * @param {object} params Event parameters
800
+ * @param {string} params.e Event name
801
+ * @param {object} params.params Event parameters
802
+ * @param {object} params.params.event Event object
803
+ * @param {HTMLElement} params.params.event.element The Widget's element.
804
+ */
805
+ (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
806
+ /**
807
+ * Fired when focus enters this Widget.
808
+ * @param {string} e Event name
809
+ * @param {object} params Event parameters
810
+ * @param {string} params.e Event name
811
+ * @param {object} params.params Event parameters
812
+ * @param {object} params.params.event Event object
813
+ * @param {Core.widget.Widget} params.params.event.source This Widget
814
+ * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
815
+ * @param {HTMLElement} params.params.event.toElement The element which gained focus.
816
+ * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
817
+ * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
818
+ * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
819
+ */
820
+ (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
821
+ /**
822
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
823
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
824
+ * will not trigger this event. This is when focus exits this widget completely.
825
+ * @param {string} e Event name
826
+ * @param {object} params Event parameters
827
+ * @param {string} params.e Event name
828
+ * @param {object} params.params Event parameters
829
+ * @param {object} params.params.event Event object
830
+ * @param {Core.widget.Widget} params.params.event.source This Widget
831
+ * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
832
+ * @param {HTMLElement} params.params.event.toElement The element which gained focus.
833
+ * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
834
+ * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
835
+ * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
836
+ */
837
+ (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
838
+ /**
839
+ * Triggered after a widget was hidden
840
+ * @param {string} e Event name
841
+ * @param {object} params Event parameters
842
+ * @param {string} params.e Event name
843
+ * @param {object} params.params Event parameters
844
+ * @param {object} params.params.event Event object
845
+ * @param {Core.widget.Widget} params.params.event.source The widget
846
+ */
847
+ (e: 'hide', params: ((event: { source: Widget }) => void)|string): void
848
+ /**
849
+ * Fired when the user types into this field.
850
+ * @param {string} e Event name
851
+ * @param {object} params Event parameters
852
+ * @param {string} params.e Event name
853
+ * @param {object} params.params Event parameters
854
+ * @param {object} params.params.event Event object
855
+ * @param {Core.widget.Field,any} params.params.event.source This field
856
+ * @param {string,number,boolean,any} params.params.event.value This field's value
857
+ * @param {Event} params.params.event.event The triggering DOM event
858
+ */
859
+ (e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
860
+ /**
861
+ * Triggered when a widget which had been in a non-visible state for any reason
862
+ * achieves visibility.
863
+ * ...
864
+ * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-paint)
865
+ * @param {string} e Event name
866
+ * @param {object} params Event parameters
867
+ * @param {string} params.e Event name
868
+ * @param {object} params.params Event parameters
869
+ * @param {object} params.params.event Event object
870
+ * @param {Core.widget.Widget} params.params.event.source The widget being painted.
871
+ * @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
872
+ */
873
+ (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
874
+ /**
875
+ * Fired when a Widget's read only state is toggled
876
+ * @param {string} e Event name
877
+ * @param {object} params Event parameters
878
+ * @param {string} params.e Event name
879
+ * @param {object} params.params Event parameters
880
+ * @param {object} params.params.event Event object
881
+ * @param {boolean} params.params.event.readOnly Read only or not
882
+ */
883
+ (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
884
+ /**
885
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
886
+ * to [recompose](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
887
+ */
888
+ (e: 'recompose', params: (() => void)|string): void
889
+ /**
890
+ * 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`*.
891
+ * @param {string} e Event name
892
+ * @param {object} params Event parameters
893
+ * @param {string} params.e Event name
894
+ * @param {object} params.params Event parameters
895
+ * @param {object} params.params.event Event object
896
+ * @param {Core.widget.Widget} params.params.event.source This Widget
897
+ * @param {number} params.params.event.width The new width
898
+ * @param {number} params.params.event.height The new height
899
+ * @param {number} params.params.event.oldWidth The old width
900
+ * @param {number} params.params.event.oldHeight The old height
901
+ */
902
+ (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
903
+ /**
904
+ * Triggered after a widget is shown.
905
+ * @param {string} e Event name
906
+ * @param {object} params Event parameters
907
+ * @param {string} params.e Event name
908
+ * @param {object} params.params Event parameters
909
+ * @param {object} params.params.event Event object
910
+ * @param {Core.widget.Widget} params.params.event.source The widget
911
+ */
912
+ (e: 'show', params: ((event: { source: Widget }) => void)|string): void
913
+ /**
914
+ * User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
915
+ * @param {string} e Event name
916
+ * @param {object} params Event parameters
917
+ * @param {string} params.e Event name
918
+ * @param {object} params.params Event parameters
919
+ * @param {object} params.params.event Event object
920
+ * @param {Core.widget.Field,any} params.params.event.source This field
921
+ * @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
922
+ */
923
+ (e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
924
+ }>();
925
+
926
+ const widgetData = {
927
+ instanceClass : EffortField,
928
+ instanceName : 'EffortField',
929
+
930
+ configNames : [
931
+ 'adopt',
932
+ 'align',
933
+ 'allowNegative',
934
+ 'anchor',
935
+ 'ariaDescription',
936
+ 'ariaLabel',
937
+ 'autoComplete',
938
+ 'autoSelect',
939
+ 'bubbleEvents',
940
+ 'centered',
941
+ 'clearable',
942
+ 'color',
943
+ 'config',
944
+ 'constrainTo',
945
+ 'container',
946
+ 'containValues',
947
+ 'contentElementCls',
948
+ 'dataField',
949
+ 'decimalPrecision',
950
+ 'defaultBindProperty',
951
+ 'detectCSSCompatibilityIssues',
952
+ 'dock',
953
+ 'draggable',
954
+ 'elementAttributes',
955
+ 'floating',
956
+ 'hideAnimation',
957
+ 'highlightExternalChange',
958
+ 'hint',
959
+ 'hintHtml',
960
+ 'ignoreParentReadOnly',
961
+ 'inline',
962
+ 'inputAlign',
963
+ 'inputAttributes',
964
+ 'inputTag',
965
+ 'inputType',
966
+ 'inputWidth',
967
+ 'keyStrokeChangeDelay',
968
+ 'labelCls',
969
+ 'labelPosition',
970
+ 'labels',
971
+ 'labelWidth',
972
+ 'listeners',
973
+ 'localeClass',
974
+ 'localizable',
975
+ 'localizableProperties',
976
+ 'maskDefaults',
977
+ 'masked',
978
+ 'maxLength',
979
+ 'minLength',
980
+ 'monitorResize',
981
+ 'name',
982
+ 'owner',
983
+ 'positioned',
984
+ 'preventTooltipOnTouch',
985
+ 'relayStoreEvents',
986
+ 'revertOnEscape',
987
+ 'ripple',
988
+ 'rootElement',
989
+ 'scrollAction',
990
+ 'showAnimation',
991
+ 'showTooltipWhenDisabled',
992
+ 'skipValidation',
993
+ 'spellCheck',
994
+ 'step',
995
+ 'tab',
996
+ 'tabIndex',
997
+ 'textAlign',
998
+ 'title',
999
+ 'type',
1000
+ 'ui',
1001
+ 'useAbbreviation',
1002
+ 'validateOnInput',
1003
+ 'weight'
1004
+ ],
1005
+ propertyConfigNames : [
1006
+ 'alignSelf',
1007
+ 'allowedUnits',
1008
+ 'appendTo',
1009
+ 'badge',
1010
+ 'callOnFunctions',
1011
+ 'catchEventHandlerExceptions',
1012
+ 'cls',
1013
+ 'column',
1014
+ 'dataset',
1015
+ 'disabled',
1016
+ 'editable',
1017
+ 'extraData',
1018
+ 'flex',
1019
+ 'height',
1020
+ 'hidden',
1021
+ 'id',
1022
+ 'insertBefore',
1023
+ 'insertFirst',
1024
+ 'keyMap',
1025
+ 'label',
1026
+ 'magnitude',
1027
+ 'margin',
1028
+ 'max',
1029
+ 'maxHeight',
1030
+ 'maximizeOnMobile',
1031
+ 'maxWidth',
1032
+ 'min',
1033
+ 'minHeight',
1034
+ 'minWidth',
1035
+ 'onAction',
1036
+ 'onBeforeDestroy',
1037
+ 'onBeforeHide',
1038
+ 'onBeforeShow',
1039
+ 'onCatchAll',
1040
+ 'onChange',
1041
+ 'onClear',
1042
+ 'onDestroy',
1043
+ 'onElementCreated',
1044
+ 'onFocusIn',
1045
+ 'onFocusOut',
1046
+ 'onHide',
1047
+ 'onInput',
1048
+ 'onPaint',
1049
+ 'onReadOnly',
1050
+ 'onRecompose',
1051
+ 'onResize',
1052
+ 'onShow',
1053
+ 'onTrigger',
1054
+ 'placeholder',
1055
+ 'readOnly',
1056
+ 'rendition',
1057
+ 'required',
1058
+ 'rtl',
1059
+ 'showRequiredIndicator',
1060
+ 'span',
1061
+ 'tooltip',
1062
+ 'triggers',
1063
+ 'unit',
1064
+ 'value',
1065
+ 'width',
1066
+ 'x',
1067
+ 'y'
1068
+ ],
1069
+ propertyNames : [
1070
+ 'anchorSize',
1071
+ 'content',
1072
+ 'focusVisible',
1073
+ 'formula',
1074
+ 'html',
1075
+ 'input',
1076
+ 'parent',
1077
+ 'scrollable'
1078
+ ],
1079
+ eventNames : [
1080
+ 'action',
1081
+ 'beforeDestroy',
1082
+ 'beforeHide',
1083
+ 'beforeShow',
1084
+ 'catchAll',
1085
+ 'change',
1086
+ 'clear',
1087
+ 'destroy',
1088
+ 'elementCreated',
1089
+ 'focusIn',
1090
+ 'focusOut',
1091
+ 'hide',
1092
+ 'input',
1093
+ 'paint',
1094
+ 'readOnly',
1095
+ 'recompose',
1096
+ 'resize',
1097
+ 'show',
1098
+ 'trigger'
1099
+ ]
1100
+ };
1101
+
1102
+ const instance: {
1103
+ value?: EffortField
1104
+ } = {};
1105
+
1106
+ const refElement = ref<HTMLDivElement>()!;
1107
+ // Storage for teleports (in-cell Vue component instances) automatically renderer by template
1108
+ const teleports = ref(new Map());
1109
+
1110
+ // Provide teleports for processCellContent
1111
+ provide('teleports', teleports);
1112
+
1113
+ onMounted(() => {
1114
+
1115
+ const me = getCurrentInstance()!;
1116
+
1117
+ instance.value = WrapperHelper.createWidget<typeof EffortField>({
1118
+ me,
1119
+ widgetData,
1120
+ emit,
1121
+ element : refElement.value!,
1122
+ toRaw
1123
+ });
1124
+
1125
+ const watcher = (prop: string, callback: any) => watch(() => me.props[prop], callback);
1126
+ WrapperHelper.watchProps(instance.value, widgetData, watcher);
1127
+ });
1128
+
1129
+ onBeforeUnmount(() => {
1130
+ // @ts-ignore
1131
+ instance.value?.destroy?.();
1132
+ });
1133
+
1134
+ defineExpose({
1135
+ instance,
1136
+ refElement,
1137
+ teleports
1138
+ });
1139
+
1140
+ </script>