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