@progress/kendo-vue-treelist 5.3.0-dev.202409130647 → 5.3.0-develop.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 +26 -34
- package/TreeList.js +8 -0
- package/TreeList.mjs +722 -0
- package/TreeListNav.js +8 -0
- package/TreeListNav.mjs +98 -0
- package/cells/EditCells/TreeListBooleanEditor.js +8 -0
- package/cells/EditCells/TreeListBooleanEditor.mjs +154 -0
- package/cells/EditCells/TreeListDateEditor.js +8 -0
- package/cells/EditCells/TreeListDateEditor.mjs +140 -0
- package/cells/EditCells/TreeListNumericEditor.js +8 -0
- package/cells/EditCells/TreeListNumericEditor.mjs +140 -0
- package/cells/EditCells/TreeListTextEditor.js +8 -0
- package/cells/EditCells/TreeListTextEditor.mjs +157 -0
- package/cells/FilterCells/TreeListBooleanFilter.js +8 -0
- package/cells/FilterCells/TreeListBooleanFilter.mjs +54 -0
- package/cells/FilterCells/TreeListDateFilter.js +8 -0
- package/cells/FilterCells/TreeListDateFilter.mjs +54 -0
- package/cells/FilterCells/TreeListNumericFilter.js +8 -0
- package/cells/FilterCells/TreeListNumericFilter.mjs +54 -0
- package/cells/FilterCells/TreeListTextFilter.js +8 -0
- package/cells/FilterCells/TreeListTextFilter.mjs +54 -0
- package/cells/FilterCells/utils.js +8 -0
- package/cells/FilterCells/utils.mjs +59 -0
- package/cells/TreeListCell.js +8 -0
- package/cells/TreeListCell.mjs +184 -0
- package/cells/TreeListSelectionCell.js +8 -0
- package/cells/TreeListSelectionCell.mjs +146 -0
- package/constants/main.js +8 -0
- package/constants/main.mjs +14 -0
- package/dist/cdn/js/kendo-vue-treelist.js +8 -1
- package/index.d.mts +1814 -0
- package/index.d.ts +1814 -0
- package/index.js +8 -0
- package/index.mjs +58 -0
- package/messages/main.js +8 -0
- package/messages/main.mjs +112 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +18 -0
- package/package.json +24 -61
- package/rows/RowDragClue.js +8 -0
- package/rows/RowDragClue.mjs +56 -0
- package/rows/TreeListDraggableRow.js +8 -0
- package/rows/TreeListDraggableRow.mjs +113 -0
- package/rows/TreeListRow.js +8 -0
- package/rows/TreeListRow.mjs +124 -0
- package/utils/data-operations.js +8 -0
- package/utils/data-operations.mjs +103 -0
- package/utils/main.js +8 -0
- package/utils/main.mjs +53 -0
- package/dist/es/ScrollMode.d.ts +0 -1
- package/dist/es/ScrollMode.js +0 -1
- package/dist/es/TreeList.d.ts +0 -56
- package/dist/es/TreeList.js +0 -1289
- package/dist/es/TreeListNav.d.ts +0 -46
- package/dist/es/TreeListNav.js +0 -123
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
- package/dist/es/cells/EditCells/TreeListBooleanEditor.js +0 -194
- package/dist/es/cells/EditCells/TreeListDateEditor.d.ts +0 -49
- package/dist/es/cells/EditCells/TreeListDateEditor.js +0 -174
- package/dist/es/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
- package/dist/es/cells/EditCells/TreeListNumericEditor.js +0 -174
- package/dist/es/cells/EditCells/TreeListTextEditor.d.ts +0 -50
- package/dist/es/cells/EditCells/TreeListTextEditor.js +0 -190
- package/dist/es/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
- package/dist/es/cells/FilterCells/TreeListBooleanFilter.js +0 -89
- package/dist/es/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
- package/dist/es/cells/FilterCells/TreeListDateFilter.js +0 -89
- package/dist/es/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
- package/dist/es/cells/FilterCells/TreeListNumericFilter.js +0 -89
- package/dist/es/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
- package/dist/es/cells/FilterCells/TreeListTextFilter.js +0 -89
- package/dist/es/cells/FilterCells/utils.d.ts +0 -38
- package/dist/es/cells/FilterCells/utils.js +0 -66
- package/dist/es/cells/TreeListCell.d.ts +0 -41
- package/dist/es/cells/TreeListCell.js +0 -256
- package/dist/es/cells/TreeListSelectionCell.d.ts +0 -41
- package/dist/es/cells/TreeListSelectionCell.js +0 -181
- package/dist/es/constants/main.d.ts +0 -6
- package/dist/es/constants/main.js +0 -7
- package/dist/es/interfaces/DataItemWrapper.d.ts +0 -10
- package/dist/es/interfaces/DataItemWrapper.js +0 -1
- package/dist/es/interfaces/TreeListCellProps.d.ts +0 -35
- package/dist/es/interfaces/TreeListCellProps.js +0 -1
- package/dist/es/interfaces/TreeListColumnProps.d.ts +0 -33
- package/dist/es/interfaces/TreeListColumnProps.js +0 -1
- package/dist/es/interfaces/TreeListFilterCellProps.d.ts +0 -6
- package/dist/es/interfaces/TreeListFilterCellProps.js +0 -1
- package/dist/es/interfaces/TreeListFilterOperator.d.ts +0 -6
- package/dist/es/interfaces/TreeListFilterOperator.js +0 -1
- package/dist/es/interfaces/TreeListHeaderCellProps.d.ts +0 -6
- package/dist/es/interfaces/TreeListHeaderCellProps.js +0 -1
- package/dist/es/interfaces/TreeListProps.d.ts +0 -345
- package/dist/es/interfaces/TreeListProps.js +0 -1
- package/dist/es/interfaces/TreeListRowProps.d.ts +0 -92
- package/dist/es/interfaces/TreeListRowProps.js +0 -1
- package/dist/es/interfaces/TreeListSelectableSettings.d.ts +0 -18
- package/dist/es/interfaces/TreeListSelectableSettings.js +0 -1
- package/dist/es/interfaces/TreeListSortSettings.d.ts +0 -9
- package/dist/es/interfaces/TreeListSortSettings.js +0 -1
- package/dist/es/interfaces/TreeListToolbarProps.d.ts +0 -5
- package/dist/es/interfaces/TreeListToolbarProps.js +0 -1
- package/dist/es/interfaces/events.d.ts +0 -286
- package/dist/es/interfaces/events.js +0 -1
- package/dist/es/main.d.ts +0 -27
- package/dist/es/main.js +0 -17
- package/dist/es/messages/main.d.ts +0 -239
- package/dist/es/messages/main.js +0 -240
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/rows/RowDragClue.d.ts +0 -40
- package/dist/es/rows/RowDragClue.js +0 -76
- package/dist/es/rows/TreeListDraggableRow.d.ts +0 -38
- package/dist/es/rows/TreeListDraggableRow.js +0 -175
- package/dist/es/rows/TreeListRow.d.ts +0 -36
- package/dist/es/rows/TreeListRow.js +0 -154
- package/dist/es/utils/data-operations.d.ts +0 -115
- package/dist/es/utils/data-operations.js +0 -250
- package/dist/es/utils/main.d.ts +0 -17
- package/dist/es/utils/main.js +0 -68
- package/dist/esm/ScrollMode.d.ts +0 -1
- package/dist/esm/ScrollMode.js +0 -1
- package/dist/esm/TreeList.d.ts +0 -56
- package/dist/esm/TreeList.js +0 -1289
- package/dist/esm/TreeListNav.d.ts +0 -46
- package/dist/esm/TreeListNav.js +0 -123
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
- package/dist/esm/cells/EditCells/TreeListBooleanEditor.js +0 -194
- package/dist/esm/cells/EditCells/TreeListDateEditor.d.ts +0 -49
- package/dist/esm/cells/EditCells/TreeListDateEditor.js +0 -174
- package/dist/esm/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
- package/dist/esm/cells/EditCells/TreeListNumericEditor.js +0 -174
- package/dist/esm/cells/EditCells/TreeListTextEditor.d.ts +0 -50
- package/dist/esm/cells/EditCells/TreeListTextEditor.js +0 -190
- package/dist/esm/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
- package/dist/esm/cells/FilterCells/TreeListBooleanFilter.js +0 -89
- package/dist/esm/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
- package/dist/esm/cells/FilterCells/TreeListDateFilter.js +0 -89
- package/dist/esm/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
- package/dist/esm/cells/FilterCells/TreeListNumericFilter.js +0 -89
- package/dist/esm/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
- package/dist/esm/cells/FilterCells/TreeListTextFilter.js +0 -89
- package/dist/esm/cells/FilterCells/utils.d.ts +0 -38
- package/dist/esm/cells/FilterCells/utils.js +0 -66
- package/dist/esm/cells/TreeListCell.d.ts +0 -41
- package/dist/esm/cells/TreeListCell.js +0 -256
- package/dist/esm/cells/TreeListSelectionCell.d.ts +0 -41
- package/dist/esm/cells/TreeListSelectionCell.js +0 -181
- package/dist/esm/constants/main.d.ts +0 -6
- package/dist/esm/constants/main.js +0 -7
- package/dist/esm/interfaces/DataItemWrapper.d.ts +0 -10
- package/dist/esm/interfaces/DataItemWrapper.js +0 -1
- package/dist/esm/interfaces/TreeListCellProps.d.ts +0 -35
- package/dist/esm/interfaces/TreeListCellProps.js +0 -1
- package/dist/esm/interfaces/TreeListColumnProps.d.ts +0 -33
- package/dist/esm/interfaces/TreeListColumnProps.js +0 -1
- package/dist/esm/interfaces/TreeListFilterCellProps.d.ts +0 -6
- package/dist/esm/interfaces/TreeListFilterCellProps.js +0 -1
- package/dist/esm/interfaces/TreeListFilterOperator.d.ts +0 -6
- package/dist/esm/interfaces/TreeListFilterOperator.js +0 -1
- package/dist/esm/interfaces/TreeListHeaderCellProps.d.ts +0 -6
- package/dist/esm/interfaces/TreeListHeaderCellProps.js +0 -1
- package/dist/esm/interfaces/TreeListProps.d.ts +0 -345
- package/dist/esm/interfaces/TreeListProps.js +0 -1
- package/dist/esm/interfaces/TreeListRowProps.d.ts +0 -92
- package/dist/esm/interfaces/TreeListRowProps.js +0 -1
- package/dist/esm/interfaces/TreeListSelectableSettings.d.ts +0 -18
- package/dist/esm/interfaces/TreeListSelectableSettings.js +0 -1
- package/dist/esm/interfaces/TreeListSortSettings.d.ts +0 -9
- package/dist/esm/interfaces/TreeListSortSettings.js +0 -1
- package/dist/esm/interfaces/TreeListToolbarProps.d.ts +0 -5
- package/dist/esm/interfaces/TreeListToolbarProps.js +0 -1
- package/dist/esm/interfaces/events.d.ts +0 -286
- package/dist/esm/interfaces/events.js +0 -1
- package/dist/esm/main.d.ts +0 -27
- package/dist/esm/main.js +0 -17
- package/dist/esm/messages/main.d.ts +0 -239
- package/dist/esm/messages/main.js +0 -240
- package/dist/esm/package-metadata.d.ts +0 -5
- package/dist/esm/package-metadata.js +0 -11
- package/dist/esm/package.json +0 -3
- package/dist/esm/rows/RowDragClue.d.ts +0 -40
- package/dist/esm/rows/RowDragClue.js +0 -76
- package/dist/esm/rows/TreeListDraggableRow.d.ts +0 -38
- package/dist/esm/rows/TreeListDraggableRow.js +0 -175
- package/dist/esm/rows/TreeListRow.d.ts +0 -36
- package/dist/esm/rows/TreeListRow.js +0 -154
- package/dist/esm/utils/data-operations.d.ts +0 -115
- package/dist/esm/utils/data-operations.js +0 -250
- package/dist/esm/utils/main.d.ts +0 -17
- package/dist/esm/utils/main.js +0 -68
- package/dist/npm/ScrollMode.d.ts +0 -1
- package/dist/npm/ScrollMode.js +0 -2
- package/dist/npm/TreeList.d.ts +0 -56
- package/dist/npm/TreeList.js +0 -1296
- package/dist/npm/TreeListNav.d.ts +0 -46
- package/dist/npm/TreeListNav.js +0 -130
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.d.ts +0 -49
- package/dist/npm/cells/EditCells/TreeListBooleanEditor.js +0 -201
- package/dist/npm/cells/EditCells/TreeListDateEditor.d.ts +0 -49
- package/dist/npm/cells/EditCells/TreeListDateEditor.js +0 -181
- package/dist/npm/cells/EditCells/TreeListNumericEditor.d.ts +0 -49
- package/dist/npm/cells/EditCells/TreeListNumericEditor.js +0 -181
- package/dist/npm/cells/EditCells/TreeListTextEditor.d.ts +0 -50
- package/dist/npm/cells/EditCells/TreeListTextEditor.js +0 -197
- package/dist/npm/cells/FilterCells/TreeListBooleanFilter.d.ts +0 -22
- package/dist/npm/cells/FilterCells/TreeListBooleanFilter.js +0 -96
- package/dist/npm/cells/FilterCells/TreeListDateFilter.d.ts +0 -22
- package/dist/npm/cells/FilterCells/TreeListDateFilter.js +0 -96
- package/dist/npm/cells/FilterCells/TreeListNumericFilter.d.ts +0 -22
- package/dist/npm/cells/FilterCells/TreeListNumericFilter.js +0 -96
- package/dist/npm/cells/FilterCells/TreeListTextFilter.d.ts +0 -25
- package/dist/npm/cells/FilterCells/TreeListTextFilter.js +0 -96
- package/dist/npm/cells/FilterCells/utils.d.ts +0 -38
- package/dist/npm/cells/FilterCells/utils.js +0 -70
- package/dist/npm/cells/TreeListCell.d.ts +0 -41
- package/dist/npm/cells/TreeListCell.js +0 -263
- package/dist/npm/cells/TreeListSelectionCell.d.ts +0 -41
- package/dist/npm/cells/TreeListSelectionCell.js +0 -188
- package/dist/npm/constants/main.d.ts +0 -6
- package/dist/npm/constants/main.js +0 -10
- package/dist/npm/interfaces/DataItemWrapper.d.ts +0 -10
- package/dist/npm/interfaces/DataItemWrapper.js +0 -2
- package/dist/npm/interfaces/TreeListCellProps.d.ts +0 -35
- package/dist/npm/interfaces/TreeListCellProps.js +0 -2
- package/dist/npm/interfaces/TreeListColumnProps.d.ts +0 -33
- package/dist/npm/interfaces/TreeListColumnProps.js +0 -2
- package/dist/npm/interfaces/TreeListFilterCellProps.d.ts +0 -6
- package/dist/npm/interfaces/TreeListFilterCellProps.js +0 -2
- package/dist/npm/interfaces/TreeListFilterOperator.d.ts +0 -6
- package/dist/npm/interfaces/TreeListFilterOperator.js +0 -2
- package/dist/npm/interfaces/TreeListHeaderCellProps.d.ts +0 -6
- package/dist/npm/interfaces/TreeListHeaderCellProps.js +0 -2
- package/dist/npm/interfaces/TreeListProps.d.ts +0 -345
- package/dist/npm/interfaces/TreeListProps.js +0 -2
- package/dist/npm/interfaces/TreeListRowProps.d.ts +0 -92
- package/dist/npm/interfaces/TreeListRowProps.js +0 -2
- package/dist/npm/interfaces/TreeListSelectableSettings.d.ts +0 -18
- package/dist/npm/interfaces/TreeListSelectableSettings.js +0 -2
- package/dist/npm/interfaces/TreeListSortSettings.d.ts +0 -9
- package/dist/npm/interfaces/TreeListSortSettings.js +0 -2
- package/dist/npm/interfaces/TreeListToolbarProps.d.ts +0 -5
- package/dist/npm/interfaces/TreeListToolbarProps.js +0 -5
- package/dist/npm/interfaces/events.d.ts +0 -286
- package/dist/npm/interfaces/events.js +0 -2
- package/dist/npm/main.d.ts +0 -27
- package/dist/npm/main.js +0 -52
- package/dist/npm/messages/main.d.ts +0 -239
- package/dist/npm/messages/main.js +0 -244
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/rows/RowDragClue.d.ts +0 -40
- package/dist/npm/rows/RowDragClue.js +0 -83
- package/dist/npm/rows/TreeListDraggableRow.d.ts +0 -38
- package/dist/npm/rows/TreeListDraggableRow.js +0 -182
- package/dist/npm/rows/TreeListRow.d.ts +0 -36
- package/dist/npm/rows/TreeListRow.js +0 -161
- package/dist/npm/utils/data-operations.d.ts +0 -115
- package/dist/npm/utils/data-operations.js +0 -265
- package/dist/npm/utils/main.d.ts +0 -17
- package/dist/npm/utils/main.js +0 -74
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
interface TreeListNavState {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
interface TreeListNavData {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export interface TreeListNavMethods {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
onKeyDown: (event: any) => any;
|
|
22
|
-
onFocus: (event: any) => any;
|
|
23
|
-
onNavMount: (event: any) => any;
|
|
24
|
-
onNavigationAction: (opitons: any) => any;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export interface TreeListNavComputed {
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
wrapperClass: object;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export interface TreeListNavAll extends TreeListNavMethods, TreeListNavState, TreeListNavData, TreeListNavComputed, Vue2type {
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
declare const TreeListNavVue2: ComponentOptions<Vue2type, DefaultData<TreeListNavData>, DefaultMethods<TreeListNavAll>, TreeListNavComputed, RecordPropsDefinition<{}>>;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
declare const TreeListNav: DefineComponent<{}, any, TreeListNavData, TreeListNavComputed, TreeListNavMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
46
|
-
export { TreeListNav, TreeListNavVue2 };
|
package/dist/esm/TreeListNav.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import * as Vue from 'vue';
|
|
3
|
-
var allVue = Vue;
|
|
4
|
-
var gh = allVue.h;
|
|
5
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { getDefaultSlots, noop } from '@progress/kendo-vue-common';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var TreeListNavVue2 = {
|
|
11
|
-
name: 'KendoTreeListNav',
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
emits: {
|
|
14
|
-
scroll: null,
|
|
15
|
-
keydown: null,
|
|
16
|
-
navigationaction: null
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
currentData: Array
|
|
20
|
-
},
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
setup: !isV3 ? undefined : function () {
|
|
23
|
-
var v3 = !!isV3;
|
|
24
|
-
return {
|
|
25
|
-
v3: v3
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
inject: {
|
|
29
|
-
onNavKeyDown: {
|
|
30
|
-
default: noop
|
|
31
|
-
},
|
|
32
|
-
onNavFocus: {
|
|
33
|
-
default: noop
|
|
34
|
-
},
|
|
35
|
-
onNavMount: {
|
|
36
|
-
default: noop
|
|
37
|
-
},
|
|
38
|
-
handleDispatchFocus: {
|
|
39
|
-
default: noop
|
|
40
|
-
},
|
|
41
|
-
kbContext: {
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
navigation: {
|
|
45
|
-
default: null
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
mounted: function mounted() {
|
|
49
|
-
this.onNavMount({
|
|
50
|
-
scope: this.$el || undefined
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
updated: function updated() {
|
|
54
|
-
this.onNavMount({
|
|
55
|
-
scope: this.$el || undefined
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
methods: {
|
|
59
|
-
handleScroll: function handleScroll(event) {
|
|
60
|
-
this.$emit('scroll', event);
|
|
61
|
-
},
|
|
62
|
-
onKeyDown: function onKeyDown(event) {
|
|
63
|
-
this.onNavKeyDown(event, {
|
|
64
|
-
navigation: this.navigation,
|
|
65
|
-
kbContext: this.kbContext,
|
|
66
|
-
onNavigationAction: this.onNavigationAction
|
|
67
|
-
});
|
|
68
|
-
// const {mode, cell} = getSelectionOptions(this.$props.selectable);
|
|
69
|
-
this.$emit('keydown', {
|
|
70
|
-
dataItems: this.getLeafDataItems(),
|
|
71
|
-
// mode,
|
|
72
|
-
// cell,
|
|
73
|
-
componentId: this._gridId,
|
|
74
|
-
selectedField: this.$props.selectedField,
|
|
75
|
-
event: event
|
|
76
|
-
}); // as TreeListNavigationActionEvent
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
onFocus: function onFocus(event) {
|
|
80
|
-
this.onNavFocus(event, {
|
|
81
|
-
kbContext: this.kbContext
|
|
82
|
-
});
|
|
83
|
-
},
|
|
84
|
-
onNavigationAction: function onNavigationAction(options) {
|
|
85
|
-
this.$emit('navigationaction', {
|
|
86
|
-
focusElement: options.focusElement,
|
|
87
|
-
event: options.event
|
|
88
|
-
}); // as TreeListNavigationActionEvent
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
getLeafDataItems: function getLeafDataItems() {
|
|
92
|
-
return this.$props.currentData.filter(function (item) {
|
|
93
|
-
return item.rowType === 'data';
|
|
94
|
-
}).map(function (item) {
|
|
95
|
-
return item.dataItem;
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
render: function render(createElement) {
|
|
101
|
-
var h = gh || createElement;
|
|
102
|
-
var defaultSlots = getDefaultSlots(this);
|
|
103
|
-
return h("div", {
|
|
104
|
-
onScroll: this.handleScroll,
|
|
105
|
-
on: this.v3 ? undefined : {
|
|
106
|
-
"scroll": this.handleScroll,
|
|
107
|
-
"keydown": this.onKeyDown,
|
|
108
|
-
"focusin": this.onFocus
|
|
109
|
-
},
|
|
110
|
-
onKeydown: this.onKeyDown,
|
|
111
|
-
onFocusin: this.onFocus,
|
|
112
|
-
"data-keyboardnavscope": true,
|
|
113
|
-
attrs: this.v3 ? undefined : {
|
|
114
|
-
"data-keyboardnavscope": true
|
|
115
|
-
}
|
|
116
|
-
}, [defaultSlots]);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* @hidden
|
|
121
|
-
*/
|
|
122
|
-
var TreeListNav = TreeListNavVue2;
|
|
123
|
-
export { TreeListNav, TreeListNavVue2 };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import * as Vue from 'vue';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
type Vue2type = Vue.default;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
2
|
-
import { TreeListCellProps } from '../../interfaces/TreeListCellProps';
|
|
3
|
-
export interface TreeListBooleanEditorProps extends TreeListCellProps {
|
|
4
|
-
}
|
|
5
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
6
|
-
declare type DefaultMethods<V> = {
|
|
7
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export interface TreeListBooleanEditorMethods extends Vue2type {
|
|
13
|
-
triggerClick: () => void;
|
|
14
|
-
triggerKeydown: (e: any) => void;
|
|
15
|
-
triggerEdit: (dataItem: any) => void;
|
|
16
|
-
triggerAdd: (dataItem: any) => void;
|
|
17
|
-
triggerCancel: (dataItem: any) => void;
|
|
18
|
-
triggerSave: (dataItem: any) => void;
|
|
19
|
-
triggerRemove: (dataItem: any) => void;
|
|
20
|
-
changeHandler: (event: any, value?: any) => void;
|
|
21
|
-
getKeyboardNavigationAttributes: (id: string) => any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export interface TreeListBooleanEditorData {
|
|
27
|
-
inputId: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export interface TreeListBooleanEditorComputed {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
tdClass: object;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export interface TreeListBooleanEditorAll extends TreeListBooleanEditorMethods, TreeListBooleanEditorData, TreeListCellProps, TreeListBooleanEditorComputed {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
declare let TreeListBooleanEditorVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<TreeListBooleanEditorMethods>, {}, RecordPropsDefinition<TreeListCellProps>>;
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
declare const TreeListBooleanEditor: DefineComponent<TreeListCellProps, any, TreeListBooleanEditorData, [], TreeListBooleanEditorMethods, {}, {}, {}, string, TreeListCellProps, TreeListCellProps, {}>;
|
|
49
|
-
export { TreeListBooleanEditor, TreeListBooleanEditorVue2 };
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import * as Vue from 'vue';
|
|
3
|
-
var allVue = Vue;
|
|
4
|
-
var gh = allVue.h;
|
|
5
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
var inject = allVue.inject;
|
|
7
|
-
import { guid, getTemplate, noop, getNestedValue } from '@progress/kendo-vue-common';
|
|
8
|
-
import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-vue-data-tools';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
var TreeListBooleanEditorVue2 = {
|
|
13
|
-
name: 'KendoTreeListBooleanEditor',
|
|
14
|
-
inheritAttrs: false,
|
|
15
|
-
props: {
|
|
16
|
-
id: String,
|
|
17
|
-
field: String,
|
|
18
|
-
dataItem: Object,
|
|
19
|
-
format: String,
|
|
20
|
-
colSpan: Number,
|
|
21
|
-
colIndex: Number,
|
|
22
|
-
level: Array,
|
|
23
|
-
expanded: Boolean,
|
|
24
|
-
isSelected: Boolean,
|
|
25
|
-
ariaColumnIndex: Number,
|
|
26
|
-
render: [String, Function, Object],
|
|
27
|
-
focusInputOnMount: Boolean
|
|
28
|
-
},
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
emits: {
|
|
31
|
-
change: null,
|
|
32
|
-
cellkeydown: null,
|
|
33
|
-
cellclick: null,
|
|
34
|
-
edit: null,
|
|
35
|
-
add: null,
|
|
36
|
-
cancel: null,
|
|
37
|
-
save: null,
|
|
38
|
-
remove: null
|
|
39
|
-
},
|
|
40
|
-
inject: {
|
|
41
|
-
kendoIntlService: {
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
getKeyboardNavigationAttributes: {
|
|
45
|
-
default: noop
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
data: function data() {
|
|
49
|
-
return {
|
|
50
|
-
inputId: guid()
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
mounted: function mounted() {
|
|
54
|
-
var input = this.$el && this.$el.querySelector('input');
|
|
55
|
-
if (!input || input === document.activeElement || !this.focusInputOnMount) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
input.focus();
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
triggerKeydown: function triggerKeydown(e) {
|
|
62
|
-
this.$emit('cellkeydown', {
|
|
63
|
-
event: e,
|
|
64
|
-
dataItem: this.$props.dataItem,
|
|
65
|
-
field: this.$props.field
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
triggerClick: function triggerClick(e) {
|
|
69
|
-
this.$emit('cellclick', {
|
|
70
|
-
event: e,
|
|
71
|
-
dataItem: this.$props.dataItem,
|
|
72
|
-
field: this.$props.field
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
triggerEdit: function triggerEdit(dataItem) {
|
|
76
|
-
this.$emit('edit', dataItem);
|
|
77
|
-
},
|
|
78
|
-
triggerAdd: function triggerAdd(dataItem) {
|
|
79
|
-
this.$emit('add', dataItem);
|
|
80
|
-
},
|
|
81
|
-
triggerCancel: function triggerCancel(dataItem) {
|
|
82
|
-
this.$emit('cancel', dataItem);
|
|
83
|
-
},
|
|
84
|
-
triggerSave: function triggerSave(dataItem) {
|
|
85
|
-
this.$emit('save', dataItem);
|
|
86
|
-
},
|
|
87
|
-
triggerRemove: function triggerRemove(dataItem) {
|
|
88
|
-
this.$emit('remove', dataItem);
|
|
89
|
-
},
|
|
90
|
-
changeHandler: function changeHandler(event) {
|
|
91
|
-
this.$emit('change', {
|
|
92
|
-
dataItem: this.$props.dataItem,
|
|
93
|
-
field: this.$props.field,
|
|
94
|
-
event: event,
|
|
95
|
-
level: this.$props.level,
|
|
96
|
-
value: event.target.checked
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
computed: {
|
|
101
|
-
tdClass: function tdClass() {
|
|
102
|
-
var _a;
|
|
103
|
-
var className = this.$props.className;
|
|
104
|
-
return _a = {
|
|
105
|
-
'k-table-td': true
|
|
106
|
-
}, _a[className] = className, _a;
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
setup: !isV3 ? undefined : function () {
|
|
111
|
-
var v3 = !!isV3;
|
|
112
|
-
var kendoIntlService = inject('kendoIntlService', {});
|
|
113
|
-
return {
|
|
114
|
-
v3: v3,
|
|
115
|
-
kendoIntlService: kendoIntlService
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
// @ts-ignore
|
|
119
|
-
render: function render(createElement) {
|
|
120
|
-
var h = gh || createElement;
|
|
121
|
-
var data = getNestedValue(this.$props.field, this.$props.dataItem);
|
|
122
|
-
var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
123
|
-
var defaultRendering = h("td", {
|
|
124
|
-
style: this.$attrs.style,
|
|
125
|
-
onKeydown: this.triggerKeydown,
|
|
126
|
-
on: this.v3 ? undefined : {
|
|
127
|
-
"keydown": this.triggerKeydown,
|
|
128
|
-
"click": this.triggerClick
|
|
129
|
-
},
|
|
130
|
-
onClick: this.triggerClick,
|
|
131
|
-
colspan: this.$props.colSpan,
|
|
132
|
-
attrs: this.v3 ? undefined : {
|
|
133
|
-
colspan: this.$props.colSpan,
|
|
134
|
-
role: 'gridcell',
|
|
135
|
-
"aria-colindex": this.$props.ariaColumnIndex,
|
|
136
|
-
"aria-selected": this.$props.isSelected,
|
|
137
|
-
"data-grid-col-index": this.$props.colIndex,
|
|
138
|
-
tabindex: navAttrs.tabIndex,
|
|
139
|
-
"data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
|
|
140
|
-
"data-keyboardnavid": navAttrs[KEYBOARD_NAV_DATA_ID]
|
|
141
|
-
},
|
|
142
|
-
"class": this.tdClass,
|
|
143
|
-
role: 'gridcell',
|
|
144
|
-
"aria-colindex": this.$props.ariaColumnIndex,
|
|
145
|
-
"aria-selected": this.$props.isSelected,
|
|
146
|
-
"data-grid-col-index": this.$props.colIndex,
|
|
147
|
-
tabindex: navAttrs.tabIndex,
|
|
148
|
-
"data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
|
|
149
|
-
"data-keyboardnavid": navAttrs[KEYBOARD_NAV_DATA_ID]
|
|
150
|
-
}, [h("input", {
|
|
151
|
-
checked: this.v3 ? data || false : null,
|
|
152
|
-
domProps: this.v3 ? undefined : {
|
|
153
|
-
"checked": data || false
|
|
154
|
-
},
|
|
155
|
-
id: this.inputId,
|
|
156
|
-
attrs: this.v3 ? undefined : {
|
|
157
|
-
id: this.inputId,
|
|
158
|
-
type: "checkbox"
|
|
159
|
-
},
|
|
160
|
-
type: "checkbox",
|
|
161
|
-
"class": "k-checkbox k-checkbox-md k-rounded-md",
|
|
162
|
-
onChange: this.changeHandler,
|
|
163
|
-
on: this.v3 ? undefined : {
|
|
164
|
-
"change": this.changeHandler
|
|
165
|
-
}
|
|
166
|
-
}), h("label", {
|
|
167
|
-
"class": "k-checkbox-label",
|
|
168
|
-
"for": this.inputId,
|
|
169
|
-
attrs: this.v3 ? undefined : {
|
|
170
|
-
"for": this.inputId
|
|
171
|
-
}
|
|
172
|
-
})]);
|
|
173
|
-
return getTemplate.call(this, {
|
|
174
|
-
h: h,
|
|
175
|
-
template: this.$props.render,
|
|
176
|
-
defaultRendering: defaultRendering,
|
|
177
|
-
additionalProps: this.$props,
|
|
178
|
-
additionalListeners: {
|
|
179
|
-
change: this.changeHandler,
|
|
180
|
-
keydown: this.triggerKeydown,
|
|
181
|
-
edit: this.triggerEdit,
|
|
182
|
-
add: this.triggerAdd,
|
|
183
|
-
cancel: this.triggerCancel,
|
|
184
|
-
save: this.triggerSave,
|
|
185
|
-
remove: this.triggerRemove
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* @hidden
|
|
192
|
-
*/
|
|
193
|
-
var TreeListBooleanEditor = TreeListBooleanEditorVue2;
|
|
194
|
-
export { TreeListBooleanEditor, TreeListBooleanEditorVue2 };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
2
|
-
import { TreeListCellProps } from '../../interfaces/TreeListCellProps';
|
|
3
|
-
export interface TreeListDateEditorProps extends TreeListCellProps {
|
|
4
|
-
}
|
|
5
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
6
|
-
declare type DefaultMethods<V> = {
|
|
7
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export interface TreeListDateEditorMethods extends Vue2type {
|
|
13
|
-
triggerClick: () => void;
|
|
14
|
-
triggerKeydown: (e: any) => void;
|
|
15
|
-
triggerEdit: (dataItem: any) => void;
|
|
16
|
-
triggerAdd: (dataItem: any) => void;
|
|
17
|
-
triggerCancel: (dataItem: any) => void;
|
|
18
|
-
triggerSave: (dataItem: any) => void;
|
|
19
|
-
triggerRemove: (dataItem: any) => void;
|
|
20
|
-
changeHandler: (event: any, value?: any) => void;
|
|
21
|
-
getKeyboardNavigationAttributes: (id: string) => any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export interface TreeListDateEditorData {
|
|
27
|
-
inputId: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export interface TreeListDateEditorComputed {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
tdClass: object;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export interface TreeListDateEditorAll extends TreeListDateEditorMethods, TreeListDateEditorData, TreeListCellProps, TreeListDateEditorComputed {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
declare let TreeListDateEditorVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<TreeListDateEditorMethods>, {}, RecordPropsDefinition<TreeListCellProps>>;
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
declare const TreeListDateEditor: DefineComponent<TreeListCellProps, any, TreeListDateEditorData, [], TreeListDateEditorMethods, {}, {}, {}, string, TreeListCellProps, TreeListCellProps, {}>;
|
|
49
|
-
export { TreeListDateEditor, TreeListDateEditorVue2 };
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import * as Vue from 'vue';
|
|
3
|
-
var allVue = Vue;
|
|
4
|
-
var gh = allVue.h;
|
|
5
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
var inject = allVue.inject;
|
|
7
|
-
import { guid, getTemplate, noop, getNestedValue } from '@progress/kendo-vue-common';
|
|
8
|
-
import { DatePicker } from '@progress/kendo-vue-dateinputs';
|
|
9
|
-
import { KEYBOARD_NAV_DATA_ID, KEYBOARD_NAV_DATA_LEVEL } from '@progress/kendo-vue-data-tools';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var TreeListDateEditorVue2 = {
|
|
14
|
-
name: 'KendoTreeListDateEditor',
|
|
15
|
-
inheritAttrs: false,
|
|
16
|
-
props: {
|
|
17
|
-
id: String,
|
|
18
|
-
field: String,
|
|
19
|
-
dataItem: Object,
|
|
20
|
-
format: String,
|
|
21
|
-
colSpan: Number,
|
|
22
|
-
colIndex: Number,
|
|
23
|
-
level: Array,
|
|
24
|
-
expanded: Boolean,
|
|
25
|
-
isSelected: Boolean,
|
|
26
|
-
ariaColumnIndex: Number,
|
|
27
|
-
render: [String, Function, Object],
|
|
28
|
-
focusInputOnMount: Boolean
|
|
29
|
-
},
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
emits: {
|
|
32
|
-
change: null,
|
|
33
|
-
cellkeydown: null,
|
|
34
|
-
edit: null,
|
|
35
|
-
add: null,
|
|
36
|
-
cancel: null,
|
|
37
|
-
save: null,
|
|
38
|
-
remove: null
|
|
39
|
-
},
|
|
40
|
-
inject: {
|
|
41
|
-
kendoIntlService: {
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
getKeyboardNavigationAttributes: {
|
|
45
|
-
default: noop
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
data: function data() {
|
|
49
|
-
return {
|
|
50
|
-
inputId: guid()
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
mounted: function mounted() {
|
|
54
|
-
var input = this.$el && this.$el.querySelector('input');
|
|
55
|
-
if (!input || input === document.activeElement || !this.focusInputOnMount) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
input.select();
|
|
59
|
-
},
|
|
60
|
-
methods: {
|
|
61
|
-
triggerKeydown: function triggerKeydown(e) {
|
|
62
|
-
this.$emit('cellkeydown', {
|
|
63
|
-
event: e,
|
|
64
|
-
dataItem: this.$props.dataItem,
|
|
65
|
-
field: this.$props.field
|
|
66
|
-
});
|
|
67
|
-
},
|
|
68
|
-
triggerEdit: function triggerEdit(dataItem) {
|
|
69
|
-
this.$emit('edit', dataItem);
|
|
70
|
-
},
|
|
71
|
-
triggerAdd: function triggerAdd(dataItem) {
|
|
72
|
-
this.$emit('add', dataItem);
|
|
73
|
-
},
|
|
74
|
-
triggerCancel: function triggerCancel(dataItem) {
|
|
75
|
-
this.$emit('cancel', dataItem);
|
|
76
|
-
},
|
|
77
|
-
triggerSave: function triggerSave(dataItem) {
|
|
78
|
-
this.$emit('save', dataItem);
|
|
79
|
-
},
|
|
80
|
-
triggerRemove: function triggerRemove(dataItem) {
|
|
81
|
-
this.$emit('remove', dataItem);
|
|
82
|
-
},
|
|
83
|
-
changeHandler: function changeHandler(event) {
|
|
84
|
-
this.$emit('change', {
|
|
85
|
-
dataItem: this.$props.dataItem,
|
|
86
|
-
field: this.$props.field,
|
|
87
|
-
event: event,
|
|
88
|
-
level: this.$props.level,
|
|
89
|
-
value: event.target.value
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
computed: {
|
|
94
|
-
tdClass: function tdClass() {
|
|
95
|
-
var _a;
|
|
96
|
-
var className = this.$props.className;
|
|
97
|
-
return _a = {
|
|
98
|
-
'k-table-td': true
|
|
99
|
-
}, _a[className] = className, _a;
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
// @ts-ignore
|
|
103
|
-
setup: !isV3 ? undefined : function () {
|
|
104
|
-
var v3 = !!isV3;
|
|
105
|
-
var kendoIntlService = inject('kendoIntlService', {});
|
|
106
|
-
return {
|
|
107
|
-
v3: v3,
|
|
108
|
-
kendoIntlService: kendoIntlService
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
// @ts-ignore
|
|
112
|
-
render: function render(createElement) {
|
|
113
|
-
var h = gh || createElement;
|
|
114
|
-
var data = getNestedValue(this.$props.field, this.$props.dataItem);
|
|
115
|
-
var navAttrs = this.getKeyboardNavigationAttributes(this.$props.id);
|
|
116
|
-
var defaultRendering = h("td", {
|
|
117
|
-
style: this.$attrs.style,
|
|
118
|
-
onKeydown: this.triggerKeydown,
|
|
119
|
-
on: this.v3 ? undefined : {
|
|
120
|
-
"keydown": this.triggerKeydown
|
|
121
|
-
},
|
|
122
|
-
colspan: this.$props.colSpan,
|
|
123
|
-
attrs: this.v3 ? undefined : {
|
|
124
|
-
colspan: this.$props.colSpan,
|
|
125
|
-
role: 'gridcell',
|
|
126
|
-
"aria-colindex": this.$props.ariaColumnIndex,
|
|
127
|
-
"aria-selected": this.$props.isSelected,
|
|
128
|
-
"data-grid-col-index": this.$props.colIndex,
|
|
129
|
-
tabindex: navAttrs.tabIndex,
|
|
130
|
-
"data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
|
|
131
|
-
"data-keyboardnavid": navAttrs[KEYBOARD_NAV_DATA_ID]
|
|
132
|
-
},
|
|
133
|
-
"class": this.tdClass,
|
|
134
|
-
role: 'gridcell',
|
|
135
|
-
"aria-colindex": this.$props.ariaColumnIndex,
|
|
136
|
-
"aria-selected": this.$props.isSelected,
|
|
137
|
-
"data-grid-col-index": this.$props.colIndex,
|
|
138
|
-
tabindex: navAttrs.tabIndex,
|
|
139
|
-
"data-keyboardnavlevel": navAttrs[KEYBOARD_NAV_DATA_LEVEL],
|
|
140
|
-
"data-keyboardnavid": navAttrs[KEYBOARD_NAV_DATA_ID]
|
|
141
|
-
}, [
|
|
142
|
-
// @ts-ignore
|
|
143
|
-
h(DatePicker, {
|
|
144
|
-
value: data,
|
|
145
|
-
attrs: this.v3 ? undefined : {
|
|
146
|
-
value: data
|
|
147
|
-
},
|
|
148
|
-
onChange: this.changeHandler,
|
|
149
|
-
on: this.v3 ? undefined : {
|
|
150
|
-
"change": this.changeHandler
|
|
151
|
-
}
|
|
152
|
-
})]);
|
|
153
|
-
return getTemplate.call(this, {
|
|
154
|
-
h: h,
|
|
155
|
-
template: this.$props.render,
|
|
156
|
-
defaultRendering: defaultRendering,
|
|
157
|
-
additionalProps: this.$props,
|
|
158
|
-
additionalListeners: {
|
|
159
|
-
change: this.changeHandler,
|
|
160
|
-
keydown: this.triggerKeydown,
|
|
161
|
-
edit: this.triggerEdit,
|
|
162
|
-
add: this.triggerAdd,
|
|
163
|
-
cancel: this.triggerCancel,
|
|
164
|
-
save: this.triggerSave,
|
|
165
|
-
remove: this.triggerRemove
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* @hidden
|
|
172
|
-
*/
|
|
173
|
-
var TreeListDateEditor = TreeListDateEditorVue2;
|
|
174
|
-
export { TreeListDateEditor, TreeListDateEditorVue2 };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../../additionalTypes';
|
|
2
|
-
import { TreeListCellProps } from '../../interfaces/TreeListCellProps';
|
|
3
|
-
export interface TreeListNumericEditorProps extends TreeListCellProps {
|
|
4
|
-
}
|
|
5
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
6
|
-
declare type DefaultMethods<V> = {
|
|
7
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export interface TreeListNumericEditorMethods extends Vue2type {
|
|
13
|
-
triggerClick: () => void;
|
|
14
|
-
triggerKeydown: (e: any) => void;
|
|
15
|
-
triggerEdit: (dataItem: any) => void;
|
|
16
|
-
triggerAdd: (dataItem: any) => void;
|
|
17
|
-
triggerCancel: (dataItem: any) => void;
|
|
18
|
-
triggerSave: (dataItem: any) => void;
|
|
19
|
-
triggerRemove: (dataItem: any) => void;
|
|
20
|
-
changeHandler: (event: any, value?: any) => void;
|
|
21
|
-
getKeyboardNavigationAttributes: (id: string) => any;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export interface TreeListNumericEditorData {
|
|
27
|
-
inputId: string;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export interface TreeListNumericEditorComputed {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
tdClass: object;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export interface TreeListNumericEditorAll extends TreeListNumericEditorMethods, TreeListNumericEditorData, TreeListCellProps, TreeListNumericEditorComputed {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
declare let TreeListNumericEditorVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<TreeListNumericEditorMethods>, {}, RecordPropsDefinition<TreeListCellProps>>;
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
declare const TreeListNumericEditor: DefineComponent<TreeListCellProps, any, TreeListNumericEditorData, [], TreeListNumericEditorMethods, {}, {}, {}, string, TreeListCellProps, TreeListCellProps, {}>;
|
|
49
|
-
export { TreeListNumericEditor, TreeListNumericEditorVue2 };
|