@progress/kendo-angular-treelist 19.2.1-develop.3 → 19.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.
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
13
|
-
publishDate:
|
14
|
-
version: '19.
|
13
|
+
publishDate: 1751896593,
|
14
|
+
version: '19.3.0-develop.1',
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
16
16
|
};
|
@@ -255,7 +255,11 @@ export class TableBodyComponent {
|
|
255
255
|
}
|
256
256
|
clickHandler(eventArg) {
|
257
257
|
const target = eventArg.target;
|
258
|
-
const
|
258
|
+
const targetElementsResult = this.targetElements(target);
|
259
|
+
if (!targetElementsResult) {
|
260
|
+
return;
|
261
|
+
}
|
262
|
+
const { cell, row } = targetElementsResult;
|
259
263
|
const forbiddenCellClasses = NON_DATA_CELL_CLASSES.concat(` ${DRAG_HANDLE_CLASS}`);
|
260
264
|
const isValidCell = cell ? !hasClasses(cell, forbiddenCellClasses) : false;
|
261
265
|
const isValidRow = row ? !hasClasses(row, NON_DATA_ROW_CLASSES) : false;
|
@@ -321,15 +325,29 @@ export class TableBodyComponent {
|
|
321
325
|
}
|
322
326
|
targetElements(target) {
|
323
327
|
const element = this.element.nativeElement;
|
324
|
-
let
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
328
|
+
let row, body, treelistElement;
|
329
|
+
const currentTarget = target;
|
330
|
+
const treelistTbody = closest(currentTarget, (el) => matchesNodeName('tbody')(el) && el === element);
|
331
|
+
if (!treelistTbody) {
|
332
|
+
return null;
|
333
|
+
}
|
334
|
+
const cell = closest(currentTarget, (el) => {
|
335
|
+
if (!matchesNodeName('td')(el)) {
|
336
|
+
return false;
|
337
|
+
}
|
338
|
+
const parentRow = el.parentElement;
|
339
|
+
if (!parentRow || !matchesNodeName('tr')(parentRow)) {
|
340
|
+
return false;
|
341
|
+
}
|
342
|
+
return parentRow.parentElement === treelistTbody;
|
343
|
+
});
|
344
|
+
if (cell) {
|
345
|
+
row = cell.parentElement;
|
346
|
+
body = treelistTbody;
|
347
|
+
const targetTreelist = closest(currentTarget, (el) => hasClasses(el, 'k-treelist'));
|
348
|
+
const currentTreelist = closest(element, (el) => hasClasses(el, 'k-treelist'));
|
349
|
+
treelistElement = targetTreelist !== currentTreelist ? targetTreelist : null;
|
350
|
+
}
|
333
351
|
if (cell && body === element && !treelistElement) {
|
334
352
|
return {
|
335
353
|
cell,
|
@@ -49,8 +49,8 @@ const packageMetadata = {
|
|
49
49
|
productName: 'Kendo UI for Angular',
|
50
50
|
productCode: 'KENDOUIANGULAR',
|
51
51
|
productCodes: ['KENDOUIANGULAR'],
|
52
|
-
publishDate:
|
53
|
-
version: '19.
|
52
|
+
publishDate: 1751896593,
|
53
|
+
version: '19.3.0-develop.1',
|
54
54
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
55
55
|
};
|
56
56
|
|
@@ -6737,7 +6737,11 @@ class TableBodyComponent {
|
|
6737
6737
|
}
|
6738
6738
|
clickHandler(eventArg) {
|
6739
6739
|
const target = eventArg.target;
|
6740
|
-
const
|
6740
|
+
const targetElementsResult = this.targetElements(target);
|
6741
|
+
if (!targetElementsResult) {
|
6742
|
+
return;
|
6743
|
+
}
|
6744
|
+
const { cell, row } = targetElementsResult;
|
6741
6745
|
const forbiddenCellClasses = NON_DATA_CELL_CLASSES.concat(` ${DRAG_HANDLE_CLASS}`);
|
6742
6746
|
const isValidCell = cell ? !hasClasses(cell, forbiddenCellClasses) : false;
|
6743
6747
|
const isValidRow = row ? !hasClasses(row, NON_DATA_ROW_CLASSES) : false;
|
@@ -6803,15 +6807,29 @@ class TableBodyComponent {
|
|
6803
6807
|
}
|
6804
6808
|
targetElements(target) {
|
6805
6809
|
const element = this.element.nativeElement;
|
6806
|
-
let
|
6807
|
-
|
6808
|
-
|
6809
|
-
|
6810
|
-
|
6811
|
-
|
6812
|
-
|
6813
|
-
|
6814
|
-
|
6810
|
+
let row, body, treelistElement;
|
6811
|
+
const currentTarget = target;
|
6812
|
+
const treelistTbody = closest(currentTarget, (el) => matchesNodeName('tbody')(el) && el === element);
|
6813
|
+
if (!treelistTbody) {
|
6814
|
+
return null;
|
6815
|
+
}
|
6816
|
+
const cell = closest(currentTarget, (el) => {
|
6817
|
+
if (!matchesNodeName('td')(el)) {
|
6818
|
+
return false;
|
6819
|
+
}
|
6820
|
+
const parentRow = el.parentElement;
|
6821
|
+
if (!parentRow || !matchesNodeName('tr')(parentRow)) {
|
6822
|
+
return false;
|
6823
|
+
}
|
6824
|
+
return parentRow.parentElement === treelistTbody;
|
6825
|
+
});
|
6826
|
+
if (cell) {
|
6827
|
+
row = cell.parentElement;
|
6828
|
+
body = treelistTbody;
|
6829
|
+
const targetTreelist = closest(currentTarget, (el) => hasClasses(el, 'k-treelist'));
|
6830
|
+
const currentTreelist = closest(element, (el) => hasClasses(el, 'k-treelist'));
|
6831
|
+
treelistElement = targetTreelist !== currentTreelist ? targetTreelist : null;
|
6832
|
+
}
|
6815
6833
|
if (cell && body === element && !treelistElement) {
|
6816
6834
|
return {
|
6817
6835
|
cell,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-treelist",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.3.0-develop.1",
|
4
4
|
"description": "Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "Progress",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"package": {
|
25
25
|
"productName": "Kendo UI for Angular",
|
26
26
|
"productCode": "KENDOUIANGULAR",
|
27
|
-
"publishDate":
|
27
|
+
"publishDate": 1751896593,
|
28
28
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
29
29
|
}
|
30
30
|
},
|
@@ -37,26 +37,26 @@
|
|
37
37
|
"@progress/kendo-data-query": "^1.0.0",
|
38
38
|
"@progress/kendo-drawing": "^1.21.0",
|
39
39
|
"@progress/kendo-licensing": "^1.5.0",
|
40
|
-
"@progress/kendo-angular-buttons": "19.
|
41
|
-
"@progress/kendo-angular-common": "19.
|
42
|
-
"@progress/kendo-angular-dateinputs": "19.
|
43
|
-
"@progress/kendo-angular-dropdowns": "19.
|
44
|
-
"@progress/kendo-angular-excel-export": "19.
|
45
|
-
"@progress/kendo-angular-icons": "19.
|
46
|
-
"@progress/kendo-angular-inputs": "19.
|
47
|
-
"@progress/kendo-angular-intl": "19.
|
48
|
-
"@progress/kendo-angular-l10n": "19.
|
49
|
-
"@progress/kendo-angular-label": "19.
|
50
|
-
"@progress/kendo-angular-pager": "19.
|
51
|
-
"@progress/kendo-angular-pdf-export": "19.
|
52
|
-
"@progress/kendo-angular-popup": "19.
|
53
|
-
"@progress/kendo-angular-toolbar": "19.
|
54
|
-
"@progress/kendo-angular-utils": "19.
|
40
|
+
"@progress/kendo-angular-buttons": "19.3.0-develop.1",
|
41
|
+
"@progress/kendo-angular-common": "19.3.0-develop.1",
|
42
|
+
"@progress/kendo-angular-dateinputs": "19.3.0-develop.1",
|
43
|
+
"@progress/kendo-angular-dropdowns": "19.3.0-develop.1",
|
44
|
+
"@progress/kendo-angular-excel-export": "19.3.0-develop.1",
|
45
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.1",
|
46
|
+
"@progress/kendo-angular-inputs": "19.3.0-develop.1",
|
47
|
+
"@progress/kendo-angular-intl": "19.3.0-develop.1",
|
48
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.1",
|
49
|
+
"@progress/kendo-angular-label": "19.3.0-develop.1",
|
50
|
+
"@progress/kendo-angular-pager": "19.3.0-develop.1",
|
51
|
+
"@progress/kendo-angular-pdf-export": "19.3.0-develop.1",
|
52
|
+
"@progress/kendo-angular-popup": "19.3.0-develop.1",
|
53
|
+
"@progress/kendo-angular-toolbar": "19.3.0-develop.1",
|
54
|
+
"@progress/kendo-angular-utils": "19.3.0-develop.1",
|
55
55
|
"rxjs": "^6.5.3 || ^7.0.0"
|
56
56
|
},
|
57
57
|
"dependencies": {
|
58
58
|
"tslib": "^2.3.1",
|
59
|
-
"@progress/kendo-angular-schematics": "19.
|
59
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.1",
|
60
60
|
"@progress/kendo-common": "^1.0.1",
|
61
61
|
"@progress/kendo-file-saver": "^1.0.0"
|
62
62
|
},
|
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function default_1(options) {
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeListModule', package: 'treelist', peerDependencies: {
|
6
6
|
// peer dep of the dropdowns
|
7
|
-
'@progress/kendo-angular-treeview': '19.
|
7
|
+
'@progress/kendo-angular-treeview': '19.3.0-develop.1',
|
8
8
|
// peer dependency of kendo-angular-inputs
|
9
|
-
'@progress/kendo-angular-dialog': '19.
|
9
|
+
'@progress/kendo-angular-dialog': '19.3.0-develop.1',
|
10
10
|
// peer dependency of kendo-angular-icons
|
11
11
|
'@progress/kendo-svg-icons': '^4.0.0',
|
12
12
|
// peer dependency of kendo-angular-dateinputs
|
13
|
-
'@progress/kendo-angular-navigation': '19.
|
13
|
+
'@progress/kendo-angular-navigation': '19.3.0-develop.1',
|
14
14
|
} });
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
16
16
|
}
|