@bryntum/schedulerpro-vue-3-thin 7.2.4 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +9 -9
  2. package/lib/chunks/{BhUeT19h.js → 7vz3cAx6.js} +9 -7
  3. package/lib/chunks/7vz3cAx6.js.map +1 -0
  4. package/lib/chunks/{9jfNe_y3.js → B1SaPsRu.js} +16 -8
  5. package/lib/chunks/B1SaPsRu.js.map +1 -0
  6. package/lib/chunks/{D4JDuI0s.js → B4dVznPx.js} +1 -8
  7. package/lib/chunks/B4dVznPx.js.map +1 -0
  8. package/lib/chunks/{DwzPrR90.js → B8GKehTJ.js} +10 -8
  9. package/lib/chunks/B8GKehTJ.js.map +1 -0
  10. package/lib/chunks/{C41opZKx.js → BhXv58eE.js} +23 -14
  11. package/lib/chunks/BhXv58eE.js.map +1 -0
  12. package/lib/chunks/{Dz-up1_i.js → BhfdqXGU.js} +10 -8
  13. package/lib/chunks/BhfdqXGU.js.map +1 -0
  14. package/lib/chunks/{CJFZbm_i.js → Bk2bIVfG.js} +25 -13
  15. package/lib/chunks/Bk2bIVfG.js.map +1 -0
  16. package/lib/chunks/{DlNFp5e-.js → C1vi1h_N.js} +13 -11
  17. package/lib/chunks/C1vi1h_N.js.map +1 -0
  18. package/lib/chunks/{DYBe70El.js → CEQZr1q6.js} +20 -11
  19. package/lib/chunks/CEQZr1q6.js.map +1 -0
  20. package/lib/chunks/{BTT_cGQU.js → CPjow0gO.js} +8 -9
  21. package/lib/chunks/CPjow0gO.js.map +1 -0
  22. package/lib/chunks/{BRGc8bUJ.js → Cb_akueu.js} +16 -13
  23. package/lib/chunks/Cb_akueu.js.map +1 -0
  24. package/lib/chunks/{BJPdcix1.js → Cc_DPp3S.js} +8 -6
  25. package/lib/chunks/Cc_DPp3S.js.map +1 -0
  26. package/lib/chunks/{BjTPjWi9.js → Cr5VTUbs.js} +10 -8
  27. package/lib/chunks/Cr5VTUbs.js.map +1 -0
  28. package/lib/chunks/{j8JzZ-07.js → D-hmgVVF.js} +13 -11
  29. package/lib/chunks/D-hmgVVF.js.map +1 -0
  30. package/lib/chunks/{BpAvqwr_.js → D-v-Wqj4.js} +25 -13
  31. package/lib/chunks/D-v-Wqj4.js.map +1 -0
  32. package/lib/chunks/{BbI7XKMd.js → D0hJ3P6L.js} +5 -3
  33. package/lib/chunks/D0hJ3P6L.js.map +1 -0
  34. package/lib/chunks/{CGbW6pgm.js → DPA-xEW5.js} +8 -9
  35. package/lib/chunks/DPA-xEW5.js.map +1 -0
  36. package/lib/chunks/{CuODT2-U.js → XQWZfDOm.js} +7 -5
  37. package/lib/chunks/XQWZfDOm.js.map +1 -0
  38. package/lib/chunks/{MOjUZ-Rj.js → eKXSEOkn.js} +7 -5
  39. package/lib/chunks/eKXSEOkn.js.map +1 -0
  40. package/lib/chunks/{DGV7a5Xo.js → edcDjaO2.js} +7 -5
  41. package/lib/chunks/edcDjaO2.js.map +1 -0
  42. package/lib/chunks/{BO8FwQoh.js → n2IZFQjR.js} +10 -8
  43. package/lib/chunks/n2IZFQjR.js.map +1 -0
  44. package/lib/chunks/{M0cBUV91.js → zY4Qxi9x.js} +8 -6
  45. package/lib/chunks/zY4Qxi9x.js.map +1 -0
  46. package/lib/components/BryntumCalendarEditor.js +1 -1
  47. package/lib/components/BryntumCalendarField.js +1 -1
  48. package/lib/components/BryntumConstraintTypePicker.js +1 -1
  49. package/lib/components/BryntumCostAccrualField.js +1 -1
  50. package/lib/components/BryntumDependencyTypePicker.js +1 -1
  51. package/lib/components/BryntumEffortField.js +1 -1
  52. package/lib/components/BryntumEndDateField.js +1 -1
  53. package/lib/components/BryntumModelCombo.js +1 -1
  54. package/lib/components/BryntumRateTableField.js +1 -1
  55. package/lib/components/BryntumResourceEditor.js +1 -1
  56. package/lib/components/BryntumResourceGrid.js +1 -1
  57. package/lib/components/BryntumResourceHistogram.js +1 -1
  58. package/lib/components/BryntumResourceTypeField.js +1 -1
  59. package/lib/components/BryntumResourceUtilization.js +1 -1
  60. package/lib/components/BryntumSchedulerPro.js +1 -1
  61. package/lib/components/BryntumSchedulerProBase.js +1 -1
  62. package/lib/components/BryntumSchedulerProProjectModel.js +1 -1
  63. package/lib/components/BryntumSchedulingDirectionPicker.js +1 -1
  64. package/lib/components/BryntumSchedulingModePicker.js +1 -1
  65. package/lib/components/BryntumStartDateField.js +1 -1
  66. package/lib/components/BryntumThemeCombo.js +57 -0
  67. package/lib/components/BryntumThemeCombo.js.map +1 -0
  68. package/lib/components/BryntumTimeline.js +1 -1
  69. package/lib/components/BryntumVersionGrid.js +1 -1
  70. package/lib/index.js +22 -22
  71. package/package.json +1 -1
  72. package/src/components/BryntumCalendarEditor.vue +191 -292
  73. package/src/components/BryntumCalendarEditorProps.ts +123 -177
  74. package/src/components/BryntumCalendarField.vue +172 -260
  75. package/src/components/BryntumCalendarFieldProps.ts +96 -143
  76. package/src/components/BryntumConstraintTypePicker.vue +172 -260
  77. package/src/components/BryntumConstraintTypePickerProps.ts +96 -143
  78. package/src/components/BryntumCostAccrualField.vue +172 -260
  79. package/src/components/BryntumCostAccrualFieldProps.ts +96 -143
  80. package/src/components/BryntumDependencyTypePicker.vue +172 -260
  81. package/src/components/BryntumDependencyTypePickerProps.ts +96 -143
  82. package/src/components/BryntumEffortField.vue +153 -224
  83. package/src/components/BryntumEffortFieldProps.ts +82 -114
  84. package/src/components/BryntumEndDateField.vue +159 -228
  85. package/src/components/BryntumEndDateFieldProps.ts +84 -114
  86. package/src/components/BryntumModelCombo.vue +172 -260
  87. package/src/components/BryntumModelComboProps.ts +96 -143
  88. package/src/components/BryntumRateTableField.vue +172 -260
  89. package/src/components/BryntumRateTableFieldProps.ts +96 -143
  90. package/src/components/BryntumResourceEditor.vue +190 -290
  91. package/src/components/BryntumResourceEditorProps.ts +122 -175
  92. package/src/components/BryntumResourceGrid.vue +730 -1045
  93. package/src/components/BryntumResourceGridProps.ts +192 -263
  94. package/src/components/BryntumResourceHistogram.vue +1098 -1539
  95. package/src/components/BryntumResourceHistogramProps.ts +292 -402
  96. package/src/components/BryntumResourceTypeField.vue +172 -260
  97. package/src/components/BryntumResourceTypeFieldProps.ts +96 -143
  98. package/src/components/BryntumResourceUtilization.vue +1114 -1561
  99. package/src/components/BryntumResourceUtilizationProps.ts +293 -404
  100. package/src/components/BryntumSchedulerPro.vue +2099 -2820
  101. package/src/components/BryntumSchedulerProBase.vue +2099 -2820
  102. package/src/components/BryntumSchedulerProBaseProps.ts +413 -556
  103. package/src/components/BryntumSchedulerProProjectModel.vue +192 -289
  104. package/src/components/BryntumSchedulerProProjectModelProps.ts +59 -88
  105. package/src/components/BryntumSchedulerProProps.ts +413 -556
  106. package/src/components/BryntumSchedulingDirectionPicker.vue +172 -260
  107. package/src/components/BryntumSchedulingDirectionPickerProps.ts +96 -143
  108. package/src/components/BryntumSchedulingModePicker.vue +173 -262
  109. package/src/components/BryntumSchedulingModePickerProps.ts +97 -145
  110. package/src/components/BryntumStartDateField.vue +161 -232
  111. package/src/components/BryntumStartDateFieldProps.ts +86 -118
  112. package/src/components/BryntumThemeCombo.vue +60 -0
  113. package/src/components/BryntumTimeline.vue +1846 -2517
  114. package/src/components/BryntumTimelineProps.ts +371 -519
  115. package/src/components/BryntumVersionGrid.vue +727 -1050
  116. package/src/components/BryntumVersionGridProps.ts +186 -261
  117. package/lib/chunks/9jfNe_y3.js.map +0 -1
  118. package/lib/chunks/BJPdcix1.js.map +0 -1
  119. package/lib/chunks/BO8FwQoh.js.map +0 -1
  120. package/lib/chunks/BRGc8bUJ.js.map +0 -1
  121. package/lib/chunks/BTT_cGQU.js.map +0 -1
  122. package/lib/chunks/BbI7XKMd.js.map +0 -1
  123. package/lib/chunks/BhUeT19h.js.map +0 -1
  124. package/lib/chunks/BjTPjWi9.js.map +0 -1
  125. package/lib/chunks/BpAvqwr_.js.map +0 -1
  126. package/lib/chunks/C41opZKx.js.map +0 -1
  127. package/lib/chunks/CGbW6pgm.js.map +0 -1
  128. package/lib/chunks/CJFZbm_i.js.map +0 -1
  129. package/lib/chunks/CuODT2-U.js.map +0 -1
  130. package/lib/chunks/D4JDuI0s.js.map +0 -1
  131. package/lib/chunks/DGV7a5Xo.js.map +0 -1
  132. package/lib/chunks/DYBe70El.js.map +0 -1
  133. package/lib/chunks/DlNFp5e-.js.map +0 -1
  134. package/lib/chunks/DwzPrR90.js.map +0 -1
  135. package/lib/chunks/Dz-up1_i.js.map +0 -1
  136. package/lib/chunks/M0cBUV91.js.map +0 -1
  137. package/lib/chunks/MOjUZ-Rj.js.map +0 -1
  138. package/lib/chunks/j8JzZ-07.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import type { AlignSpec, Base, Color, DatePickerConfig, DurationConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, TabConfig, TimeField, TooltipConfig, Widget } from '@bryntum/core-thin';
1
+ import type { AlignSpec, Base, Color, DatePickerConfig, DurationConfig, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, TabConfig, TimeField, TooltipConfig, Widget } from '@bryntum/core-thin';
2
2
  import type { SchedulerProContainerItemConfig, EventModel, ProjectModel, StartDateFieldListeners } from '@bryntum/schedulerpro-thin';
3
3
 
4
4
  export declare type BryntumStartDateFieldProps = {
@@ -6,14 +6,12 @@ export declare type BryntumStartDateFieldProps = {
6
6
  /**
7
7
  * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
8
8
  * content will be placed inside this element.
9
- * ...
10
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-adopt)
9
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-adopt)
11
10
  */
12
11
  adopt ? : HTMLElement|string
13
12
  /**
14
13
  * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
15
- * ...
16
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-align)
14
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-align)
17
15
  */
18
16
  align ? : AlignSpec|string
19
17
  /**
@@ -35,15 +33,13 @@ export declare type BryntumStartDateFieldProps = {
35
33
  /**
36
34
  * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
37
35
  * into an element which will be linked using the `aria-describedby` attribute.
38
- * ...
39
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ariaDescription)
36
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ariaDescription)
40
37
  */
41
38
  ariaDescription ? : string
42
39
  /**
43
40
  * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
44
41
  * the `aria-label` attribute.
45
- * ...
46
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ariaLabel)
42
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ariaLabel)
47
43
  */
48
44
  ariaLabel ? : string
49
45
  /**
@@ -66,21 +62,18 @@ export declare type BryntumStartDateFieldProps = {
66
62
  /**
67
63
  * An object where property names with a truthy value indicate which events should bubble up the ownership
68
64
  * hierarchy when triggered.
69
- * ...
70
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-bubbleEvents)
65
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-bubbleEvents)
71
66
  */
72
67
  bubbleEvents ? : object
73
68
  /**
74
69
  * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
75
- * ...
76
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-callOnFunctions)
70
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-callOnFunctions)
77
71
  */
78
72
  callOnFunctions ? : Boolean
79
73
  /**
80
74
  * By default, if an event handler throws an exception, the error propagates up the stack and the
81
75
  * application state is undefined. Code which follows the event handler will *not* be executed.
82
- * ...
83
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-catchEventHandlerExceptions)
76
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-catchEventHandlerExceptions)
84
77
  */
85
78
  catchEventHandlerExceptions ? : Boolean
86
79
  /**
@@ -88,6 +81,15 @@ export declare type BryntumStartDateFieldProps = {
88
81
  * Set to `true` to centre the Widget in browser viewport space.
89
82
  */
90
83
  centered ? : Boolean
84
+ /**
85
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
86
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-isValid)
87
+ * evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
88
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-checkValidity)
89
+ * @param {Core.widget.Field} field The field being validated
90
+ * @returns {void}
91
+ */
92
+ checkValidity ? : ((field: Field) => void)|string
91
93
  /**
92
94
  * 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
93
95
  * 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
@@ -98,15 +100,13 @@ export declare type BryntumStartDateFieldProps = {
98
100
  * Custom CSS classes to add to element.
99
101
  * May be specified as a space separated string, or as an object in which property names
100
102
  * with truthy values are used as the class names:
101
- * ...
102
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-cls)
103
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-cls)
103
104
  */
104
105
  cls ? : string|object
105
106
  /**
106
107
  * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
107
108
  * `style` block.
108
- * ...
109
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-color)
109
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-color)
110
110
  */
111
111
  color ? : Color
112
112
  /**
@@ -123,15 +123,13 @@ export declare type BryntumStartDateFieldProps = {
123
123
  * The configuration for additional items associated to this field. This is typically used to add contextual
124
124
  * fields related to a [checkbox](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
125
125
  * these classes for examples of nested fields.
126
- * ...
127
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-container)
126
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-container)
128
127
  */
129
- container ? : Record<string, SchedulerProContainerItemConfig>|SchedulerProContainerItemConfig[]|FieldContainerConfig|FieldContainer
128
+ container ? : Record<string, SchedulerProContainerItemConfig>|SchedulerProContainerItemConfig[]|FieldContainerConfig
130
129
  /**
131
130
  * The config controls how the value of nested items are handled when a parent container gets or sets its
132
131
  * [values](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container#property-values).
133
- * ...
134
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-containValues)
132
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-containValues)
135
133
  * @param {Core.widget.Field} field Field instance
136
134
  * @returns {boolean}
137
135
  */
@@ -140,8 +138,7 @@ export declare type BryntumStartDateFieldProps = {
140
138
  * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement).
141
139
  * May be specified as a space separated string, or as an object in which property names
142
140
  * with truthy values are used as the class names:
143
- * ...
144
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-contentElementCls)
141
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-contentElementCls)
145
142
  */
146
143
  contentElementCls ? : string|object
147
144
  /**
@@ -159,16 +156,15 @@ export declare type BryntumStartDateFieldProps = {
159
156
  */
160
157
  defaultBindProperty ? : string
161
158
  /**
162
- * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
163
- * ...
164
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-detectCSSCompatibilityIssues)
159
+ * Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
160
+ * checks:
161
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-detectCSSCompatibilityIssues)
165
162
  */
166
163
  detectCSSCompatibilityIssues ? : Boolean
167
164
  /**
168
165
  * 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
169
166
  * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
170
- * ...
171
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-disabled)
167
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-disabled)
172
168
  */
173
169
  disabled ? : Boolean|'inert'
174
170
  /**
@@ -176,20 +172,17 @@ export declare type BryntumStartDateFieldProps = {
176
172
  * [strips collection](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
177
173
  * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
178
174
  * body. Such widgets are called "edge strips".
179
- * ...
180
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-dock)
175
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-dock)
181
176
  */
182
177
  dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
183
178
  /**
184
179
  * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
185
180
  * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
186
181
  * property which controls when a drag should start.
187
- * ...
188
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-draggable)
182
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-draggable)
183
+ * @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
189
184
  */
190
- draggable ? : Boolean|{
191
- handleSelector?: string
192
- }
185
+ draggable ? : Boolean|object
193
186
  /**
194
187
  * User can edit text in text field (otherwise only pick from attached picker)
195
188
  */
@@ -197,8 +190,7 @@ export declare type BryntumStartDateFieldProps = {
197
190
  /**
198
191
  * An object specifying attributes to assign to the root element of this widget.
199
192
  * Set `null` value to attribute to remove it.
200
- * ...
201
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-elementAttributes)
193
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-elementAttributes)
202
194
  */
203
195
  elementAttributes ? : Record<string, string|null>
204
196
  /**
@@ -235,8 +227,7 @@ export declare type BryntumStartDateFieldProps = {
235
227
  hidden ? : Boolean
236
228
  /**
237
229
  * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
238
- * ...
239
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hideAnimation)
230
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hideAnimation)
240
231
  */
241
232
  hideAnimation ? : Boolean|object
242
233
  /**
@@ -246,8 +237,7 @@ export declare type BryntumStartDateFieldProps = {
246
237
  /**
247
238
  * An optional string to display inside the input field as an overlay. This can be useful for displaying
248
239
  * a field's units.
249
- * ...
250
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hint)
240
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hint)
251
241
  * @param {object} data A data object
252
242
  * @param {Core.widget.Field} data.source A reference to the field instance
253
243
  * @param {any} data.value The current value of the field
@@ -258,8 +248,7 @@ export declare type BryntumStartDateFieldProps = {
258
248
  * 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.
259
249
  * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
260
250
  * encode such data (see [encodeHtml](https://bryntum.com/products/schedulerpro/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
261
- * ...
262
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hintHtml)
251
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-hintHtml)
263
252
  * @param {object} data A data object
264
253
  * @param {Core.widget.Field} data.source A reference to the field instance
265
254
  * @param {any} data.value The current value of the field
@@ -272,16 +261,14 @@ export declare type BryntumStartDateFieldProps = {
272
261
  id ? : string
273
262
  /**
274
263
  * Determines if the widgets read-only state should be controlled by its parent.
275
- * ...
276
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ignoreParentReadOnly)
264
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ignoreParentReadOnly)
277
265
  */
278
266
  ignoreParentReadOnly ? : Boolean
279
267
  /**
280
268
  * Set this config to `true` to always display items horizontally along with this field. This assigns an
281
269
  * [hbox](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
282
270
  * [container](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-container).
283
- * ...
284
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-inline)
271
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-inline)
285
272
  */
286
273
  inline ? : Boolean
287
274
  /**
@@ -320,24 +307,21 @@ export declare type BryntumStartDateFieldProps = {
320
307
  /**
321
308
  * A flag which indicates what time should be used for selected date.
322
309
  * `sod` by default which adjusts user provided value time to start of the working day.
323
- * ...
324
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keepTime)
310
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keepTime)
325
311
  */
326
312
  keepTime ? : Boolean|Date|string
327
313
  /**
328
314
  * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
329
315
  * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
330
316
  * are the name of the instance method to call when the keystroke is received.
331
- * ...
332
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keyMap)
317
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keyMap)
333
318
  */
334
319
  keyMap ? : Record<string, KeyMapConfig>
335
320
  /**
336
321
  * The delay in milliseconds to wait after the last keystroke before triggering a change event.
337
322
  * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
338
323
  * immediate feedback, change will still be triggered on blur).
339
- * ...
340
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keyStrokeChangeDelay)
324
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-keyStrokeChangeDelay)
341
325
  */
342
326
  keyStrokeChangeDelay ? : number
343
327
  /**
@@ -350,15 +334,15 @@ export declare type BryntumStartDateFieldProps = {
350
334
  labelCls ? : string|object
351
335
  /**
352
336
  * Label position, either 'before' the field or 'above' the field
353
- * ...
354
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-labelPosition)
337
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-labelPosition)
355
338
  */
356
339
  labelPosition ? : 'before'|'above'|null
357
340
  /**
358
341
  * The labels to add either before or after the input field.
359
342
  * Each label may have the following properties:
360
- * ...
361
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-labels)
343
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-labels)
344
+ * @property {string} html Label text
345
+ * @property {'start','end'} align Which end of the file the label should go
362
346
  */
363
347
  labels ? : object[]
364
348
  /**
@@ -367,16 +351,14 @@ export declare type BryntumStartDateFieldProps = {
367
351
  labelWidth ? : string|number
368
352
  /**
369
353
  * The listener set for this object.
370
- * ...
371
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-listeners)
354
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-listeners)
372
355
  */
373
356
  listeners ? : StartDateFieldListeners
374
357
  /**
375
358
  * A class translations of which are used for translating this entity.
376
359
  * This is often used when translations of an item are defined on its container class.
377
360
  * For example:
378
- * ...
379
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-localeClass)
361
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-localeClass)
380
362
  */
381
363
  localeClass ? : typeof Base
382
364
  /**
@@ -388,8 +370,7 @@ export declare type BryntumStartDateFieldProps = {
388
370
  * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
389
371
  * you could use 'localeKey' meta configuration.
390
372
  * Example:
391
- * ...
392
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-localizableProperties)
373
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-localizableProperties)
393
374
  */
394
375
  localizableProperties ? : string[]
395
376
  /**
@@ -416,8 +397,7 @@ export declare type BryntumStartDateFieldProps = {
416
397
  * Number of milliseconds to add to the project's start date. Then, during editing,
417
398
  * the resulting date is assigned to the [max](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-max) property of the field,
418
399
  * preventing the user from entering too high values.
419
- * ...
420
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-maxDateDelta)
400
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-maxDateDelta)
421
401
  */
422
402
  maxDateDelta ? : number|string
423
403
  /**
@@ -427,8 +407,7 @@ export declare type BryntumStartDateFieldProps = {
427
407
  maxHeight ? : string|number
428
408
  /**
429
409
  * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
430
- * ...
431
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-maximizeOnMobile)
410
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-maximizeOnMobile)
432
411
  */
433
412
  maximizeOnMobile ? : number|string
434
413
  /**
@@ -448,8 +427,7 @@ export declare type BryntumStartDateFieldProps = {
448
427
  * Number of milliseconds to add to the project's start date (should be negative). Then, during editing,
449
428
  * the resulting date is assigned to the [min](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-min) property of the field,
450
429
  * preventing the user from entering too low values.
451
- * ...
452
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-minDateDelta)
430
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-minDateDelta)
453
431
  */
454
432
  minDateDelta ? : number|string
455
433
  /**
@@ -470,32 +448,27 @@ export declare type BryntumStartDateFieldProps = {
470
448
  * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
471
449
  * is used to monitor this element for size changes caused by either style manipulation, or by CSS
472
450
  * layout.
473
- * ...
474
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-monitorResize)
451
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-monitorResize)
452
+ * @property {boolean} immediate Set to `true` to receive resize notifications immediately.
475
453
  */
476
- monitorResize ? : Boolean|{
477
- immediate?: Boolean
478
- }
454
+ monitorResize ? : Boolean|object
479
455
  /**
480
456
  * Name of the field which is used as a key to get/set values from/to the field.
481
457
  * Used prior to [ref](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
482
458
  * [Container.values](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Container#property-values).
483
- * ...
484
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-name)
459
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-name)
485
460
  */
486
461
  name ? : string
487
462
  /**
488
463
  * A reference to a partner TimeField which this DateField should sync its value with.
489
464
  * When the TimeField's value is changed, this DateField's value is updated to match.
490
465
  * When this DateField's value is changed, the TimeField's value is updated to match.
491
- * ...
492
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-partner)
466
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-partner)
493
467
  */
494
468
  partner ? : string|TimeField
495
469
  /**
496
470
  * A config object used to configure the [datePicker](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DatePicker).
497
- * ...
498
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-picker)
471
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-picker)
499
472
  */
500
473
  picker ? : DatePickerConfig
501
474
  /**
@@ -514,8 +487,7 @@ export declare type BryntumStartDateFieldProps = {
514
487
  * 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
515
488
  * not participate in the standard layout of that widget, and must be positioned relatively to that
516
489
  * widget's [contentElement](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-contentElement).
517
- * ...
518
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-positioned)
490
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-positioned)
519
491
  */
520
492
  positioned ? : Boolean
521
493
  /**
@@ -530,15 +502,13 @@ export declare type BryntumStartDateFieldProps = {
530
502
  /**
531
503
  * Makes the field unmodifiable by user action. The input area is not editable, and triggers
532
504
  * are unresponsive.
533
- * ...
534
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-readOnly)
505
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-readOnly)
535
506
  */
536
507
  readOnly ? : Boolean
537
508
  relayStoreEvents ? : Boolean
538
509
  /**
539
510
  * Predefined style to use for the field. Possible values are:
540
- * ...
541
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-rendition)
511
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-rendition)
542
512
  */
543
513
  rendition ? : 'outlined'|'filled'|string
544
514
  /**
@@ -557,23 +527,26 @@ export declare type BryntumStartDateFieldProps = {
557
527
  * Configure as `true` to have the component display a translucent ripple when its
558
528
  * [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
559
529
  * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
560
- * ...
561
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ripple)
530
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ripple)
531
+ * @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
532
+ * @property {string} [color] A CSS color name or specification.
533
+ * @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
534
+ * @property {string} [clip] A string which describes how to clip the ripple if it is not to be clipped to the default element. Either the property of the widget to use as the clipping element, or a selector to allow clipping to the closest matching ancestor to the target element.
535
+ */
536
+ ripple ? : Boolean|object
537
+ /**
538
+ * The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
539
+ * accidentally applying a role which may interfere with screen readers.
540
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-role)
562
541
  */
563
- ripple ? : Boolean|{
564
- delegate?: string
565
- color?: string
566
- radius?: number
567
- clip?: string
568
- }
542
+ role ? : string
569
543
  /**
570
544
  * 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`
571
545
  */
572
546
  rootElement ? : ShadowRoot|HTMLElement
573
547
  /**
574
548
  * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
575
- * ...
576
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-rtl)
549
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-rtl)
577
550
  */
578
551
  rtl ? : Boolean
579
552
  /**
@@ -583,8 +556,7 @@ export declare type BryntumStartDateFieldProps = {
583
556
  scrollAction ? : 'hide'|'realign'|null
584
557
  /**
585
558
  * *Only valid if this Widget is [floating](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-floating).*
586
- * ...
587
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-showAnimation)
559
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-showAnimation)
588
560
  */
589
561
  showAnimation ? : Boolean|object
590
562
  /**
@@ -625,16 +597,14 @@ export declare type BryntumStartDateFieldProps = {
625
597
  /**
626
598
  * A flag which indicates whether the date parsing should be strict - meaning if the date
627
599
  * is missing a year/month/day part - parsing fails.
628
- * ...
629
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-strictParsing)
600
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-strictParsing)
630
601
  */
631
602
  strictParsing ? : Boolean
632
603
  /**
633
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
634
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
635
606
  * this widget:
636
- * ...
637
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tab)
607
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tab)
638
608
  */
639
609
  tab ? : Boolean|TabConfig
640
610
  /**
@@ -642,14 +612,12 @@ export declare type BryntumStartDateFieldProps = {
642
612
  * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
643
613
  * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
644
614
  * to the element programmatically.
645
- * ...
646
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tabIndex)
615
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tabIndex)
647
616
  */
648
617
  tabIndex ? : number
649
618
  /**
650
619
  * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
651
- * ...
652
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-textAlign)
620
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-textAlign)
653
621
  */
654
622
  textAlign ? : 'left'|'center'|'right'|'start'|'end'
655
623
  /**
@@ -658,22 +626,24 @@ export declare type BryntumStartDateFieldProps = {
658
626
  title ? : string
659
627
  /**
660
628
  * Tooltip for the widget, either as a string or as a Tooltip config object.
661
- * ...
662
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tooltip)
629
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-tooltip)
663
630
  */
664
631
  tooltip ? : string|TooltipConfig|null
665
632
  /**
666
633
  * Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget) instance
667
634
  * which may be hidden, shown and observed and styled just like any other widget.
635
+ * @property {FieldTriggerConfig} triggers.expand Expands the date picker to select a date
636
+ * @property {FieldTriggerConfig} triggers.back Subtracts the [step](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DateField#config-step) from the current date
637
+ * @property {FieldTriggerConfig} triggers.forward Adds the [step](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DateField#config-step) to the current date
638
+ * @property {FieldTriggerConfig} triggers.clear Clears the field value, only available if this field is [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/DateField#config-clearable)
668
639
  */
669
- triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
640
+ triggers ? : Record<string, FieldTriggerConfig>
670
641
  type ? : 'startdatefield'|'startdate'
671
642
  /**
672
643
  * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
673
644
  * as a space separated string, an array of strings, or as an object in which property names with truthy
674
645
  * values are used as the class names.
675
- * ...
676
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ui)
646
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-ui)
677
647
  */
678
648
  ui ? : string|object
679
649
  /**
@@ -704,14 +674,12 @@ export declare type BryntumStartDateFieldProps = {
704
674
  width ? : string|number
705
675
  /**
706
676
  * The x position for the widget.
707
- * ...
708
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-x)
677
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-x)
709
678
  */
710
679
  x ? : number
711
680
  /**
712
681
  * The y position for the widget.
713
- * ...
714
- * [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-y)
682
+ * [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#config-y)
715
683
  */
716
684
  y ? : number
717
685
 
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <div ref="refElement" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import { onBeforeUnmount, onMounted, ref } from 'vue';
7
+ import { Combo, DomHelper, BrowserHelper } from '@bryntum/core-thin';
8
+
9
+ const refElement = ref<HTMLElement | null>(null);
10
+ let combo: Combo | null = null;
11
+
12
+ onMounted(() => {
13
+ combo = new Combo({
14
+ appendTo : refElement.value as HTMLElement,
15
+ store : {
16
+ data : [
17
+ { id : 'svalbard-light', text : 'Svalbard Light' },
18
+ { id : 'svalbard-dark', text : 'Svalbard Dark' },
19
+ { id : 'visby-light', text : 'Visby Light' },
20
+ { id : 'visby-dark', text : 'Visby Dark' },
21
+ { id : 'stockholm-light', text : 'Stockholm Light' },
22
+ { id : 'stockholm-dark', text : 'Stockholm Dark' },
23
+ { id : 'material3-light', text : 'Material3 Light' },
24
+ { id : 'material3-dark', text : 'Material3 Dark' },
25
+ { id : 'fluent2-light', text : 'Fluent2 Light' },
26
+ { id : 'fluent2-dark', text : 'Fluent2 Dark' },
27
+ { id : 'high-contrast-light', text : 'High Contrast Light' },
28
+ { id : 'high-contrast-dark', text : 'High Contrast Dark' }
29
+ ]
30
+ },
31
+ label : 'Theme',
32
+ width : '16em',
33
+ value : 'svalbard-light',
34
+ editable : false,
35
+ labelPosition : 'before',
36
+ ref : 'themeCombo',
37
+ listeners : {
38
+ change({ value }: { value: string }) {
39
+ DomHelper.setTheme(value).then((context: any) => {
40
+ if (context) {
41
+ const { theme, prev } = context;
42
+ document.body.classList.remove(`b-theme-${prev}`);
43
+ document.body.classList.add(`b-theme-${theme}`);
44
+ }
45
+ });
46
+ }
47
+ }
48
+ });
49
+
50
+ // Apply from search param
51
+ const theme = BrowserHelper.searchParam('theme');
52
+ if (theme) {
53
+ combo.value = theme;
54
+ }
55
+ });
56
+
57
+ onBeforeUnmount(() => {
58
+ combo?.destroy();
59
+ });
60
+ </script>