@progress/kendo-angular-listbox 15.5.0-develop.1 → 15.5.0-develop.10
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/esm2020/constants.mjs +4 -4
- package/esm2020/data-binding.directive.mjs +2 -2
- package/esm2020/keyboard-navigation.service.mjs +1 -1
- package/esm2020/listbox.component.mjs +3 -3
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-listbox.mjs +13 -13
- package/fesm2020/progress-kendo-angular-listbox.mjs +13 -13
- package/package.json +5 -5
- package/schematics/ngAdd/index.js +4 -4
package/esm2020/constants.mjs
CHANGED
|
@@ -26,14 +26,14 @@ export const allTools = [
|
|
|
26
26
|
{
|
|
27
27
|
name: 'transferTo',
|
|
28
28
|
label: 'Transfer To',
|
|
29
|
-
icon: 'caret-alt-
|
|
30
|
-
svgIcon:
|
|
29
|
+
icon: 'caret-alt-right',
|
|
30
|
+
svgIcon: caretAltRightIcon
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
name: 'transferFrom',
|
|
34
34
|
label: 'Transfer From',
|
|
35
|
-
icon: 'caret-alt-
|
|
36
|
-
svgIcon:
|
|
35
|
+
icon: 'caret-alt-left',
|
|
36
|
+
svgIcon: caretAltLeftIcon
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
name: 'transferAllTo',
|
|
@@ -32,11 +32,11 @@ export class DataBindingDirective {
|
|
|
32
32
|
this.moveVertically('down');
|
|
33
33
|
break;
|
|
34
34
|
}
|
|
35
|
-
case '
|
|
35
|
+
case 'transferFrom': {
|
|
36
36
|
this.transferItem(this.connectedWith, this.listbox);
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
|
-
case '
|
|
39
|
+
case 'transferTo': {
|
|
40
40
|
this.transferItem(this.listbox, this.connectedWith);
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
@@ -209,7 +209,7 @@ export class KeyboardNavigationService {
|
|
|
209
209
|
}
|
|
210
210
|
transferItem(keyCode, childListbox, parentListbox, listboxItems) {
|
|
211
211
|
const isArrowRight = keyCode === Keys.ArrowRight;
|
|
212
|
-
const actionToPerform = isArrowRight ? '
|
|
212
|
+
const actionToPerform = isArrowRight ? 'transferTo' : 'transferFrom';
|
|
213
213
|
this.onShiftSelectedItem.emit(actionToPerform);
|
|
214
214
|
const adjustTabindex = (items, firstItem, currentItem) => {
|
|
215
215
|
items.forEach(item => {
|
|
@@ -164,14 +164,14 @@ export class ListBoxComponent {
|
|
|
164
164
|
* @hidden
|
|
165
165
|
*/
|
|
166
166
|
performAction(actionName) {
|
|
167
|
-
const
|
|
167
|
+
const isActionTransferFrom = actionName === 'transferFrom' || actionName === 'transferAllFrom';
|
|
168
168
|
const isListboxChild = this.parentListbox && !this.childListbox;
|
|
169
169
|
const isListboxParentAndChild = !!(this.parentListbox && this.childListbox);
|
|
170
170
|
const isListboxParent = !!(this.childListbox || (!this.childListbox && !this.parentListbox));
|
|
171
|
-
if (isListboxChild || (isListboxParentAndChild &&
|
|
171
|
+
if (isListboxChild || (isListboxParentAndChild && isActionTransferFrom)) {
|
|
172
172
|
this.parentListbox.actionClick.next(actionName);
|
|
173
173
|
}
|
|
174
|
-
else if (isListboxParent || (isListboxParentAndChild && !
|
|
174
|
+
else if (isListboxParent || (isListboxParentAndChild && !isActionTransferFrom)) {
|
|
175
175
|
this.actionClick.next(actionName);
|
|
176
176
|
}
|
|
177
177
|
const toolsRef = this.tools.toArray() || this.parentListbox.tools.toArray();
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-listbox',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '15.5.0-develop.
|
|
12
|
+
publishDate: 1712951566,
|
|
13
|
+
version: '15.5.0-develop.10',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -7,7 +7,7 @@ import { EventEmitter, Injectable, Directive, Input, forwardRef, HostBinding, Ho
|
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { getter } from '@progress/kendo-common';
|
|
10
|
-
import { caretAltUpIcon, caretAltDownIcon,
|
|
10
|
+
import { caretAltUpIcon, caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, caretDoubleAltRightIcon, caretDoubleAltLeftIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
11
|
import { Keys, isChanged } from '@progress/kendo-angular-common';
|
|
12
12
|
import { take } from 'rxjs/operators';
|
|
13
13
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -24,8 +24,8 @@ const packageMetadata = {
|
|
|
24
24
|
name: '@progress/kendo-angular-listbox',
|
|
25
25
|
productName: 'Kendo UI for Angular',
|
|
26
26
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
27
|
-
publishDate:
|
|
28
|
-
version: '15.5.0-develop.
|
|
27
|
+
publishDate: 1712951566,
|
|
28
|
+
version: '15.5.0-develop.10',
|
|
29
29
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -110,14 +110,14 @@ const allTools = [
|
|
|
110
110
|
{
|
|
111
111
|
name: 'transferTo',
|
|
112
112
|
label: 'Transfer To',
|
|
113
|
-
icon: 'caret-alt-
|
|
114
|
-
svgIcon:
|
|
113
|
+
icon: 'caret-alt-right',
|
|
114
|
+
svgIcon: caretAltRightIcon
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: 'transferFrom',
|
|
118
118
|
label: 'Transfer From',
|
|
119
|
-
icon: 'caret-alt-
|
|
120
|
-
svgIcon:
|
|
119
|
+
icon: 'caret-alt-left',
|
|
120
|
+
svgIcon: caretAltLeftIcon
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: 'transferAllTo',
|
|
@@ -394,7 +394,7 @@ class KeyboardNavigationService {
|
|
|
394
394
|
}
|
|
395
395
|
transferItem(keyCode, childListbox, parentListbox, listboxItems) {
|
|
396
396
|
const isArrowRight = keyCode === Keys.ArrowRight;
|
|
397
|
-
const actionToPerform = isArrowRight ? '
|
|
397
|
+
const actionToPerform = isArrowRight ? 'transferTo' : 'transferFrom';
|
|
398
398
|
this.onShiftSelectedItem.emit(actionToPerform);
|
|
399
399
|
const adjustTabindex = (items, firstItem, currentItem) => {
|
|
400
400
|
items.forEach(item => {
|
|
@@ -703,14 +703,14 @@ class ListBoxComponent {
|
|
|
703
703
|
*/
|
|
704
704
|
performAction(actionName) {
|
|
705
705
|
var _a, _b;
|
|
706
|
-
const
|
|
706
|
+
const isActionTransferFrom = actionName === 'transferFrom' || actionName === 'transferAllFrom';
|
|
707
707
|
const isListboxChild = this.parentListbox && !this.childListbox;
|
|
708
708
|
const isListboxParentAndChild = !!(this.parentListbox && this.childListbox);
|
|
709
709
|
const isListboxParent = !!(this.childListbox || (!this.childListbox && !this.parentListbox));
|
|
710
|
-
if (isListboxChild || (isListboxParentAndChild &&
|
|
710
|
+
if (isListboxChild || (isListboxParentAndChild && isActionTransferFrom)) {
|
|
711
711
|
this.parentListbox.actionClick.next(actionName);
|
|
712
712
|
}
|
|
713
|
-
else if (isListboxParent || (isListboxParentAndChild && !
|
|
713
|
+
else if (isListboxParent || (isListboxParentAndChild && !isActionTransferFrom)) {
|
|
714
714
|
this.actionClick.next(actionName);
|
|
715
715
|
}
|
|
716
716
|
const toolsRef = this.tools.toArray() || this.parentListbox.tools.toArray();
|
|
@@ -1170,11 +1170,11 @@ class DataBindingDirective {
|
|
|
1170
1170
|
this.moveVertically('down');
|
|
1171
1171
|
break;
|
|
1172
1172
|
}
|
|
1173
|
-
case '
|
|
1173
|
+
case 'transferFrom': {
|
|
1174
1174
|
this.transferItem(this.connectedWith, this.listbox);
|
|
1175
1175
|
break;
|
|
1176
1176
|
}
|
|
1177
|
-
case '
|
|
1177
|
+
case 'transferTo': {
|
|
1178
1178
|
this.transferItem(this.listbox, this.connectedWith);
|
|
1179
1179
|
break;
|
|
1180
1180
|
}
|
|
@@ -7,7 +7,7 @@ import { EventEmitter, Injectable, Directive, Input, forwardRef, HostBinding, Ho
|
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { getter } from '@progress/kendo-common';
|
|
10
|
-
import { caretAltUpIcon, caretAltDownIcon,
|
|
10
|
+
import { caretAltUpIcon, caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, caretDoubleAltRightIcon, caretDoubleAltLeftIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
11
|
import { Keys, isChanged } from '@progress/kendo-angular-common';
|
|
12
12
|
import { take } from 'rxjs/operators';
|
|
13
13
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -24,8 +24,8 @@ const packageMetadata = {
|
|
|
24
24
|
name: '@progress/kendo-angular-listbox',
|
|
25
25
|
productName: 'Kendo UI for Angular',
|
|
26
26
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
27
|
-
publishDate:
|
|
28
|
-
version: '15.5.0-develop.
|
|
27
|
+
publishDate: 1712951566,
|
|
28
|
+
version: '15.5.0-develop.10',
|
|
29
29
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -110,14 +110,14 @@ const allTools = [
|
|
|
110
110
|
{
|
|
111
111
|
name: 'transferTo',
|
|
112
112
|
label: 'Transfer To',
|
|
113
|
-
icon: 'caret-alt-
|
|
114
|
-
svgIcon:
|
|
113
|
+
icon: 'caret-alt-right',
|
|
114
|
+
svgIcon: caretAltRightIcon
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: 'transferFrom',
|
|
118
118
|
label: 'Transfer From',
|
|
119
|
-
icon: 'caret-alt-
|
|
120
|
-
svgIcon:
|
|
119
|
+
icon: 'caret-alt-left',
|
|
120
|
+
svgIcon: caretAltLeftIcon
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: 'transferAllTo',
|
|
@@ -391,7 +391,7 @@ class KeyboardNavigationService {
|
|
|
391
391
|
}
|
|
392
392
|
transferItem(keyCode, childListbox, parentListbox, listboxItems) {
|
|
393
393
|
const isArrowRight = keyCode === Keys.ArrowRight;
|
|
394
|
-
const actionToPerform = isArrowRight ? '
|
|
394
|
+
const actionToPerform = isArrowRight ? 'transferTo' : 'transferFrom';
|
|
395
395
|
this.onShiftSelectedItem.emit(actionToPerform);
|
|
396
396
|
const adjustTabindex = (items, firstItem, currentItem) => {
|
|
397
397
|
items.forEach(item => {
|
|
@@ -697,14 +697,14 @@ class ListBoxComponent {
|
|
|
697
697
|
* @hidden
|
|
698
698
|
*/
|
|
699
699
|
performAction(actionName) {
|
|
700
|
-
const
|
|
700
|
+
const isActionTransferFrom = actionName === 'transferFrom' || actionName === 'transferAllFrom';
|
|
701
701
|
const isListboxChild = this.parentListbox && !this.childListbox;
|
|
702
702
|
const isListboxParentAndChild = !!(this.parentListbox && this.childListbox);
|
|
703
703
|
const isListboxParent = !!(this.childListbox || (!this.childListbox && !this.parentListbox));
|
|
704
|
-
if (isListboxChild || (isListboxParentAndChild &&
|
|
704
|
+
if (isListboxChild || (isListboxParentAndChild && isActionTransferFrom)) {
|
|
705
705
|
this.parentListbox.actionClick.next(actionName);
|
|
706
706
|
}
|
|
707
|
-
else if (isListboxParent || (isListboxParentAndChild && !
|
|
707
|
+
else if (isListboxParent || (isListboxParentAndChild && !isActionTransferFrom)) {
|
|
708
708
|
this.actionClick.next(actionName);
|
|
709
709
|
}
|
|
710
710
|
const toolsRef = this.tools.toArray() || this.parentListbox.tools.toArray();
|
|
@@ -1161,11 +1161,11 @@ class DataBindingDirective {
|
|
|
1161
1161
|
this.moveVertically('down');
|
|
1162
1162
|
break;
|
|
1163
1163
|
}
|
|
1164
|
-
case '
|
|
1164
|
+
case 'transferFrom': {
|
|
1165
1165
|
this.transferItem(this.connectedWith, this.listbox);
|
|
1166
1166
|
break;
|
|
1167
1167
|
}
|
|
1168
|
-
case '
|
|
1168
|
+
case 'transferTo': {
|
|
1169
1169
|
this.transferItem(this.listbox, this.connectedWith);
|
|
1170
1170
|
break;
|
|
1171
1171
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-listbox",
|
|
3
|
-
"version": "15.5.0-develop.
|
|
3
|
+
"version": "15.5.0-develop.10",
|
|
4
4
|
"description": "Kendo UI for Angular ListBox",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"@angular/core": "13 - 17",
|
|
24
24
|
"@angular/platform-browser": "13 - 17",
|
|
25
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
-
"@progress/kendo-angular-buttons": "15.5.0-develop.
|
|
27
|
-
"@progress/kendo-angular-common": "15.5.0-develop.
|
|
28
|
-
"@progress/kendo-angular-popup": "15.5.0-develop.
|
|
26
|
+
"@progress/kendo-angular-buttons": "15.5.0-develop.10",
|
|
27
|
+
"@progress/kendo-angular-common": "15.5.0-develop.10",
|
|
28
|
+
"@progress/kendo-angular-popup": "15.5.0-develop.10",
|
|
29
29
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.1",
|
|
33
|
-
"@progress/kendo-angular-schematics": "15.5.0-develop.
|
|
33
|
+
"@progress/kendo-angular-schematics": "15.5.0-develop.10",
|
|
34
34
|
"@progress/kendo-common": "^0.2.2"
|
|
35
35
|
},
|
|
36
36
|
"schematics": "./schematics/collection.json",
|
|
@@ -6,11 +6,11 @@ function default_1(options) {
|
|
|
6
6
|
// Additional dependencies to install.
|
|
7
7
|
// See https://github.com/telerik/kendo-schematics/issues/28
|
|
8
8
|
peerDependencies: {
|
|
9
|
-
'@progress/kendo-angular-buttons': '15.5.0-develop.
|
|
10
|
-
'@progress/kendo-angular-common': '15.5.0-develop.
|
|
11
|
-
'@progress/kendo-angular-l10n': '15.5.0-develop.
|
|
9
|
+
'@progress/kendo-angular-buttons': '15.5.0-develop.10',
|
|
10
|
+
'@progress/kendo-angular-common': '15.5.0-develop.10',
|
|
11
|
+
'@progress/kendo-angular-l10n': '15.5.0-develop.10',
|
|
12
12
|
// Peer of kendo-angular-buttons
|
|
13
|
-
'@progress/kendo-angular-popup': '15.5.0-develop.
|
|
13
|
+
'@progress/kendo-angular-popup': '15.5.0-develop.10'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|