@bryntum/chart-vue-3-thin 7.1.2 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,15 @@
1
- <div style="display: flex; justify-content: space-between; align-items: center; margin: 0 50px;">
2
- <a href="https://bryntum.com/" rel="noopener" target="_blank">
3
- <img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo">
4
- </a>
5
- <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/vue.svg" alt="Vue" width="100">
6
- </div>
1
+ <br>
2
+ <br>
3
+
4
+ <p align="center">
5
+ <a href="https://bryntum.com/" rel="noopener" target="_blank">
6
+ <img height="50" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo">
7
+ </a>
8
+ &emsp;&emsp;&emsp;&emsp;&emsp;
9
+ <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/vue.svg" alt="Vue" height="55">
10
+ </p>
11
+
12
+ <br>
7
13
 
8
14
  # Vue 3 wrapper for Bryntum Chart Thin packages
9
15
 
@@ -19,6 +19,7 @@ const D = /* @__PURE__ */ h({
19
19
  background: {},
20
20
  backgroundColorField: {},
21
21
  barDirection: {},
22
+ border: {},
22
23
  bubbleEvents: {},
23
24
  bubbleScaleFactor: {},
24
25
  callOnFunctions: {},
@@ -154,6 +155,7 @@ const D = /* @__PURE__ */ h({
154
155
  "ariaDescription",
155
156
  "ariaLabel",
156
157
  "autoUpdateRecord",
158
+ "border",
157
159
  "bubbleEvents",
158
160
  "centered",
159
161
  "color",
@@ -358,4 +360,4 @@ const D = /* @__PURE__ */ h({
358
360
  export {
359
361
  D as _
360
362
  };
361
- //# sourceMappingURL=8fVSBLjv.js.map
363
+ //# sourceMappingURL=DEEnuzoJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DEEnuzoJ.js","sources":["../../src/components/BryntumChart.vue"],"sourcesContent":["<!-- Vue 3 wrapper for Bryntum Chart -->\n\n<template>\n <div ref=\"refElement\">\n\n </div>\n</template>\n\n<script setup lang=\"ts\">\n\nimport { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';\n\nimport type { AlignSpec, Base, Color, Container, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';\nimport type { ChartListeners, ChartTooltipConfig, ChartContainerItemConfig, ChartContainerLayoutConfig, DataSeries, DataSeriesRole, Font } from '@bryntum/chart-thin';\nimport { Chart } from '@bryntum/chart-thin';\n\nimport { WrapperHelper } from '../helper/WrapperHelper';\n\ndefineProps<{\n // Configs\n /**\n * Element (or element id) to adopt as this Widget's encapsulating element. The widget's\n * content will be placed inside this element.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-adopt)\n */\n adopt ? : HTMLElement|string\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-align)\n */\n align ? : AlignSpec|string\n /**\n * 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\n * flexbox layout. This config allows you to set this widget's\n * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.\n */\n alignSelf ? : string\n /**\n * *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).*\n * `true` to show a connector arrow pointing to the align target.\n */\n anchor ? : Boolean\n /**\n * Whether to animate chart data changes.\n */\n animate ? : Boolean\n /**\n * Set the duration in milliseconds for all animations.\n */\n animationDuration ? : number\n /**\n * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at\n * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element).\n */\n appendTo ? : HTMLElement|string\n /**\n * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject\n * into an element which will be linked using the `aria-describedby` attribute.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaDescription)\n */\n ariaDescription ? : string\n /**\n * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as\n * the `aria-label` attribute.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaLabel)\n */\n ariaLabel ? : string\n /**\n * Update assigned [record](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-record) automatically on field changes\n */\n autoUpdateRecord ? : Boolean\n /**\n * The stroke color used for the axis lines and ticks, or `null` for theme default.\n */\n axisColor ? : string\n /**\n * The text color used for the axis labels / ticks, or `null` to use `axisColor`.\n */\n axisLabelColor ? : string\n /**\n * The chart background color, or `null` for transparent.\n */\n background ? : string\n /**\n * (Optional) The name of a field in the chart data to use as the background color for each data point.\n */\n backgroundColorField ? : string\n /**\n * Layout direction for the bar chart type.\n */\n barDirection ? : 'vertical'|'horizontal'\n /**\n * Set `true` to add a border to this container's element.\n */\n border ? : Boolean\n /**\n * An object where property names with a truthy value indicate which events should bubble up the ownership\n * hierarchy when triggered.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-bubbleEvents)\n */\n bubbleEvents ? : object\n /**\n * Scale factor to apply to the computed size of bubbles in the bubble chart type.\n */\n bubbleScaleFactor ? : number\n /**\n * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-callOnFunctions)\n */\n callOnFunctions ? : Boolean\n /**\n * By default, if an event handler throws an exception, the error propagates up the stack and the\n * application state is undefined. Code which follows the event handler will *not* be executed.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-catchEventHandlerExceptions)\n */\n catchEventHandlerExceptions ? : Boolean\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * Set to `true` to centre the Widget in browser viewport space.\n */\n centered ? : Boolean\n /**\n * Padding around the entire chart area, in pixels.\n */\n chartPadding ? : object\n /**\n * Chart tooltip configuration object. Configures the tooltip that appears when hovering over chart data points.\n * 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)\n * is `true`.\n */\n chartTooltip ? : ChartTooltipConfig\n /**\n * Basic type of chart.\n */\n chartType ? : 'line'|'bar'|'pie'|'donut'|'scatter'|'bubble'|'radar'\n /**\n * Custom CSS classes to add to element.\n * May be specified as a space separated string, or as an object in which property names\n * with truthy values are used as the class names:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-cls)\n */\n cls ? : string|object\n /**\n * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets\n * `style` block.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-color)\n */\n color ? : Color\n /**\n * Programmatic control over which column to start in when used in a grid layout.\n */\n column ? : number\n config ? : object\n /**\n * *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).*\n * Element, Widget or Rectangle to which this Widget is constrained.\n */\n constrainTo ? : HTMLElement|Widget|Rectangle\n /**\n * The HTML content that coexists with sibling elements which may have been added to the\n * [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.\n * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-htmlCls)\n * class added to its classList, to allow targeted styling.\n */\n content ? : string\n /**\n * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * May be specified as a space separated string, or as an object in which property names\n * with truthy values are used as the class names:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-contentElementCls)\n */\n contentElementCls ? : string|object\n /**\n * The data records or objects containing data to display in the chart.\n */\n data ? : Model[]|object[]|ModelConfig[]\n /**\n * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the\n * field on the expanded record to use for populating this widget's store (if applicable)\n */\n dataField ? : string\n /**\n * The shape to use for data point markers, or `'none'` for no markers.\n */\n dataPointShape ? : 'square'|'circle'|'diamond'|'triangle'|'none'\n /**\n * Object to apply to elements dataset (each key will be used as a data-attribute on the element)\n */\n dataset ? : Record<string, string>\n /**\n * The name of the property to set when a single value is to be applied to this Widget. Such as when used\n * in a grid WidgetColumn, this is the property to which the column's `field` is applied.\n */\n defaultBindProperty ? : string\n /**\n * A [query](https://bryntum.com/products/chart/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which\n * focus should be directed by default.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-defaultFocus)\n * @param {Core.widget.Widget} widget Widget passed to method\n * @returns {boolean} truthy value if widget is the default one\n */\n defaultFocus ? : ((widget: Widget) => Boolean)|string\n /**\n * A config object containing default settings to apply to all child widgets.\n */\n defaults ? : ChartContainerItemConfig\n /**\n * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-detectCSSCompatibilityIssues)\n */\n detectCSSCompatibilityIssues ? : Boolean\n /**\n * 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\n * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-disabled)\n */\n disabled ? : Boolean|'inert'\n /**\n * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/chart/docs/api/Core/widget/Panel)\n * [strips collection](https://bryntum.com/products/chart/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,\n * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's\n * body. Such widgets are called \"edge strips\".\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-dock)\n */\n dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´\n * property which controls when a drag should start.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-draggable)\n */\n draggable ? : Boolean|{\n handleSelector?: string\n }\n /**\n * An object specifying attributes to assign to the root element of this widget.\n * Set `null` value to attribute to remove it.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-elementAttributes)\n */\n elementAttributes ? : Record<string, string|null>\n extraData ? : any\n /**\n * The name of the record field containing the data for this series.\n */\n field ? : string\n /**\n * 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\n * flexbox layout. This config allows you to set this widget's\n * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.\n * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.\n * numeric-only values are interpreted as the `flex-grow` value.\n */\n flex ? : number|string\n /**\n * Set to `true` to move the widget out of the document flow and position it\n * absolutely in browser viewport space.\n */\n floating ? : Boolean\n /**\n * The stroke color used for the grid lines, or `null` for theme default.\n */\n gridColor ? : string\n /**\n * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,\n * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some\n * cases this config is convenient.\n */\n height ? : string|number\n /**\n * Configure with true to make widget initially hidden.\n */\n hidden ? : Boolean\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideAnimation)\n */\n hideAnimation ? : Boolean|object\n /**\n * Specify `true` to make this container hide when it has no visible children (Either empty\n * or all children hidden).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideWhenEmpty)\n */\n hideWhenEmpty ? : Boolean\n /**\n * The HTML to display initially or a function returning the markup (called at widget construction time).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-html)\n * @param {Core.widget.Widget} widget The calling Widget\n * @returns {string}\n */\n html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig\n /**\n * The CSS class(es) to add when HTML content is being applied to this widget.\n */\n htmlCls ? : string|object\n /**\n * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById\n */\n id ? : string\n /**\n * Determines if the widgets read-only state should be controlled by its parent.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ignoreParentReadOnly)\n */\n ignoreParentReadOnly ? : Boolean\n /**\n * Convenience setting to align input fields of child widgets. By default, the Field input element is\n * placed immediately following the `label`. If you prefer to have all input fields aligned to the\n * right, set this config to `'end'`.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-inputFieldAlign)\n */\n inputFieldAlign ? : 'start'|'end'\n /**\n * 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.\n */\n insertBefore ? : HTMLElement|string\n /**\n * 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.\n */\n insertFirst ? : HTMLElement|string\n /**\n * Whether to do dynamic highlighting and other interactivity as the mouse cursor moves over the chart.\n */\n interactive ? : Boolean\n /**\n * An optional CSS class to add to child items of this container.\n */\n itemCls ? : string\n /**\n * An object containing typed child widget config objects or Widgets. May also be specified\n * as an array.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-items)\n */\n items ? : Record<string, ChartContainerItemConfig|MenuItemEntry>|(ChartContainerItemConfig|MenuItemEntry|Widget)[]\n /**\n * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name\n * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values\n * are the name of the instance method to call when the keystroke is received.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-keyMap)\n */\n keyMap ? : Record<string, KeyMapConfig>\n /**\n * The name of the series to display in the legend.\n */\n label ? : string\n /**\n * Convenience setting to use same label placement on all child widgets.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-labelPosition)\n */\n labelPosition ? : 'before'|'above'|'align-before'|'auto'|null\n /**\n * For line and bar charts, this series defines the data values to use as ticks for the x-axis.\n * For pie and donut chart, it defines the data values to use as slice labels.\n */\n labels ? : DataSeries\n /**\n * The short name of a helper class which manages rendering and styling of child items.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layout)\n */\n layout ? : string|ChartContainerLayoutConfig\n /**\n * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layoutStyle)\n */\n layoutStyle ? : object\n /**\n * 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\n * instances only when this Container is rendered, rather than eagerly at construct time.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-lazyItems)\n */\n lazyItems ? : Record<string, ChartContainerItemConfig>|ChartContainerItemConfig[]|Widget[]\n /**\n * Where the chart's legend should appear relative to the main chart content.\n * Options `inline-start` and `inline-end` function as in CSS, with horizontal positioning\n * controlled by RTL mode.\n */\n legendPosition ? : 'top'|'right'|'bottom'|'left'|'inline-start'|'inline-end'\n /**\n * Optional scale factor to increase or decrease the size of the chart legend.\n */\n legendScale ? : number\n /**\n * The listener set for this object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-listeners)\n */\n listeners ? : ChartListeners\n /**\n * A class translations of which are used for translating this entity.\n * This is often used when translations of an item are defined on its container class.\n * For example:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localeClass)\n */\n localeClass ? : typeof Base\n /**\n * Set to `false` to disable localization of this object.\n */\n localizable ? : Boolean\n /**\n * List of properties which values should be translated automatically upon a locale applying.\n * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),\n * you could use 'localeKey' meta configuration.\n * Example:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localizableProperties)\n */\n localizableProperties ? : string[]\n /**\n * Widget's margin. This may be configured as a single number or a `TRBL` format string.\n * numeric-only values are interpreted as pixels.\n */\n margin ? : number|string\n /**\n * This config object contains the defaults for the [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) created for the\n * [masked](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these\n * values.\n */\n maskDefaults ? : MaskConfig\n /**\n * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a\n * [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) config object.\n */\n masked ? : Boolean|string|MaskConfig\n /**\n * Max value for the Y axis, for chart types that have one.\n */\n max ? : number\n /**\n * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.\n */\n maxHeight ? : string|number\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-maximizeOnMobile)\n */\n maximizeOnMobile ? : number|string\n /**\n * The maximum tick rotation in degrees.\n */\n maxTickLabelRotation ? : number\n /**\n * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.\n */\n maxWidth ? : string|number\n /**\n * Min value for the Y axis, for chart types that have one.\n */\n min ? : number\n /**\n * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.\n */\n minHeight ? : string|number\n /**\n * The minimum tick rotation in degrees.\n */\n minTickLabelRotation ? : number\n /**\n * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.\n */\n minWidth ? : string|number\n /**\n * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)\n * is used to monitor this element for size changes caused by either style manipulation, or by CSS\n * layout.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-monitorResize)\n */\n monitorResize ? : Boolean|{\n immediate?: Boolean\n }\n /**\n * 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)\n * config. For example, a specialized [Menu](https://bryntum.com/products/chart/docs/api/Core/widget/Menu) subclass may have a `namedItems` default\n * value defined like this:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-namedItems)\n */\n namedItems ? : Record<string, ChartContainerItemConfig>\n /**\n * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the\n * [items](https://bryntum.com/products/chart/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case\n * the owner is <strong>always</strong> the encapsulating Container.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-owner)\n */\n owner ? : Widget|any\n /**\n * Radius of data points, in pixels.\n */\n pointSize ? : number\n /**\n * 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\n * not participate in the standard layout of that widget, and must be positioned relatively to that\n * widget's [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-positioned)\n */\n positioned ? : Boolean\n /**\n * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a\n * menu on click etc, since the tooltip would be displayed at the same time.\n */\n preventTooltipOnTouch ? : Boolean\n /**\n * Whether this widget is read-only. This is only valid if the widget is an input\n * field, <strong>or contains input fields at any depth</strong>.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-readOnly)\n */\n readOnly ? : Boolean\n /**\n * [Record](https://bryntum.com/products/chart/docs/api/Core/data/Model) whose values will be used to populate fields in the container.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-record)\n */\n record ? : Model\n relayStoreEvents ? : Boolean\n /**\n * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget\n * `type`.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rendition)\n */\n rendition ? : string|Record<string, string>|null\n /**\n * Configure as `true` to have the component display a translucent ripple when its\n * [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\n * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ripple)\n */\n ripple ? : Boolean|{\n delegate?: string\n color?: string\n radius?: number\n clip?: string\n }\n /**\n * (Optional) Required when using certain chart types, for example `scatter`, where series can be arbitrarily\n * assigned to different axes. The `role` determines how this series is used in the chart.\n */\n role ? : DataSeriesRole\n /**\n * 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`\n */\n rootElement ? : ShadowRoot|HTMLElement\n /**\n * This may be configured as `true` to make the widget's element use the `direction:rtl` style.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rtl)\n */\n rtl ? : Boolean\n /**\n * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll\n * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are\n * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to\n * CSS overflow properties thus:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-scrollable)\n */\n scrollable ? : Boolean|ScrollerConfig|Scroller\n /**\n * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).\n * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.\n */\n scrollAction ? : 'hide'|'realign'|null\n /**\n * One or more data series to display in the chart.\n */\n series ? : DataSeries[]\n /**\n * The type of stroke to use for data series lines.\n */\n seriesLineDash ? : 'dot'|'dash'|'solid'\n /**\n * The opacity of data series lines, from zero to one.\n */\n seriesLineOpacity ? : number\n /**\n * The thickness of data series lines, in pixels.\n */\n seriesLineThickness ? : number\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-showAnimation)\n */\n showAnimation ? : Boolean|object\n /**\n * Whether to show the chart's control button menu, for example, the download button.\n */\n showControls ? : Boolean\n /**\n * Whether to show the chart's legend.\n */\n showLegend ? : Boolean\n /**\n * Whether to show data point markers on the chart.\n */\n showPoints ? : Boolean\n /**\n * Whether to show the chart subtitle.\n */\n showSubtitle ? : Boolean\n /**\n * Whether to show tick marks and labels on the chart axes.\n */\n showTicks ? : Boolean\n /**\n * Whether to show the chart title.\n */\n showTitle ? : Boolean\n /**\n * Whether to show tooltips when the mouse cursor hovers over chart elements.\n */\n showTooltips ? : Boolean\n /**\n * 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)\n */\n showTooltipWhenDisabled ? : Boolean\n /**\n * Programmatic control over how many columns to span when used in a grid layout.\n */\n span ? : number\n /**\n * 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),\n * without falling back to `ref`.\n */\n strictRecordMapping ? : Boolean\n /**\n * The chart subtitle.\n */\n subtitle ? : string\n /**\n * The font to use for the chart subtitle.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-subtitleFont)\n */\n subtitleFont ? : Font\n /**\n * Padding around the chart subtitle, in pixels.\n */\n subtitlePadding ? : object\n /**\n * 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\n * [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\n * this widget:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tab)\n */\n tab ? : Boolean|TabConfig\n /**\n * When this container is used as a tab in a TabPanel, these items are added to the\n * [TabBar](https://bryntum.com/products/chart/docs/api/Core/widget/TabBar) when this container is the active tab.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tabBarItems)\n */\n tabBarItems ? : ToolbarItems[]|Widget[]\n /**\n * The tag name of this Widget's root element\n */\n tag ? : string\n /**\n * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textAlign)\n */\n textAlign ? : 'left'|'center'|'right'|'start'|'end'\n /**\n * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`\n * which specifies a default max-width that makes long text more readable.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textContent)\n */\n textContent ? : Boolean\n /**\n * The font to use for tick labels on the chart axes.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tickFont)\n */\n tickFont ? : Font\n /**\n * 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).\n */\n tickMarkColor ? : string\n /**\n * The chart title.\n */\n title ? : string\n /**\n * The font to use for the chart title.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-titleFont)\n */\n titleFont ? : Font\n /**\n * Padding around the chart title, in pixels.\n */\n titlePadding ? : object\n /**\n * Tooltip for the widget, either as a string or as a Tooltip config object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tooltip)\n */\n tooltip ? : string|TooltipConfig|null\n type ? : 'chart'\n /**\n * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified\n * as a space separated string, an array of strings, or as an object in which property names with truthy\n * values are used as the class names.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ui)\n */\n ui ? : string|object\n /**\n * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/chart/docs/api/Core/widget/Container).\n * Higher weights go further down.\n */\n weight ? : number\n /**\n * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which\n * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases\n * this config is convenient.\n */\n width ? : string|number\n /**\n * The x position for the widget.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-x)\n */\n x ? : number\n /**\n * The y position for the widget.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-y)\n */\n y ? : number\n\n}>();\n\nconst emit = defineEmits<{\n /**\n * Fires before an object is destroyed.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.Base} params.event.source The Object that is being destroyed.\n */\n (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void\n /**\n * Triggered before a widget is hidden. Return `false` to prevent the action.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget being hidden.\n */\n (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void\n /**\n * Fired before this container will load record values into its child fields. This is useful if you\n * want to modify the UI before data is loaded (e.g. set some input field to be readonly)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Container} params.event.source The container\n * @param {Core.data.Model} params.event.record The record\n */\n (e: 'beforeSetRecord', params: ((event: { source: Container, record: Model }) => void)|string): void\n /**\n * Triggered before a widget is shown. Return `false` to prevent the action.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget,any} params.event.source The widget being shown\n */\n (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void\n /**\n * Fires when any other event is fired from the object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-catchAll)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details\n * @param {string} params.event.event.type The type of the event which is caught by the listener\n */\n (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void\n /**\n * Fires when an object is destroyed.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.Base} params.event.source The Object that is being destroyed.\n */\n (e: 'destroy', params: ((event: { source: Base }) => void)|string): void\n /**\n * 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\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Container} params.event.source The container.\n * @param {boolean} params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.\n */\n (e: 'dirtyStateChange', params: ((event: { source: Container, dirty: boolean }) => void)|string): void\n /**\n * Triggered when a widget's [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element) is available.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {HTMLElement} params.event.element The Widget's element.\n */\n (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void\n /**\n * Fired when focus enters this Widget.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {HTMLElement} params.event.fromElement The element which lost focus.\n * @param {HTMLElement} params.event.toElement The element which gained focus.\n * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.\n * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.\n * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.\n */\n (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void\n /**\n * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.\n * focus moving from within this Widget's ownership tree, even if there are floating widgets\n * will not trigger this event. This is when focus exits this widget completely.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {HTMLElement} params.event.fromElement The element which lost focus.\n * @param {HTMLElement} params.event.toElement The element which gained focus.\n * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.\n * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.\n * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.\n */\n (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void\n /**\n * Triggered after a widget was hidden\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget\n */\n (e: 'hide', params: ((event: { source: Widget }) => void)|string): void\n /**\n * Triggered when a widget which had been in a non-visible state for any reason\n * achieves visibility.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-paint)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget being painted.\n * @param {boolean} params.event.firstPaint `true` if this is the first paint.\n */\n (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void\n /**\n * Fired when a Widget's read only state is toggled\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {boolean} params.event.readOnly Read only or not\n */\n (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void\n /**\n * This event is fired after a widget's elements have been synchronized due to a direct or indirect call\n * 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.\n */\n (e: 'recompose', params: (() => void)|string): void\n /**\n * 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`*.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {number} params.event.width The new width\n * @param {number} params.event.height The new height\n * @param {number} params.event.oldWidth The old width\n * @param {number} params.event.oldHeight The old height\n */\n (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void\n /**\n * Triggered after a widget is shown.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget\n */\n (e: 'show', params: ((event: { source: Widget }) => void)|string): void\n}>();\n\nconst widgetData = {\n instanceClass : Chart,\n instanceName : 'Chart',\n\n configNames : [\n 'adopt',\n 'align',\n 'anchor',\n 'ariaDescription',\n 'ariaLabel',\n 'autoUpdateRecord',\n 'border',\n 'bubbleEvents',\n 'centered',\n 'color',\n 'config',\n 'constrainTo',\n 'contentElementCls',\n 'dataField',\n 'defaultBindProperty',\n 'defaultFocus',\n 'defaults',\n 'detectCSSCompatibilityIssues',\n 'dock',\n 'draggable',\n 'elementAttributes',\n 'floating',\n 'hideAnimation',\n 'hideWhenEmpty',\n 'htmlCls',\n 'ignoreParentReadOnly',\n 'itemCls',\n 'lazyItems',\n 'listeners',\n 'localeClass',\n 'localizable',\n 'localizableProperties',\n 'maskDefaults',\n 'masked',\n 'monitorResize',\n 'namedItems',\n 'owner',\n 'positioned',\n 'preventTooltipOnTouch',\n 'relayStoreEvents',\n 'ripple',\n 'rootElement',\n 'scrollAction',\n 'showAnimation',\n 'showTooltipWhenDisabled',\n 'tab',\n 'tabBarItems',\n 'tag',\n 'textAlign',\n 'textContent',\n 'type',\n 'ui',\n 'weight'\n ],\n propertyConfigNames : [\n 'alignSelf',\n 'animate',\n 'animationDuration',\n 'appendTo',\n 'axisColor',\n 'axisLabelColor',\n 'background',\n 'backgroundColorField',\n 'barDirection',\n 'bubbleScaleFactor',\n 'callOnFunctions',\n 'catchEventHandlerExceptions',\n 'chartPadding',\n 'chartTooltip',\n 'chartType',\n 'cls',\n 'column',\n 'content',\n 'data',\n 'dataPointShape',\n 'dataset',\n 'disabled',\n 'extraData',\n 'field',\n 'flex',\n 'gridColor',\n 'height',\n 'hidden',\n 'html',\n 'id',\n 'inputFieldAlign',\n 'insertBefore',\n 'insertFirst',\n 'interactive',\n 'items',\n 'keyMap',\n 'label',\n 'labelPosition',\n 'labels',\n 'layout',\n 'layoutStyle',\n 'legendPosition',\n 'legendScale',\n 'margin',\n 'max',\n 'maxHeight',\n 'maximizeOnMobile',\n 'maxTickLabelRotation',\n 'maxWidth',\n 'min',\n 'minHeight',\n 'minTickLabelRotation',\n 'minWidth',\n 'onBeforeDestroy',\n 'onBeforeHide',\n 'onBeforeSetRecord',\n 'onBeforeShow',\n 'onCatchAll',\n 'onDestroy',\n 'onDirtyStateChange',\n 'onElementCreated',\n 'onFocusIn',\n 'onFocusOut',\n 'onHide',\n 'onPaint',\n 'onReadOnly',\n 'onRecompose',\n 'onResize',\n 'onShow',\n 'pointSize',\n 'readOnly',\n 'record',\n 'rendition',\n 'role',\n 'rtl',\n 'scrollable',\n 'series',\n 'seriesLineDash',\n 'seriesLineOpacity',\n 'seriesLineThickness',\n 'showControls',\n 'showLegend',\n 'showPoints',\n 'showSubtitle',\n 'showTicks',\n 'showTitle',\n 'showTooltips',\n 'span',\n 'strictRecordMapping',\n 'subtitle',\n 'subtitleFont',\n 'subtitlePadding',\n 'tickFont',\n 'tickMarkColor',\n 'title',\n 'titleFont',\n 'titlePadding',\n 'tooltip',\n 'width',\n 'x',\n 'y'\n ],\n propertyNames : [\n 'anchorSize',\n 'focusVisible',\n 'hasChanges',\n 'isSettingValues',\n 'isValid',\n 'parent',\n 'values'\n ],\n eventNames : [\n 'beforeDestroy',\n 'beforeHide',\n 'beforeSetRecord',\n 'beforeShow',\n 'catchAll',\n 'destroy',\n 'dirtyStateChange',\n 'elementCreated',\n 'focusIn',\n 'focusOut',\n 'hide',\n 'paint',\n 'readOnly',\n 'recompose',\n 'resize',\n 'show'\n ]\n};\n\nconst instance: {\n value?: Chart\n} = {};\n\nconst refElement = ref<HTMLDivElement>()!;\n// Storage for teleports (in-cell Vue component instances) automatically renderer by template\nconst teleports = ref(new Map());\n\n// Provide teleports for processCellContent\nprovide('teleports', teleports);\n\nonMounted(() => {\n\n const me = getCurrentInstance()!;\n\n instance.value = WrapperHelper.createWidget<typeof Chart>({\n me,\n widgetData,\n emit,\n element : refElement.value!,\n toRaw\n });\n\n const watcher = (prop: string, callback: any) => watch(() => me.props[prop], callback);\n WrapperHelper.watchProps(instance.value, widgetData, watcher);\n});\n\nonBeforeUnmount(() => {\n // @ts-ignore\n instance.value?.destroy?.();\n});\n\ndefineExpose({\n instance,\n refElement,\n teleports\n});\n\n</script>\n"],"names":["emit","__emit","widgetData","Chart","instance","refElement","ref","teleports","provide","onMounted","me","getCurrentInstance","WrapperHelper","toRaw","watcher","prop","callback","watch","onBeforeUnmount","__expose","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmwBA,UAAMA,IAAOC,GA0JPC,IAAa;AAAA,MACf,eAAgBC;AAAA,MAChB,cAAgB;AAAA,MAEhB,aAAgB;AAAA,QACZ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,qBAAsB;AAAA,QAClB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,eAAgB;AAAA,QACZ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,YAAa;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IACJ,GAGEC,IAEF,CAAA,GAEEC,IAAaC,EAAA,GAEbC,IAAYD,EAAI,oBAAI,KAAK;AAG/B,WAAAE,EAAQ,aAAaD,CAAS,GAE9BE,EAAU,MAAM;AAEZ,YAAMC,IAAKC,EAAA;AAEX,MAAAP,EAAS,QAAQQ,EAAc,aAA2B;AAAA,QACtD,IAAAF;AAAA,QACA,YAAAR;AAAA,QACA,MAAAF;AAAA,QACA,SAAUK,EAAW;AAAA,QACrB,OAAAQ;AAAA,MAAA,CACH;AAED,YAAMC,IAAU,CAACC,GAAcC,MAAkBC,EAAM,MAAMP,EAAG,MAAMK,CAAI,GAAGC,CAAQ;AACrF,MAAAJ,EAAc,WAAWR,EAAS,OAAOF,GAAYY,CAAO;AAAA,IAChE,CAAC,GAEDI,EAAgB,MAAM;AAElB,MAAAd,EAAS,OAAO,UAAA;AAAA,IACpB,CAAC,GAEDe,EAAa;AAAA,MACT,UAAAf;AAAA,MACA,YAAAC;AAAA,MACA,WAAAE;AAAA,IAAA,CACH,mBA7nCGa,EAEM,OAAA;AAAA,eAFG;AAAA,MAAJ,KAAIf;AAAA,IAAA;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../chunks/8fVSBLjv.js";
1
+ import { _ as f } from "../chunks/DEEnuzoJ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -67,8 +67,8 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
67
67
  widgetData: e,
68
68
  emit: n,
69
69
  element: i,
70
- processCellContent: s,
71
- processEventContent: o,
70
+ processCellContent: o,
71
+ processEventContent: s,
72
72
  processWidgetContent: l,
73
73
  hasFrameworkRenderer: r,
74
74
  toRaw: d
@@ -77,14 +77,14 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
77
77
  for (const a of Object.keys(u))
78
78
  f[this.camelize(a)] = u[a];
79
79
  const {
80
- instanceClass: y,
80
+ instanceClass: m,
81
81
  instanceName: v
82
- } = e, m = (a) => f[a] !== void 0, p = (e.configNames || []).filter(m), C = (e.propertyConfigNames || []).filter(m), h = (e.propertyNames || []).filter(m), $ = (e.featureNames || []).filter(m), E = e.eventNames.filter((a) => !m(a) && !f[`on${this.capitalize(a)}`]), g = {
82
+ } = e, y = (a) => f[a] !== void 0, p = (e.configNames || []).filter(y), C = (e.propertyConfigNames || []).filter(y), h = (e.propertyNames || []).filter(y), $ = (e.featureNames || []).filter(y), E = e.eventNames.filter((a) => !y(a) && !f[`on${this.capitalize(a)}`]), g = {
83
83
  vueComponent: t,
84
84
  listeners: {},
85
85
  features: {},
86
- processCellContent: s,
87
- processEventContent: o,
86
+ processCellContent: o,
87
+ processEventContent: s,
88
88
  processWidgetContent: l,
89
89
  hasFrameworkRenderer: r
90
90
  };
@@ -93,8 +93,8 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
93
93
  ...C,
94
94
  ...$
95
95
  ].forEach((a) => {
96
- c.applyPropValue(g, a, f[a], !0, d), ["features", "config"].includes(a) && c.devWarningConfigProp(y.$name, a);
97
- }), g.cls = (g.cls || "") + ` b-vue-${y.$name.toLowerCase()}-container`, e.configNames = p, e.propertyNames = [
96
+ c.applyPropValue(g, a, f[a], !0, d), ["features", "config"].includes(a) && c.devWarningConfigProp(m.$name, a);
97
+ }), g.cls = (g.cls || "") + ` b-vue-${m.$name.toLowerCase()}-container`, e.configNames = p, e.propertyNames = [
98
98
  ...p,
99
99
  ...h,
100
100
  ...C,
@@ -106,7 +106,7 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
106
106
  "insertAfter",
107
107
  "insertBefore"
108
108
  ].find((a) => g[a]);
109
- return V ? c.devWarningContainer(y.$name, V) : v === "Button" ? g.appendTo = i : g.adopt = i, g;
109
+ return V ? c.devWarningContainer(m.$name, V) : v === "Button" ? g.appendTo = i : g.adopt = i, g;
110
110
  }
111
111
  /**
112
112
  * Setup store events relay
@@ -115,9 +115,9 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
115
115
  */
116
116
  static relayStores(t, e) {
117
117
  const { dataStores: n, projectStores: i } = t;
118
- n && (Object.keys(n).forEach((s) => {
119
- const o = i ? e.project[s] : e[s];
120
- o && (o.syncDataOnLoad == null && !o.readUrl && !o.lazyLoad && (!o.crudManager || !o.crudManager.loadUrl) && (o.syncDataOnLoad = !0), e && e.relayStoreEvents && o.relayAll(e, n[s]));
118
+ n && (Object.keys(n).forEach((o) => {
119
+ const s = i ? e.project[o] : e[o];
120
+ s && (s.syncDataOnLoad == null && !s.readUrl && !s.lazyLoad && (!s.crudManager || !s.crudManager.loadUrl) && (s.syncDataOnLoad = !0), e && e.relayStoreEvents && s.relayAll(e, n[o]));
121
121
  }), delete t.dataStores);
122
122
  }
123
123
  /**
@@ -144,25 +144,25 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
144
144
  * @param {Boolean} [isConfig] config setting mode
145
145
  * @param {Function} [toRaw] Vue fn to unwrap reactive object
146
146
  */
147
- static applyPropValue(t, e, n, i = !0, s) {
147
+ static applyPropValue(t, e, n, i = !0, o) {
148
148
  if (e === "project")
149
149
  n && typeof n == "object" && (t[e] = n.instance ? n.instance.value || n.instance : n);
150
150
  else if (e === "features" && typeof n == "object")
151
- Object.keys(n).forEach((o) => c.applyPropValue(t, `${o}Feature`, n[o], i, s));
151
+ Object.keys(n).forEach((s) => c.applyPropValue(t, `${s}Feature`, n[s], i, o));
152
152
  else if (e === "config" && typeof n == "object")
153
- Object.keys(n).forEach((o) => c.applyPropValue(t, o, n[o], i, s));
153
+ Object.keys(n).forEach((s) => c.applyPropValue(t, s, n[s], i, o));
154
154
  else if (e === "columns" && !i)
155
155
  t.columns.data = n;
156
156
  else if (e.endsWith("Feature")) {
157
- const o = t.features, l = e.replace("Feature", "");
157
+ const s = t.features, l = e.replace("Feature", "");
158
158
  if (i)
159
- o[l] = n;
159
+ s[l] = n;
160
160
  else {
161
- const r = o[l];
161
+ const r = s[l];
162
162
  r && r.setConfig(n);
163
163
  }
164
164
  } else
165
- t[e] = s ? s(n) : n;
165
+ t[e] = o ? o(n) : n;
166
166
  }
167
167
  /**
168
168
  * Creates watches for vue component properties
@@ -175,12 +175,12 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
175
175
  static watchProps(t, e, n) {
176
176
  const {
177
177
  configNames: i,
178
- propertyNames: s,
179
- instanceClass: o
178
+ propertyNames: o,
179
+ instanceClass: s
180
180
  } = e;
181
- s.forEach((l) => n(l, (r) => {
181
+ o.forEach((l) => n(l, (r) => {
182
182
  const d = Array.isArray(r) ? r.slice() : r;
183
- c.applyPropValue(t, l, d, !1), i.includes(l) && c.devWarningUpdateProp(o.$name, l);
183
+ c.applyPropValue(t, l, d, !1), i.includes(l) && c.devWarningUpdateProp(s.$name, l);
184
184
  })), e.configNames = [], e.propertyNames = [];
185
185
  }
186
186
  /**
@@ -190,11 +190,11 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
190
190
  * @param {Object} context.html Object containing the Vue component properties and event listeners
191
191
  */
192
192
  static processWidgetContent({ widget: t, html: e }) {
193
- const { is: n, bind: i = {}, vue: s, on: o = {} } = e, { vueComponent: l } = this, { teleports: { value: r } } = l.provides, { contentElement: d, id: f } = t;
194
- if (s) {
193
+ const { is: n, bind: i = {}, vue: o, on: s = {} } = e, { vueComponent: l } = this, { teleports: { value: r } } = l.provides, { contentElement: d, id: f } = t;
194
+ if (o) {
195
195
  const u = `key-${f}`;
196
196
  r.has(u) && r.delete(u), b(() => {
197
- r.set(u, { bind: i, on: o, key: u, is: n, to: d });
197
+ r.set(u, { bind: i, on: s, key: u, is: n, to: d });
198
198
  });
199
199
  }
200
200
  }
@@ -204,7 +204,7 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
204
204
  * @param {String} html The HTML content to be processed
205
205
  */
206
206
  static handleVueContent(t, e) {
207
- const n = (o) => !!o.vueComponent?.provides?.teleports, i = t.closest(n);
207
+ const n = (s) => !!s.vueComponent?.provides?.teleports, i = t.closest(n);
208
208
  (i?.vueComponent ? i : N.query(n))?.processWidgetContent?.({ widget: t, html: e });
209
209
  }
210
210
  /**
@@ -224,25 +224,25 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
224
224
  targetElement: n,
225
225
  isRelease: i
226
226
  }) {
227
- let s = n, o = !1;
227
+ let o = n, s = !1;
228
228
  const l = this.isVertical ? e?.elementData?.renderData : e?.elementData;
229
229
  if (c.isVueConfig(t) && t?.is) {
230
- e?.dataset?.isMilestone ? s = n.parentElement.parentElement.parentElement : s = n.parentElement.parentElement;
231
- const r = this.isVertical ? s.elementData.renderData : s.elementData, { assignmentRecord: d } = i ? l : r, { eventRecord: f } = r, { vueComponent: u } = this, { teleports: { value: y } } = u.provides, v = f.isRecurring || f.isOccurrence, m = `assignment-${d?.id}${v ? "-" + f.id : ""}`;
232
- s.vueKey && y.delete(s.vueKey);
230
+ e?.dataset?.isMilestone ? o = n.parentElement.parentElement.parentElement : o = n.parentElement.parentElement;
231
+ const r = this.isVertical ? o.elementData.renderData : o.elementData, { assignmentRecord: d } = i ? l : r, { eventRecord: f } = r, { vueComponent: u } = this, { teleports: { value: m } } = u.provides, v = f.isRecurring || f.isOccurrence, y = `assignment-${d?.id}${v ? "-" + f.id : ""}`;
232
+ o.vueKey && m.get(o.vueKey)?.to === n && m.delete(o.vueKey);
233
233
  const p = { ...t }, { is: C, on: h = {} } = p;
234
234
  delete p.is, delete p.on, b(() => {
235
- y.set(m, {
235
+ m.set(y, {
236
236
  bind: p,
237
- key: m,
237
+ key: y,
238
238
  is: C,
239
239
  on: h,
240
240
  to: n,
241
241
  generation: d.generation
242
242
  });
243
- }), s.vueKey = m, o = !0;
243
+ }), o.vueKey = y, s = !0;
244
244
  }
245
- return o;
245
+ return s;
246
246
  }
247
247
  /**
248
248
  * Cell renderer method
@@ -252,21 +252,21 @@ Solution: Use separate parameter for each "${e}" value to enable reactive update
252
252
  * @returns {Boolean}
253
253
  */
254
254
  static processCellContent({ rendererData: t, rendererHtml: e }) {
255
- const { record: n, column: i, cellElement: s, row: o } = t;
255
+ const { record: n, column: i, cellElement: o, row: s } = t;
256
256
  if (c.isVueConfig(i.data) && i.data?.renderer) {
257
- const { vueComponent: l } = this, { teleports: { value: r } } = l.provides, d = `${i.id}-${n.id}`, f = i.tree ? s.querySelector(".b-tree-cell-value") : s;
258
- s.vueKey && r.delete(s.vueKey);
259
- const u = { ...e }, { is: y, on: v = {} } = u;
257
+ const { vueComponent: l } = this, { teleports: { value: r } } = l.provides, d = `${i.id}-${n.id}`, f = i.tree ? o.querySelector(".b-tree-cell-value") : o;
258
+ o.vueKey && r.delete(o.vueKey);
259
+ const u = { ...e }, { is: m, on: v = {} } = u;
260
260
  delete u.is, delete u.on, b(() => {
261
- o.id === n.id && r.set(d, {
261
+ s.id === n.id && r.set(d, {
262
262
  bind: u,
263
263
  key: d,
264
- is: y,
264
+ is: m,
265
265
  on: v,
266
266
  to: f,
267
267
  generation: n.generation
268
268
  });
269
- }), s.vueKey = d;
269
+ }), o.vueKey = d;
270
270
  }
271
271
  }
272
272
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"WrapperHelper.js","sources":["../../src/helper/WrapperHelper.ts"],"sourcesContent":["/**\n * Vue 3 widget helper\n */\n\nimport { type ComponentInternalInstance, nextTick } from 'vue';\nimport { type VueConfig, Widget } from '@bryntum/core-thin';\n\ndeclare global {\n interface Window {\n bryntum: {\n isTestEnv?: boolean;\n vue?: {\n isVueConfig?: (config: any) => boolean;\n handleVueContent?: (widget: Widget, html: VueConfig) => void;\n };\n };\n }\n}\n\ninterface RenderElement extends HTMLElement {\n vueKey: string;\n}\n\nexport type Data = Record<string, unknown>;\n\ntype SuppressNew<T> = { [K in keyof T]: T[ K ] }\n\ntype AnyConstructor<\n Instance extends object = object,\n Static extends object = object\n> = (new (...input: any[]) => Instance) & SuppressNew<Static>\n\ntype AnyWidget = AnyConstructor<any, any>;\n\ntype RenderData = {\n record: any,\n row: any,\n column: any,\n cellElement: RenderElement\n}\n\ntype VueTeleportConfig = {\n vue: boolean,\n is: string,\n bind?: object\n on?: object\n}\n\nexport type WidgetData<T extends AnyWidget> = {\n instanceClass: T,\n instanceName: string\n isView?: boolean,\n dataStores?: object,\n projectStores?: boolean,\n configNames: string[]\n propertyConfigNames: string[]\n propertyNames: string[]\n eventNames: string[]\n featureNames?: string[]\n}\n\nexport type WidgetConfig<T extends AnyWidget> = {\n me?: ComponentInternalInstance;\n widgetData: WidgetData<T>,\n emit: (...args: any[]) => any\n element: HTMLDivElement;\n processCellContent?: Function;\n processEventContent?: Function;\n processWidgetContent?: Function;\n hasFrameworkRenderer?: Function;\n toRaw?: Function\n}\n\nexport type BryntumConfig = Record<string, any> & {\n vueComponent?: Object,\n listeners: Record<string, Function>,\n features: {},\n processCellContent: Function,\n processEventContent: Function,\n processWidgetContent: Function;\n hasFrameworkRenderer: Function\n};\n\nexport class WrapperHelper {\n\n /**\n * Development warning. Showed when environment is set to 'development'\n * @param {String} clsName vue component instance\n * @param {String} msg console message\n */\n static devWarning(clsName: string, msg: string) {\n // @ts-ignore\n if (window.bryntum?.isTestEnv || process.env.NODE_ENV === 'development') {\n console.warn(`Bryntum${clsName}Component development warning!\\n${msg}\\n` +\n 'Please check Vue integration guide: https://bryntum.com/products/grid/docs/guide/Grid/integration/vue/guide'\n );\n }\n }\n\n static devWarningContainer(clsName: string, containerParam: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${containerParam}\" parameter for configuration is not recommended.\\n` +\n 'Widget is placed automatically inside it\\'s container element.\\n' +\n `Solution: remove \"${containerParam}\" parameter from configuration.`\n );\n }\n\n static devWarningConfigProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${prop}\" parameter for configuration is not recommended.\\n` +\n `Solution: Use separate parameter for each \"${prop}\" value to enable reactive updates of the API instance`\n );\n }\n\n static devWarningUpdateProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `\"${prop}\" is a static config option for component constructor only. No runtime changes are supported!`\n );\n }\n\n static camelize(str: string) {\n return str.replace(/-./g, s => (s[1] || '').toUpperCase());\n }\n\n static capitalize(str: string) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n /**\n * Returns `true` if the provided configuration object is valid for Vue processing.\n * @param {*} config\n * @returns {Boolean}\n */\n static isVueConfig(config: any): boolean {\n return Boolean(config?.vue);\n }\n\n /**\n * Creates bryntum component config from vue component\n * @param {Object} context\n * @param {Object} context.me vue component instance\n * @param {Object} context.widgetData reference to data\n * @param {Function} context.emit reference to emit\n * @param {Object} context.element HTML element\n * @param {Function} context.processCellContent cell renderer method\n * @param {Function} context.processEventContent event renderer method\n * @param {Function} context.processWidgetContent widget renderer method\n * @param {Function} context.hasFrameworkRenderer checks presence of vue renderer\n * @param {Function} context.toRaw Vue fn to unwrap reactive object\n * @returns {Object} config object\n */\n static createConfig<T extends AnyWidget>({\n me,\n widgetData,\n emit,\n element,\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer,\n toRaw\n }: WidgetConfig<T>) {\n\n const\n props: Record<string, any> = {},\n vProps = me!.vnode!.props! || {};\n\n for (const key of Object.keys(vProps)) {\n // Convert possible kebab keys to camelCase\n props[this.camelize(key)] = vProps[key];\n }\n\n const\n {\n instanceClass,\n instanceName\n } = widgetData,\n isValidProp = (propName: string) => props[propName] !== undefined,\n configNames = (widgetData.configNames || []).filter(isValidProp),\n propertyConfigNames = (widgetData.propertyConfigNames || []).filter(isValidProp),\n propertyNames = (widgetData.propertyNames || []).filter(isValidProp),\n featureNames = (widgetData.featureNames || []).filter(isValidProp),\n // Disable event listeners for onProps, which are duplicating functions with preventable result support\n eventNames = widgetData.eventNames.filter(eventName => !isValidProp(eventName) && !props[`on${this.capitalize(eventName)}`]),\n bryntumConfig = {\n vueComponent : me,\n listeners : {},\n features : {},\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer\n } as BryntumConfig;\n\n // Setup events listeners\n eventNames.forEach(eventName => bryntumConfig.listeners[eventName] = (params: any) => emit(eventName, params));\n\n // Setup configs\n [\n ...configNames,\n ...propertyConfigNames,\n ...featureNames\n ].forEach(propName => {\n WrapperHelper.applyPropValue(bryntumConfig, propName, props[propName], true, toRaw);\n if (['features', 'config'].includes(propName)) {\n WrapperHelper.devWarningConfigProp(instanceClass.$name, propName);\n }\n });\n\n // Add vue wrapper class name\n bryntumConfig.cls = (bryntumConfig.cls || '') + ` b-vue-${instanceClass.$name.toLowerCase()}-container`;\n\n // Prepare watch arrays\n widgetData.configNames = configNames;\n widgetData.propertyNames = [\n ...configNames,\n ...propertyNames,\n ...propertyConfigNames,\n ...featureNames\n ];\n\n // Cleanup unused instance arrays\n widgetData.eventNames = [];\n widgetData.propertyConfigNames = [];\n widgetData.featureNames = [];\n\n // If component has no container specified in config then use adopt to Wrapper's element\n const\n containerParam = [\n 'adopt',\n 'appendTo',\n 'insertAfter',\n 'insertBefore'\n ].find((prop: string) => bryntumConfig[prop]);\n\n if (!containerParam) {\n if (instanceName === 'Button') {\n // Button should always be <a> or <button> inside owner element\n bryntumConfig.appendTo = element;\n }\n else {\n bryntumConfig.adopt = element;\n }\n }\n else {\n WrapperHelper.devWarningContainer(instanceClass.$name, containerParam);\n }\n return bryntumConfig;\n }\n\n /**\n * Setup store events relay\n * @param {Object} data reference to data\n * @param {Object} instance bryntum widget instance\n */\n static relayStores(data: any, instance: any) {\n const { dataStores, projectStores } = data;\n\n if (dataStores) {\n Object.keys(dataStores).forEach(storeName => {\n const store = projectStores ? instance.project[storeName] : instance[storeName];\n if (store) {\n\n\n if (store.syncDataOnLoad == null && !store.readUrl && !store.lazyLoad && (!store.crudManager || !store.crudManager.loadUrl)) {\n store.syncDataOnLoad = true;\n }\n\n\n\n // Makes relaying store events configurable but off by default\n if (instance && instance.relayStoreEvents) {\n store.relayAll(instance, dataStores[storeName]);\n }\n }\n });\n delete data.dataStores;\n }\n }\n\n /**\n * Creates bryntum Widget from vue component\n * @param {Object} config\n * @param {Object} config.me vue component instance\n * @param {Object} config.widgetData reference to data\n * @param {Function} config.emit reference to emit\n * @param {Object} config.element HTML element\n * @param {Function} config.processCellContent cell renderer method\n * @param {Function} config.hasFrameworkRenderer check the presence of vue renderer\n * @param {Function} config.toRaw Vue fn to unwrap reactive object\n * @returns {Object} widget object\n */\n static createWidget<T extends AnyWidget>(config: WidgetConfig<T>): InstanceType<T> {\n const\n { instanceClass } = config.widgetData,\n cfg = WrapperHelper.createConfig(config);\n return (instanceClass.$name === 'Widget' ? Widget.create(cfg) : new instanceClass(cfg)) as InstanceType<T>;\n }\n\n /**\n * Applies property value to Bryntum config or instance.\n * @param {Object} configOrInstance target object\n * @param {String} prop property name\n * @param {Object} value value\n * @param {Boolean} [isConfig] config setting mode\n * @param {Function} [toRaw] Vue fn to unwrap reactive object\n */\n static applyPropValue(configOrInstance: any, prop: string, value: any, isConfig = true, toRaw?: Function) {\n\n if (prop === 'project') {\n // Allow use ProjectModel component as project\n if (value && typeof value === 'object') {\n configOrInstance[prop] = value.instance ? value.instance.value || value.instance : value;\n }\n }\n else if (prop === 'features' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, `${key}Feature`, value[key], isConfig, toRaw));\n }\n else if (prop === 'config' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, key, value[key], isConfig, toRaw));\n }\n else if (prop === 'columns' && !isConfig) {\n configOrInstance['columns'].data = value;\n }\n else if (prop.endsWith('Feature')) {\n const\n features = configOrInstance['features'],\n featureName = prop.replace('Feature', '');\n if (isConfig) {\n features[featureName] = value;\n }\n else {\n const feature = features[featureName];\n if (feature) {\n feature.setConfig(value);\n }\n }\n }\n else {\n configOrInstance[prop] = toRaw ? toRaw(value) : value;\n }\n }\n\n /**\n * Creates watches for vue component properties\n * @param {Object} me vue component instance\n * @param {Object} instance bryntum widget instance\n * @param {Object} props reference to props\n * @param {Object} data reference to data\n * @param {Function} watcher watch method reference (Accepts: prop and newValue)\n */\n static watchProps<T extends AnyWidget>(\n instance: InstanceType<T>,\n data: WidgetData<T>,\n watcher: (prop: string, callback: (value: any) => void) => void) {\n const\n {\n configNames,\n propertyNames,\n instanceClass\n } = data;\n\n propertyNames.forEach(prop => watcher(prop, newValue => {\n const value = Array.isArray(newValue) ? newValue.slice() : newValue;\n WrapperHelper.applyPropValue(instance, prop, value, false);\n\n // Check if property is a config and notify\n if (configNames.includes(prop)) {\n WrapperHelper.devWarningUpdateProp(instanceClass.$name, prop);\n }\n }));\n\n // Cleanup unused instance arrays\n data.configNames = [];\n data.propertyNames = [];\n }\n\n /**\n * Called from Widget.js to add the Vue component to teleports\n * @param {Object} context\n * @param {Widget} context.widget Widget which content is rendered by the Vue component\n * @param {Object} context.html Object containing the Vue component properties and event listeners\n */\n static processWidgetContent({ widget, html }: { widget: Widget; html: VueTeleportConfig }) {\n const\n { is, bind = {}, vue, on = {} } = html,\n // @ts-ignore\n { vueComponent } = this,\n { teleports : { value : teleports } } = vueComponent.provides,\n { contentElement : to, id } = widget;\n\n if (vue) {\n const key = `key-${id}`;\n\n // delete the teleport with the same key if any\n if (teleports.has(key)) {\n teleports.delete(key);\n }\n\n nextTick(() => {\n teleports.set(key, { bind, on, key, is, to });\n });\n }\n }\n\n /**\n * Handles the content provided by a Vue component for the widget.\n * @param {Widget} widget Owner widget\n * @param {String} html The HTML content to be processed\n */\n static handleVueContent(widget: Widget, html: VueConfig): void {\n // Called when a Vue component is to provide the widget content\n const\n hasTeleports = (element: any) => Boolean(element.vueComponent?.provides?.teleports),\n parentView = widget.closest(hasTeleports) as any,\n // Find a view (grid, scheduler, etc.) which has `teleports` defined. It also has `processWidgetContent`\n view = parentView?.vueComponent ? parentView : Widget.query(hasTeleports);\n\n view?.processWidgetContent?.({ widget, html });\n }\n\n /**\n * Event renderer method\n * @param {Object} context\n * @param {*} context.jsx\n * @param {DomConfig} context.domConfig\n * @param {HTMLElement} context.targetElement\n * @param {Boolean} context.isRelease\n * @returns {Boolean}\n */\n static processEventContent({\n // Core passes it as jsx for React wrappers.\n // Let's rename it to a more appropriate name.\n jsx : rendererConfig,\n domConfig,\n targetElement,\n isRelease\n }: {\n jsx: { [key: string]: any },\n domConfig: any;\n isRelease: boolean;\n targetElement: HTMLElement & { vueKey: string }\n scrolling: boolean\n }) {\n\n let wrap: any = targetElement,\n returnValue = false;\n\n // @ts-ignore\n const domConfigData = this.isVertical ? domConfig?.elementData?.renderData : domConfig?.elementData;\n\n if (WrapperHelper.isVueConfig(rendererConfig) && rendererConfig?.is) {\n if (domConfig?.dataset?.isMilestone) {\n wrap = targetElement.parentElement!.parentElement!.parentElement!;\n }\n else {\n wrap = targetElement.parentElement!.parentElement!;\n }\n const\n // Vertical nests renderData, while horizontal does not\n // @ts-ignore\n wrapData = this.isVertical ? wrap.elementData.renderData : wrap.elementData,\n { assignmentRecord } = isRelease ? domConfigData : wrapData,\n { eventRecord } = wrapData,\n { vueComponent } = this as any,\n { teleports : { value : teleports } } = vueComponent.provides,\n\n // Recurring events are handled a bit differently so get the flag\n isRecurring = eventRecord.isRecurring || eventRecord.isOccurrence,\n key = `assignment-${assignmentRecord?.id}${isRecurring ? '-' + eventRecord.id : ''}`;\n\n if (wrap.vueKey) {\n teleports.delete(wrap.vueKey);\n }\n const\n bind = { ...rendererConfig },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n nextTick(() => {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : targetElement,\n generation : assignmentRecord.generation\n });\n\n });\n\n wrap.vueKey = key;\n returnValue = true;\n }\n\n return returnValue;\n }\n\n /**\n * Cell renderer method\n * @param {Object} context\n * @param {RenderData} context.rendererData\n * @param {*} context.rendererHtml\n * @returns {Boolean}\n */\n static processCellContent({ rendererData, rendererHtml }: { rendererData: RenderData, rendererHtml: any }) {\n const { record, column, cellElement, row } = rendererData;\n\n // Only run for cells with vue renderers\n if (WrapperHelper.isVueConfig(column.data) && column.data?.renderer) {\n const\n // `this` is a caller component\n { vueComponent } = this as any,\n // `teleports` is javascript Map object\n { teleports : { value : teleports } } = vueComponent.provides,\n key = `${column.id}-${record.id}`,\n renderElement = column.tree\n ? cellElement.querySelector('.b-tree-cell-value')\n : cellElement;\n\n // If the cell already has a teleport, release it\n if (cellElement.vueKey) {\n teleports.delete(cellElement.vueKey);\n }\n\n const\n bind = { ...rendererHtml },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n // Create new teleport\n nextTick(() => {\n // Only teleport if the row is still used for the same record. Since this happens async, we might have\n // scrolled over the entire block of rows since the render\n if (row.id === record.id) {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : renderElement,\n generation : record.generation\n });\n }\n });\n\n // Link cell to the teleport, to be able to release it above\n cellElement.vueKey = key;\n }\n }\n\n /**\n *\n * @param {Object} context\n * @param {*} context.cellContent Content to be rendered in cell (set by renderer)\n * @param {*} context.column Column being rendered\n * @returns {Boolean} `true` if there is a Vue Renderer in this cell, `false` otherwise\n */\n static hasFrameworkRenderer({ cellContent, column }: { cellContent: any, column: any }) {\n return cellContent && typeof cellContent === 'object' && WrapperHelper.isVueConfig(column?.data);\n }\n}\n\n// Expose wrapper methods on window.bryntum\nwindow.bryntum = window.bryntum || {};\nwindow.bryntum.vue = {\n isVueConfig : WrapperHelper.isVueConfig,\n handleVueContent : WrapperHelper.handleVueContent\n};\n"],"names":["WrapperHelper","clsName","msg","containerParam","prop","str","s","config","me","widgetData","emit","element","processCellContent","processEventContent","processWidgetContent","hasFrameworkRenderer","toRaw","props","vProps","key","instanceClass","instanceName","isValidProp","propName","configNames","propertyConfigNames","propertyNames","featureNames","eventNames","eventName","bryntumConfig","params","data","instance","dataStores","projectStores","storeName","store","cfg","Widget","configOrInstance","value","isConfig","features","featureName","feature","watcher","newValue","widget","html","is","bind","vue","on","vueComponent","teleports","to","id","nextTick","hasTeleports","parentView","rendererConfig","domConfig","targetElement","isRelease","wrap","returnValue","domConfigData","wrapData","assignmentRecord","eventRecord","isRecurring","rendererData","rendererHtml","record","column","cellElement","row","renderElement","cellContent"],"mappings":";;AAmFO,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvB,OAAO,WAAWC,GAAiBC,GAAa;AAE5C,KAAI,OAAO,SAAS,aAAa,QAAQ,IAAI,aAAa,kBACtD,QAAQ;AAAA,MAAK,UAAUD,CAAO;AAAA,EAAmCC,CAAG;AAAA;AAAA,IAAA;AAAA,EAI5E;AAAA,EAEA,OAAO,oBAAoBD,GAAiBE,GAAwB;AAChE,IAAAH,EAAc;AAAA,MAAWC;AAAA,MACrB,UAAUE,CAAc;AAAA;AAAA,oBAEHA,CAAc;AAAA,IAAA;AAAA,EAE3C;AAAA,EAEA,OAAO,qBAAqBF,GAAiBG,GAAc;AACvD,IAAAJ,EAAc;AAAA,MAAWC;AAAA,MACrB,UAAUG,CAAI;AAAA,6CACgCA,CAAI;AAAA,IAAA;AAAA,EAE1D;AAAA,EAEA,OAAO,qBAAqBH,GAAiBG,GAAc;AACvD,IAAAJ,EAAc;AAAA,MAAWC;AAAA,MACrB,IAAIG,CAAI;AAAA,IAAA;AAAA,EAEhB;AAAA,EAEA,OAAO,SAASC,GAAa;AACzB,WAAOA,EAAI,QAAQ,OAAO,CAAAC,OAAMA,EAAE,CAAC,KAAK,IAAI,aAAa;AAAA,EAC7D;AAAA,EAEA,OAAO,WAAWD,GAAa;AAC3B,WAAOA,EAAI,OAAO,CAAC,EAAE,gBAAgBA,EAAI,MAAM,CAAC;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,YAAYE,GAAsB;AACrC,WAAO,EAAQA,GAAQ;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA;AAA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IACzB;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,OAAO,qBAAqB,EAAE,aAAA4D,GAAa,QAAAJ,KAA6C;AACpF,WAAOI,KAAe,OAAOA,KAAgB,YAAY/E,EAAc,YAAY2E,GAAQ,IAAI;AAAA,EACnG;AACJ;AAGA,OAAO,UAAc,OAAO,WAAW,CAAA;AACvC,OAAO,QAAQ,MAAM;AAAA,EACjB,aAAmB3E,EAAc;AAAA,EACjC,kBAAmBA,EAAc;AACrC;"}
1
+ {"version":3,"file":"WrapperHelper.js","sources":["../../src/helper/WrapperHelper.ts"],"sourcesContent":["/**\n * Vue 3 widget helper\n */\n\nimport { type ComponentInternalInstance, nextTick } from 'vue';\nimport { type VueConfig, Widget } from '@bryntum/core-thin';\n\ndeclare global {\n interface Window {\n bryntum: {\n isTestEnv?: boolean;\n vue?: {\n isVueConfig?: (config: any) => boolean;\n handleVueContent?: (widget: Widget, html: VueConfig) => void;\n };\n };\n }\n}\n\ninterface RenderElement extends HTMLElement {\n vueKey: string;\n}\n\nexport type Data = Record<string, unknown>;\n\ntype SuppressNew<T> = { [K in keyof T]: T[ K ] }\n\ntype AnyConstructor<\n Instance extends object = object,\n Static extends object = object\n> = (new (...input: any[]) => Instance) & SuppressNew<Static>\n\ntype AnyWidget = AnyConstructor<any, any>;\n\ntype RenderData = {\n record: any,\n row: any,\n column: any,\n cellElement: RenderElement\n}\n\ntype VueTeleportConfig = {\n vue: boolean,\n is: string,\n bind?: object\n on?: object\n}\n\nexport type WidgetData<T extends AnyWidget> = {\n instanceClass: T,\n instanceName: string\n isView?: boolean,\n dataStores?: object,\n projectStores?: boolean,\n configNames: string[]\n propertyConfigNames: string[]\n propertyNames: string[]\n eventNames: string[]\n featureNames?: string[]\n}\n\nexport type WidgetConfig<T extends AnyWidget> = {\n me?: ComponentInternalInstance;\n widgetData: WidgetData<T>,\n emit: (...args: any[]) => any\n element: HTMLDivElement;\n processCellContent?: Function;\n processEventContent?: Function;\n processWidgetContent?: Function;\n hasFrameworkRenderer?: Function;\n toRaw?: Function\n}\n\nexport type BryntumConfig = Record<string, any> & {\n vueComponent?: Object,\n listeners: Record<string, Function>,\n features: {},\n processCellContent: Function,\n processEventContent: Function,\n processWidgetContent: Function;\n hasFrameworkRenderer: Function\n};\n\nexport class WrapperHelper {\n\n /**\n * Development warning. Showed when environment is set to 'development'\n * @param {String} clsName vue component instance\n * @param {String} msg console message\n */\n static devWarning(clsName: string, msg: string) {\n // @ts-ignore\n if (window.bryntum?.isTestEnv || process.env.NODE_ENV === 'development') {\n console.warn(`Bryntum${clsName}Component development warning!\\n${msg}\\n` +\n 'Please check Vue integration guide: https://bryntum.com/products/grid/docs/guide/Grid/integration/vue/guide'\n );\n }\n }\n\n static devWarningContainer(clsName: string, containerParam: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${containerParam}\" parameter for configuration is not recommended.\\n` +\n 'Widget is placed automatically inside it\\'s container element.\\n' +\n `Solution: remove \"${containerParam}\" parameter from configuration.`\n );\n }\n\n static devWarningConfigProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `Using \"${prop}\" parameter for configuration is not recommended.\\n` +\n `Solution: Use separate parameter for each \"${prop}\" value to enable reactive updates of the API instance`\n );\n }\n\n static devWarningUpdateProp(clsName: string, prop: string) {\n WrapperHelper.devWarning(clsName,\n `\"${prop}\" is a static config option for component constructor only. No runtime changes are supported!`\n );\n }\n\n static camelize(str: string) {\n return str.replace(/-./g, s => (s[1] || '').toUpperCase());\n }\n\n static capitalize(str: string) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n }\n\n /**\n * Returns `true` if the provided configuration object is valid for Vue processing.\n * @param {*} config\n * @returns {Boolean}\n */\n static isVueConfig(config: any): boolean {\n return Boolean(config?.vue);\n }\n\n /**\n * Creates bryntum component config from vue component\n * @param {Object} context\n * @param {Object} context.me vue component instance\n * @param {Object} context.widgetData reference to data\n * @param {Function} context.emit reference to emit\n * @param {Object} context.element HTML element\n * @param {Function} context.processCellContent cell renderer method\n * @param {Function} context.processEventContent event renderer method\n * @param {Function} context.processWidgetContent widget renderer method\n * @param {Function} context.hasFrameworkRenderer checks presence of vue renderer\n * @param {Function} context.toRaw Vue fn to unwrap reactive object\n * @returns {Object} config object\n */\n static createConfig<T extends AnyWidget>({\n me,\n widgetData,\n emit,\n element,\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer,\n toRaw\n }: WidgetConfig<T>) {\n\n const\n props: Record<string, any> = {},\n vProps = me!.vnode!.props! || {};\n\n for (const key of Object.keys(vProps)) {\n // Convert possible kebab keys to camelCase\n props[this.camelize(key)] = vProps[key];\n }\n\n const\n {\n instanceClass,\n instanceName\n } = widgetData,\n isValidProp = (propName: string) => props[propName] !== undefined,\n configNames = (widgetData.configNames || []).filter(isValidProp),\n propertyConfigNames = (widgetData.propertyConfigNames || []).filter(isValidProp),\n propertyNames = (widgetData.propertyNames || []).filter(isValidProp),\n featureNames = (widgetData.featureNames || []).filter(isValidProp),\n // Disable event listeners for onProps, which are duplicating functions with preventable result support\n eventNames = widgetData.eventNames.filter(eventName => !isValidProp(eventName) && !props[`on${this.capitalize(eventName)}`]),\n bryntumConfig = {\n vueComponent : me,\n listeners : {},\n features : {},\n processCellContent,\n processEventContent,\n processWidgetContent,\n hasFrameworkRenderer\n } as BryntumConfig;\n\n // Setup events listeners\n eventNames.forEach(eventName => bryntumConfig.listeners[eventName] = (params: any) => emit(eventName, params));\n\n // Setup configs\n [\n ...configNames,\n ...propertyConfigNames,\n ...featureNames\n ].forEach(propName => {\n WrapperHelper.applyPropValue(bryntumConfig, propName, props[propName], true, toRaw);\n if (['features', 'config'].includes(propName)) {\n WrapperHelper.devWarningConfigProp(instanceClass.$name, propName);\n }\n });\n\n // Add vue wrapper class name\n bryntumConfig.cls = (bryntumConfig.cls || '') + ` b-vue-${instanceClass.$name.toLowerCase()}-container`;\n\n // Prepare watch arrays\n widgetData.configNames = configNames;\n widgetData.propertyNames = [\n ...configNames,\n ...propertyNames,\n ...propertyConfigNames,\n ...featureNames\n ];\n\n // Cleanup unused instance arrays\n widgetData.eventNames = [];\n widgetData.propertyConfigNames = [];\n widgetData.featureNames = [];\n\n // If component has no container specified in config then use adopt to Wrapper's element\n const\n containerParam = [\n 'adopt',\n 'appendTo',\n 'insertAfter',\n 'insertBefore'\n ].find((prop: string) => bryntumConfig[prop]);\n\n if (!containerParam) {\n if (instanceName === 'Button') {\n // Button should always be <a> or <button> inside owner element\n bryntumConfig.appendTo = element;\n }\n else {\n bryntumConfig.adopt = element;\n }\n }\n else {\n WrapperHelper.devWarningContainer(instanceClass.$name, containerParam);\n }\n return bryntumConfig;\n }\n\n /**\n * Setup store events relay\n * @param {Object} data reference to data\n * @param {Object} instance bryntum widget instance\n */\n static relayStores(data: any, instance: any) {\n const { dataStores, projectStores } = data;\n\n if (dataStores) {\n Object.keys(dataStores).forEach(storeName => {\n const store = projectStores ? instance.project[storeName] : instance[storeName];\n if (store) {\n\n\n if (store.syncDataOnLoad == null && !store.readUrl && !store.lazyLoad && (!store.crudManager || !store.crudManager.loadUrl)) {\n store.syncDataOnLoad = true;\n }\n\n\n\n // Makes relaying store events configurable but off by default\n if (instance && instance.relayStoreEvents) {\n store.relayAll(instance, dataStores[storeName]);\n }\n }\n });\n delete data.dataStores;\n }\n }\n\n /**\n * Creates bryntum Widget from vue component\n * @param {Object} config\n * @param {Object} config.me vue component instance\n * @param {Object} config.widgetData reference to data\n * @param {Function} config.emit reference to emit\n * @param {Object} config.element HTML element\n * @param {Function} config.processCellContent cell renderer method\n * @param {Function} config.hasFrameworkRenderer check the presence of vue renderer\n * @param {Function} config.toRaw Vue fn to unwrap reactive object\n * @returns {Object} widget object\n */\n static createWidget<T extends AnyWidget>(config: WidgetConfig<T>): InstanceType<T> {\n const\n { instanceClass } = config.widgetData,\n cfg = WrapperHelper.createConfig(config);\n return (instanceClass.$name === 'Widget' ? Widget.create(cfg) : new instanceClass(cfg)) as InstanceType<T>;\n }\n\n /**\n * Applies property value to Bryntum config or instance.\n * @param {Object} configOrInstance target object\n * @param {String} prop property name\n * @param {Object} value value\n * @param {Boolean} [isConfig] config setting mode\n * @param {Function} [toRaw] Vue fn to unwrap reactive object\n */\n static applyPropValue(configOrInstance: any, prop: string, value: any, isConfig = true, toRaw?: Function) {\n\n if (prop === 'project') {\n // Allow use ProjectModel component as project\n if (value && typeof value === 'object') {\n configOrInstance[prop] = value.instance ? value.instance.value || value.instance : value;\n }\n }\n else if (prop === 'features' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, `${key}Feature`, value[key], isConfig, toRaw));\n }\n else if (prop === 'config' && typeof value === 'object') {\n Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, key, value[key], isConfig, toRaw));\n }\n else if (prop === 'columns' && !isConfig) {\n configOrInstance['columns'].data = value;\n }\n else if (prop.endsWith('Feature')) {\n const\n features = configOrInstance['features'],\n featureName = prop.replace('Feature', '');\n if (isConfig) {\n features[featureName] = value;\n }\n else {\n const feature = features[featureName];\n if (feature) {\n feature.setConfig(value);\n }\n }\n }\n else {\n configOrInstance[prop] = toRaw ? toRaw(value) : value;\n }\n }\n\n /**\n * Creates watches for vue component properties\n * @param {Object} me vue component instance\n * @param {Object} instance bryntum widget instance\n * @param {Object} props reference to props\n * @param {Object} data reference to data\n * @param {Function} watcher watch method reference (Accepts: prop and newValue)\n */\n static watchProps<T extends AnyWidget>(\n instance: InstanceType<T>,\n data: WidgetData<T>,\n watcher: (prop: string, callback: (value: any) => void) => void) {\n const\n {\n configNames,\n propertyNames,\n instanceClass\n } = data;\n\n propertyNames.forEach(prop => watcher(prop, newValue => {\n const value = Array.isArray(newValue) ? newValue.slice() : newValue;\n WrapperHelper.applyPropValue(instance, prop, value, false);\n\n // Check if property is a config and notify\n if (configNames.includes(prop)) {\n WrapperHelper.devWarningUpdateProp(instanceClass.$name, prop);\n }\n }));\n\n // Cleanup unused instance arrays\n data.configNames = [];\n data.propertyNames = [];\n }\n\n /**\n * Called from Widget.js to add the Vue component to teleports\n * @param {Object} context\n * @param {Widget} context.widget Widget which content is rendered by the Vue component\n * @param {Object} context.html Object containing the Vue component properties and event listeners\n */\n static processWidgetContent({ widget, html }: { widget: Widget; html: VueTeleportConfig }) {\n const\n { is, bind = {}, vue, on = {} } = html,\n // @ts-ignore\n { vueComponent } = this,\n { teleports : { value : teleports } } = vueComponent.provides,\n { contentElement : to, id } = widget;\n\n if (vue) {\n const key = `key-${id}`;\n\n // delete the teleport with the same key if any\n if (teleports.has(key)) {\n teleports.delete(key);\n }\n\n nextTick(() => {\n teleports.set(key, { bind, on, key, is, to });\n });\n }\n }\n\n /**\n * Handles the content provided by a Vue component for the widget.\n * @param {Widget} widget Owner widget\n * @param {String} html The HTML content to be processed\n */\n static handleVueContent(widget: Widget, html: VueConfig): void {\n // Called when a Vue component is to provide the widget content\n const\n hasTeleports = (element: any) => Boolean(element.vueComponent?.provides?.teleports),\n parentView = widget.closest(hasTeleports) as any,\n // Find a view (grid, scheduler, etc.) which has `teleports` defined. It also has `processWidgetContent`\n view = parentView?.vueComponent ? parentView : Widget.query(hasTeleports);\n\n view?.processWidgetContent?.({ widget, html });\n }\n\n /**\n * Event renderer method\n * @param {Object} context\n * @param {*} context.jsx\n * @param {DomConfig} context.domConfig\n * @param {HTMLElement} context.targetElement\n * @param {Boolean} context.isRelease\n * @returns {Boolean}\n */\n static processEventContent({\n // Core passes it as jsx for React wrappers.\n // Let's rename it to a more appropriate name.\n jsx : rendererConfig,\n domConfig,\n targetElement,\n isRelease\n }: {\n jsx: { [key: string]: any },\n domConfig: any;\n isRelease: boolean;\n targetElement: HTMLElement & { vueKey: string }\n scrolling: boolean\n }) {\n\n let wrap: any = targetElement,\n returnValue = false;\n\n // @ts-ignore\n const domConfigData = this.isVertical ? domConfig?.elementData?.renderData : domConfig?.elementData;\n\n if (WrapperHelper.isVueConfig(rendererConfig) && rendererConfig?.is) {\n if (domConfig?.dataset?.isMilestone) {\n wrap = targetElement.parentElement!.parentElement!.parentElement!;\n }\n else {\n wrap = targetElement.parentElement!.parentElement!;\n }\n const\n // Vertical nests renderData, while horizontal does not\n // @ts-ignore\n wrapData = this.isVertical ? wrap.elementData.renderData : wrap.elementData,\n { assignmentRecord } = isRelease ? domConfigData : wrapData,\n { eventRecord } = wrapData,\n { vueComponent } = this as any,\n { teleports : { value : teleports } } = vueComponent.provides,\n\n // Recurring events are handled a bit differently so get the flag\n isRecurring = eventRecord.isRecurring || eventRecord.isOccurrence,\n key = `assignment-${assignmentRecord?.id}${isRecurring ? '-' + eventRecord.id : ''}`;\n\n // Only delete the teleport if it's rendering into this specific targetElement.\n // Prevents issues when elements are reused during scrolling with LockRows feature.\n if (wrap.vueKey && teleports.get(wrap.vueKey)?.to === targetElement) {\n // Only delete if the existing teleport is rendering into this specific targetElement\n teleports.delete(wrap.vueKey);\n }\n\n const\n bind = { ...rendererConfig },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n nextTick(() => {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : targetElement,\n generation : assignmentRecord.generation\n });\n\n });\n\n wrap.vueKey = key;\n returnValue = true;\n }\n\n return returnValue;\n }\n\n /**\n * Cell renderer method\n * @param {Object} context\n * @param {RenderData} context.rendererData\n * @param {*} context.rendererHtml\n * @returns {Boolean}\n */\n static processCellContent({ rendererData, rendererHtml }: { rendererData: RenderData, rendererHtml: any }) {\n const { record, column, cellElement, row } = rendererData;\n\n // Only run for cells with vue renderers\n if (WrapperHelper.isVueConfig(column.data) && column.data?.renderer) {\n const\n // `this` is a caller component\n { vueComponent } = this as any,\n // `teleports` is javascript Map object\n { teleports : { value : teleports } } = vueComponent.provides,\n key = `${column.id}-${record.id}`,\n renderElement = column.tree\n ? cellElement.querySelector('.b-tree-cell-value')\n : cellElement;\n\n // If the cell already has a teleport, release it\n if (cellElement.vueKey) {\n teleports.delete(cellElement.vueKey);\n }\n\n const\n bind = { ...rendererHtml },\n { is, on = {} } = bind;\n\n delete bind.is;\n delete bind.on;\n\n // Create new teleport\n nextTick(() => {\n // Only teleport if the row is still used for the same record. Since this happens async, we might have\n // scrolled over the entire block of rows since the render\n if (row.id === record.id) {\n teleports.set(key, {\n bind,\n key,\n is,\n on,\n to : renderElement,\n generation : record.generation\n });\n }\n });\n\n // Link cell to the teleport, to be able to release it above\n cellElement.vueKey = key;\n }\n }\n\n /**\n *\n * @param {Object} context\n * @param {*} context.cellContent Content to be rendered in cell (set by renderer)\n * @param {*} context.column Column being rendered\n * @returns {Boolean} `true` if there is a Vue Renderer in this cell, `false` otherwise\n */\n static hasFrameworkRenderer({ cellContent, column }: { cellContent: any, column: any }) {\n return cellContent && typeof cellContent === 'object' && WrapperHelper.isVueConfig(column?.data);\n }\n}\n\n// Expose wrapper methods on window.bryntum\nwindow.bryntum = window.bryntum || {};\nwindow.bryntum.vue = {\n isVueConfig : WrapperHelper.isVueConfig,\n handleVueContent : WrapperHelper.handleVueContent\n};\n"],"names":["WrapperHelper","clsName","msg","containerParam","prop","str","s","config","me","widgetData","emit","element","processCellContent","processEventContent","processWidgetContent","hasFrameworkRenderer","toRaw","props","vProps","key","instanceClass","instanceName","isValidProp","propName","configNames","propertyConfigNames","propertyNames","featureNames","eventNames","eventName","bryntumConfig","params","data","instance","dataStores","projectStores","storeName","store","cfg","Widget","configOrInstance","value","isConfig","features","featureName","feature","watcher","newValue","widget","html","is","bind","vue","on","vueComponent","teleports","to","id","nextTick","hasTeleports","parentView","rendererConfig","domConfig","targetElement","isRelease","wrap","returnValue","domConfigData","wrapData","assignmentRecord","eventRecord","isRecurring","rendererData","rendererHtml","record","column","cellElement","row","renderElement","cellContent"],"mappings":";;AAmFO,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvB,OAAO,WAAWC,GAAiBC,GAAa;AAE5C,KAAI,OAAO,SAAS,aAAa,QAAQ,IAAI,aAAa,kBACtD,QAAQ;AAAA,MAAK,U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package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a } from "./chunks/8fVSBLjv.js";
1
+ import { _ as a } from "./chunks/DEEnuzoJ.js";
2
2
  export {
3
3
  a as BryntumChart
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryntum/chart-vue-3-thin",
3
- "version": "7.1.2",
3
+ "version": "7.2.0",
4
4
  "description": "Vue 3 wrappers for Bryntum Chart JavaScript component",
5
5
  "keywords": [
6
6
  "bryntum",
@@ -10,7 +10,7 @@
10
10
 
11
11
  import { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';
12
12
 
13
- import type { AlignSpec, Base, Container, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
13
+ import type { AlignSpec, Base, Color, Container, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
14
14
  import type { ChartListeners, ChartTooltipConfig, ChartContainerItemConfig, ChartContainerLayoutConfig, DataSeries, DataSeriesRole, Font } from '@bryntum/chart-thin';
15
15
  import { Chart } from '@bryntum/chart-thin';
16
16
 
@@ -93,6 +93,10 @@ defineProps<{
93
93
  * Layout direction for the bar chart type.
94
94
  */
95
95
  barDirection ? : 'vertical'|'horizontal'
96
+ /**
97
+ * Set `true` to add a border to this container's element.
98
+ */
99
+ border ? : Boolean
96
100
  /**
97
101
  * An object where property names with a truthy value indicate which events should bubble up the ownership
98
102
  * hierarchy when triggered.
@@ -150,7 +154,7 @@ defineProps<{
150
154
  * ...
151
155
  * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-color)
152
156
  */
153
- color ? : string
157
+ color ? : Color
154
158
  /**
155
159
  * Programmatic control over which column to start in when used in a grid layout.
156
160
  */
@@ -930,6 +934,7 @@ const widgetData = {
930
934
  'ariaDescription',
931
935
  'ariaLabel',
932
936
  'autoUpdateRecord',
937
+ 'border',
933
938
  'bubbleEvents',
934
939
  'centered',
935
940
  'color',
@@ -1,4 +1,4 @@
1
- import type { AlignSpec, Base, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
1
+ import type { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
2
2
  import type { ChartListeners, ChartTooltipConfig, ChartContainerItemConfig, ChartContainerLayoutConfig, DataSeries, DataSeriesRole, Font } from '@bryntum/chart-thin';
3
3
 
4
4
  export declare type BryntumChartProps = {
@@ -78,6 +78,10 @@ export declare type BryntumChartProps = {
78
78
  * Layout direction for the bar chart type.
79
79
  */
80
80
  barDirection ? : 'vertical'|'horizontal'
81
+ /**
82
+ * Set `true` to add a border to this container's element.
83
+ */
84
+ border ? : Boolean
81
85
  /**
82
86
  * An object where property names with a truthy value indicate which events should bubble up the ownership
83
87
  * hierarchy when triggered.
@@ -135,7 +139,7 @@ export declare type BryntumChartProps = {
135
139
  * ...
136
140
  * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-color)
137
141
  */
138
- color ? : string
142
+ color ? : Color
139
143
  /**
140
144
  * Programmatic control over which column to start in when used in a grid layout.
141
145
  */
@@ -469,9 +469,13 @@ export class WrapperHelper {
469
469
  isRecurring = eventRecord.isRecurring || eventRecord.isOccurrence,
470
470
  key = `assignment-${assignmentRecord?.id}${isRecurring ? '-' + eventRecord.id : ''}`;
471
471
 
472
- if (wrap.vueKey) {
472
+ // Only delete the teleport if it's rendering into this specific targetElement.
473
+ // Prevents issues when elements are reused during scrolling with LockRows feature.
474
+ if (wrap.vueKey && teleports.get(wrap.vueKey)?.to === targetElement) {
475
+ // Only delete if the existing teleport is rendering into this specific targetElement
473
476
  teleports.delete(wrap.vueKey);
474
477
  }
478
+
475
479
  const
476
480
  bind = { ...rendererConfig },
477
481
  { is, on = {} } = bind;
@@ -1 +0,0 @@
1
- {"version":3,"file":"8fVSBLjv.js","sources":["../../src/components/BryntumChart.vue"],"sourcesContent":["<!-- Vue 3 wrapper for Bryntum Chart -->\n\n<template>\n <div ref=\"refElement\">\n\n </div>\n</template>\n\n<script setup lang=\"ts\">\n\nimport { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';\n\nimport type { AlignSpec, Base, Container, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';\nimport type { ChartListeners, ChartTooltipConfig, ChartContainerItemConfig, ChartContainerLayoutConfig, DataSeries, DataSeriesRole, Font } from '@bryntum/chart-thin';\nimport { Chart } from '@bryntum/chart-thin';\n\nimport { WrapperHelper } from '../helper/WrapperHelper';\n\ndefineProps<{\n // Configs\n /**\n * Element (or element id) to adopt as this Widget's encapsulating element. The widget's\n * content will be placed inside this element.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-adopt)\n */\n adopt ? : HTMLElement|string\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-align)\n */\n align ? : AlignSpec|string\n /**\n * 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\n * flexbox layout. This config allows you to set this widget's\n * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.\n */\n alignSelf ? : string\n /**\n * *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).*\n * `true` to show a connector arrow pointing to the align target.\n */\n anchor ? : Boolean\n /**\n * Whether to animate chart data changes.\n */\n animate ? : Boolean\n /**\n * Set the duration in milliseconds for all animations.\n */\n animationDuration ? : number\n /**\n * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at\n * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element).\n */\n appendTo ? : HTMLElement|string\n /**\n * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject\n * into an element which will be linked using the `aria-describedby` attribute.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaDescription)\n */\n ariaDescription ? : string\n /**\n * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as\n * the `aria-label` attribute.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ariaLabel)\n */\n ariaLabel ? : string\n /**\n * Update assigned [record](https://bryntum.com/products/chart/docs/api/Core/widget/Container#config-record) automatically on field changes\n */\n autoUpdateRecord ? : Boolean\n /**\n * The stroke color used for the axis lines and ticks, or `null` for theme default.\n */\n axisColor ? : string\n /**\n * The text color used for the axis labels / ticks, or `null` to use `axisColor`.\n */\n axisLabelColor ? : string\n /**\n * The chart background color, or `null` for transparent.\n */\n background ? : string\n /**\n * (Optional) The name of a field in the chart data to use as the background color for each data point.\n */\n backgroundColorField ? : string\n /**\n * Layout direction for the bar chart type.\n */\n barDirection ? : 'vertical'|'horizontal'\n /**\n * An object where property names with a truthy value indicate which events should bubble up the ownership\n * hierarchy when triggered.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-bubbleEvents)\n */\n bubbleEvents ? : object\n /**\n * Scale factor to apply to the computed size of bubbles in the bubble chart type.\n */\n bubbleScaleFactor ? : number\n /**\n * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-callOnFunctions)\n */\n callOnFunctions ? : Boolean\n /**\n * By default, if an event handler throws an exception, the error propagates up the stack and the\n * application state is undefined. Code which follows the event handler will *not* be executed.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-catchEventHandlerExceptions)\n */\n catchEventHandlerExceptions ? : Boolean\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * Set to `true` to centre the Widget in browser viewport space.\n */\n centered ? : Boolean\n /**\n * Padding around the entire chart area, in pixels.\n */\n chartPadding ? : object\n /**\n * Chart tooltip configuration object. Configures the tooltip that appears when hovering over chart data points.\n * 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)\n * is `true`.\n */\n chartTooltip ? : ChartTooltipConfig\n /**\n * Basic type of chart.\n */\n chartType ? : 'line'|'bar'|'pie'|'donut'|'scatter'|'bubble'|'radar'\n /**\n * Custom CSS classes to add to element.\n * May be specified as a space separated string, or as an object in which property names\n * with truthy values are used as the class names:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-cls)\n */\n cls ? : string|object\n /**\n * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets\n * `style` block.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-color)\n */\n color ? : string\n /**\n * Programmatic control over which column to start in when used in a grid layout.\n */\n column ? : number\n config ? : object\n /**\n * *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).*\n * Element, Widget or Rectangle to which this Widget is constrained.\n */\n constrainTo ? : HTMLElement|Widget|Rectangle\n /**\n * The HTML content that coexists with sibling elements which may have been added to the\n * [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.\n * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-htmlCls)\n * class added to its classList, to allow targeted styling.\n */\n content ? : string\n /**\n * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * May be specified as a space separated string, or as an object in which property names\n * with truthy values are used as the class names:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-contentElementCls)\n */\n contentElementCls ? : string|object\n /**\n * The data records or objects containing data to display in the chart.\n */\n data ? : Model[]|object[]|ModelConfig[]\n /**\n * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the\n * field on the expanded record to use for populating this widget's store (if applicable)\n */\n dataField ? : string\n /**\n * The shape to use for data point markers, or `'none'` for no markers.\n */\n dataPointShape ? : 'square'|'circle'|'diamond'|'triangle'|'none'\n /**\n * Object to apply to elements dataset (each key will be used as a data-attribute on the element)\n */\n dataset ? : Record<string, string>\n /**\n * The name of the property to set when a single value is to be applied to this Widget. Such as when used\n * in a grid WidgetColumn, this is the property to which the column's `field` is applied.\n */\n defaultBindProperty ? : string\n /**\n * A [query](https://bryntum.com/products/chart/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which\n * focus should be directed by default.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-defaultFocus)\n * @param {Core.widget.Widget} widget Widget passed to method\n * @returns {boolean} truthy value if widget is the default one\n */\n defaultFocus ? : ((widget: Widget) => Boolean)|string\n /**\n * A config object containing default settings to apply to all child widgets.\n */\n defaults ? : ChartContainerItemConfig\n /**\n * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-detectCSSCompatibilityIssues)\n */\n detectCSSCompatibilityIssues ? : Boolean\n /**\n * 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\n * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-disabled)\n */\n disabled ? : Boolean|'inert'\n /**\n * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/chart/docs/api/Core/widget/Panel)\n * [strips collection](https://bryntum.com/products/chart/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,\n * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's\n * body. Such widgets are called \"edge strips\".\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-dock)\n */\n dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´\n * property which controls when a drag should start.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-draggable)\n */\n draggable ? : Boolean|{\n handleSelector?: string\n }\n /**\n * An object specifying attributes to assign to the root element of this widget.\n * Set `null` value to attribute to remove it.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-elementAttributes)\n */\n elementAttributes ? : Record<string, string|null>\n extraData ? : any\n /**\n * The name of the record field containing the data for this series.\n */\n field ? : string\n /**\n * 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\n * flexbox layout. This config allows you to set this widget's\n * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.\n * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.\n * numeric-only values are interpreted as the `flex-grow` value.\n */\n flex ? : number|string\n /**\n * Set to `true` to move the widget out of the document flow and position it\n * absolutely in browser viewport space.\n */\n floating ? : Boolean\n /**\n * The stroke color used for the grid lines, or `null` for theme default.\n */\n gridColor ? : string\n /**\n * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,\n * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some\n * cases this config is convenient.\n */\n height ? : string|number\n /**\n * Configure with true to make widget initially hidden.\n */\n hidden ? : Boolean\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideAnimation)\n */\n hideAnimation ? : Boolean|object\n /**\n * Specify `true` to make this container hide when it has no visible children (Either empty\n * or all children hidden).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-hideWhenEmpty)\n */\n hideWhenEmpty ? : Boolean\n /**\n * The HTML to display initially or a function returning the markup (called at widget construction time).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-html)\n * @param {Core.widget.Widget} widget The calling Widget\n * @returns {string}\n */\n html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig\n /**\n * The CSS class(es) to add when HTML content is being applied to this widget.\n */\n htmlCls ? : string|object\n /**\n * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById\n */\n id ? : string\n /**\n * Determines if the widgets read-only state should be controlled by its parent.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ignoreParentReadOnly)\n */\n ignoreParentReadOnly ? : Boolean\n /**\n * Convenience setting to align input fields of child widgets. By default, the Field input element is\n * placed immediately following the `label`. If you prefer to have all input fields aligned to the\n * right, set this config to `'end'`.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-inputFieldAlign)\n */\n inputFieldAlign ? : 'start'|'end'\n /**\n * 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.\n */\n insertBefore ? : HTMLElement|string\n /**\n * 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.\n */\n insertFirst ? : HTMLElement|string\n /**\n * Whether to do dynamic highlighting and other interactivity as the mouse cursor moves over the chart.\n */\n interactive ? : Boolean\n /**\n * An optional CSS class to add to child items of this container.\n */\n itemCls ? : string\n /**\n * An object containing typed child widget config objects or Widgets. May also be specified\n * as an array.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-items)\n */\n items ? : Record<string, ChartContainerItemConfig|MenuItemEntry>|(ChartContainerItemConfig|MenuItemEntry|Widget)[]\n /**\n * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name\n * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values\n * are the name of the instance method to call when the keystroke is received.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-keyMap)\n */\n keyMap ? : Record<string, KeyMapConfig>\n /**\n * The name of the series to display in the legend.\n */\n label ? : string\n /**\n * Convenience setting to use same label placement on all child widgets.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-labelPosition)\n */\n labelPosition ? : 'before'|'above'|'align-before'|'auto'|null\n /**\n * For line and bar charts, this series defines the data values to use as ticks for the x-axis.\n * For pie and donut chart, it defines the data values to use as slice labels.\n */\n labels ? : DataSeries\n /**\n * The short name of a helper class which manages rendering and styling of child items.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layout)\n */\n layout ? : string|ChartContainerLayoutConfig\n /**\n * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-layoutStyle)\n */\n layoutStyle ? : object\n /**\n * 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\n * instances only when this Container is rendered, rather than eagerly at construct time.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-lazyItems)\n */\n lazyItems ? : Record<string, ChartContainerItemConfig>|ChartContainerItemConfig[]|Widget[]\n /**\n * Where the chart's legend should appear relative to the main chart content.\n * Options `inline-start` and `inline-end` function as in CSS, with horizontal positioning\n * controlled by RTL mode.\n */\n legendPosition ? : 'top'|'right'|'bottom'|'left'|'inline-start'|'inline-end'\n /**\n * Optional scale factor to increase or decrease the size of the chart legend.\n */\n legendScale ? : number\n /**\n * The listener set for this object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-listeners)\n */\n listeners ? : ChartListeners\n /**\n * A class translations of which are used for translating this entity.\n * This is often used when translations of an item are defined on its container class.\n * For example:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localeClass)\n */\n localeClass ? : typeof Base\n /**\n * Set to `false` to disable localization of this object.\n */\n localizable ? : Boolean\n /**\n * List of properties which values should be translated automatically upon a locale applying.\n * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),\n * you could use 'localeKey' meta configuration.\n * Example:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-localizableProperties)\n */\n localizableProperties ? : string[]\n /**\n * Widget's margin. This may be configured as a single number or a `TRBL` format string.\n * numeric-only values are interpreted as pixels.\n */\n margin ? : number|string\n /**\n * This config object contains the defaults for the [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) created for the\n * [masked](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these\n * values.\n */\n maskDefaults ? : MaskConfig\n /**\n * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a\n * [Mask](https://bryntum.com/products/chart/docs/api/Core/widget/Mask) config object.\n */\n masked ? : Boolean|string|MaskConfig\n /**\n * Max value for the Y axis, for chart types that have one.\n */\n max ? : number\n /**\n * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.\n */\n maxHeight ? : string|number\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-maximizeOnMobile)\n */\n maximizeOnMobile ? : number|string\n /**\n * The maximum tick rotation in degrees.\n */\n maxTickLabelRotation ? : number\n /**\n * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.\n */\n maxWidth ? : string|number\n /**\n * Min value for the Y axis, for chart types that have one.\n */\n min ? : number\n /**\n * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [height](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.\n */\n minHeight ? : string|number\n /**\n * The minimum tick rotation in degrees.\n */\n minTickLabelRotation ? : number\n /**\n * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that\n * like [width](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.\n */\n minWidth ? : string|number\n /**\n * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)\n * is used to monitor this element for size changes caused by either style manipulation, or by CSS\n * layout.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-monitorResize)\n */\n monitorResize ? : Boolean|{\n immediate?: Boolean\n }\n /**\n * 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)\n * config. For example, a specialized [Menu](https://bryntum.com/products/chart/docs/api/Core/widget/Menu) subclass may have a `namedItems` default\n * value defined like this:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-namedItems)\n */\n namedItems ? : Record<string, ChartContainerItemConfig>\n /**\n * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the\n * [items](https://bryntum.com/products/chart/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case\n * the owner is <strong>always</strong> the encapsulating Container.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-owner)\n */\n owner ? : Widget|any\n /**\n * Radius of data points, in pixels.\n */\n pointSize ? : number\n /**\n * 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\n * not participate in the standard layout of that widget, and must be positioned relatively to that\n * widget's [contentElement](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-contentElement).\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-positioned)\n */\n positioned ? : Boolean\n /**\n * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a\n * menu on click etc, since the tooltip would be displayed at the same time.\n */\n preventTooltipOnTouch ? : Boolean\n /**\n * Whether this widget is read-only. This is only valid if the widget is an input\n * field, <strong>or contains input fields at any depth</strong>.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-readOnly)\n */\n readOnly ? : Boolean\n /**\n * [Record](https://bryntum.com/products/chart/docs/api/Core/data/Model) whose values will be used to populate fields in the container.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-record)\n */\n record ? : Model\n relayStoreEvents ? : Boolean\n /**\n * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget\n * `type`.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rendition)\n */\n rendition ? : string|Record<string, string>|null\n /**\n * Configure as `true` to have the component display a translucent ripple when its\n * [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\n * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ripple)\n */\n ripple ? : Boolean|{\n delegate?: string\n color?: string\n radius?: number\n clip?: string\n }\n /**\n * (Optional) Required when using certain chart types, for example `scatter`, where series can be arbitrarily\n * assigned to different axes. The `role` determines how this series is used in the chart.\n */\n role ? : DataSeriesRole\n /**\n * 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`\n */\n rootElement ? : ShadowRoot|HTMLElement\n /**\n * This may be configured as `true` to make the widget's element use the `direction:rtl` style.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-rtl)\n */\n rtl ? : Boolean\n /**\n * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll\n * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are\n * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to\n * CSS overflow properties thus:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-scrollable)\n */\n scrollable ? : Boolean|ScrollerConfig|Scroller\n /**\n * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).\n * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.\n */\n scrollAction ? : 'hide'|'realign'|null\n /**\n * One or more data series to display in the chart.\n */\n series ? : DataSeries[]\n /**\n * The type of stroke to use for data series lines.\n */\n seriesLineDash ? : 'dot'|'dash'|'solid'\n /**\n * The opacity of data series lines, from zero to one.\n */\n seriesLineOpacity ? : number\n /**\n * The thickness of data series lines, in pixels.\n */\n seriesLineThickness ? : number\n /**\n * *Only valid if this Widget is [floating](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#config-floating).*\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-showAnimation)\n */\n showAnimation ? : Boolean|object\n /**\n * Whether to show the chart's control button menu, for example, the download button.\n */\n showControls ? : Boolean\n /**\n * Whether to show the chart's legend.\n */\n showLegend ? : Boolean\n /**\n * Whether to show data point markers on the chart.\n */\n showPoints ? : Boolean\n /**\n * Whether to show the chart subtitle.\n */\n showSubtitle ? : Boolean\n /**\n * Whether to show tick marks and labels on the chart axes.\n */\n showTicks ? : Boolean\n /**\n * Whether to show the chart title.\n */\n showTitle ? : Boolean\n /**\n * Whether to show tooltips when the mouse cursor hovers over chart elements.\n */\n showTooltips ? : Boolean\n /**\n * 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)\n */\n showTooltipWhenDisabled ? : Boolean\n /**\n * Programmatic control over how many columns to span when used in a grid layout.\n */\n span ? : number\n /**\n * 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),\n * without falling back to `ref`.\n */\n strictRecordMapping ? : Boolean\n /**\n * The chart subtitle.\n */\n subtitle ? : string\n /**\n * The font to use for the chart subtitle.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-subtitleFont)\n */\n subtitleFont ? : Font\n /**\n * Padding around the chart subtitle, in pixels.\n */\n subtitlePadding ? : object\n /**\n * 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\n * [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\n * this widget:\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tab)\n */\n tab ? : Boolean|TabConfig\n /**\n * When this container is used as a tab in a TabPanel, these items are added to the\n * [TabBar](https://bryntum.com/products/chart/docs/api/Core/widget/TabBar) when this container is the active tab.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tabBarItems)\n */\n tabBarItems ? : ToolbarItems[]|Widget[]\n /**\n * The tag name of this Widget's root element\n */\n tag ? : string\n /**\n * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textAlign)\n */\n textAlign ? : 'left'|'center'|'right'|'start'|'end'\n /**\n * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`\n * which specifies a default max-width that makes long text more readable.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-textContent)\n */\n textContent ? : Boolean\n /**\n * The font to use for tick labels on the chart axes.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tickFont)\n */\n tickFont ? : Font\n /**\n * 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).\n */\n tickMarkColor ? : string\n /**\n * The chart title.\n */\n title ? : string\n /**\n * The font to use for the chart title.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-titleFont)\n */\n titleFont ? : Font\n /**\n * Padding around the chart title, in pixels.\n */\n titlePadding ? : object\n /**\n * Tooltip for the widget, either as a string or as a Tooltip config object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-tooltip)\n */\n tooltip ? : string|TooltipConfig|null\n type ? : 'chart'\n /**\n * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified\n * as a space separated string, an array of strings, or as an object in which property names with truthy\n * values are used as the class names.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-ui)\n */\n ui ? : string|object\n /**\n * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/chart/docs/api/Core/widget/Container).\n * Higher weights go further down.\n */\n weight ? : number\n /**\n * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which\n * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases\n * this config is convenient.\n */\n width ? : string|number\n /**\n * The x position for the widget.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-x)\n */\n x ? : number\n /**\n * The y position for the widget.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#config-y)\n */\n y ? : number\n\n}>();\n\nconst emit = defineEmits<{\n /**\n * Fires before an object is destroyed.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.Base} params.event.source The Object that is being destroyed.\n */\n (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void\n /**\n * Triggered before a widget is hidden. Return `false` to prevent the action.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget being hidden.\n */\n (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void\n /**\n * Fired before this container will load record values into its child fields. This is useful if you\n * want to modify the UI before data is loaded (e.g. set some input field to be readonly)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Container} params.event.source The container\n * @param {Core.data.Model} params.event.record The record\n */\n (e: 'beforeSetRecord', params: ((event: { source: Container, record: Model }) => void)|string): void\n /**\n * Triggered before a widget is shown. Return `false` to prevent the action.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget,any} params.event.source The widget being shown\n */\n (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void\n /**\n * Fires when any other event is fired from the object.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-catchAll)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details\n * @param {string} params.event.event.type The type of the event which is caught by the listener\n */\n (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void\n /**\n * Fires when an object is destroyed.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.Base} params.event.source The Object that is being destroyed.\n */\n (e: 'destroy', params: ((event: { source: Base }) => void)|string): void\n /**\n * 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\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Container} params.event.source The container.\n * @param {boolean} params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.\n */\n (e: 'dirtyStateChange', params: ((event: { source: Container, dirty: boolean }) => void)|string): void\n /**\n * Triggered when a widget's [element](https://bryntum.com/products/chart/docs/api/Core/widget/Widget#property-element) is available.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {HTMLElement} params.event.element The Widget's element.\n */\n (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void\n /**\n * Fired when focus enters this Widget.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {HTMLElement} params.event.fromElement The element which lost focus.\n * @param {HTMLElement} params.event.toElement The element which gained focus.\n * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.\n * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.\n * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.\n */\n (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void\n /**\n * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.\n * focus moving from within this Widget's ownership tree, even if there are floating widgets\n * will not trigger this event. This is when focus exits this widget completely.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {HTMLElement} params.event.fromElement The element which lost focus.\n * @param {HTMLElement} params.event.toElement The element which gained focus.\n * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.\n * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.\n * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.\n */\n (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void\n /**\n * Triggered after a widget was hidden\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget\n */\n (e: 'hide', params: ((event: { source: Widget }) => void)|string): void\n /**\n * Triggered when a widget which had been in a non-visible state for any reason\n * achieves visibility.\n * ...\n * [View online docs...](https://bryntum.com/products/chart/docs/api/Chart/widget/Chart#event-paint)\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget being painted.\n * @param {boolean} params.event.firstPaint `true` if this is the first paint.\n */\n (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void\n /**\n * Fired when a Widget's read only state is toggled\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {boolean} params.event.readOnly Read only or not\n */\n (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void\n /**\n * This event is fired after a widget's elements have been synchronized due to a direct or indirect call\n * 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.\n */\n (e: 'recompose', params: (() => void)|string): void\n /**\n * 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`*.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source This Widget\n * @param {number} params.event.width The new width\n * @param {number} params.event.height The new height\n * @param {number} params.event.oldWidth The old width\n * @param {number} params.event.oldHeight The old height\n */\n (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void\n /**\n * Triggered after a widget is shown.\n * @param {string} e Event name\n * @param {object} params Event parameters\n * @param {object} params.event Event object\n * @param {Core.widget.Widget} params.event.source The widget\n */\n (e: 'show', params: ((event: { source: Widget }) => void)|string): void\n}>();\n\nconst widgetData = {\n instanceClass : Chart,\n instanceName : 'Chart',\n\n configNames : [\n 'adopt',\n 'align',\n 'anchor',\n 'ariaDescription',\n 'ariaLabel',\n 'autoUpdateRecord',\n 'bubbleEvents',\n 'centered',\n 'color',\n 'config',\n 'constrainTo',\n 'contentElementCls',\n 'dataField',\n 'defaultBindProperty',\n 'defaultFocus',\n 'defaults',\n 'detectCSSCompatibilityIssues',\n 'dock',\n 'draggable',\n 'elementAttributes',\n 'floating',\n 'hideAnimation',\n 'hideWhenEmpty',\n 'htmlCls',\n 'ignoreParentReadOnly',\n 'itemCls',\n 'lazyItems',\n 'listeners',\n 'localeClass',\n 'localizable',\n 'localizableProperties',\n 'maskDefaults',\n 'masked',\n 'monitorResize',\n 'namedItems',\n 'owner',\n 'positioned',\n 'preventTooltipOnTouch',\n 'relayStoreEvents',\n 'ripple',\n 'rootElement',\n 'scrollAction',\n 'showAnimation',\n 'showTooltipWhenDisabled',\n 'tab',\n 'tabBarItems',\n 'tag',\n 'textAlign',\n 'textContent',\n 'type',\n 'ui',\n 'weight'\n ],\n propertyConfigNames : [\n 'alignSelf',\n 'animate',\n 'animationDuration',\n 'appendTo',\n 'axisColor',\n 'axisLabelColor',\n 'background',\n 'backgroundColorField',\n 'barDirection',\n 'bubbleScaleFactor',\n 'callOnFunctions',\n 'catchEventHandlerExceptions',\n 'chartPadding',\n 'chartTooltip',\n 'chartType',\n 'cls',\n 'column',\n 'content',\n 'data',\n 'dataPointShape',\n 'dataset',\n 'disabled',\n 'extraData',\n 'field',\n 'flex',\n 'gridColor',\n 'height',\n 'hidden',\n 'html',\n 'id',\n 'inputFieldAlign',\n 'insertBefore',\n 'insertFirst',\n 'interactive',\n 'items',\n 'keyMap',\n 'label',\n 'labelPosition',\n 'labels',\n 'layout',\n 'layoutStyle',\n 'legendPosition',\n 'legendScale',\n 'margin',\n 'max',\n 'maxHeight',\n 'maximizeOnMobile',\n 'maxTickLabelRotation',\n 'maxWidth',\n 'min',\n 'minHeight',\n 'minTickLabelRotation',\n 'minWidth',\n 'onBeforeDestroy',\n 'onBeforeHide',\n 'onBeforeSetRecord',\n 'onBeforeShow',\n 'onCatchAll',\n 'onDestroy',\n 'onDirtyStateChange',\n 'onElementCreated',\n 'onFocusIn',\n 'onFocusOut',\n 'onHide',\n 'onPaint',\n 'onReadOnly',\n 'onRecompose',\n 'onResize',\n 'onShow',\n 'pointSize',\n 'readOnly',\n 'record',\n 'rendition',\n 'role',\n 'rtl',\n 'scrollable',\n 'series',\n 'seriesLineDash',\n 'seriesLineOpacity',\n 'seriesLineThickness',\n 'showControls',\n 'showLegend',\n 'showPoints',\n 'showSubtitle',\n 'showTicks',\n 'showTitle',\n 'showTooltips',\n 'span',\n 'strictRecordMapping',\n 'subtitle',\n 'subtitleFont',\n 'subtitlePadding',\n 'tickFont',\n 'tickMarkColor',\n 'title',\n 'titleFont',\n 'titlePadding',\n 'tooltip',\n 'width',\n 'x',\n 'y'\n ],\n propertyNames : [\n 'anchorSize',\n 'focusVisible',\n 'hasChanges',\n 'isSettingValues',\n 'isValid',\n 'parent',\n 'values'\n ],\n eventNames : [\n 'beforeDestroy',\n 'beforeHide',\n 'beforeSetRecord',\n 'beforeShow',\n 'catchAll',\n 'destroy',\n 'dirtyStateChange',\n 'elementCreated',\n 'focusIn',\n 'focusOut',\n 'hide',\n 'paint',\n 'readOnly',\n 'recompose',\n 'resize',\n 'show'\n ]\n};\n\nconst instance: {\n value?: Chart\n} = {};\n\nconst refElement = ref<HTMLDivElement>()!;\n// Storage for teleports (in-cell Vue component instances) automatically renderer by template\nconst teleports = ref(new Map());\n\n// Provide teleports for processCellContent\nprovide('teleports', teleports);\n\nonMounted(() => {\n\n const me = getCurrentInstance()!;\n\n instance.value = WrapperHelper.createWidget<typeof Chart>({\n me,\n widgetData,\n emit,\n element : refElement.value!,\n toRaw\n });\n\n const watcher = (prop: string, callback: any) => watch(() => me.props[prop], callback);\n WrapperHelper.watchProps(instance.value, widgetData, watcher);\n});\n\nonBeforeUnmount(() => {\n // @ts-ignore\n instance.value?.destroy?.();\n});\n\ndefineExpose({\n instance,\n refElement,\n teleports\n});\n\n</script>\n"],"names":["emit","__emit","widgetData","Chart","instance","refElement","ref","teleports","provide","onMounted","me","getCurrentInstance","WrapperHelper","toRaw","watcher","prop","callback","watch","onBeforeUnmount","__expose","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+vBA,UAAMA,IAAOC,GA0JPC,IAAa;AAAA,MACf,eAAgBC;AAAA,MAChB,cAAgB;AAAA,MAEhB,aAAgB;AAAA,QACZ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,MAEJ,qBAAsB;AAAA,QAClB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA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