@bryntum/chart-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.
@@ -0,0 +1,1150 @@
1
+ <!-- Vue 3 wrapper for Bryntum Chart -->
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, Container, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
14
+ import type { ChartListeners, ChartTooltipConfig, ChartContainerItemConfig, ChartContainerLayoutConfig, DataSeries, DataSeriesRole, Font } from '@bryntum/chart-thin';
15
+ import { Chart } from '@bryntum/chart-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/chart/docs/api/Chart/widget/Chart#config-adopt)
26
+ */
27
+ adopt ? : HTMLElement|string
28
+ /**
29
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
30
+ * ...
31
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-align)
32
+ */
33
+ align ? : AlignSpec|string
34
+ /**
35
+ * When this widget is a child of a [Container](https://bryntum.com/products/chart/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/chart/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
+ * Whether to animate chart data changes.
47
+ */
48
+ animate ? : Boolean
49
+ /**
50
+ * Set the duration in milliseconds for all animations.
51
+ */
52
+ animationDuration ? : number
53
+ /**
54
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
55
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element).
56
+ */
57
+ appendTo ? : HTMLElement|string
58
+ /**
59
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
60
+ * into an element which will be linked using the `aria-describedby` attribute.
61
+ * ...
62
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaDescription)
63
+ */
64
+ ariaDescription ? : string
65
+ /**
66
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
67
+ * the `aria-label` attribute.
68
+ * ...
69
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaLabel)
70
+ */
71
+ ariaLabel ? : string
72
+ /**
73
+ * Update assigned [record](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-record) automatically on field changes
74
+ */
75
+ autoUpdateRecord ? : Boolean
76
+ /**
77
+ * The stroke color used for the axis lines and ticks, or `null` for theme default.
78
+ */
79
+ axisColor ? : string
80
+ /**
81
+ * The text color used for the axis labels / ticks, or `null` to use `axisColor`.
82
+ */
83
+ axisLabelColor ? : string
84
+ /**
85
+ * The chart background color, or `null` for transparent.
86
+ */
87
+ background ? : string
88
+ /**
89
+ * (Optional) The name of a field in the chart data to use as the background color for each data point.
90
+ */
91
+ backgroundColorField ? : string
92
+ /**
93
+ * Layout direction for the bar chart type.
94
+ */
95
+ barDirection ? : 'vertical'|'horizontal'
96
+ /**
97
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
98
+ * hierarchy when triggered.
99
+ * ...
100
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-bubbleEvents)
101
+ */
102
+ bubbleEvents ? : object
103
+ /**
104
+ * Scale factor to apply to the computed size of bubbles in the bubble chart type.
105
+ */
106
+ bubbleScaleFactor ? : number
107
+ /**
108
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
109
+ * ...
110
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-callOnFunctions)
111
+ */
112
+ callOnFunctions ? : Boolean
113
+ /**
114
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
115
+ * application state is undefined. Code which follows the event handler will *not* be executed.
116
+ * ...
117
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-catchEventHandlerExceptions)
118
+ */
119
+ catchEventHandlerExceptions ? : Boolean
120
+ /**
121
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
122
+ * Set to `true` to centre the Widget in browser viewport space.
123
+ */
124
+ centered ? : Boolean
125
+ /**
126
+ * Padding around the entire chart area, in pixels.
127
+ */
128
+ chartPadding ? : object
129
+ /**
130
+ * Chart tooltip configuration object. Configures the tooltip that appears when hovering over chart data points.
131
+ * This follows the Chartjs tooltip configuration specification. This will only be applied if [showTooltips](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#property-showTooltips)
132
+ * is `true`.
133
+ */
134
+ chartTooltip ? : ChartTooltipConfig
135
+ /**
136
+ * Basic type of chart.
137
+ */
138
+ chartType ? : 'line'|'bar'|'pie'|'donut'|'scatter'|'bubble'|'radar'
139
+ /**
140
+ * Custom CSS classes to add to element.
141
+ * May be specified as a space separated string, or as an object in which property names
142
+ * with truthy values are used as the class names:
143
+ * ...
144
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-cls)
145
+ */
146
+ cls ? : string|object
147
+ /**
148
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
149
+ * `style` block.
150
+ * ...
151
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-color)
152
+ */
153
+ color ? : string
154
+ /**
155
+ * Programmatic control over which column to start in when used in a grid layout.
156
+ */
157
+ column ? : number
158
+ config ? : object
159
+ /**
160
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
161
+ * Element, Widget or Rectangle to which this Widget is constrained.
162
+ */
163
+ constrainTo ? : HTMLElement|Widget|Rectangle
164
+ /**
165
+ * The HTML content that coexists with sibling elements which may have been added to the
166
+ * [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
167
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-htmlCls)
168
+ * class added to its classList, to allow targeted styling.
169
+ */
170
+ content ? : string
171
+ /**
172
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).
173
+ * May be specified as a space separated string, or as an object in which property names
174
+ * with truthy values are used as the class names:
175
+ * ...
176
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-contentElementCls)
177
+ */
178
+ contentElementCls ? : string|object
179
+ /**
180
+ * The data records or objects containing data to display in the chart.
181
+ */
182
+ data ? : Model[]|object[]|ModelConfig[]
183
+ /**
184
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
185
+ * field on the expanded record to use for populating this widget's store (if applicable)
186
+ */
187
+ dataField ? : string
188
+ /**
189
+ * The shape to use for data point markers, or `'none'` for no markers.
190
+ */
191
+ dataPointShape ? : 'square'|'circle'|'diamond'|'triangle'|'none'
192
+ /**
193
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
194
+ */
195
+ dataset ? : Record<string, string>
196
+ /**
197
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
198
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
199
+ */
200
+ defaultBindProperty ? : string
201
+ /**
202
+ * A [query](https://bryntum.com/products/chart/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
203
+ * focus should be directed by default.
204
+ * ...
205
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-defaultFocus)
206
+ * @param {Core.widget.Widget} widget Widget passed to method
207
+ * @returns {boolean} truthy value if widget is the default one
208
+ */
209
+ defaultFocus ? : ((widget: Widget) => Boolean)|string
210
+ /**
211
+ * A config object containing default settings to apply to all child widgets.
212
+ */
213
+ defaults ? : ChartContainerItemConfig
214
+ /**
215
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
216
+ * ...
217
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-detectCSSCompatibilityIssues)
218
+ */
219
+ detectCSSCompatibilityIssues ? : Boolean
220
+ /**
221
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
222
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
223
+ * ...
224
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-disabled)
225
+ */
226
+ disabled ? : Boolean|'inert'
227
+ /**
228
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/chart/docs/api/Core/widget/Panel)
229
+ * [strips collection](https://bryntum.com/products/chart/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
230
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
231
+ * body. Such widgets are called "edge strips".
232
+ * ...
233
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-dock)
234
+ */
235
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
236
+ /**
237
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
238
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
239
+ * property which controls when a drag should start.
240
+ * ...
241
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-draggable)
242
+ */
243
+ draggable ? : Boolean|{
244
+ handleSelector?: string
245
+ }
246
+ /**
247
+ * An object specifying attributes to assign to the root element of this widget.
248
+ * Set `null` value to attribute to remove it.
249
+ * ...
250
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-elementAttributes)
251
+ */
252
+ elementAttributes ? : Record<string, string|null>
253
+ extraData ? : any
254
+ /**
255
+ * The name of the record field containing the data for this series.
256
+ */
257
+ field ? : string
258
+ /**
259
+ * When this widget is a child of a [Container](https://bryntum.com/products/chart/docs/api/Core/widget/Container), it will by default be participating in a
260
+ * flexbox layout. This config allows you to set this widget's
261
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
262
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
263
+ * numeric-only values are interpreted as the `flex-grow` value.
264
+ */
265
+ flex ? : number|string
266
+ /**
267
+ * Set to `true` to move the widget out of the document flow and position it
268
+ * absolutely in browser viewport space.
269
+ */
270
+ floating ? : Boolean
271
+ /**
272
+ * The stroke color used for the grid lines, or `null` for theme default.
273
+ */
274
+ gridColor ? : string
275
+ /**
276
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
277
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
278
+ * cases this config is convenient.
279
+ */
280
+ height ? : string|number
281
+ /**
282
+ * Configure with true to make widget initially hidden.
283
+ */
284
+ hidden ? : Boolean
285
+ /**
286
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideAnimation)
289
+ */
290
+ hideAnimation ? : Boolean|object
291
+ /**
292
+ * Specify `true` to make this container hide when it has no visible children (Either empty
293
+ * or all children hidden).
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideWhenEmpty)
296
+ */
297
+ hideWhenEmpty ? : Boolean
298
+ /**
299
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
300
+ * ...
301
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-html)
302
+ * @param {Core.widget.Widget} widget The calling Widget
303
+ * @returns {string}
304
+ */
305
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
306
+ /**
307
+ * The CSS class(es) to add when HTML content is being applied to this widget.
308
+ */
309
+ htmlCls ? : string|object
310
+ /**
311
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
312
+ */
313
+ id ? : string
314
+ /**
315
+ * Determines if the widgets read-only state should be controlled by its parent.
316
+ * ...
317
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ignoreParentReadOnly)
318
+ */
319
+ ignoreParentReadOnly ? : Boolean
320
+ /**
321
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
322
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
323
+ * right, set this config to `'end'`.
324
+ * ...
325
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-inputFieldAlign)
326
+ */
327
+ inputFieldAlign ? : 'start'|'end'
328
+ /**
329
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
330
+ */
331
+ insertBefore ? : HTMLElement|string
332
+ /**
333
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
334
+ */
335
+ insertFirst ? : HTMLElement|string
336
+ /**
337
+ * Whether to do dynamic highlighting and other interactivity as the mouse cursor moves over the chart.
338
+ */
339
+ interactive ? : Boolean
340
+ /**
341
+ * An optional CSS class to add to child items of this container.
342
+ */
343
+ itemCls ? : string
344
+ /**
345
+ * An object containing typed child widget config objects or Widgets. May also be specified
346
+ * as an array.
347
+ * ...
348
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-items)
349
+ */
350
+ items ? : Record<string, ChartContainerItemConfig|MenuItemEntry>|(ChartContainerItemConfig|MenuItemEntry|Widget)[]
351
+ /**
352
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
353
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
354
+ * are the name of the instance method to call when the keystroke is received.
355
+ * ...
356
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-keyMap)
357
+ */
358
+ keyMap ? : Record<string, KeyMapConfig>
359
+ /**
360
+ * The name of the series to display in the legend.
361
+ */
362
+ label ? : string
363
+ /**
364
+ * Convenience setting to use same label placement on all child widgets.
365
+ * ...
366
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-labelPosition)
367
+ */
368
+ labelPosition ? : 'before'|'above'|'align-before'|'auto'|null
369
+ /**
370
+ * For line and bar charts, this series defines the data values to use as ticks for the x-axis.
371
+ * For pie and donut chart, it defines the data values to use as slice labels.
372
+ */
373
+ labels ? : DataSeries
374
+ /**
375
+ * The short name of a helper class which manages rendering and styling of child items.
376
+ * ...
377
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layout)
378
+ */
379
+ layout ? : string|ChartContainerLayoutConfig
380
+ /**
381
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layoutStyle)
384
+ */
385
+ layoutStyle ? : object
386
+ /**
387
+ * An array of [child item](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-items) *config objects* which is to be converted into
388
+ * instances only when this Container is rendered, rather than eagerly at construct time.
389
+ * ...
390
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-lazyItems)
391
+ */
392
+ lazyItems ? : Record<string, ChartContainerItemConfig>|ChartContainerItemConfig[]|Widget[]
393
+ /**
394
+ * Where the chart's legend should appear relative to the main chart content.
395
+ * Options `inline-start` and `inline-end` function as in CSS, with horizontal positioning
396
+ * controlled by RTL mode.
397
+ */
398
+ legendPosition ? : 'top'|'right'|'bottom'|'left'|'inline-start'|'inline-end'
399
+ /**
400
+ * Optional scale factor to increase or decrease the size of the chart legend.
401
+ */
402
+ legendScale ? : number
403
+ /**
404
+ * The listener set for this object.
405
+ * ...
406
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-listeners)
407
+ */
408
+ listeners ? : ChartListeners
409
+ /**
410
+ * A class translations of which are used for translating this entity.
411
+ * This is often used when translations of an item are defined on its container class.
412
+ * For example:
413
+ * ...
414
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localeClass)
415
+ */
416
+ localeClass ? : typeof Base
417
+ /**
418
+ * Set to `false` to disable localization of this object.
419
+ */
420
+ localizable ? : Boolean
421
+ /**
422
+ * List of properties which values should be translated automatically upon a locale applying.
423
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
424
+ * you could use 'localeKey' meta configuration.
425
+ * Example:
426
+ * ...
427
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localizableProperties)
428
+ */
429
+ localizableProperties ? : string[]
430
+ /**
431
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
432
+ * numeric-only values are interpreted as pixels.
433
+ */
434
+ margin ? : number|string
435
+ /**
436
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) created for the
437
+ * [masked](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
438
+ * values.
439
+ */
440
+ maskDefaults ? : MaskConfig
441
+ /**
442
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
443
+ * [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) config object.
444
+ */
445
+ masked ? : Boolean|string|MaskConfig
446
+ /**
447
+ * Max value for the Y axis, for chart types that have one.
448
+ */
449
+ max ? : number
450
+ /**
451
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
452
+ * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
453
+ */
454
+ maxHeight ? : string|number
455
+ /**
456
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
457
+ * ...
458
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-maximizeOnMobile)
459
+ */
460
+ maximizeOnMobile ? : number|string
461
+ /**
462
+ * The maximum tick rotation in degrees.
463
+ */
464
+ maxTickLabelRotation ? : number
465
+ /**
466
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
467
+ * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
468
+ */
469
+ maxWidth ? : string|number
470
+ /**
471
+ * Min value for the Y axis, for chart types that have one.
472
+ */
473
+ min ? : number
474
+ /**
475
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
476
+ * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
477
+ */
478
+ minHeight ? : string|number
479
+ /**
480
+ * The minimum tick rotation in degrees.
481
+ */
482
+ minTickLabelRotation ? : number
483
+ /**
484
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
485
+ * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
486
+ */
487
+ minWidth ? : string|number
488
+ /**
489
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
490
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
491
+ * layout.
492
+ * ...
493
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-monitorResize)
494
+ */
495
+ monitorResize ? : Boolean|{
496
+ immediate?: Boolean
497
+ }
498
+ /**
499
+ * An object containing default config objects which may be referenced by name in the [items](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-items)
500
+ * config. For example, a specialized [Menu](https://bryntum.com/products/chart/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
501
+ * value defined like this:
502
+ * ...
503
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-namedItems)
504
+ */
505
+ namedItems ? : Record<string, ChartContainerItemConfig>
506
+ /**
507
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
508
+ * [items](https://bryntum.com/products/chart/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
509
+ * the owner is <strong>always</strong> the encapsulating Container.
510
+ * ...
511
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-owner)
512
+ */
513
+ owner ? : Widget|any
514
+ /**
515
+ * Radius of data points, in pixels.
516
+ */
517
+ pointSize ? : number
518
+ /**
519
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement), but must
520
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
521
+ * widget's [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).
522
+ * ...
523
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-positioned)
524
+ */
525
+ positioned ? : Boolean
526
+ /**
527
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
528
+ * menu on click etc, since the tooltip would be displayed at the same time.
529
+ */
530
+ preventTooltipOnTouch ? : Boolean
531
+ /**
532
+ * Whether this widget is read-only. This is only valid if the widget is an input
533
+ * field, <strong>or contains input fields at any depth</strong>.
534
+ * ...
535
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-readOnly)
536
+ */
537
+ readOnly ? : Boolean
538
+ /**
539
+ * [Record](https://bryntum.com/products/chart/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
540
+ * ...
541
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-record)
542
+ */
543
+ record ? : Model
544
+ relayStoreEvents ? : Boolean
545
+ /**
546
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
547
+ * `type`.
548
+ * ...
549
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rendition)
550
+ */
551
+ rendition ? : string|Record<string, string>|null
552
+ /**
553
+ * Configure as `true` to have the component display a translucent ripple when its
554
+ * [focusElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
555
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
556
+ * ...
557
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ripple)
558
+ */
559
+ ripple ? : Boolean|{
560
+ delegate?: string
561
+ color?: string
562
+ radius?: number
563
+ clip?: string
564
+ }
565
+ /**
566
+ * (Optional) Required when using certain chart types, for example `scatter`, where series can be arbitrarily
567
+ * assigned to different axes. The `role` determines how this series is used in the chart.
568
+ */
569
+ role ? : DataSeriesRole
570
+ /**
571
+ * 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`
572
+ */
573
+ rootElement ? : ShadowRoot|HTMLElement
574
+ /**
575
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
576
+ * ...
577
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rtl)
578
+ */
579
+ rtl ? : Boolean
580
+ /**
581
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
582
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
583
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
584
+ * CSS overflow properties thus:
585
+ * ...
586
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-scrollable)
587
+ */
588
+ scrollable ? : Boolean|ScrollerConfig|Scroller
589
+ /**
590
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
591
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
592
+ */
593
+ scrollAction ? : 'hide'|'realign'|null
594
+ /**
595
+ * One or more data series to display in the chart.
596
+ */
597
+ series ? : DataSeries[]
598
+ /**
599
+ * The type of stroke to use for data series lines.
600
+ */
601
+ seriesLineDash ? : 'dot'|'dash'|'solid'
602
+ /**
603
+ * The opacity of data series lines, from zero to one.
604
+ */
605
+ seriesLineOpacity ? : number
606
+ /**
607
+ * The thickness of data series lines, in pixels.
608
+ */
609
+ seriesLineThickness ? : number
610
+ /**
611
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*
612
+ * ...
613
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-showAnimation)
614
+ */
615
+ showAnimation ? : Boolean|object
616
+ /**
617
+ * Whether to show the chart's control button menu, for example, the download button.
618
+ */
619
+ showControls ? : Boolean
620
+ /**
621
+ * Whether to show the chart's legend.
622
+ */
623
+ showLegend ? : Boolean
624
+ /**
625
+ * Whether to show data point markers on the chart.
626
+ */
627
+ showPoints ? : Boolean
628
+ /**
629
+ * Whether to show the chart subtitle.
630
+ */
631
+ showSubtitle ? : Boolean
632
+ /**
633
+ * Whether to show tick marks and labels on the chart axes.
634
+ */
635
+ showTicks ? : Boolean
636
+ /**
637
+ * Whether to show the chart title.
638
+ */
639
+ showTitle ? : Boolean
640
+ /**
641
+ * Whether to show tooltips when the mouse cursor hovers over chart elements.
642
+ */
643
+ showTooltips ? : Boolean
644
+ /**
645
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-disabled)
646
+ */
647
+ showTooltipWhenDisabled ? : Boolean
648
+ /**
649
+ * Programmatic control over how many columns to span when used in a grid layout.
650
+ */
651
+ span ? : number
652
+ /**
653
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-record),
654
+ * without falling back to `ref`.
655
+ */
656
+ strictRecordMapping ? : Boolean
657
+ /**
658
+ * The chart subtitle.
659
+ */
660
+ subtitle ? : string
661
+ /**
662
+ * The font to use for the chart subtitle.
663
+ * ...
664
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-subtitleFont)
665
+ */
666
+ subtitleFont ? : Font
667
+ /**
668
+ * Padding around the chart subtitle, in pixels.
669
+ */
670
+ subtitlePadding ? : object
671
+ /**
672
+ * A configuration for the [tab](https://bryntum.com/products/chart/docs/api/Core/widget/Tab) created for this widget when it is placed in a
673
+ * [TabPanel](https://bryntum.com/products/chart/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
674
+ * this widget:
675
+ * ...
676
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tab)
677
+ */
678
+ tab ? : Boolean|TabConfig
679
+ /**
680
+ * When this container is used as a tab in a TabPanel, these items are added to the
681
+ * [TabBar](https://bryntum.com/products/chart/docs/api/Core/widget/TabBar) when this container is the active tab.
682
+ * ...
683
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tabBarItems)
684
+ */
685
+ tabBarItems ? : ToolbarItems[]|Widget[]
686
+ /**
687
+ * The tag name of this Widget's root element
688
+ */
689
+ tag ? : string
690
+ /**
691
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
692
+ * ...
693
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textAlign)
694
+ */
695
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
696
+ /**
697
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
698
+ * which specifies a default max-width that makes long text more readable.
699
+ * ...
700
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textContent)
701
+ */
702
+ textContent ? : Boolean
703
+ /**
704
+ * The font to use for tick labels on the chart axes.
705
+ * ...
706
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tickFont)
707
+ */
708
+ tickFont ? : Font
709
+ /**
710
+ * Set the color of the tick mark lines in the axis area, or `null` to default to [axisColor](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-axisColor).
711
+ */
712
+ tickMarkColor ? : string
713
+ /**
714
+ * The chart title.
715
+ */
716
+ title ? : string
717
+ /**
718
+ * The font to use for the chart title.
719
+ * ...
720
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-titleFont)
721
+ */
722
+ titleFont ? : Font
723
+ /**
724
+ * Padding around the chart title, in pixels.
725
+ */
726
+ titlePadding ? : object
727
+ /**
728
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
729
+ * ...
730
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tooltip)
731
+ */
732
+ tooltip ? : string|TooltipConfig|null
733
+ type ? : 'chart'
734
+ /**
735
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
736
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
737
+ * values are used as the class names.
738
+ * ...
739
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ui)
740
+ */
741
+ ui ? : string|object
742
+ /**
743
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/chart/docs/api/Core/widget/Container).
744
+ * Higher weights go further down.
745
+ */
746
+ weight ? : number
747
+ /**
748
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
749
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
750
+ * this config is convenient.
751
+ */
752
+ width ? : string|number
753
+ /**
754
+ * The x position for the widget.
755
+ * ...
756
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-x)
757
+ */
758
+ x ? : number
759
+ /**
760
+ * The y position for the widget.
761
+ * ...
762
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-y)
763
+ */
764
+ y ? : number
765
+
766
+ }>();
767
+
768
+ const emit = defineEmits<{
769
+ /**
770
+ * Fires before an object is destroyed.
771
+ * @param {string} e Event name
772
+ * @param {object} params Event parameters
773
+ * @param {object} params.event Event object
774
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
775
+ */
776
+ (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
777
+ /**
778
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
779
+ * @param {string} e Event name
780
+ * @param {object} params Event parameters
781
+ * @param {object} params.event Event object
782
+ * @param {Core.widget.Widget} params.event.source The widget being hidden.
783
+ */
784
+ (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
785
+ /**
786
+ * Fired before this container will load record values into its child fields. This is useful if you
787
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
788
+ * @param {string} e Event name
789
+ * @param {object} params Event parameters
790
+ * @param {object} params.event Event object
791
+ * @param {Core.widget.Container} params.event.source The container
792
+ * @param {Core.data.Model} params.event.record The record
793
+ */
794
+ (e: 'beforeSetRecord', params: ((event: { source: Container, record: Model }) => void)|string): void
795
+ /**
796
+ * Triggered before a widget is shown. Return `false` to prevent the action.
797
+ * @param {string} e Event name
798
+ * @param {object} params Event parameters
799
+ * @param {object} params.event Event object
800
+ * @param {Core.widget.Widget,any} params.event.source The widget being shown
801
+ */
802
+ (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
803
+ /**
804
+ * Fires when any other event is fired from the object.
805
+ * ...
806
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-catchAll)
807
+ * @param {string} e Event name
808
+ * @param {object} params Event parameters
809
+ * @param {object} params.event Event object
810
+ * @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
811
+ * @param {string} params.event.event.type The type of the event which is caught by the listener
812
+ */
813
+ (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
814
+ /**
815
+ * Fires when an object is destroyed.
816
+ * @param {string} e Event name
817
+ * @param {object} params Event parameters
818
+ * @param {object} params.event Event object
819
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
820
+ */
821
+ (e: 'destroy', params: ((event: { source: Base }) => void)|string): void
822
+ /**
823
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/chart/docs/api/Core/widget/Container#property-hasChanges) property changes
824
+ * @param {string} e Event name
825
+ * @param {object} params Event parameters
826
+ * @param {object} params.event Event object
827
+ * @param {Core.widget.Container} params.event.source The container.
828
+ * @param {boolean} params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
829
+ */
830
+ (e: 'dirtyStateChange', params: ((event: { source: Container, dirty: boolean }) => void)|string): void
831
+ /**
832
+ * Triggered when a widget's [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element) is available.
833
+ * @param {string} e Event name
834
+ * @param {object} params Event parameters
835
+ * @param {object} params.event Event object
836
+ * @param {HTMLElement} params.event.element The Widget's element.
837
+ */
838
+ (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
839
+ /**
840
+ * Fired when focus enters this Widget.
841
+ * @param {string} e Event name
842
+ * @param {object} params Event parameters
843
+ * @param {object} params.event Event object
844
+ * @param {Core.widget.Widget} params.event.source This Widget
845
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
846
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
847
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
848
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
849
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
850
+ */
851
+ (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
852
+ /**
853
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
854
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
855
+ * will not trigger this event. This is when focus exits this widget completely.
856
+ * @param {string} e Event name
857
+ * @param {object} params Event parameters
858
+ * @param {object} params.event Event object
859
+ * @param {Core.widget.Widget} params.event.source This Widget
860
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
861
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
862
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
863
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
864
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
865
+ */
866
+ (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
867
+ /**
868
+ * Triggered after a widget was hidden
869
+ * @param {string} e Event name
870
+ * @param {object} params Event parameters
871
+ * @param {object} params.event Event object
872
+ * @param {Core.widget.Widget} params.event.source The widget
873
+ */
874
+ (e: 'hide', params: ((event: { source: Widget }) => void)|string): void
875
+ /**
876
+ * Triggered when a widget which had been in a non-visible state for any reason
877
+ * achieves visibility.
878
+ * ...
879
+ * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-paint)
880
+ * @param {string} e Event name
881
+ * @param {object} params Event parameters
882
+ * @param {object} params.event Event object
883
+ * @param {Core.widget.Widget} params.event.source The widget being painted.
884
+ * @param {boolean} params.event.firstPaint `true` if this is the first paint.
885
+ */
886
+ (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
887
+ /**
888
+ * Fired when a Widget's read only state is toggled
889
+ * @param {string} e Event name
890
+ * @param {object} params Event parameters
891
+ * @param {object} params.event Event object
892
+ * @param {boolean} params.event.readOnly Read only or not
893
+ */
894
+ (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
895
+ /**
896
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
897
+ * to [recompose](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
898
+ */
899
+ (e: 'recompose', params: (() => void)|string): void
900
+ /**
901
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
902
+ * @param {string} e Event name
903
+ * @param {object} params Event parameters
904
+ * @param {object} params.event Event object
905
+ * @param {Core.widget.Widget} params.event.source This Widget
906
+ * @param {number} params.event.width The new width
907
+ * @param {number} params.event.height The new height
908
+ * @param {number} params.event.oldWidth The old width
909
+ * @param {number} params.event.oldHeight The old height
910
+ */
911
+ (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
912
+ /**
913
+ * Triggered after a widget is shown.
914
+ * @param {string} e Event name
915
+ * @param {object} params Event parameters
916
+ * @param {object} params.event Event object
917
+ * @param {Core.widget.Widget} params.event.source The widget
918
+ */
919
+ (e: 'show', params: ((event: { source: Widget }) => void)|string): void
920
+ }>();
921
+
922
+ const widgetData = {
923
+ instanceClass : Chart,
924
+ instanceName : 'Chart',
925
+
926
+ configNames : [
927
+ 'adopt',
928
+ 'align',
929
+ 'anchor',
930
+ 'ariaDescription',
931
+ 'ariaLabel',
932
+ 'autoUpdateRecord',
933
+ 'bubbleEvents',
934
+ 'centered',
935
+ 'color',
936
+ 'config',
937
+ 'constrainTo',
938
+ 'contentElementCls',
939
+ 'dataField',
940
+ 'defaultBindProperty',
941
+ 'defaultFocus',
942
+ 'defaults',
943
+ 'detectCSSCompatibilityIssues',
944
+ 'dock',
945
+ 'draggable',
946
+ 'elementAttributes',
947
+ 'floating',
948
+ 'hideAnimation',
949
+ 'hideWhenEmpty',
950
+ 'htmlCls',
951
+ 'ignoreParentReadOnly',
952
+ 'itemCls',
953
+ 'lazyItems',
954
+ 'listeners',
955
+ 'localeClass',
956
+ 'localizable',
957
+ 'localizableProperties',
958
+ 'maskDefaults',
959
+ 'masked',
960
+ 'monitorResize',
961
+ 'namedItems',
962
+ 'owner',
963
+ 'positioned',
964
+ 'preventTooltipOnTouch',
965
+ 'relayStoreEvents',
966
+ 'ripple',
967
+ 'rootElement',
968
+ 'scrollAction',
969
+ 'showAnimation',
970
+ 'showTooltipWhenDisabled',
971
+ 'tab',
972
+ 'tabBarItems',
973
+ 'tag',
974
+ 'textAlign',
975
+ 'textContent',
976
+ 'type',
977
+ 'ui',
978
+ 'weight'
979
+ ],
980
+ propertyConfigNames : [
981
+ 'alignSelf',
982
+ 'animate',
983
+ 'animationDuration',
984
+ 'appendTo',
985
+ 'axisColor',
986
+ 'axisLabelColor',
987
+ 'background',
988
+ 'backgroundColorField',
989
+ 'barDirection',
990
+ 'bubbleScaleFactor',
991
+ 'callOnFunctions',
992
+ 'catchEventHandlerExceptions',
993
+ 'chartPadding',
994
+ 'chartTooltip',
995
+ 'chartType',
996
+ 'cls',
997
+ 'column',
998
+ 'content',
999
+ 'data',
1000
+ 'dataPointShape',
1001
+ 'dataset',
1002
+ 'disabled',
1003
+ 'extraData',
1004
+ 'field',
1005
+ 'flex',
1006
+ 'gridColor',
1007
+ 'height',
1008
+ 'hidden',
1009
+ 'html',
1010
+ 'id',
1011
+ 'inputFieldAlign',
1012
+ 'insertBefore',
1013
+ 'insertFirst',
1014
+ 'interactive',
1015
+ 'items',
1016
+ 'keyMap',
1017
+ 'label',
1018
+ 'labelPosition',
1019
+ 'labels',
1020
+ 'layout',
1021
+ 'layoutStyle',
1022
+ 'legendPosition',
1023
+ 'legendScale',
1024
+ 'margin',
1025
+ 'max',
1026
+ 'maxHeight',
1027
+ 'maximizeOnMobile',
1028
+ 'maxTickLabelRotation',
1029
+ 'maxWidth',
1030
+ 'min',
1031
+ 'minHeight',
1032
+ 'minTickLabelRotation',
1033
+ 'minWidth',
1034
+ 'onBeforeDestroy',
1035
+ 'onBeforeHide',
1036
+ 'onBeforeSetRecord',
1037
+ 'onBeforeShow',
1038
+ 'onCatchAll',
1039
+ 'onDestroy',
1040
+ 'onDirtyStateChange',
1041
+ 'onElementCreated',
1042
+ 'onFocusIn',
1043
+ 'onFocusOut',
1044
+ 'onHide',
1045
+ 'onPaint',
1046
+ 'onReadOnly',
1047
+ 'onRecompose',
1048
+ 'onResize',
1049
+ 'onShow',
1050
+ 'pointSize',
1051
+ 'readOnly',
1052
+ 'record',
1053
+ 'rendition',
1054
+ 'role',
1055
+ 'rtl',
1056
+ 'scrollable',
1057
+ 'series',
1058
+ 'seriesLineDash',
1059
+ 'seriesLineOpacity',
1060
+ 'seriesLineThickness',
1061
+ 'showControls',
1062
+ 'showLegend',
1063
+ 'showPoints',
1064
+ 'showSubtitle',
1065
+ 'showTicks',
1066
+ 'showTitle',
1067
+ 'showTooltips',
1068
+ 'span',
1069
+ 'strictRecordMapping',
1070
+ 'subtitle',
1071
+ 'subtitleFont',
1072
+ 'subtitlePadding',
1073
+ 'tickFont',
1074
+ 'tickMarkColor',
1075
+ 'title',
1076
+ 'titleFont',
1077
+ 'titlePadding',
1078
+ 'tooltip',
1079
+ 'width',
1080
+ 'x',
1081
+ 'y'
1082
+ ],
1083
+ propertyNames : [
1084
+ 'anchorSize',
1085
+ 'focusVisible',
1086
+ 'hasChanges',
1087
+ 'isSettingValues',
1088
+ 'isValid',
1089
+ 'parent',
1090
+ 'values'
1091
+ ],
1092
+ eventNames : [
1093
+ 'beforeDestroy',
1094
+ 'beforeHide',
1095
+ 'beforeSetRecord',
1096
+ 'beforeShow',
1097
+ 'catchAll',
1098
+ 'destroy',
1099
+ 'dirtyStateChange',
1100
+ 'elementCreated',
1101
+ 'focusIn',
1102
+ 'focusOut',
1103
+ 'hide',
1104
+ 'paint',
1105
+ 'readOnly',
1106
+ 'recompose',
1107
+ 'resize',
1108
+ 'show'
1109
+ ]
1110
+ };
1111
+
1112
+ const instance: {
1113
+ value?: Chart
1114
+ } = {};
1115
+
1116
+ const refElement = ref<HTMLDivElement>()!;
1117
+ // Storage for teleports (in-cell Vue component instances) automatically renderer by template
1118
+ const teleports = ref(new Map());
1119
+
1120
+ // Provide teleports for processCellContent
1121
+ provide('teleports', teleports);
1122
+
1123
+ onMounted(() => {
1124
+
1125
+ const me = getCurrentInstance()!;
1126
+
1127
+ instance.value = WrapperHelper.createWidget<typeof Chart>({
1128
+ me,
1129
+ widgetData,
1130
+ emit,
1131
+ element : refElement.value!,
1132
+ toRaw
1133
+ });
1134
+
1135
+ const watcher = (prop: string, callback: any) => watch(() => me.props[prop], callback);
1136
+ WrapperHelper.watchProps(instance.value, widgetData, watcher);
1137
+ });
1138
+
1139
+ onBeforeUnmount(() => {
1140
+ // @ts-ignore
1141
+ instance.value?.destroy?.();
1142
+ });
1143
+
1144
+ defineExpose({
1145
+ instance,
1146
+ refElement,
1147
+ teleports
1148
+ });
1149
+
1150
+ </script>