@bryntum/scheduler-vue 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.
- package/README.md +51 -0
- package/index.d.ts +74 -0
- package/index.js +148 -0
- package/license.pdf +0 -0
- package/licenses.md +310 -0
- package/package.json +22 -0
- package/src/BryntumAIFilterField.vue +382 -0
- package/src/BryntumButton.vue +342 -0
- package/src/BryntumButtonGroup.vue +354 -0
- package/src/BryntumChatPanel.vue +406 -0
- package/src/BryntumCheckbox.vue +384 -0
- package/src/BryntumCheckboxGroup.vue +414 -0
- package/src/BryntumChecklistFilterCombo.vue +457 -0
- package/src/BryntumChipView.vue +350 -0
- package/src/BryntumCodeEditor.vue +400 -0
- package/src/BryntumColorField.vue +384 -0
- package/src/BryntumCombo.vue +451 -0
- package/src/BryntumContainer.vue +339 -0
- package/src/BryntumDateField.vue +402 -0
- package/src/BryntumDatePicker.vue +480 -0
- package/src/BryntumDateRangeField.vue +404 -0
- package/src/BryntumDateTimeField.vue +362 -0
- package/src/BryntumDemoCodeEditor.vue +406 -0
- package/src/BryntumDemoHeader.vue +145 -0
- package/src/BryntumDisplayField.vue +372 -0
- package/src/BryntumDurationField.vue +396 -0
- package/src/BryntumEditor.vue +385 -0
- package/src/BryntumEventColorField.vue +384 -0
- package/src/BryntumFieldFilterPicker.vue +366 -0
- package/src/BryntumFieldFilterPickerGroup.vue +373 -0
- package/src/BryntumFieldSet.vue +396 -0
- package/src/BryntumFileField.vue +374 -0
- package/src/BryntumFilePicker.vue +351 -0
- package/src/BryntumFilterField.vue +388 -0
- package/src/BryntumFullscreenButton.vue +41 -0
- package/src/BryntumGrid.vue +819 -0
- package/src/BryntumGridBase.vue +816 -0
- package/src/BryntumGridChartDesigner.vue +295 -0
- package/src/BryntumGridFieldFilterPicker.vue +368 -0
- package/src/BryntumGridFieldFilterPickerGroup.vue +371 -0
- package/src/BryntumGroupBar.vue +350 -0
- package/src/BryntumHint.vue +417 -0
- package/src/BryntumLabel.vue +293 -0
- package/src/BryntumList.vue +344 -0
- package/src/BryntumMenu.vue +425 -0
- package/src/BryntumMonthPicker.vue +396 -0
- package/src/BryntumNumberField.vue +386 -0
- package/src/BryntumPagingToolbar.vue +358 -0
- package/src/BryntumPanel.vue +388 -0
- package/src/BryntumPasswordField.vue +370 -0
- package/src/BryntumProjectCombo.vue +453 -0
- package/src/BryntumRadio.vue +384 -0
- package/src/BryntumRadioGroup.vue +404 -0
- package/src/BryntumResourceCombo.vue +453 -0
- package/src/BryntumResourceFilter.vue +355 -0
- package/src/BryntumScheduler.vue +1563 -0
- package/src/BryntumSchedulerBase.vue +1561 -0
- package/src/BryntumSchedulerDatePicker.vue +486 -0
- package/src/BryntumSchedulerProjectModel.vue +211 -0
- package/src/BryntumSlideToggle.vue +384 -0
- package/src/BryntumSlider.vue +327 -0
- package/src/BryntumSplitter.vue +304 -0
- package/src/BryntumTabPanel.vue +406 -0
- package/src/BryntumTextAreaField.vue +374 -0
- package/src/BryntumTextAreaPickerField.vue +386 -0
- package/src/BryntumTextField.vue +378 -0
- package/src/BryntumTimeField.vue +396 -0
- package/src/BryntumTimePicker.vue +352 -0
- package/src/BryntumTimelineHistogram.vue +1083 -0
- package/src/BryntumToolbar.vue +356 -0
- package/src/BryntumTreeCombo.vue +451 -0
- package/src/BryntumTreeGrid.vue +818 -0
- package/src/BryntumUndoRedo.vue +347 -0
- package/src/BryntumViewPresetCombo.vue +362 -0
- package/src/BryntumWidget.vue +294 -0
- package/src/BryntumYearPicker.vue +403 -0
- package/src/WrapperHelper.js +487 -0
|
@@ -0,0 +1,816 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Vue wrapper for Bryntum GridBase
|
|
3
|
+
-->
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<!-- Container for Vue components used in cells, hidden from view -->
|
|
8
|
+
<div
|
|
9
|
+
ref = "cellInstancesHolder"
|
|
10
|
+
style = "display: none"
|
|
11
|
+
>
|
|
12
|
+
<component
|
|
13
|
+
:is = "component.is"
|
|
14
|
+
v-for = "component in cellInstances"
|
|
15
|
+
:ref = "component.key"
|
|
16
|
+
:key = "component.key"
|
|
17
|
+
v-bind = "component"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
|
|
25
|
+
import { AjaxStore, Base, Column, ColumnStore, Container, Grid, GridBase, GridLocation, Mask, Menu, MenuItem, Model, Panel, Row, ScrollManager, Scroller, StateProvider, Store, SubGrid, Tool, Widget } from '@bryntum/scheduler';
|
|
26
|
+
|
|
27
|
+
import { StringHelper } from '@bryntum/scheduler';
|
|
28
|
+
import WrapperHelper from './WrapperHelper.js';
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line vue/multi-word-component-names
|
|
33
|
+
name : 'BryntumGridBase',
|
|
34
|
+
|
|
35
|
+
props : {
|
|
36
|
+
|
|
37
|
+
// Configs only
|
|
38
|
+
adopt : { type : [HTMLElement, String], default : undefined },
|
|
39
|
+
animateFilterRemovals : { type : Boolean, default : undefined },
|
|
40
|
+
animateRemovingRows : { type : Boolean, default : undefined },
|
|
41
|
+
ariaDescription : { type : String, default : undefined },
|
|
42
|
+
ariaLabel : { type : String, default : undefined },
|
|
43
|
+
autoHeight : { type : Boolean, default : undefined },
|
|
44
|
+
bbar : { type : [Array, Object, null], default : undefined },
|
|
45
|
+
bodyCls : { type : [String, Object], default : undefined },
|
|
46
|
+
bubbleEvents : { type : Object, default : undefined },
|
|
47
|
+
collapsible : { type : [Boolean, Object], default : undefined },
|
|
48
|
+
color : { type : String, default : undefined },
|
|
49
|
+
config : { type : Object, default : undefined },
|
|
50
|
+
contentElementCls : { type : [String, Object], default : undefined },
|
|
51
|
+
contextMenuTriggerEvent : { type : String, default : undefined },
|
|
52
|
+
dataField : { type : String, default : undefined },
|
|
53
|
+
defaultRegion : { type : String, default : undefined },
|
|
54
|
+
destroyStore : { type : Boolean, default : undefined },
|
|
55
|
+
detectCSSCompatibilityIssues : { type : Boolean, default : undefined },
|
|
56
|
+
disableGridColumnIdWarning : { type : Boolean, default : undefined },
|
|
57
|
+
disableGridRowModelWarning : { type : Boolean, default : undefined },
|
|
58
|
+
dock : { type : [String, Object], default : undefined },
|
|
59
|
+
drawer : { type : [Boolean, String], default : undefined },
|
|
60
|
+
elementAttributes : { type : Object, default : undefined },
|
|
61
|
+
enableSticky : { type : Boolean, default : undefined },
|
|
62
|
+
enableTextSelection : { type : Boolean, default : undefined },
|
|
63
|
+
fillLastColumn : { type : Boolean, default : undefined },
|
|
64
|
+
fixedRowHeight : { type : Boolean, default : undefined },
|
|
65
|
+
footer : { type : [Object, String], default : undefined },
|
|
66
|
+
formulaProviders : { type : Object, default : undefined },
|
|
67
|
+
fullRowRefresh : { type : Boolean, default : undefined },
|
|
68
|
+
getRowHeight : { type : Function, default : undefined },
|
|
69
|
+
header : { type : [String, Boolean, Object], default : undefined },
|
|
70
|
+
hideHorizontalScrollbar : { type : Boolean, default : undefined },
|
|
71
|
+
hoverCls : { type : String, default : undefined },
|
|
72
|
+
icon : { type : [String, Object], default : undefined },
|
|
73
|
+
ignoreParentReadOnly : { type : Boolean, default : undefined },
|
|
74
|
+
listeners : { type : Object, default : undefined },
|
|
75
|
+
loadMask : { type : [String, Object, null], default : undefined },
|
|
76
|
+
loadMaskDefaults : { type : Object, default : undefined },
|
|
77
|
+
loadMaskError : { type : [Object, Mask, Boolean], default : undefined },
|
|
78
|
+
localizable : { type : Boolean, default : undefined },
|
|
79
|
+
maskDefaults : { type : Object, default : undefined },
|
|
80
|
+
masked : { type : [Boolean, String, Object], default : undefined },
|
|
81
|
+
monitorResize : { type : Boolean, default : undefined },
|
|
82
|
+
owner : { type : [Widget, Object], default : undefined },
|
|
83
|
+
plugins : { type : Array, default : undefined },
|
|
84
|
+
preserveFocusOnDatasetChange : { type : Boolean, default : undefined },
|
|
85
|
+
preserveScrollOnDatasetChange : { type : Boolean, default : undefined },
|
|
86
|
+
preventTooltipOnTouch : { type : Boolean, default : undefined },
|
|
87
|
+
relayStoreEvents : { type : Boolean, default : undefined },
|
|
88
|
+
resizable : { type : [Boolean, Object], default : undefined },
|
|
89
|
+
resizeToFitIncludesHeader : { type : Boolean, default : undefined },
|
|
90
|
+
responsiveLevels : { type : Object, default : undefined },
|
|
91
|
+
ripple : { type : [Boolean, Object], default : undefined },
|
|
92
|
+
rootElement : { type : [ShadowRoot, HTMLElement], default : undefined },
|
|
93
|
+
scrollerClass : { type : Function, default : undefined },
|
|
94
|
+
scrollManager : { type : [Object, ScrollManager], default : undefined },
|
|
95
|
+
showDirty : { type : [Boolean, Object], default : undefined },
|
|
96
|
+
stateful : { type : [Boolean, Object, Array], default : undefined },
|
|
97
|
+
statefulEvents : { type : [Object, Array], default : undefined },
|
|
98
|
+
stateId : { type : String, default : undefined },
|
|
99
|
+
stateProvider : { type : StateProvider, default : undefined },
|
|
100
|
+
strips : { type : Object, default : undefined },
|
|
101
|
+
subGridConfigs : { type : Object, default : undefined },
|
|
102
|
+
syncMask : { type : [String, Object, null], default : undefined },
|
|
103
|
+
tab : { type : [Boolean, Object], default : undefined },
|
|
104
|
+
tabBarItems : { type : Array, default : undefined },
|
|
105
|
+
tbar : { type : [Array, Object, null], default : undefined },
|
|
106
|
+
ui : { type : [String, Object], default : undefined },
|
|
107
|
+
weight : { type : Number, default : undefined },
|
|
108
|
+
|
|
109
|
+
// Configs and properties
|
|
110
|
+
alignSelf : { type : String, default : undefined },
|
|
111
|
+
animateTreeNodeToggle : { type : Boolean, default : undefined },
|
|
112
|
+
appendTo : { type : [HTMLElement, String], default : undefined },
|
|
113
|
+
callOnFunctions : { type : Boolean, default : undefined },
|
|
114
|
+
catchEventHandlerExceptions : { type : Boolean, default : undefined },
|
|
115
|
+
cellEllipsis : { type : Boolean, default : undefined },
|
|
116
|
+
cls : { type : [String, Object], default : undefined },
|
|
117
|
+
collapsed : { type : Boolean, default : undefined },
|
|
118
|
+
column : { type : Number, default : undefined },
|
|
119
|
+
columnLines : { type : Boolean, default : undefined },
|
|
120
|
+
columns : { type : [ColumnStore, Array, Object], default : undefined },
|
|
121
|
+
data : { type : Array, default : undefined },
|
|
122
|
+
dataset : { type : Object, default : undefined },
|
|
123
|
+
disabled : { type : [Boolean, String], default : undefined },
|
|
124
|
+
emptyText : { type : [String, Object], default : undefined },
|
|
125
|
+
enableUndoRedoKeys : { type : Boolean, default : undefined },
|
|
126
|
+
extraData : { type : Object, default : undefined },
|
|
127
|
+
flex : { type : [Number, String], default : undefined },
|
|
128
|
+
height : { type : [Number, String], default : undefined },
|
|
129
|
+
hidden : { type : Boolean, default : undefined },
|
|
130
|
+
hideFooters : { type : Boolean, default : undefined },
|
|
131
|
+
hideHeaders : { type : Boolean, default : undefined },
|
|
132
|
+
id : { type : String, default : undefined },
|
|
133
|
+
inputFieldAlign : { type : String, default : undefined },
|
|
134
|
+
insertBefore : { type : [HTMLElement, String], default : undefined },
|
|
135
|
+
insertFirst : { type : [HTMLElement, String], default : undefined },
|
|
136
|
+
keyMap : { type : Object, default : undefined },
|
|
137
|
+
labelPosition : { type : [String, null], default : undefined },
|
|
138
|
+
longPressTime : { type : Number, default : undefined },
|
|
139
|
+
margin : { type : [Number, String], default : undefined },
|
|
140
|
+
maxHeight : { type : [String, Number], default : undefined },
|
|
141
|
+
maxWidth : { type : [String, Number], default : undefined },
|
|
142
|
+
minHeight : { type : [String, Number], default : undefined },
|
|
143
|
+
minWidth : { type : [String, Number], default : undefined },
|
|
144
|
+
preserveScroll : { type : [Object, Boolean], default : undefined },
|
|
145
|
+
readOnly : { type : Boolean, default : undefined },
|
|
146
|
+
rendition : { type : [String, Object, null], default : undefined },
|
|
147
|
+
rowHeight : { type : Number, default : undefined },
|
|
148
|
+
rowLines : { type : Boolean, default : undefined },
|
|
149
|
+
rtl : { type : Boolean, default : undefined },
|
|
150
|
+
scrollable : { type : [Scroller, Boolean, Object], default : undefined },
|
|
151
|
+
selectionMode : { type : Object, default : undefined },
|
|
152
|
+
span : { type : Number, default : undefined },
|
|
153
|
+
stateSettings : { type : Object, default : undefined },
|
|
154
|
+
store : { type : [Store, Object, AjaxStore], default : undefined },
|
|
155
|
+
title : { type : String, default : undefined },
|
|
156
|
+
tools : { type : [Object, null], default : undefined },
|
|
157
|
+
transition : { type : Object, default : undefined },
|
|
158
|
+
transitionDuration : { type : Number, default : undefined },
|
|
159
|
+
width : { type : [Number, String], default : undefined },
|
|
160
|
+
|
|
161
|
+
// Properties only
|
|
162
|
+
focusVisible : { type : Boolean, default : undefined },
|
|
163
|
+
hasChanges : { type : Boolean, default : undefined },
|
|
164
|
+
originalStore : { type : Store, default : undefined },
|
|
165
|
+
parent : { type : Widget, default : undefined },
|
|
166
|
+
selectedCell : { type : [GridLocation, Object], default : undefined },
|
|
167
|
+
selectedCells : { type : Array, default : undefined },
|
|
168
|
+
selectedRecord : { type : Model, default : undefined },
|
|
169
|
+
selectedRecords : { type : Array, default : undefined },
|
|
170
|
+
selectedRows : { type : Array, default : undefined },
|
|
171
|
+
state : { type : Object, default : undefined },
|
|
172
|
+
tooltip : { type : [String, Object], default : undefined },
|
|
173
|
+
|
|
174
|
+
// Events
|
|
175
|
+
onBeforeCancelCellEdit : { type : Function },
|
|
176
|
+
onBeforeCancelRowEdit : { type : Function },
|
|
177
|
+
onBeforeCellEditStart : { type : Function },
|
|
178
|
+
onBeforeCellRangeDelete : { type : Function },
|
|
179
|
+
onBeforeCellRangeEdit : { type : Function },
|
|
180
|
+
onBeforeColumnDragStart : { type : Function },
|
|
181
|
+
onBeforeColumnDropFinalize : { type : Function },
|
|
182
|
+
onBeforeColumnResize : { type : Function },
|
|
183
|
+
onBeforeCopy : { type : Function },
|
|
184
|
+
onBeforeCSVExport : { type : Function },
|
|
185
|
+
onBeforeDestroy : { type : Function },
|
|
186
|
+
onBeforeExcelExport : { type : Function },
|
|
187
|
+
onBeforeFillHandleDragStart : { type : Function },
|
|
188
|
+
onBeforeFinishCellEdit : { type : Function },
|
|
189
|
+
onBeforeFinishRowEdit : { type : Function },
|
|
190
|
+
onBeforeHide : { type : Function },
|
|
191
|
+
onBeforePaste : { type : Function },
|
|
192
|
+
onBeforePdfExport : { type : Function },
|
|
193
|
+
onBeforeRenderRow : { type : Function },
|
|
194
|
+
onBeforeRenderRows : { type : Function },
|
|
195
|
+
onBeforeRowCollapse : { type : Function },
|
|
196
|
+
onBeforeRowExpand : { type : Function },
|
|
197
|
+
onBeforeSelectionChange : { type : Function },
|
|
198
|
+
onBeforeSetRecord : { type : Function },
|
|
199
|
+
onBeforeShow : { type : Function },
|
|
200
|
+
onBeforeStartRowEdit : { type : Function },
|
|
201
|
+
onBeforeStateApply : { type : Function },
|
|
202
|
+
onBeforeStateSave : { type : Function },
|
|
203
|
+
onBeforeToggleGroup : { type : Function },
|
|
204
|
+
onBeforeToggleNode : { type : Function },
|
|
205
|
+
onCancelCellEdit : { type : Function },
|
|
206
|
+
onCatchAll : { type : Function },
|
|
207
|
+
onCellClick : { type : Function },
|
|
208
|
+
onCellContextMenu : { type : Function },
|
|
209
|
+
onCellDblClick : { type : Function },
|
|
210
|
+
onCellMenuBeforeShow : { type : Function },
|
|
211
|
+
onCellMenuItem : { type : Function },
|
|
212
|
+
onCellMenuShow : { type : Function },
|
|
213
|
+
onCellMenuToggleItem : { type : Function },
|
|
214
|
+
onCellMouseEnter : { type : Function },
|
|
215
|
+
onCellMouseLeave : { type : Function },
|
|
216
|
+
onCellMouseOut : { type : Function },
|
|
217
|
+
onCellMouseOver : { type : Function },
|
|
218
|
+
onCollapse : { type : Function },
|
|
219
|
+
onCollapseNode : { type : Function },
|
|
220
|
+
onColumnDrag : { type : Function },
|
|
221
|
+
onColumnDragStart : { type : Function },
|
|
222
|
+
onColumnDrop : { type : Function },
|
|
223
|
+
onColumnResize : { type : Function },
|
|
224
|
+
onColumnResizeStart : { type : Function },
|
|
225
|
+
onContextMenuItem : { type : Function },
|
|
226
|
+
onContextMenuToggleItem : { type : Function },
|
|
227
|
+
onCopy : { type : Function },
|
|
228
|
+
onDataChange : { type : Function },
|
|
229
|
+
onDestroy : { type : Function },
|
|
230
|
+
onDirtyStateChange : { type : Function },
|
|
231
|
+
onDragSelecting : { type : Function },
|
|
232
|
+
onElementCreated : { type : Function },
|
|
233
|
+
onExpand : { type : Function },
|
|
234
|
+
onExpandNode : { type : Function },
|
|
235
|
+
onFileDrop : { type : Function },
|
|
236
|
+
onFillHandleBeforeDragFinalize : { type : Function },
|
|
237
|
+
onFillHandleDrag : { type : Function },
|
|
238
|
+
onFillHandleDragAbort : { type : Function },
|
|
239
|
+
onFillHandleDragEnd : { type : Function },
|
|
240
|
+
onFillHandleDragStart : { type : Function },
|
|
241
|
+
onFinishCellEdit : { type : Function },
|
|
242
|
+
onFinishRowEdit : { type : Function },
|
|
243
|
+
onFocusIn : { type : Function },
|
|
244
|
+
onFocusOut : { type : Function },
|
|
245
|
+
onGridRowBeforeDragStart : { type : Function },
|
|
246
|
+
onGridRowBeforeDropFinalize : { type : Function },
|
|
247
|
+
onGridRowDrag : { type : Function },
|
|
248
|
+
onGridRowDragAbort : { type : Function },
|
|
249
|
+
onGridRowDragStart : { type : Function },
|
|
250
|
+
onGridRowDrop : { type : Function },
|
|
251
|
+
onHeaderClick : { type : Function },
|
|
252
|
+
onHeaderMenuBeforeShow : { type : Function },
|
|
253
|
+
onHeaderMenuItem : { type : Function },
|
|
254
|
+
onHeaderMenuShow : { type : Function },
|
|
255
|
+
onHeaderMenuToggleItem : { type : Function },
|
|
256
|
+
onHide : { type : Function },
|
|
257
|
+
onLockRows : { type : Function },
|
|
258
|
+
onMouseOut : { type : Function },
|
|
259
|
+
onMouseOver : { type : Function },
|
|
260
|
+
onPaint : { type : Function },
|
|
261
|
+
onPaste : { type : Function },
|
|
262
|
+
onPdfExport : { type : Function },
|
|
263
|
+
onReadOnly : { type : Function },
|
|
264
|
+
onRecompose : { type : Function },
|
|
265
|
+
onRenderRow : { type : Function },
|
|
266
|
+
onRenderRows : { type : Function },
|
|
267
|
+
onResize : { type : Function },
|
|
268
|
+
onResponsive : { type : Function },
|
|
269
|
+
onRowCollapse : { type : Function },
|
|
270
|
+
onRowExpand : { type : Function },
|
|
271
|
+
onRowMouseEnter : { type : Function },
|
|
272
|
+
onRowMouseLeave : { type : Function },
|
|
273
|
+
onScroll : { type : Function },
|
|
274
|
+
onSelectionChange : { type : Function },
|
|
275
|
+
onSelectionModeChange : { type : Function },
|
|
276
|
+
onShow : { type : Function },
|
|
277
|
+
onSplit : { type : Function },
|
|
278
|
+
onSplitterCollapseClick : { type : Function },
|
|
279
|
+
onSplitterDragEnd : { type : Function },
|
|
280
|
+
onSplitterDragStart : { type : Function },
|
|
281
|
+
onSplitterExpandClick : { type : Function },
|
|
282
|
+
onStartCellEdit : { type : Function },
|
|
283
|
+
onStartRowEdit : { type : Function },
|
|
284
|
+
onSubGridCollapse : { type : Function },
|
|
285
|
+
onSubGridExpand : { type : Function },
|
|
286
|
+
onToggleGroup : { type : Function },
|
|
287
|
+
onToggleNode : { type : Function },
|
|
288
|
+
onToolClick : { type : Function },
|
|
289
|
+
onUnlockRows : { type : Function },
|
|
290
|
+
onUnsplit : { type : Function },
|
|
291
|
+
|
|
292
|
+
// Features
|
|
293
|
+
aiFilterFeature : { type : [Object, Boolean, String], default : undefined },
|
|
294
|
+
cellCopyPasteFeature : { type : [Object, Boolean, String], default : undefined },
|
|
295
|
+
cellEditFeature : { type : [Object, Boolean, String], default : undefined },
|
|
296
|
+
cellMenuFeature : { type : [Object, Boolean, String], default : undefined },
|
|
297
|
+
cellTooltipFeature : { type : [Object, Boolean, String], default : undefined },
|
|
298
|
+
chartsFeature : { type : [Object, Boolean, String], default : undefined },
|
|
299
|
+
columnAutoWidthFeature : { type : [Object, Boolean, String], default : undefined },
|
|
300
|
+
columnDragToolbarFeature : { type : [Object, Boolean, String], default : undefined },
|
|
301
|
+
columnPickerFeature : { type : [Object, Boolean, String], default : undefined },
|
|
302
|
+
columnRenameFeature : { type : [Object, Boolean, String], default : undefined },
|
|
303
|
+
columnReorderFeature : { type : [Object, Boolean, String], default : undefined },
|
|
304
|
+
columnResizeFeature : { type : [Object, Boolean, String], default : undefined },
|
|
305
|
+
excelExporterFeature : { type : [Object, Boolean, String], default : undefined },
|
|
306
|
+
fileDropFeature : { type : [Object, Boolean, String], default : undefined },
|
|
307
|
+
fillHandleFeature : { type : [Object, Boolean, String], default : undefined },
|
|
308
|
+
filterFeature : { type : [Object, Boolean, String], default : undefined },
|
|
309
|
+
filterBarFeature : { type : [Object, Boolean, String], default : undefined },
|
|
310
|
+
groupFeature : { type : [Object, Boolean, String], default : undefined },
|
|
311
|
+
groupSummaryFeature : { type : [Object, Boolean, String], default : undefined },
|
|
312
|
+
headerMenuFeature : { type : [Object, Boolean, String], default : undefined },
|
|
313
|
+
lockRowsFeature : { type : [Object, Boolean, String], default : undefined },
|
|
314
|
+
mergeCellsFeature : { type : [Object, Boolean, String], default : undefined },
|
|
315
|
+
pdfExportFeature : { type : [Object, Boolean, String], default : undefined },
|
|
316
|
+
pinColumnsFeature : { type : [Object, Boolean, String], default : undefined },
|
|
317
|
+
printFeature : { type : [Object, Boolean, String], default : undefined },
|
|
318
|
+
quickFindFeature : { type : [Object, Boolean, String], default : undefined },
|
|
319
|
+
regionResizeFeature : { type : [Object, Boolean, String], default : undefined },
|
|
320
|
+
rowCopyPasteFeature : { type : [Object, Boolean, String], default : undefined },
|
|
321
|
+
rowEditFeature : { type : [Object, Boolean, String], default : undefined },
|
|
322
|
+
rowExpanderFeature : { type : [Object, Boolean, String], default : undefined },
|
|
323
|
+
rowReorderFeature : { type : [Object, Boolean, String], default : undefined },
|
|
324
|
+
rowResizeFeature : { type : [Object, Boolean, String], default : undefined },
|
|
325
|
+
searchFeature : { type : [Object, Boolean, String], default : undefined },
|
|
326
|
+
sortFeature : { type : [Object, Boolean, String], default : undefined },
|
|
327
|
+
splitFeature : { type : [Object, Boolean, String], default : undefined },
|
|
328
|
+
stickyCellsFeature : { type : [Object, Boolean, String], default : undefined },
|
|
329
|
+
stripeFeature : { type : [Object, Boolean, String], default : undefined },
|
|
330
|
+
summaryFeature : { type : [Object, Boolean, String], default : undefined },
|
|
331
|
+
treeFeature : { type : [Object, Boolean, String], default : undefined },
|
|
332
|
+
treeGroupFeature : { type : [Object, Boolean, String], default : undefined },
|
|
333
|
+
|
|
334
|
+
},
|
|
335
|
+
|
|
336
|
+
data : () => {
|
|
337
|
+
return {
|
|
338
|
+
instanceClass : GridBase,
|
|
339
|
+
instanceName : 'GridBase',
|
|
340
|
+
|
|
341
|
+
isView : true,
|
|
342
|
+
|
|
343
|
+
cellInstances : [],
|
|
344
|
+
|
|
345
|
+
dataStores : {
|
|
346
|
+
'originalStore': 'originals'
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
projectStores : false,
|
|
350
|
+
|
|
351
|
+
featureNames : [
|
|
352
|
+
'aiFilterFeature',
|
|
353
|
+
'cellCopyPasteFeature',
|
|
354
|
+
'cellEditFeature',
|
|
355
|
+
'cellMenuFeature',
|
|
356
|
+
'cellTooltipFeature',
|
|
357
|
+
'chartsFeature',
|
|
358
|
+
'columnAutoWidthFeature',
|
|
359
|
+
'columnDragToolbarFeature',
|
|
360
|
+
'columnPickerFeature',
|
|
361
|
+
'columnRenameFeature',
|
|
362
|
+
'columnReorderFeature',
|
|
363
|
+
'columnResizeFeature',
|
|
364
|
+
'excelExporterFeature',
|
|
365
|
+
'fileDropFeature',
|
|
366
|
+
'fillHandleFeature',
|
|
367
|
+
'filterFeature',
|
|
368
|
+
'filterBarFeature',
|
|
369
|
+
'groupFeature',
|
|
370
|
+
'groupSummaryFeature',
|
|
371
|
+
'headerMenuFeature',
|
|
372
|
+
'lockRowsFeature',
|
|
373
|
+
'mergeCellsFeature',
|
|
374
|
+
'pdfExportFeature',
|
|
375
|
+
'pinColumnsFeature',
|
|
376
|
+
'printFeature',
|
|
377
|
+
'quickFindFeature',
|
|
378
|
+
'regionResizeFeature',
|
|
379
|
+
'rowCopyPasteFeature',
|
|
380
|
+
'rowEditFeature',
|
|
381
|
+
'rowExpanderFeature',
|
|
382
|
+
'rowReorderFeature',
|
|
383
|
+
'rowResizeFeature',
|
|
384
|
+
'searchFeature',
|
|
385
|
+
'sortFeature',
|
|
386
|
+
'splitFeature',
|
|
387
|
+
'stickyCellsFeature',
|
|
388
|
+
'stripeFeature',
|
|
389
|
+
'summaryFeature',
|
|
390
|
+
'treeFeature',
|
|
391
|
+
'treeGroupFeature'
|
|
392
|
+
],
|
|
393
|
+
|
|
394
|
+
configNames : [
|
|
395
|
+
'adopt',
|
|
396
|
+
'animateFilterRemovals',
|
|
397
|
+
'animateRemovingRows',
|
|
398
|
+
'ariaDescription',
|
|
399
|
+
'ariaLabel',
|
|
400
|
+
'autoHeight',
|
|
401
|
+
'bbar',
|
|
402
|
+
'bodyCls',
|
|
403
|
+
'bubbleEvents',
|
|
404
|
+
'collapsible',
|
|
405
|
+
'color',
|
|
406
|
+
'config',
|
|
407
|
+
'contentElementCls',
|
|
408
|
+
'contextMenuTriggerEvent',
|
|
409
|
+
'dataField',
|
|
410
|
+
'defaultRegion',
|
|
411
|
+
'destroyStore',
|
|
412
|
+
'detectCSSCompatibilityIssues',
|
|
413
|
+
'disableGridColumnIdWarning',
|
|
414
|
+
'disableGridRowModelWarning',
|
|
415
|
+
'dock',
|
|
416
|
+
'drawer',
|
|
417
|
+
'elementAttributes',
|
|
418
|
+
'enableSticky',
|
|
419
|
+
'enableTextSelection',
|
|
420
|
+
'fillLastColumn',
|
|
421
|
+
'fixedRowHeight',
|
|
422
|
+
'footer',
|
|
423
|
+
'formulaProviders',
|
|
424
|
+
'fullRowRefresh',
|
|
425
|
+
'getRowHeight',
|
|
426
|
+
'header',
|
|
427
|
+
'hideHorizontalScrollbar',
|
|
428
|
+
'hoverCls',
|
|
429
|
+
'icon',
|
|
430
|
+
'ignoreParentReadOnly',
|
|
431
|
+
'listeners',
|
|
432
|
+
'loadMask',
|
|
433
|
+
'loadMaskDefaults',
|
|
434
|
+
'loadMaskError',
|
|
435
|
+
'localizable',
|
|
436
|
+
'maskDefaults',
|
|
437
|
+
'masked',
|
|
438
|
+
'monitorResize',
|
|
439
|
+
'owner',
|
|
440
|
+
'plugins',
|
|
441
|
+
'preserveFocusOnDatasetChange',
|
|
442
|
+
'preserveScrollOnDatasetChange',
|
|
443
|
+
'preventTooltipOnTouch',
|
|
444
|
+
'relayStoreEvents',
|
|
445
|
+
'resizable',
|
|
446
|
+
'resizeToFitIncludesHeader',
|
|
447
|
+
'responsiveLevels',
|
|
448
|
+
'ripple',
|
|
449
|
+
'rootElement',
|
|
450
|
+
'scrollerClass',
|
|
451
|
+
'scrollManager',
|
|
452
|
+
'showDirty',
|
|
453
|
+
'stateful',
|
|
454
|
+
'statefulEvents',
|
|
455
|
+
'stateId',
|
|
456
|
+
'stateProvider',
|
|
457
|
+
'strips',
|
|
458
|
+
'subGridConfigs',
|
|
459
|
+
'syncMask',
|
|
460
|
+
'tab',
|
|
461
|
+
'tabBarItems',
|
|
462
|
+
'tbar',
|
|
463
|
+
'ui',
|
|
464
|
+
'weight'
|
|
465
|
+
],
|
|
466
|
+
|
|
467
|
+
propertyConfigNames : [
|
|
468
|
+
'alignSelf',
|
|
469
|
+
'animateTreeNodeToggle',
|
|
470
|
+
'appendTo',
|
|
471
|
+
'callOnFunctions',
|
|
472
|
+
'catchEventHandlerExceptions',
|
|
473
|
+
'cellEllipsis',
|
|
474
|
+
'cls',
|
|
475
|
+
'collapsed',
|
|
476
|
+
'column',
|
|
477
|
+
'columnLines',
|
|
478
|
+
'columns',
|
|
479
|
+
'data',
|
|
480
|
+
'dataset',
|
|
481
|
+
'disabled',
|
|
482
|
+
'emptyText',
|
|
483
|
+
'enableUndoRedoKeys',
|
|
484
|
+
'extraData',
|
|
485
|
+
'flex',
|
|
486
|
+
'height',
|
|
487
|
+
'hidden',
|
|
488
|
+
'hideFooters',
|
|
489
|
+
'hideHeaders',
|
|
490
|
+
'id',
|
|
491
|
+
'inputFieldAlign',
|
|
492
|
+
'insertBefore',
|
|
493
|
+
'insertFirst',
|
|
494
|
+
'keyMap',
|
|
495
|
+
'labelPosition',
|
|
496
|
+
'longPressTime',
|
|
497
|
+
'margin',
|
|
498
|
+
'maxHeight',
|
|
499
|
+
'maxWidth',
|
|
500
|
+
'minHeight',
|
|
501
|
+
'minWidth',
|
|
502
|
+
'onBeforeCancelCellEdit',
|
|
503
|
+
'onBeforeCancelRowEdit',
|
|
504
|
+
'onBeforeCellEditStart',
|
|
505
|
+
'onBeforeCellRangeDelete',
|
|
506
|
+
'onBeforeCellRangeEdit',
|
|
507
|
+
'onBeforeColumnDragStart',
|
|
508
|
+
'onBeforeColumnDropFinalize',
|
|
509
|
+
'onBeforeColumnResize',
|
|
510
|
+
'onBeforeCopy',
|
|
511
|
+
'onBeforeCSVExport',
|
|
512
|
+
'onBeforeDestroy',
|
|
513
|
+
'onBeforeExcelExport',
|
|
514
|
+
'onBeforeFillHandleDragStart',
|
|
515
|
+
'onBeforeFinishCellEdit',
|
|
516
|
+
'onBeforeFinishRowEdit',
|
|
517
|
+
'onBeforeHide',
|
|
518
|
+
'onBeforePaste',
|
|
519
|
+
'onBeforePdfExport',
|
|
520
|
+
'onBeforeRenderRow',
|
|
521
|
+
'onBeforeRenderRows',
|
|
522
|
+
'onBeforeRowCollapse',
|
|
523
|
+
'onBeforeRowExpand',
|
|
524
|
+
'onBeforeSelectionChange',
|
|
525
|
+
'onBeforeSetRecord',
|
|
526
|
+
'onBeforeShow',
|
|
527
|
+
'onBeforeStartRowEdit',
|
|
528
|
+
'onBeforeStateApply',
|
|
529
|
+
'onBeforeStateSave',
|
|
530
|
+
'onBeforeToggleGroup',
|
|
531
|
+
'onBeforeToggleNode',
|
|
532
|
+
'onCancelCellEdit',
|
|
533
|
+
'onCatchAll',
|
|
534
|
+
'onCellClick',
|
|
535
|
+
'onCellContextMenu',
|
|
536
|
+
'onCellDblClick',
|
|
537
|
+
'onCellMenuBeforeShow',
|
|
538
|
+
'onCellMenuItem',
|
|
539
|
+
'onCellMenuShow',
|
|
540
|
+
'onCellMenuToggleItem',
|
|
541
|
+
'onCellMouseEnter',
|
|
542
|
+
'onCellMouseLeave',
|
|
543
|
+
'onCellMouseOut',
|
|
544
|
+
'onCellMouseOver',
|
|
545
|
+
'onCollapse',
|
|
546
|
+
'onCollapseNode',
|
|
547
|
+
'onColumnDrag',
|
|
548
|
+
'onColumnDragStart',
|
|
549
|
+
'onColumnDrop',
|
|
550
|
+
'onColumnResize',
|
|
551
|
+
'onColumnResizeStart',
|
|
552
|
+
'onContextMenuItem',
|
|
553
|
+
'onContextMenuToggleItem',
|
|
554
|
+
'onCopy',
|
|
555
|
+
'onDataChange',
|
|
556
|
+
'onDestroy',
|
|
557
|
+
'onDirtyStateChange',
|
|
558
|
+
'onDragSelecting',
|
|
559
|
+
'onElementCreated',
|
|
560
|
+
'onExpand',
|
|
561
|
+
'onExpandNode',
|
|
562
|
+
'onFileDrop',
|
|
563
|
+
'onFillHandleBeforeDragFinalize',
|
|
564
|
+
'onFillHandleDrag',
|
|
565
|
+
'onFillHandleDragAbort',
|
|
566
|
+
'onFillHandleDragEnd',
|
|
567
|
+
'onFillHandleDragStart',
|
|
568
|
+
'onFinishCellEdit',
|
|
569
|
+
'onFinishRowEdit',
|
|
570
|
+
'onFocusIn',
|
|
571
|
+
'onFocusOut',
|
|
572
|
+
'onGridRowBeforeDragStart',
|
|
573
|
+
'onGridRowBeforeDropFinalize',
|
|
574
|
+
'onGridRowDrag',
|
|
575
|
+
'onGridRowDragAbort',
|
|
576
|
+
'onGridRowDragStart',
|
|
577
|
+
'onGridRowDrop',
|
|
578
|
+
'onHeaderClick',
|
|
579
|
+
'onHeaderMenuBeforeShow',
|
|
580
|
+
'onHeaderMenuItem',
|
|
581
|
+
'onHeaderMenuShow',
|
|
582
|
+
'onHeaderMenuToggleItem',
|
|
583
|
+
'onHide',
|
|
584
|
+
'onLockRows',
|
|
585
|
+
'onMouseOut',
|
|
586
|
+
'onMouseOver',
|
|
587
|
+
'onPaint',
|
|
588
|
+
'onPaste',
|
|
589
|
+
'onPdfExport',
|
|
590
|
+
'onReadOnly',
|
|
591
|
+
'onRecompose',
|
|
592
|
+
'onRenderRow',
|
|
593
|
+
'onRenderRows',
|
|
594
|
+
'onResize',
|
|
595
|
+
'onResponsive',
|
|
596
|
+
'onRowCollapse',
|
|
597
|
+
'onRowExpand',
|
|
598
|
+
'onRowMouseEnter',
|
|
599
|
+
'onRowMouseLeave',
|
|
600
|
+
'onScroll',
|
|
601
|
+
'onSelectionChange',
|
|
602
|
+
'onSelectionModeChange',
|
|
603
|
+
'onShow',
|
|
604
|
+
'onSplit',
|
|
605
|
+
'onSplitterCollapseClick',
|
|
606
|
+
'onSplitterDragEnd',
|
|
607
|
+
'onSplitterDragStart',
|
|
608
|
+
'onSplitterExpandClick',
|
|
609
|
+
'onStartCellEdit',
|
|
610
|
+
'onStartRowEdit',
|
|
611
|
+
'onSubGridCollapse',
|
|
612
|
+
'onSubGridExpand',
|
|
613
|
+
'onToggleGroup',
|
|
614
|
+
'onToggleNode',
|
|
615
|
+
'onToolClick',
|
|
616
|
+
'onUnlockRows',
|
|
617
|
+
'onUnsplit',
|
|
618
|
+
'preserveScroll',
|
|
619
|
+
'readOnly',
|
|
620
|
+
'rendition',
|
|
621
|
+
'rowHeight',
|
|
622
|
+
'rowLines',
|
|
623
|
+
'rtl',
|
|
624
|
+
'scrollable',
|
|
625
|
+
'selectionMode',
|
|
626
|
+
'span',
|
|
627
|
+
'stateSettings',
|
|
628
|
+
'store',
|
|
629
|
+
'title',
|
|
630
|
+
'tools',
|
|
631
|
+
'transition',
|
|
632
|
+
'transitionDuration',
|
|
633
|
+
'width'
|
|
634
|
+
],
|
|
635
|
+
|
|
636
|
+
propertyNames : [
|
|
637
|
+
'focusVisible',
|
|
638
|
+
'hasChanges',
|
|
639
|
+
'originalStore',
|
|
640
|
+
'parent',
|
|
641
|
+
'selectedCell',
|
|
642
|
+
'selectedCells',
|
|
643
|
+
'selectedRecord',
|
|
644
|
+
'selectedRecords',
|
|
645
|
+
'selectedRows',
|
|
646
|
+
'state',
|
|
647
|
+
'tooltip'
|
|
648
|
+
],
|
|
649
|
+
|
|
650
|
+
eventNames : [
|
|
651
|
+
'beforeCancelCellEdit',
|
|
652
|
+
'beforeCancelRowEdit',
|
|
653
|
+
'beforeCellEditStart',
|
|
654
|
+
'beforeCellRangeDelete',
|
|
655
|
+
'beforeCellRangeEdit',
|
|
656
|
+
'beforeColumnDragStart',
|
|
657
|
+
'beforeColumnDropFinalize',
|
|
658
|
+
'beforeColumnResize',
|
|
659
|
+
'beforeCopy',
|
|
660
|
+
'beforeCSVExport',
|
|
661
|
+
'beforeDestroy',
|
|
662
|
+
'beforeExcelExport',
|
|
663
|
+
'beforeFillHandleDragStart',
|
|
664
|
+
'beforeFinishCellEdit',
|
|
665
|
+
'beforeFinishRowEdit',
|
|
666
|
+
'beforeHide',
|
|
667
|
+
'beforePaste',
|
|
668
|
+
'beforePdfExport',
|
|
669
|
+
'beforeRenderRow',
|
|
670
|
+
'beforeRenderRows',
|
|
671
|
+
'beforeRowCollapse',
|
|
672
|
+
'beforeRowExpand',
|
|
673
|
+
'beforeSelectionChange',
|
|
674
|
+
'beforeSetRecord',
|
|
675
|
+
'beforeShow',
|
|
676
|
+
'beforeStartRowEdit',
|
|
677
|
+
'beforeStateApply',
|
|
678
|
+
'beforeStateSave',
|
|
679
|
+
'beforeToggleGroup',
|
|
680
|
+
'beforeToggleNode',
|
|
681
|
+
'cancelCellEdit',
|
|
682
|
+
'catchAll',
|
|
683
|
+
'cellClick',
|
|
684
|
+
'cellContextMenu',
|
|
685
|
+
'cellDblClick',
|
|
686
|
+
'cellMenuBeforeShow',
|
|
687
|
+
'cellMenuItem',
|
|
688
|
+
'cellMenuShow',
|
|
689
|
+
'cellMenuToggleItem',
|
|
690
|
+
'cellMouseEnter',
|
|
691
|
+
'cellMouseLeave',
|
|
692
|
+
'cellMouseOut',
|
|
693
|
+
'cellMouseOver',
|
|
694
|
+
'collapse',
|
|
695
|
+
'collapseNode',
|
|
696
|
+
'columnDrag',
|
|
697
|
+
'columnDragStart',
|
|
698
|
+
'columnDrop',
|
|
699
|
+
'columnResize',
|
|
700
|
+
'columnResizeStart',
|
|
701
|
+
'contextMenuItem',
|
|
702
|
+
'contextMenuToggleItem',
|
|
703
|
+
'copy',
|
|
704
|
+
'dataChange',
|
|
705
|
+
'destroy',
|
|
706
|
+
'dirtyStateChange',
|
|
707
|
+
'dragSelecting',
|
|
708
|
+
'elementCreated',
|
|
709
|
+
'expand',
|
|
710
|
+
'expandNode',
|
|
711
|
+
'fileDrop',
|
|
712
|
+
'fillHandleBeforeDragFinalize',
|
|
713
|
+
'fillHandleDrag',
|
|
714
|
+
'fillHandleDragAbort',
|
|
715
|
+
'fillHandleDragEnd',
|
|
716
|
+
'fillHandleDragStart',
|
|
717
|
+
'finishCellEdit',
|
|
718
|
+
'finishRowEdit',
|
|
719
|
+
'focusIn',
|
|
720
|
+
'focusOut',
|
|
721
|
+
'gridRowBeforeDragStart',
|
|
722
|
+
'gridRowBeforeDropFinalize',
|
|
723
|
+
'gridRowDrag',
|
|
724
|
+
'gridRowDragAbort',
|
|
725
|
+
'gridRowDragStart',
|
|
726
|
+
'gridRowDrop',
|
|
727
|
+
'headerClick',
|
|
728
|
+
'headerMenuBeforeShow',
|
|
729
|
+
'headerMenuItem',
|
|
730
|
+
'headerMenuShow',
|
|
731
|
+
'headerMenuToggleItem',
|
|
732
|
+
'hide',
|
|
733
|
+
'lockRows',
|
|
734
|
+
'mouseOut',
|
|
735
|
+
'mouseOver',
|
|
736
|
+
'paint',
|
|
737
|
+
'paste',
|
|
738
|
+
'pdfExport',
|
|
739
|
+
'readOnly',
|
|
740
|
+
'recompose',
|
|
741
|
+
'renderRow',
|
|
742
|
+
'renderRows',
|
|
743
|
+
'resize',
|
|
744
|
+
'responsive',
|
|
745
|
+
'rowCollapse',
|
|
746
|
+
'rowExpand',
|
|
747
|
+
'rowMouseEnter',
|
|
748
|
+
'rowMouseLeave',
|
|
749
|
+
'scroll',
|
|
750
|
+
'selectionChange',
|
|
751
|
+
'selectionModeChange',
|
|
752
|
+
'show',
|
|
753
|
+
'split',
|
|
754
|
+
'splitterCollapseClick',
|
|
755
|
+
'splitterDragEnd',
|
|
756
|
+
'splitterDragStart',
|
|
757
|
+
'splitterExpandClick',
|
|
758
|
+
'startCellEdit',
|
|
759
|
+
'startRowEdit',
|
|
760
|
+
'subGridCollapse',
|
|
761
|
+
'subGridExpand',
|
|
762
|
+
'toggleGroup',
|
|
763
|
+
'toggleNode',
|
|
764
|
+
'toolClick',
|
|
765
|
+
'unlockRows',
|
|
766
|
+
'unsplit'
|
|
767
|
+
]
|
|
768
|
+
};
|
|
769
|
+
},
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Called after the instance has been mounted
|
|
773
|
+
*/
|
|
774
|
+
mounted() {
|
|
775
|
+
const
|
|
776
|
+
me = this,
|
|
777
|
+
{
|
|
778
|
+
createWidget,
|
|
779
|
+
relayStores,
|
|
780
|
+
watchProps,
|
|
781
|
+
processCellContent,
|
|
782
|
+
processEventContent,
|
|
783
|
+
hasFrameworkRenderer
|
|
784
|
+
} = WrapperHelper();
|
|
785
|
+
|
|
786
|
+
me.instance = createWidget({
|
|
787
|
+
me,
|
|
788
|
+
props : me.$props,
|
|
789
|
+
data : me.$data,
|
|
790
|
+
listeners : me.$listeners,
|
|
791
|
+
emit : me.$emit.bind(me),
|
|
792
|
+
element : me.$el,
|
|
793
|
+
processCellContent : processCellContent.bind(me),
|
|
794
|
+
processEventContent : processEventContent.bind(me),
|
|
795
|
+
hasFrameworkRenderer : hasFrameworkRenderer.bind(me)
|
|
796
|
+
});
|
|
797
|
+
// Backwards compatibility for gridInstance, schedulerInstance etc.
|
|
798
|
+
me[StringHelper.uncapitalize(me.instanceClass.$name) + 'Instance'] = me.instance;
|
|
799
|
+
relayStores(me.$data, me.instance);
|
|
800
|
+
|
|
801
|
+
const watcher = me.$watch.bind(me);
|
|
802
|
+
watchProps(me, me.instance, me.$props, me.$data, watcher);
|
|
803
|
+
},
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Called right before a Vue instance is destroyed. At this stage the instance is still fully functional.
|
|
807
|
+
*/
|
|
808
|
+
beforeDestroy() {
|
|
809
|
+
if (this.instance) {
|
|
810
|
+
this.instance.destroy();
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
</script>
|