@bryntum/grid-vue-3-thin 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +53 -0
  2. package/lib/chunks/BU8UU05k.js +285 -0
  3. package/lib/chunks/BU8UU05k.js.map +1 -0
  4. package/lib/chunks/BddaT4s7.js +641 -0
  5. package/lib/chunks/BddaT4s7.js.map +1 -0
  6. package/lib/chunks/BhovLWj6.js +301 -0
  7. package/lib/chunks/BhovLWj6.js.map +1 -0
  8. package/lib/chunks/BiSBQkoK.js +385 -0
  9. package/lib/chunks/BiSBQkoK.js.map +1 -0
  10. package/lib/chunks/CBFPsO1m.js +312 -0
  11. package/lib/chunks/CBFPsO1m.js.map +1 -0
  12. package/lib/chunks/COu7hi0l.js +642 -0
  13. package/lib/chunks/COu7hi0l.js.map +1 -0
  14. package/lib/chunks/CsxXtWQr.js +302 -0
  15. package/lib/chunks/CsxXtWQr.js.map +1 -0
  16. package/lib/chunks/DGygz4dO.js +639 -0
  17. package/lib/chunks/DGygz4dO.js.map +1 -0
  18. package/lib/chunks/Dgq4wGRw.js +235 -0
  19. package/lib/chunks/Dgq4wGRw.js.map +1 -0
  20. package/lib/chunks/Dod-SqEN.js +380 -0
  21. package/lib/chunks/Dod-SqEN.js.map +1 -0
  22. package/lib/components/BryntumAIFilterField.js +5 -0
  23. package/lib/components/BryntumAIFilterField.js.map +1 -0
  24. package/lib/components/BryntumChecklistFilterCombo.js +5 -0
  25. package/lib/components/BryntumChecklistFilterCombo.js.map +1 -0
  26. package/lib/components/BryntumGrid.js +5 -0
  27. package/lib/components/BryntumGrid.js.map +1 -0
  28. package/lib/components/BryntumGridBase.js +5 -0
  29. package/lib/components/BryntumGridBase.js.map +1 -0
  30. package/lib/components/BryntumGridChartDesigner.js +5 -0
  31. package/lib/components/BryntumGridChartDesigner.js.map +1 -0
  32. package/lib/components/BryntumGridFieldFilterPicker.js +5 -0
  33. package/lib/components/BryntumGridFieldFilterPicker.js.map +1 -0
  34. package/lib/components/BryntumGridFieldFilterPickerGroup.js +5 -0
  35. package/lib/components/BryntumGridFieldFilterPickerGroup.js.map +1 -0
  36. package/lib/components/BryntumGroupBar.js +5 -0
  37. package/lib/components/BryntumGroupBar.js.map +1 -0
  38. package/lib/components/BryntumTreeCombo.js +5 -0
  39. package/lib/components/BryntumTreeCombo.js.map +1 -0
  40. package/lib/components/BryntumTreeGrid.js +5 -0
  41. package/lib/components/BryntumTreeGrid.js.map +1 -0
  42. package/lib/helper/WrapperHelper.js +291 -0
  43. package/lib/helper/WrapperHelper.js.map +1 -0
  44. package/lib/index.d.ts +5 -0
  45. package/lib/index.js +23 -0
  46. package/lib/index.js.map +1 -0
  47. package/license.pdf +0 -0
  48. package/licenses.md +310 -0
  49. package/package.json +27 -0
  50. package/src/components/BryntumAIFilterField.vue +1100 -0
  51. package/src/components/BryntumAIFilterFieldProps.ts +646 -0
  52. package/src/components/BryntumChecklistFilterCombo.vue +1348 -0
  53. package/src/components/BryntumChecklistFilterComboProps.ts +846 -0
  54. package/src/components/BryntumGrid.vue +2986 -0
  55. package/src/components/BryntumGridBase.vue +2983 -0
  56. package/src/components/BryntumGridBaseProps.ts +1027 -0
  57. package/src/components/BryntumGridChartDesigner.vue +805 -0
  58. package/src/components/BryntumGridChartDesignerProps.ts +466 -0
  59. package/src/components/BryntumGridFieldFilterPicker.vue +1048 -0
  60. package/src/components/BryntumGridFieldFilterPickerGroup.vue +1067 -0
  61. package/src/components/BryntumGridFieldFilterPickerGroupProps.ts +641 -0
  62. package/src/components/BryntumGridFieldFilterPickerProps.ts +636 -0
  63. package/src/components/BryntumGridProps.ts +1028 -0
  64. package/src/components/BryntumGroupBar.vue +1016 -0
  65. package/src/components/BryntumGroupBarProps.ts +583 -0
  66. package/src/components/BryntumTreeCombo.vue +1337 -0
  67. package/src/components/BryntumTreeComboProps.ts +838 -0
  68. package/src/components/BryntumTreeGrid.vue +2985 -0
  69. package/src/components/BryntumTreeGridProps.ts +1028 -0
  70. package/src/helper/WrapperHelper.ts +573 -0
  71. package/src/index.ts +24 -0
  72. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,805 @@
1
+ <!-- Vue 3 wrapper for Bryntum GridChartDesigner -->
2
+
3
+ <template>
4
+ <div ref="refElement">
5
+
6
+ </div>
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+
11
+ import { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';
12
+
13
+ import type { AlignSpec, Base, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
14
+ import type { Grid, GridChartDesignerListeners } from '@bryntum/grid-thin';
15
+ import { GridChartDesigner } from '@bryntum/grid-thin';
16
+
17
+ import { WrapperHelper } from '../helper/WrapperHelper';
18
+
19
+ defineProps<{
20
+ // Configs
21
+ /**
22
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
23
+ * content will be placed inside this element.
24
+ * ...
25
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-adopt)
26
+ */
27
+ adopt ? : HTMLElement|string
28
+ /**
29
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
30
+ * ...
31
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-align)
32
+ */
33
+ align ? : AlignSpec|string
34
+ /**
35
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container), it will by default be participating in a
36
+ * flexbox layout. This config allows you to set this widget's
37
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
38
+ */
39
+ alignSelf ? : string
40
+ /**
41
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
42
+ * `true` to show a connector arrow pointing to the align target.
43
+ */
44
+ anchor ? : Boolean
45
+ /**
46
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
47
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
48
+ */
49
+ appendTo ? : HTMLElement|string
50
+ /**
51
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
52
+ * into an element which will be linked using the `aria-describedby` attribute.
53
+ * ...
54
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-ariaDescription)
55
+ */
56
+ ariaDescription ? : string
57
+ /**
58
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
59
+ * the `aria-label` attribute.
60
+ * ...
61
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-ariaLabel)
62
+ */
63
+ ariaLabel ? : string
64
+ /**
65
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
66
+ * hierarchy when triggered.
67
+ * ...
68
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-bubbleEvents)
69
+ */
70
+ bubbleEvents ? : object
71
+ /**
72
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
73
+ * ...
74
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-callOnFunctions)
75
+ */
76
+ callOnFunctions ? : Boolean
77
+ /**
78
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
79
+ * application state is undefined. Code which follows the event handler will *not* be executed.
80
+ * ...
81
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-catchEventHandlerExceptions)
82
+ */
83
+ catchEventHandlerExceptions ? : Boolean
84
+ /**
85
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
86
+ * Set to `true` to centre the Widget in browser viewport space.
87
+ */
88
+ centered ? : Boolean
89
+ /**
90
+ * Custom CSS classes to add to element.
91
+ * May be specified as a space separated string, or as an object in which property names
92
+ * with truthy values are used as the class names:
93
+ * ...
94
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-cls)
95
+ */
96
+ cls ? : string|object
97
+ /**
98
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
99
+ * `style` block.
100
+ * ...
101
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-color)
102
+ */
103
+ color ? : string
104
+ /**
105
+ * Programmatic control over which column to start in when used in a grid layout.
106
+ */
107
+ column ? : number
108
+ config ? : object
109
+ /**
110
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
111
+ * Element, Widget or Rectangle to which this Widget is constrained.
112
+ */
113
+ constrainTo ? : HTMLElement|Widget|Rectangle
114
+ /**
115
+ * The HTML content that coexists with sibling elements which may have been added to the
116
+ * [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
117
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-htmlCls)
118
+ * class added to its classList, to allow targeted styling.
119
+ */
120
+ content ? : string
121
+ /**
122
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
123
+ * May be specified as a space separated string, or as an object in which property names
124
+ * with truthy values are used as the class names:
125
+ * ...
126
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-contentElementCls)
127
+ */
128
+ contentElementCls ? : string|object
129
+ /**
130
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
131
+ * field on the expanded record to use for populating this widget's store (if applicable)
132
+ */
133
+ dataField ? : string
134
+ /**
135
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
136
+ */
137
+ dataset ? : Record<string, string>
138
+ /**
139
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
140
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
141
+ */
142
+ defaultBindProperty ? : string
143
+ /**
144
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
145
+ * ...
146
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-detectCSSCompatibilityIssues)
147
+ */
148
+ detectCSSCompatibilityIssues ? : Boolean
149
+ /**
150
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
151
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
152
+ * ...
153
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-disabled)
154
+ */
155
+ disabled ? : Boolean|'inert'
156
+ /**
157
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/grid/docs/api/Core/widget/Panel)
158
+ * [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
159
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
160
+ * body. Such widgets are called "edge strips".
161
+ * ...
162
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-dock)
163
+ */
164
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
165
+ /**
166
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
167
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
168
+ * property which controls when a drag should start.
169
+ * ...
170
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-draggable)
171
+ */
172
+ draggable ? : Boolean|{
173
+ handleSelector?: string
174
+ }
175
+ /**
176
+ * An object specifying attributes to assign to the root element of this widget.
177
+ * Set `null` value to attribute to remove it.
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-elementAttributes)
180
+ */
181
+ elementAttributes ? : Record<string, string|null>
182
+ extraData ? : any
183
+ /**
184
+ * When this widget is a child of a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container), it will by default be participating in a
185
+ * flexbox layout. This config allows you to set this widget's
186
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
187
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
188
+ * numeric-only values are interpreted as the `flex-grow` value.
189
+ */
190
+ flex ? : number|string
191
+ /**
192
+ * Set to `true` to move the widget out of the document flow and position it
193
+ * absolutely in browser viewport space.
194
+ */
195
+ floating ? : Boolean
196
+ /**
197
+ * [Grid](https://bryntum.com/products/grid/docs/api/Grid/view/Grid) whose selected cells will provide the data series for the chart.
198
+ * Columns in the grid will become series available for use in the chart designer, and cell values
199
+ * in the selected cells becomes data values shown in the preview chart.
200
+ */
201
+ grid ? : Grid
202
+ /**
203
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
204
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
205
+ * cases this config is convenient.
206
+ */
207
+ height ? : string|number
208
+ /**
209
+ * Configure with true to make widget initially hidden.
210
+ */
211
+ hidden ? : Boolean
212
+ /**
213
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
214
+ * ...
215
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-hideAnimation)
216
+ */
217
+ hideAnimation ? : Boolean|object
218
+ /**
219
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
220
+ * ...
221
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-html)
222
+ * @param {Core.widget.Widget} widget The calling Widget
223
+ * @returns {string}
224
+ */
225
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
226
+ /**
227
+ * The CSS class(es) to add when HTML content is being applied to this widget.
228
+ */
229
+ htmlCls ? : string|object
230
+ /**
231
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
232
+ */
233
+ id ? : string
234
+ /**
235
+ * Determines if the widgets read-only state should be controlled by its parent.
236
+ * ...
237
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-ignoreParentReadOnly)
238
+ */
239
+ ignoreParentReadOnly ? : Boolean
240
+ /**
241
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
242
+ */
243
+ insertBefore ? : HTMLElement|string
244
+ /**
245
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
246
+ */
247
+ insertFirst ? : HTMLElement|string
248
+ /**
249
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
250
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
251
+ * are the name of the instance method to call when the keystroke is received.
252
+ * ...
253
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-keyMap)
254
+ */
255
+ keyMap ? : Record<string, KeyMapConfig>
256
+ /**
257
+ * The listener set for this object.
258
+ * ...
259
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-listeners)
260
+ */
261
+ listeners ? : GridChartDesignerListeners
262
+ /**
263
+ * A class translations of which are used for translating this entity.
264
+ * This is often used when translations of an item are defined on its container class.
265
+ * For example:
266
+ * ...
267
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-localeClass)
268
+ */
269
+ localeClass ? : typeof Base
270
+ /**
271
+ * Set to `false` to disable localization of this object.
272
+ */
273
+ localizable ? : Boolean
274
+ /**
275
+ * List of properties which values should be translated automatically upon a locale applying.
276
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
277
+ * you could use 'localeKey' meta configuration.
278
+ * Example:
279
+ * ...
280
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-localizableProperties)
281
+ */
282
+ localizableProperties ? : string[]
283
+ /**
284
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
285
+ * numeric-only values are interpreted as pixels.
286
+ */
287
+ margin ? : number|string
288
+ /**
289
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) created for the
290
+ * [masked](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
291
+ * values.
292
+ */
293
+ maskDefaults ? : MaskConfig
294
+ /**
295
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
296
+ * [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object.
297
+ */
298
+ masked ? : Boolean|string|MaskConfig
299
+ /**
300
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
301
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
302
+ */
303
+ maxHeight ? : string|number
304
+ /**
305
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
306
+ * ...
307
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-maximizeOnMobile)
308
+ */
309
+ maximizeOnMobile ? : number|string
310
+ /**
311
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
312
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
313
+ */
314
+ maxWidth ? : string|number
315
+ /**
316
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
317
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
318
+ */
319
+ minHeight ? : string|number
320
+ /**
321
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
322
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
323
+ */
324
+ minWidth ? : string|number
325
+ /**
326
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
327
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
328
+ * layout.
329
+ * ...
330
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-monitorResize)
331
+ */
332
+ monitorResize ? : Boolean|{
333
+ immediate?: Boolean
334
+ }
335
+ /**
336
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
337
+ * [items](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
338
+ * the owner is <strong>always</strong> the encapsulating Container.
339
+ * ...
340
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-owner)
341
+ */
342
+ owner ? : Widget|any
343
+ /**
344
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement), but must
345
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
346
+ * widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
347
+ * ...
348
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-positioned)
349
+ */
350
+ positioned ? : Boolean
351
+ /**
352
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
353
+ * menu on click etc, since the tooltip would be displayed at the same time.
354
+ */
355
+ preventTooltipOnTouch ? : Boolean
356
+ /**
357
+ * Whether this widget is read-only. This is only valid if the widget is an input
358
+ * field, <strong>or contains input fields at any depth</strong>.
359
+ * ...
360
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-readOnly)
361
+ */
362
+ readOnly ? : Boolean
363
+ relayStoreEvents ? : Boolean
364
+ /**
365
+ * Configure as `true` to have the component display a translucent ripple when its
366
+ * [focusElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
367
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
368
+ * ...
369
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-ripple)
370
+ */
371
+ ripple ? : Boolean|{
372
+ delegate?: string
373
+ color?: string
374
+ radius?: number
375
+ clip?: string
376
+ }
377
+ /**
378
+ * 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`
379
+ */
380
+ rootElement ? : ShadowRoot|HTMLElement
381
+ /**
382
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
383
+ * ...
384
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-rtl)
385
+ */
386
+ rtl ? : Boolean
387
+ /**
388
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
389
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
390
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
391
+ * CSS overflow properties thus:
392
+ * ...
393
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-scrollable)
394
+ */
395
+ scrollable ? : Boolean|ScrollerConfig|Scroller
396
+ /**
397
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
398
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
399
+ */
400
+ scrollAction ? : 'hide'|'realign'|null
401
+ /**
402
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
403
+ * ...
404
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-showAnimation)
405
+ */
406
+ showAnimation ? : Boolean|object
407
+ /**
408
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-disabled)
409
+ */
410
+ showTooltipWhenDisabled ? : Boolean
411
+ /**
412
+ * Programmatic control over how many columns to span when used in a grid layout.
413
+ */
414
+ span ? : number
415
+ /**
416
+ * Whether to update the chart designer's data series options and preview data as the
417
+ * grid selection changes.
418
+ */
419
+ sync ? : Boolean
420
+ /**
421
+ * A configuration for the [tab](https://bryntum.com/products/grid/docs/api/Core/widget/Tab) created for this widget when it is placed in a
422
+ * [TabPanel](https://bryntum.com/products/grid/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
423
+ * this widget:
424
+ * ...
425
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-tab)
426
+ */
427
+ tab ? : Boolean|TabConfig
428
+ /**
429
+ * The tag name of this Widget's root element
430
+ */
431
+ tag ? : string
432
+ /**
433
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
434
+ * ...
435
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-textAlign)
436
+ */
437
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
438
+ /**
439
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
440
+ */
441
+ title ? : string
442
+ /**
443
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
444
+ * ...
445
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-tooltip)
446
+ */
447
+ tooltip ? : string|TooltipConfig|null
448
+ type ? : 'gridchartdesigner'
449
+ /**
450
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
451
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
452
+ * values are used as the class names.
453
+ * ...
454
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-ui)
455
+ */
456
+ ui ? : string|object
457
+ /**
458
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container).
459
+ * Higher weights go further down.
460
+ */
461
+ weight ? : number
462
+ /**
463
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
464
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
465
+ * this config is convenient.
466
+ */
467
+ width ? : string|number
468
+ /**
469
+ * The x position for the widget.
470
+ * ...
471
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-x)
472
+ */
473
+ x ? : number
474
+ /**
475
+ * The y position for the widget.
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-y)
478
+ */
479
+ y ? : number
480
+
481
+ }>();
482
+
483
+ const emit = defineEmits<{
484
+ /**
485
+ * Fires before an object is destroyed.
486
+ * @param {string} e Event name
487
+ * @param {object} params Event parameters
488
+ * @param {string} params.e Event name
489
+ * @param {object} params.params Event parameters
490
+ * @param {object} params.params.event Event object
491
+ * @param {Core.Base} params.params.event.source The Object that is being destroyed.
492
+ */
493
+ (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
494
+ /**
495
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
496
+ * @param {string} e Event name
497
+ * @param {object} params Event parameters
498
+ * @param {string} params.e Event name
499
+ * @param {object} params.params Event parameters
500
+ * @param {object} params.params.event Event object
501
+ * @param {Core.widget.Widget} params.params.event.source The widget being hidden.
502
+ */
503
+ (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
504
+ /**
505
+ * Triggered before a widget is shown. Return `false` to prevent the action.
506
+ * @param {string} e Event name
507
+ * @param {object} params Event parameters
508
+ * @param {string} params.e Event name
509
+ * @param {object} params.params Event parameters
510
+ * @param {object} params.params.event Event object
511
+ * @param {Core.widget.Widget,any} params.params.event.source The widget being shown
512
+ */
513
+ (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
514
+ /**
515
+ * Fires when any other event is fired from the object.
516
+ * ...
517
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-catchAll)
518
+ * @param {string} e Event name
519
+ * @param {object} params Event parameters
520
+ * @param {string} params.e Event name
521
+ * @param {object} params.params Event parameters
522
+ * @param {object} params.params.event Event object
523
+ * @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
524
+ * @param {string} params.params.event.event.type The type of the event which is caught by the listener
525
+ */
526
+ (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
527
+ /**
528
+ * Fires when an object is destroyed.
529
+ * @param {string} e Event name
530
+ * @param {object} params Event parameters
531
+ * @param {string} params.e Event name
532
+ * @param {object} params.params Event parameters
533
+ * @param {object} params.params.event Event object
534
+ * @param {Core.Base} params.params.event.source The Object that is being destroyed.
535
+ */
536
+ (e: 'destroy', params: ((event: { source: Base }) => void)|string): void
537
+ /**
538
+ * Triggered when a widget's [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element) is available.
539
+ * @param {string} e Event name
540
+ * @param {object} params Event parameters
541
+ * @param {string} params.e Event name
542
+ * @param {object} params.params Event parameters
543
+ * @param {object} params.params.event Event object
544
+ * @param {HTMLElement} params.params.event.element The Widget's element.
545
+ */
546
+ (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
547
+ /**
548
+ * Fired when focus enters this Widget.
549
+ * @param {string} e Event name
550
+ * @param {object} params Event parameters
551
+ * @param {string} params.e Event name
552
+ * @param {object} params.params Event parameters
553
+ * @param {object} params.params.event Event object
554
+ * @param {Core.widget.Widget} params.params.event.source This Widget
555
+ * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
556
+ * @param {HTMLElement} params.params.event.toElement The element which gained focus.
557
+ * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
558
+ * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
559
+ * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
560
+ */
561
+ (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
562
+ /**
563
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
564
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
565
+ * will not trigger this event. This is when focus exits this widget completely.
566
+ * @param {string} e Event name
567
+ * @param {object} params Event parameters
568
+ * @param {string} params.e Event name
569
+ * @param {object} params.params Event parameters
570
+ * @param {object} params.params.event Event object
571
+ * @param {Core.widget.Widget} params.params.event.source This Widget
572
+ * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
573
+ * @param {HTMLElement} params.params.event.toElement The element which gained focus.
574
+ * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
575
+ * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
576
+ * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
577
+ */
578
+ (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
579
+ /**
580
+ * Triggered after a widget was hidden
581
+ * @param {string} e Event name
582
+ * @param {object} params Event parameters
583
+ * @param {string} params.e Event name
584
+ * @param {object} params.params Event parameters
585
+ * @param {object} params.params.event Event object
586
+ * @param {Core.widget.Widget} params.params.event.source The widget
587
+ */
588
+ (e: 'hide', params: ((event: { source: Widget }) => void)|string): void
589
+ /**
590
+ * Triggered when a widget which had been in a non-visible state for any reason
591
+ * achieves visibility.
592
+ * ...
593
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#event-paint)
594
+ * @param {string} e Event name
595
+ * @param {object} params Event parameters
596
+ * @param {string} params.e Event name
597
+ * @param {object} params.params Event parameters
598
+ * @param {object} params.params.event Event object
599
+ * @param {Core.widget.Widget} params.params.event.source The widget being painted.
600
+ * @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
601
+ */
602
+ (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
603
+ /**
604
+ * Fired when a Widget's read only state is toggled
605
+ * @param {string} e Event name
606
+ * @param {object} params Event parameters
607
+ * @param {string} params.e Event name
608
+ * @param {object} params.params Event parameters
609
+ * @param {object} params.params.event Event object
610
+ * @param {boolean} params.params.event.readOnly Read only or not
611
+ */
612
+ (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
613
+ /**
614
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
615
+ * to [recompose](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
616
+ */
617
+ (e: 'recompose', params: (() => void)|string): void
618
+ /**
619
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
620
+ * @param {string} e Event name
621
+ * @param {object} params Event parameters
622
+ * @param {string} params.e Event name
623
+ * @param {object} params.params Event parameters
624
+ * @param {object} params.params.event Event object
625
+ * @param {Core.widget.Widget} params.params.event.source This Widget
626
+ * @param {number} params.params.event.width The new width
627
+ * @param {number} params.params.event.height The new height
628
+ * @param {number} params.params.event.oldWidth The old width
629
+ * @param {number} params.params.event.oldHeight The old height
630
+ */
631
+ (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
632
+ /**
633
+ * Triggered after a widget is shown.
634
+ * @param {string} e Event name
635
+ * @param {object} params Event parameters
636
+ * @param {string} params.e Event name
637
+ * @param {object} params.params Event parameters
638
+ * @param {object} params.params.event Event object
639
+ * @param {Core.widget.Widget} params.params.event.source The widget
640
+ */
641
+ (e: 'show', params: ((event: { source: Widget }) => void)|string): void
642
+ }>();
643
+
644
+ const widgetData = {
645
+ instanceClass : GridChartDesigner,
646
+ instanceName : 'GridChartDesigner',
647
+
648
+ configNames : [
649
+ 'adopt',
650
+ 'align',
651
+ 'anchor',
652
+ 'ariaDescription',
653
+ 'ariaLabel',
654
+ 'bubbleEvents',
655
+ 'centered',
656
+ 'color',
657
+ 'config',
658
+ 'constrainTo',
659
+ 'contentElementCls',
660
+ 'dataField',
661
+ 'defaultBindProperty',
662
+ 'detectCSSCompatibilityIssues',
663
+ 'dock',
664
+ 'draggable',
665
+ 'elementAttributes',
666
+ 'floating',
667
+ 'grid',
668
+ 'hideAnimation',
669
+ 'htmlCls',
670
+ 'ignoreParentReadOnly',
671
+ 'listeners',
672
+ 'localeClass',
673
+ 'localizable',
674
+ 'localizableProperties',
675
+ 'maskDefaults',
676
+ 'masked',
677
+ 'monitorResize',
678
+ 'owner',
679
+ 'positioned',
680
+ 'preventTooltipOnTouch',
681
+ 'relayStoreEvents',
682
+ 'ripple',
683
+ 'rootElement',
684
+ 'scrollAction',
685
+ 'showAnimation',
686
+ 'showTooltipWhenDisabled',
687
+ 'sync',
688
+ 'tab',
689
+ 'tag',
690
+ 'textAlign',
691
+ 'title',
692
+ 'type',
693
+ 'ui',
694
+ 'weight'
695
+ ],
696
+ propertyConfigNames : [
697
+ 'alignSelf',
698
+ 'appendTo',
699
+ 'callOnFunctions',
700
+ 'catchEventHandlerExceptions',
701
+ 'cls',
702
+ 'column',
703
+ 'content',
704
+ 'dataset',
705
+ 'disabled',
706
+ 'extraData',
707
+ 'flex',
708
+ 'height',
709
+ 'hidden',
710
+ 'html',
711
+ 'id',
712
+ 'insertBefore',
713
+ 'insertFirst',
714
+ 'keyMap',
715
+ 'margin',
716
+ 'maxHeight',
717
+ 'maximizeOnMobile',
718
+ 'maxWidth',
719
+ 'minHeight',
720
+ 'minWidth',
721
+ 'onBeforeDestroy',
722
+ 'onBeforeHide',
723
+ 'onBeforeShow',
724
+ 'onCatchAll',
725
+ 'onDestroy',
726
+ 'onElementCreated',
727
+ 'onFocusIn',
728
+ 'onFocusOut',
729
+ 'onHide',
730
+ 'onPaint',
731
+ 'onReadOnly',
732
+ 'onRecompose',
733
+ 'onResize',
734
+ 'onShow',
735
+ 'readOnly',
736
+ 'rtl',
737
+ 'scrollable',
738
+ 'span',
739
+ 'tooltip',
740
+ 'width',
741
+ 'x',
742
+ 'y'
743
+ ],
744
+ propertyNames : [
745
+ 'anchorSize',
746
+ 'focusVisible',
747
+ 'parent'
748
+ ],
749
+ eventNames : [
750
+ 'beforeDestroy',
751
+ 'beforeHide',
752
+ 'beforeShow',
753
+ 'catchAll',
754
+ 'destroy',
755
+ 'elementCreated',
756
+ 'focusIn',
757
+ 'focusOut',
758
+ 'hide',
759
+ 'paint',
760
+ 'readOnly',
761
+ 'recompose',
762
+ 'resize',
763
+ 'show'
764
+ ]
765
+ };
766
+
767
+ const instance: {
768
+ value?: GridChartDesigner
769
+ } = {};
770
+
771
+ const refElement = ref<HTMLDivElement>()!;
772
+ // Storage for teleports (in-cell Vue component instances) automatically renderer by template
773
+ const teleports = ref(new Map());
774
+
775
+ // Provide teleports for processCellContent
776
+ provide('teleports', teleports);
777
+
778
+ onMounted(() => {
779
+
780
+ const me = getCurrentInstance()!;
781
+
782
+ instance.value = WrapperHelper.createWidget<typeof GridChartDesigner>({
783
+ me,
784
+ widgetData,
785
+ emit,
786
+ element : refElement.value!,
787
+ toRaw
788
+ });
789
+
790
+ const watcher = (prop: string, callback: any) => watch(() => me.props[prop], callback);
791
+ WrapperHelper.watchProps(instance.value, widgetData, watcher);
792
+ });
793
+
794
+ onBeforeUnmount(() => {
795
+ // @ts-ignore
796
+ instance.value?.destroy?.();
797
+ });
798
+
799
+ defineExpose({
800
+ instance,
801
+ refElement,
802
+ teleports
803
+ });
804
+
805
+ </script>