@progress/kendo-vue-treelist 3.5.2 → 3.5.3-dev.202209051408

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.
@@ -133,7 +133,8 @@ var TreeListVue2 = {
133
133
  wrapperScrollTop: 0,
134
134
  updateOnScroll: false,
135
135
  tbodyOffsetTop: 0,
136
- isRtl: false
136
+ isRtl: false,
137
+ navigation: undefined
137
138
  };
138
139
  },
139
140
  // private get document(): Document | undefined {
@@ -150,11 +151,18 @@ var TreeListVue2 = {
150
151
  mounted: function mounted() {
151
152
  this.calculateSizes(this.$el);
152
153
  var rtl = (0, kendo_vue_common_1.isRtl)(this.$el);
153
- this.isRtl = rtl; // tableKeyboardNavigation.onComponentDidMount({
154
+ this.isRtl = rtl;
155
+ var elementString = '$el';
156
+ var element = (0, kendo_vue_common_1.getRef)(this, 'gridNav');
157
+
158
+ if (element) {
159
+ this.element = element[elementString];
160
+ } // tableKeyboardNavigation.onComponentDidMount({
154
161
  // scope: this.element || undefined,
155
162
  // contextStateRef: this.contextStateRef,
156
163
  // navigationStateRef: this.navigationStateRef
157
164
  // });
165
+
158
166
  },
159
167
  // /**
160
168
  // * @hidden
@@ -224,7 +232,7 @@ var TreeListVue2 = {
224
232
  return Boolean(c.filter) || Boolean(c.filterCell);
225
233
  }) || filterRow !== undefined;
226
234
  var FilterRow = filterRow || kendo_vue_data_tools_1.FilterRow;
227
- var idPrefix = kendo_vue_data_tools_1.tableKeyboardNavigationTools.getIdPrefix(undefined); // to do this.navigationStateRef
235
+ var idPrefix = kendo_vue_data_tools_1.tableKeyboardNavigationTools.getIdPrefix(this.navigation);
228
236
 
229
237
  if (this.prevColumns !== columns) {
230
238
  this.extendedColumn = (0, kendo_vue_data_tools_1.readColumns)(columns, {
@@ -698,9 +706,6 @@ var TreeListVue2 = {
698
706
  "class": (0, kendo_vue_common_1.classNames)('k-widget k-grid', _this2.$props.className, {
699
707
  'k-treelist-scrollable': scrollable !== 'none'
700
708
  }),
701
- ref: function ref(e) {
702
- return _this.element = e;
703
- },
704
709
  currentData: flattedData,
705
710
  attrs: _this2.v3 ? undefined : {
706
711
  currentData: flattedData,
@@ -711,14 +716,17 @@ var TreeListVue2 = {
711
716
  onScroll: virtualScroll ? _this2.handleOnScroll : kendo_vue_common_1.noop,
712
717
  on: _this2.v3 ? undefined : {
713
718
  "scroll": virtualScroll ? _this2.handleOnScroll : kendo_vue_common_1.noop,
714
- "keyDown": _this2.onKeyDown,
719
+ "keydown": _this2.onKeyDown,
715
720
  "focus": _this2.onFocus
716
721
  },
717
- onKeyDown: _this2.onKeyDown,
722
+ onKeydown: _this2.onKeyDown,
718
723
  onFocus: _this2.onFocus,
719
724
  "aria-rowcount": total,
720
725
  "aria-colcount": leafColumns.length,
721
- role: 'treegrid'
726
+ role: 'treegrid',
727
+ ref: _this2.v3 ? function (el) {
728
+ _this.treeListNavRef = el;
729
+ } : 'treeListNav'
722
730
  }, _this2.v3 ? function () {
723
731
  return [_this2.$props.toolbar, // // @ts-ignore
724
732
  // <TableSelection
@@ -735,11 +743,12 @@ var TreeListVue2 = {
735
743
  role: 'presentation'
736
744
  }
737
745
  }, [colGroups, header, h("tbody", {
738
- // {...tableKeyboardNavigationBodyAttributes}
739
- role: 'presentation',
746
+ "data-keyboardnavbody": true,
740
747
  attrs: _this2.v3 ? undefined : {
748
+ "data-keyboardnavbody": true,
741
749
  role: 'presentation'
742
- }
750
+ },
751
+ role: 'presentation'
743
752
  }, [body])]) // </TableSelection>
744
753
  , pager, reorderable && h(kendo_vue_data_tools_1.DropClue, {
745
754
  ref: _this2.dragLogic.refDropElementClue
@@ -755,10 +764,12 @@ var TreeListVue2 = {
755
764
  role: 'presentation'
756
765
  }
757
766
  }, [colGroups, header, h("tbody", {
758
- role: 'presentation',
767
+ "data-keyboardnavbody": true,
759
768
  attrs: _this2.v3 ? undefined : {
769
+ "data-keyboardnavbody": true,
760
770
  role: 'presentation'
761
- }
771
+ },
772
+ role: 'presentation'
762
773
  }, [body])]), pager, reorderable && h(kendo_vue_data_tools_1.DropClue, {
763
774
  ref: _this2.dragLogic.refDropElementClue
764
775
  }), reorderable && h(kendo_vue_data_tools_1.DragClue, {
@@ -769,9 +780,6 @@ var TreeListVue2 = {
769
780
  "class": (0, kendo_vue_common_1.classNames)('k-widget k-grid', _this2.$props.className, {
770
781
  'k-treelist-scrollable': scrollable !== 'none'
771
782
  }),
772
- ref: function ref(e) {
773
- return _this.element = e;
774
- },
775
783
  currentData: flattedData,
776
784
  attrs: _this2.v3 ? undefined : {
777
785
  currentData: flattedData,
@@ -782,14 +790,17 @@ var TreeListVue2 = {
782
790
  onScroll: virtualScroll ? _this2.handleOnScroll : kendo_vue_common_1.noop,
783
791
  on: _this2.v3 ? undefined : {
784
792
  "scroll": virtualScroll ? _this2.handleOnScroll : kendo_vue_common_1.noop,
785
- "keyDown": _this2.onKeyDown,
793
+ "keydown": _this2.onKeyDown,
786
794
  "focus": _this2.onFocus
787
795
  },
788
- onKeyDown: _this2.onKeyDown,
796
+ onKeydown: _this2.onKeyDown,
789
797
  onFocus: _this2.onFocus,
790
798
  "aria-rowcount": total,
791
799
  "aria-colcount": leafColumns.length,
792
- role: 'treegrid'
800
+ role: 'treegrid',
801
+ ref: _this2.v3 ? function (el) {
802
+ _this.treeListNavRef = el;
803
+ } : 'treeListNav'
793
804
  }, _this2.v3 ? function () {
794
805
  return [_this2.$props.toolbar, h("table", {
795
806
  style: __assign(__assign({}, tableProps.style || {}), {
@@ -800,10 +811,12 @@ var TreeListVue2 = {
800
811
  role: 'presentation'
801
812
  }
802
813
  }, [colGroups, header, h("tbody", {
803
- role: 'presentation',
814
+ "data-keyboardnavbody": true,
804
815
  attrs: _this2.v3 ? undefined : {
816
+ "data-keyboardnavbody": true,
805
817
  role: 'presentation'
806
- }
818
+ },
819
+ role: 'presentation'
807
820
  }, [body])]), pager, reorderable && h(kendo_vue_data_tools_1.DropClue, {
808
821
  ref: _this2.dragLogic.refDropElementClue
809
822
  }), reorderable && h(kendo_vue_data_tools_1.DragClue, {
@@ -818,10 +831,12 @@ var TreeListVue2 = {
818
831
  role: 'presentation'
819
832
  }
820
833
  }, [colGroups, header, h("tbody", {
821
- role: 'presentation',
834
+ "data-keyboardnavbody": true,
822
835
  attrs: _this2.v3 ? undefined : {
836
+ "data-keyboardnavbody": true,
823
837
  role: 'presentation'
824
- }
838
+ },
839
+ role: 'presentation'
825
840
  }, [body])]), pager, reorderable && h(kendo_vue_data_tools_1.DropClue, {
826
841
  ref: _this2.dragLogic.refDropElementClue
827
842
  }), reorderable && h(kendo_vue_data_tools_1.DragClue, {
@@ -912,21 +927,7 @@ var TreeListVue2 = {
912
927
  return flattedData;
913
928
  },
914
929
  onKeyDown: function onKeyDown(event) {
915
- // tableKeyboardNavigation.onKeyDown(event, {
916
- // contextStateRef: this.contextStateRef,
917
- // navigationStateRef: this.navigationStateRef
918
- // });
919
- var _a = (0, kendo_vue_data_tools_1.getSelectionOptions)(this.$props.selectable),
920
- mode = _a.mode,
921
- cell = _a.cell;
922
-
923
- this.$emit('keydown', __assign({
924
- dataItems: this.getLeafDataItems(),
925
- mode: mode,
926
- cell: cell,
927
- componentId: this._treeListId,
928
- selectedField: this.$props.selectedField
929
- }, this.getArguments(event)));
930
+ this.$emit('keydown', event);
930
931
  },
931
932
  onFocus: function onFocus(_event) {// tableKeyboardNavigation.onFocus(event, {
932
933
  // contextStateRef: this.contextStateRef
@@ -1245,7 +1246,7 @@ var TreeListVue2 = {
1245
1246
  this.$emit(handler, __assign(__assign({}, this.getArguments(event)), data));
1246
1247
  } else if (kendo_vue_common_3.hasListener.call(this, 'datastatechange')) {
1247
1248
  this.$emit('datastatechange', __assign(__assign({}, this.getArguments(event)), {
1248
- data: __assign(__assign({}, this.getDataState()), moreData)
1249
+ data: __assign(__assign(__assign({}, this.getDataState()), data), moreData)
1249
1250
  }));
1250
1251
  }
1251
1252
  },
@@ -1257,9 +1258,8 @@ var TreeListVue2 = {
1257
1258
  },
1258
1259
  getArguments: function getArguments(event) {
1259
1260
  return {
1260
- nativeEvent: event && event.nativeEvent,
1261
1261
  event: event,
1262
- target: this
1262
+ component: this
1263
1263
  };
1264
1264
  },
1265
1265
  expandedSubItems: function expandedSubItems(dataItem) {
@@ -60,7 +60,7 @@ var TreeListCellVue2 = {
60
60
  dataItem = _a.dataItem,
61
61
  level = _a.level;
62
62
 
63
- if (event.isDefaultPrevented()) {
63
+ if (event.defaultPrevented) {
64
64
  return;
65
65
  }
66
66
 
package/dist/npm/main.js CHANGED
@@ -7,7 +7,6 @@ var TreeListCell_1 = require("./cells/TreeListCell");
7
7
  Object.defineProperty(exports, "TreeListCell", { enumerable: true, get: function () { return TreeListCell_1.TreeListCell; } });
8
8
  var TreeListSelectionCell_1 = require("./cells/TreeListSelectionCell");
9
9
  Object.defineProperty(exports, "TreeListSelectionCell", { enumerable: true, get: function () { return TreeListSelectionCell_1.TreeListSelectionCell; } });
10
- // import { TreeListHeaderSelectionCell, TreeListHeaderSelectionCellProps } from './header/TreeListHeaderSelectionCell';
11
10
  var TreeListRow_1 = require("./rows/TreeListRow");
12
11
  Object.defineProperty(exports, "TreeListRow", { enumerable: true, get: function () { return TreeListRow_1.TreeListRow; } });
13
12
  var TreeListToolbar_1 = require("./TreeListToolbar");
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-treelist',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1662110842,
11
+ publishDate: 1662386727,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-treelist",
3
- "version": "3.5.2",
3
+ "version": "3.5.3-dev.202209051408",
4
4
  "description": "Kendo UI for Vue TreeList package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,22 +47,22 @@
47
47
  "vue": "^2.6.12 || ^3.0.2"
48
48
  },
49
49
  "dependencies": {
50
- "@progress/kendo-vue-common": "3.5.2"
50
+ "@progress/kendo-vue-common": "3.5.3-dev.202209051408"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@progress/kendo-data-query": "^1.0.0",
54
54
  "@progress/kendo-date-math": "^1.4.1",
55
55
  "@progress/kendo-drawing": "^1.8.0",
56
56
  "@progress/kendo-licensing": "^1.0.1",
57
- "@progress/kendo-vue-buttons": "3.5.2",
58
- "@progress/kendo-vue-data-tools": "3.5.2",
59
- "@progress/kendo-vue-dateinputs": "3.5.2",
60
- "@progress/kendo-vue-dialogs": "3.5.2",
61
- "@progress/kendo-vue-dropdowns": "3.5.2",
62
- "@progress/kendo-vue-excel-export": "3.5.2",
63
- "@progress/kendo-vue-inputs": "3.5.2",
64
- "@progress/kendo-vue-intl": "3.5.2",
65
- "@progress/kendo-vue-pdf": "3.5.2"
57
+ "@progress/kendo-vue-buttons": "3.5.3-dev.202209051408",
58
+ "@progress/kendo-vue-data-tools": "3.5.3-dev.202209051408",
59
+ "@progress/kendo-vue-dateinputs": "3.5.3-dev.202209051408",
60
+ "@progress/kendo-vue-dialogs": "3.5.3-dev.202209051408",
61
+ "@progress/kendo-vue-dropdowns": "3.5.3-dev.202209051408",
62
+ "@progress/kendo-vue-excel-export": "3.5.3-dev.202209051408",
63
+ "@progress/kendo-vue-inputs": "3.5.3-dev.202209051408",
64
+ "@progress/kendo-vue-intl": "3.5.3-dev.202209051408",
65
+ "@progress/kendo-vue-pdf": "3.5.3-dev.202209051408"
66
66
  },
67
67
  "@progress": {
68
68
  "friendlyName": "TreeList",