@progress/kendo-angular-listbox 17.0.0-develop.9 → 17.0.1-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 +31 -16
- package/data-binding.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/data-binding.directive.mjs +13 -6
- package/{esm2020 → esm2022}/item-selectable.directive.mjs +5 -3
- package/{esm2020 → esm2022}/item-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/keyboard-navigation.service.mjs +13 -11
- package/{esm2020 → esm2022}/listbox.component.mjs +124 -72
- package/{esm2020 → esm2022}/listbox.module.mjs +4 -4
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +66 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/selection.service.mjs +5 -7
- package/{fesm2020 → fesm2022}/progress-kendo-angular-listbox.mjs +223 -127
- package/item-selectable.directive.d.ts +1 -1
- package/listbox.component.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package.json +14 -20
- package/schematics/ngAdd/index.js +4 -4
- package/size.d.ts +1 -1
- package/toolbar.d.ts +3 -3
- package/util.d.ts +2 -2
- package/esm2020/localization/messages.mjs +0 -34
- package/fesm2015/progress-kendo-angular-listbox.mjs +0 -1362
- /package/{esm2020 → esm2022}/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-listbox.mjs +0 -0
- /package/{esm2020 → esm2022}/size.mjs +0 -0
- /package/{esm2020 → esm2022}/toolbar.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
|
@@ -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: '17.0.
|
|
27
|
+
publishDate: 1731429942,
|
|
28
|
+
version: '17.0.1-develop.1',
|
|
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
|
|
|
@@ -33,10 +33,8 @@ const packageMetadata = {
|
|
|
33
33
|
* @hidden
|
|
34
34
|
*/
|
|
35
35
|
class ListBoxSelectionService {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.selectedIndex = null;
|
|
39
|
-
}
|
|
36
|
+
onSelect = new EventEmitter();
|
|
37
|
+
selectedIndex = null;
|
|
40
38
|
select(index) {
|
|
41
39
|
this.onSelect.next({ index: index, prevIndex: this.selectedIndex });
|
|
42
40
|
this.selectedIndex = index;
|
|
@@ -47,10 +45,10 @@ class ListBoxSelectionService {
|
|
|
47
45
|
clearSelection() {
|
|
48
46
|
this.selectedIndex = null;
|
|
49
47
|
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxSelectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxSelectionService });
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
ListBoxSelectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxSelectionService });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxSelectionService, decorators: [{
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxSelectionService, decorators: [{
|
|
54
52
|
type: Injectable
|
|
55
53
|
}] });
|
|
56
54
|
|
|
@@ -74,13 +72,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
74
72
|
* ```
|
|
75
73
|
*/
|
|
76
74
|
class ItemTemplateDirective {
|
|
75
|
+
templateRef;
|
|
77
76
|
constructor(templateRef) {
|
|
78
77
|
this.templateRef = templateRef;
|
|
79
78
|
}
|
|
79
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
80
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
80
81
|
}
|
|
81
|
-
|
|
82
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
84
83
|
type: Directive,
|
|
85
84
|
args: [{
|
|
86
85
|
selector: '[kendoListBoxItemTemplate]',
|
|
@@ -196,17 +195,19 @@ const getTools = (names) => {
|
|
|
196
195
|
* @hidden
|
|
197
196
|
*/
|
|
198
197
|
class KeyboardNavigationService {
|
|
198
|
+
renderer;
|
|
199
|
+
zone;
|
|
200
|
+
selectedListboxItemIndex = 0;
|
|
201
|
+
focusedListboxItemIndex = 0;
|
|
202
|
+
focusedToolIndex = 0;
|
|
203
|
+
onDeleteEvent = new EventEmitter();
|
|
204
|
+
onMoveSelectedItem = new EventEmitter();
|
|
205
|
+
onTransferAllEvent = new EventEmitter();
|
|
206
|
+
onShiftSelectedItem = new EventEmitter();
|
|
207
|
+
onSelectionChange = new EventEmitter();
|
|
199
208
|
constructor(renderer, zone) {
|
|
200
209
|
this.renderer = renderer;
|
|
201
210
|
this.zone = zone;
|
|
202
|
-
this.selectedListboxItemIndex = 0;
|
|
203
|
-
this.focusedListboxItemIndex = 0;
|
|
204
|
-
this.focusedToolIndex = 0;
|
|
205
|
-
this.onDeleteEvent = new EventEmitter();
|
|
206
|
-
this.onMoveSelectedItem = new EventEmitter();
|
|
207
|
-
this.onTransferAllEvent = new EventEmitter();
|
|
208
|
-
this.onShiftSelectedItem = new EventEmitter();
|
|
209
|
-
this.onSelectionChange = new EventEmitter();
|
|
210
211
|
}
|
|
211
212
|
onKeyDown(event, toolsRef, toolbar, childListbox, parentListbox, listboxItems) {
|
|
212
213
|
const target = event.target;
|
|
@@ -462,10 +463,10 @@ class KeyboardNavigationService {
|
|
|
462
463
|
this.changeTabindex(previousItem, currentItem);
|
|
463
464
|
}
|
|
464
465
|
}
|
|
466
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KeyboardNavigationService, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
467
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KeyboardNavigationService });
|
|
465
468
|
}
|
|
466
|
-
|
|
467
|
-
KeyboardNavigationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KeyboardNavigationService });
|
|
468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: KeyboardNavigationService, decorators: [{
|
|
469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: KeyboardNavigationService, decorators: [{
|
|
469
470
|
type: Injectable
|
|
470
471
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
|
|
471
472
|
|
|
@@ -473,6 +474,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
473
474
|
* @hidden
|
|
474
475
|
*/
|
|
475
476
|
class ItemSelectableDirective {
|
|
477
|
+
selectionService;
|
|
478
|
+
index;
|
|
476
479
|
constructor(selectionService) {
|
|
477
480
|
this.selectionService = selectionService;
|
|
478
481
|
}
|
|
@@ -483,10 +486,10 @@ class ItemSelectableDirective {
|
|
|
483
486
|
event.stopPropagation();
|
|
484
487
|
this.selectionService.select(this.index);
|
|
485
488
|
}
|
|
489
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
490
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ItemSelectableDirective, isStandalone: true, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "mousedown": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
486
491
|
}
|
|
487
|
-
|
|
488
|
-
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemSelectableDirective, isStandalone: true, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "mousedown": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
490
493
|
type: Directive,
|
|
491
494
|
args: [{
|
|
492
495
|
selector: '[kendoListBoxItemSelectable]',
|
|
@@ -506,10 +509,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
506
509
|
* @hidden
|
|
507
510
|
*/
|
|
508
511
|
class Messages extends ComponentMessages {
|
|
512
|
+
/**
|
|
513
|
+
* The text of the `Move Up` button title.
|
|
514
|
+
*/
|
|
515
|
+
moveUp;
|
|
516
|
+
/**
|
|
517
|
+
* The text of the `Move Down` button title.
|
|
518
|
+
*/
|
|
519
|
+
moveDown;
|
|
520
|
+
/**
|
|
521
|
+
* The text of the `Remove` button tittle.
|
|
522
|
+
*/
|
|
523
|
+
remove;
|
|
524
|
+
/**
|
|
525
|
+
* The text of the `Transfer To` button title.
|
|
526
|
+
*/
|
|
527
|
+
transferTo;
|
|
528
|
+
/**
|
|
529
|
+
* The text of the `Transfer From` button title.
|
|
530
|
+
*/
|
|
531
|
+
transferFrom;
|
|
532
|
+
/**
|
|
533
|
+
* The text of the `Transfer All To` button title.
|
|
534
|
+
*/
|
|
535
|
+
transferAllTo;
|
|
536
|
+
/**
|
|
537
|
+
* The text of the `Transfer All From` button title.
|
|
538
|
+
*/
|
|
539
|
+
transferAllFrom;
|
|
540
|
+
/**
|
|
541
|
+
* The text displayed when there are no items.
|
|
542
|
+
*/
|
|
543
|
+
noDataText;
|
|
544
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
545
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: Messages, inputs: { moveUp: "moveUp", moveDown: "moveDown", remove: "remove", transferTo: "transferTo", transferFrom: "transferFrom", transferAllTo: "transferAllTo", transferAllFrom: "transferAllFrom", noDataText: "noDataText" }, usesInheritance: true, ngImport: i0 });
|
|
509
546
|
}
|
|
510
|
-
|
|
511
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: Messages, inputs: { moveUp: "moveUp", moveDown: "moveDown", remove: "remove", transferTo: "transferTo", transferFrom: "transferFrom", transferAllTo: "transferAllTo", transferAllFrom: "transferAllFrom", noDataText: "noDataText" }, usesInheritance: true, ngImport: i0 });
|
|
512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Messages, decorators: [{
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, decorators: [{
|
|
513
548
|
type: Directive
|
|
514
549
|
}], propDecorators: { moveUp: [{
|
|
515
550
|
type: Input
|
|
@@ -533,19 +568,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
533
568
|
* @hidden
|
|
534
569
|
*/
|
|
535
570
|
class LocalizedMessagesDirective extends Messages {
|
|
571
|
+
service;
|
|
536
572
|
constructor(service) {
|
|
537
573
|
super();
|
|
538
574
|
this.service = service;
|
|
539
575
|
}
|
|
576
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
577
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
578
|
+
{
|
|
579
|
+
provide: Messages,
|
|
580
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
581
|
+
}
|
|
582
|
+
], usesInheritance: true, ngImport: i0 });
|
|
540
583
|
}
|
|
541
|
-
|
|
542
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
543
|
-
{
|
|
544
|
-
provide: Messages,
|
|
545
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
546
|
-
}
|
|
547
|
-
], usesInheritance: true, ngImport: i0 });
|
|
548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
549
585
|
type: Directive,
|
|
550
586
|
args: [{
|
|
551
587
|
providers: [
|
|
@@ -567,66 +603,49 @@ let idx = 0;
|
|
|
567
603
|
* Represents the [Kendo UI ListBox component for Angular]({% slug overview_listbox %}).
|
|
568
604
|
*/
|
|
569
605
|
class ListBoxComponent {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
this.selectedTools = allTools;
|
|
614
|
-
/**
|
|
615
|
-
* @hidden
|
|
616
|
-
*/
|
|
617
|
-
this.caretAltLeftIcon = caretAltLeftIcon;
|
|
618
|
-
/**
|
|
619
|
-
* @hidden
|
|
620
|
-
*/
|
|
621
|
-
this.caretAltRightIcon = caretAltRightIcon;
|
|
622
|
-
this._size = DEFAULT_SIZE;
|
|
623
|
-
this.subs = new Subscription();
|
|
624
|
-
this.shouldFireFocusIn = true;
|
|
625
|
-
validatePackage(packageMetadata);
|
|
626
|
-
this.setToolbarClass(DEFAULT_TOOLBAR_POSITION);
|
|
627
|
-
this.setSizingClass(this.size);
|
|
628
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
629
|
-
}
|
|
606
|
+
keyboardNavigationService;
|
|
607
|
+
selectionService;
|
|
608
|
+
hostElement;
|
|
609
|
+
renderer;
|
|
610
|
+
zone;
|
|
611
|
+
localization;
|
|
612
|
+
changeDetector;
|
|
613
|
+
/**
|
|
614
|
+
* @hidden
|
|
615
|
+
*/
|
|
616
|
+
listboxClassName = true;
|
|
617
|
+
/**
|
|
618
|
+
* @hidden
|
|
619
|
+
*/
|
|
620
|
+
direction;
|
|
621
|
+
/**
|
|
622
|
+
* @hidden
|
|
623
|
+
*/
|
|
624
|
+
itemTemplate;
|
|
625
|
+
/**
|
|
626
|
+
* @hidden
|
|
627
|
+
*/
|
|
628
|
+
listboxElement;
|
|
629
|
+
/**
|
|
630
|
+
* @hidden
|
|
631
|
+
*/
|
|
632
|
+
listboxItems;
|
|
633
|
+
/**
|
|
634
|
+
* @hidden
|
|
635
|
+
*/
|
|
636
|
+
toolbarElement;
|
|
637
|
+
/**
|
|
638
|
+
* @hidden
|
|
639
|
+
*/
|
|
640
|
+
tools;
|
|
641
|
+
/**
|
|
642
|
+
* The fields of the data item that provide the text content of the nodes.
|
|
643
|
+
*/
|
|
644
|
+
textField;
|
|
645
|
+
/**
|
|
646
|
+
* The data which will be displayed by the ListBox.
|
|
647
|
+
*/
|
|
648
|
+
data = [];
|
|
630
649
|
/**
|
|
631
650
|
* Sets the size of the component.
|
|
632
651
|
*
|
|
@@ -660,6 +679,30 @@ class ListBoxComponent {
|
|
|
660
679
|
}
|
|
661
680
|
this.setToolbarClass(position);
|
|
662
681
|
}
|
|
682
|
+
/**
|
|
683
|
+
* The value of the aria-label attribute of the Listbox element.
|
|
684
|
+
*/
|
|
685
|
+
listboxLabel = 'Listbox';
|
|
686
|
+
/**
|
|
687
|
+
* The value of the aria-label attribute of the Listbox toolbar element.
|
|
688
|
+
*/
|
|
689
|
+
listboxToolbarLabel = 'Toolbar';
|
|
690
|
+
/**
|
|
691
|
+
* A function which determines if a specific item is disabled.
|
|
692
|
+
*/
|
|
693
|
+
itemDisabled = defaultItemDisabled;
|
|
694
|
+
/**
|
|
695
|
+
* Fires when the user selects a different ListBox item. Also fires when a node is moved, since that also changes its index.
|
|
696
|
+
*/
|
|
697
|
+
selectionChange = new EventEmitter();
|
|
698
|
+
/**
|
|
699
|
+
* Fires when the user clicks a ListBox item.
|
|
700
|
+
*/
|
|
701
|
+
actionClick = new EventEmitter();
|
|
702
|
+
/**
|
|
703
|
+
* @hidden
|
|
704
|
+
*/
|
|
705
|
+
getChildListbox = new EventEmitter();
|
|
663
706
|
/**
|
|
664
707
|
* @hidden
|
|
665
708
|
*/
|
|
@@ -672,6 +715,51 @@ class ListBoxComponent {
|
|
|
672
715
|
messageFor(key) {
|
|
673
716
|
return this.localization.get(key);
|
|
674
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* @hidden
|
|
720
|
+
*/
|
|
721
|
+
selectedTools = allTools;
|
|
722
|
+
/**
|
|
723
|
+
* @hidden
|
|
724
|
+
*/
|
|
725
|
+
listboxId;
|
|
726
|
+
/**
|
|
727
|
+
* @hidden
|
|
728
|
+
*/
|
|
729
|
+
toolbarId;
|
|
730
|
+
/**
|
|
731
|
+
* @hidden
|
|
732
|
+
*/
|
|
733
|
+
childListbox;
|
|
734
|
+
/**
|
|
735
|
+
* @hidden
|
|
736
|
+
*/
|
|
737
|
+
parentListbox;
|
|
738
|
+
/**
|
|
739
|
+
* @hidden
|
|
740
|
+
*/
|
|
741
|
+
caretAltLeftIcon = caretAltLeftIcon;
|
|
742
|
+
/**
|
|
743
|
+
* @hidden
|
|
744
|
+
*/
|
|
745
|
+
caretAltRightIcon = caretAltRightIcon;
|
|
746
|
+
localizationSubscription;
|
|
747
|
+
_size = DEFAULT_SIZE;
|
|
748
|
+
subs = new Subscription();
|
|
749
|
+
shouldFireFocusIn = true;
|
|
750
|
+
constructor(keyboardNavigationService, selectionService, hostElement, renderer, zone, localization, changeDetector) {
|
|
751
|
+
this.keyboardNavigationService = keyboardNavigationService;
|
|
752
|
+
this.selectionService = selectionService;
|
|
753
|
+
this.hostElement = hostElement;
|
|
754
|
+
this.renderer = renderer;
|
|
755
|
+
this.zone = zone;
|
|
756
|
+
this.localization = localization;
|
|
757
|
+
this.changeDetector = changeDetector;
|
|
758
|
+
validatePackage(packageMetadata);
|
|
759
|
+
this.setToolbarClass(DEFAULT_TOOLBAR_POSITION);
|
|
760
|
+
this.setSizingClass(this.size);
|
|
761
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
762
|
+
}
|
|
675
763
|
ngOnInit() {
|
|
676
764
|
// This event emitter gives us the connectedWith value from the DataBinding directive
|
|
677
765
|
this.getChildListbox.emit();
|
|
@@ -889,17 +977,16 @@ class ListBoxComponent {
|
|
|
889
977
|
setSizingClass(size) {
|
|
890
978
|
this.renderer.addClass(this.hostElement.nativeElement, `k-listbox-${sizeClassMap[size]}`);
|
|
891
979
|
}
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
},
|
|
902
|
-
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "listboxElement", first: true, predicate: ["listbox"], descendants: true }, { propertyName: "toolbarElement", first: true, predicate: ["toolbar"], descendants: true }, { propertyName: "listboxItems", predicate: ["listboxItems"], descendants: true }, { propertyName: "tools", predicate: ["tools"], descendants: true }], ngImport: i0, template: `
|
|
980
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxComponent, deps: [{ token: KeyboardNavigationService }, { token: ListBoxSelectionService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
981
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ListBoxComponent, isStandalone: true, selector: "kendo-listbox", inputs: { textField: "textField", data: "data", size: "size", toolbar: "toolbar", listboxLabel: "listboxLabel", listboxToolbarLabel: "listboxToolbarLabel", itemDisabled: "itemDisabled" }, outputs: { selectionChange: "selectionChange", actionClick: "actionClick", getChildListbox: "getChildListbox" }, host: { properties: { "class.k-listbox": "this.listboxClassName", "attr.dir": "this.direction" } }, providers: [
|
|
982
|
+
ListBoxSelectionService,
|
|
983
|
+
KeyboardNavigationService,
|
|
984
|
+
LocalizationService,
|
|
985
|
+
{
|
|
986
|
+
provide: L10N_PREFIX,
|
|
987
|
+
useValue: 'kendo.listbox'
|
|
988
|
+
},
|
|
989
|
+
], queries: [{ propertyName: "itemTemplate", first: true, predicate: ItemTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "listboxElement", first: true, predicate: ["listbox"], descendants: true }, { propertyName: "toolbarElement", first: true, predicate: ["toolbar"], descendants: true }, { propertyName: "listboxItems", predicate: ["listboxItems"], descendants: true }, { propertyName: "tools", predicate: ["tools"], descendants: true }], ngImport: i0, template: `
|
|
903
990
|
<ng-container kendoListBoxLocalizedMessages
|
|
904
991
|
i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
|
|
905
992
|
moveUp="Move Up"
|
|
@@ -992,7 +1079,8 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
992
1079
|
</div>
|
|
993
1080
|
</div>
|
|
994
1081
|
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoListBoxLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
995
|
-
|
|
1082
|
+
}
|
|
1083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
996
1084
|
type: Component,
|
|
997
1085
|
args: [{
|
|
998
1086
|
selector: 'kendo-listbox',
|
|
@@ -1148,11 +1236,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1148
1236
|
* A directive which manages the functoinality of the ListBox tools out of the box, and modifies the provided data accordingly.
|
|
1149
1237
|
*/
|
|
1150
1238
|
class DataBindingDirective {
|
|
1239
|
+
listbox;
|
|
1240
|
+
/**
|
|
1241
|
+
* Specifies the ListBoxComponent instance with which the current ListBox should be connected.
|
|
1242
|
+
* When two listboxes are linked via this input, one can transfer items between them.
|
|
1243
|
+
*/
|
|
1244
|
+
connectedWith;
|
|
1245
|
+
actionClickSub = new Subscription();
|
|
1246
|
+
selectedBoxSub = new Subscription();
|
|
1247
|
+
connectedWithSub = new Subscription();
|
|
1248
|
+
selectedBox;
|
|
1151
1249
|
constructor(listbox) {
|
|
1152
1250
|
this.listbox = listbox;
|
|
1153
|
-
this.actionClickSub = new Subscription();
|
|
1154
|
-
this.selectedBoxSub = new Subscription();
|
|
1155
|
-
this.connectedWithSub = new Subscription();
|
|
1156
1251
|
this.selectedBox = this.listbox;
|
|
1157
1252
|
this.connectedWithSub.add(this.listbox.getChildListbox.subscribe(() => {
|
|
1158
1253
|
this.listbox.childListbox = this.connectedWith;
|
|
@@ -1268,10 +1363,10 @@ class DataBindingDirective {
|
|
|
1268
1363
|
target.selectItem(target.data.length - 1);
|
|
1269
1364
|
this.selectedBox = target;
|
|
1270
1365
|
}
|
|
1366
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1367
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DataBindingDirective, isStandalone: true, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
1271
1368
|
}
|
|
1272
|
-
|
|
1273
|
-
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DataBindingDirective, isStandalone: true, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
1274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
1369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
1275
1370
|
type: Directive,
|
|
1276
1371
|
args: [{
|
|
1277
1372
|
selector: '[kendoListBoxDataBinding]',
|
|
@@ -1286,6 +1381,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1286
1381
|
* ([see example](slug:globalization_listbox#toc-custom-messages)).
|
|
1287
1382
|
*/
|
|
1288
1383
|
class CustomMessagesComponent extends Messages {
|
|
1384
|
+
service;
|
|
1289
1385
|
constructor(service) {
|
|
1290
1386
|
super();
|
|
1291
1387
|
this.service = service;
|
|
@@ -1293,15 +1389,15 @@ class CustomMessagesComponent extends Messages {
|
|
|
1293
1389
|
get override() {
|
|
1294
1390
|
return true;
|
|
1295
1391
|
}
|
|
1392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1393
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-listbox-messages", providers: [
|
|
1394
|
+
{
|
|
1395
|
+
provide: Messages,
|
|
1396
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
1397
|
+
}
|
|
1398
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1296
1399
|
}
|
|
1297
|
-
|
|
1298
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-listbox-messages", providers: [
|
|
1299
|
-
{
|
|
1300
|
-
provide: Messages,
|
|
1301
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
1302
|
-
}
|
|
1303
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
1305
1401
|
type: Component,
|
|
1306
1402
|
args: [{
|
|
1307
1403
|
providers: [
|
|
@@ -1332,11 +1428,11 @@ const KENDO_LISTBOX = [
|
|
|
1332
1428
|
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
|
|
1333
1429
|
*/
|
|
1334
1430
|
class ListBoxModule {
|
|
1431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1432
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ListBoxModule, imports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective, CustomMessagesComponent], exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective, CustomMessagesComponent] });
|
|
1433
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ListBoxComponent] });
|
|
1335
1434
|
}
|
|
1336
|
-
|
|
1337
|
-
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, imports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective, CustomMessagesComponent], exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective, CustomMessagesComponent] });
|
|
1338
|
-
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ListBoxComponent, CustomMessagesComponent] });
|
|
1339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
1340
1436
|
type: NgModule,
|
|
1341
1437
|
args: [{
|
|
1342
1438
|
imports: [...KENDO_LISTBOX],
|
|
@@ -14,5 +14,5 @@ export declare class ItemSelectableDirective {
|
|
|
14
14
|
get selectedClassName(): boolean;
|
|
15
15
|
onClick(event: any): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemSelectableDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemSelectableDirective, "[kendoListBoxItemSelectable]", never, { "index": "index"; }, {}, never, never, true, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemSelectableDirective, "[kendoListBoxItemSelectable]", never, { "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
package/listbox.component.d.ts
CHANGED
|
@@ -182,5 +182,5 @@ export declare class ListBoxComponent implements OnInit, AfterViewInit, OnDestro
|
|
|
182
182
|
private setToolbarClass;
|
|
183
183
|
private setSizingClass;
|
|
184
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListBoxComponent, never>;
|
|
185
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListBoxComponent, "kendo-listbox", never, { "textField": "textField"; "data": "data"; "size": "size"; "toolbar": "toolbar"; "listboxLabel": "listboxLabel"; "listboxToolbarLabel": "listboxToolbarLabel"; "itemDisabled": "itemDisabled"; }, { "selectionChange": "selectionChange"; "actionClick": "actionClick"; "getChildListbox": "getChildListbox"; }, ["itemTemplate"], never, true, never>;
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListBoxComponent, "kendo-listbox", never, { "textField": { "alias": "textField"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "toolbar": { "alias": "toolbar"; "required": false; }; "listboxLabel": { "alias": "listboxLabel"; "required": false; }; "listboxToolbarLabel": { "alias": "listboxToolbarLabel"; "required": false; }; "itemDisabled": { "alias": "itemDisabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "actionClick": "actionClick"; "getChildListbox": "getChildListbox"; }, ["itemTemplate"], never, true, never>;
|
|
186
186
|
}
|
|
@@ -41,5 +41,5 @@ export declare class Messages extends ComponentMessages {
|
|
|
41
41
|
*/
|
|
42
42
|
noDataText: string;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
|
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "moveUp": "moveUp"; "moveDown": "moveDown"; "remove": "remove"; "transferTo": "transferTo"; "transferFrom": "transferFrom"; "transferAllTo": "transferAllTo"; "transferAllFrom": "transferAllFrom"; "noDataText": "noDataText"; }, {}, never, never, false, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "moveUp": { "alias": "moveUp"; "required": false; }; "moveDown": { "alias": "moveDown"; "required": false; }; "remove": { "alias": "remove"; "required": false; }; "transferTo": { "alias": "transferTo"; "required": false; }; "transferFrom": { "alias": "transferFrom"; "required": false; }; "transferAllTo": { "alias": "transferAllTo"; "required": false; }; "transferAllFrom": { "alias": "transferAllFrom"; "required": false; }; "noDataText": { "alias": "noDataText"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-listbox",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.1-develop.1",
|
|
4
4
|
"description": "Kendo UI for Angular ListBox",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -18,27 +18,23 @@
|
|
|
18
18
|
"friendlyName": "ListBox"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@angular/animations": "
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/platform-browser": "
|
|
21
|
+
"@angular/animations": "16 - 18",
|
|
22
|
+
"@angular/common": "16 - 18",
|
|
23
|
+
"@angular/core": "16 - 18",
|
|
24
|
+
"@angular/platform-browser": "16 - 18",
|
|
25
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
-
"@progress/kendo-angular-buttons": "17.0.
|
|
27
|
-
"@progress/kendo-angular-common": "17.0.
|
|
28
|
-
"@progress/kendo-angular-popup": "17.0.
|
|
26
|
+
"@progress/kendo-angular-buttons": "17.0.1-develop.1",
|
|
27
|
+
"@progress/kendo-angular-common": "17.0.1-develop.1",
|
|
28
|
+
"@progress/kendo-angular-popup": "17.0.1-develop.1",
|
|
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": "17.0.
|
|
34
|
-
"@progress/kendo-common": "^0.
|
|
33
|
+
"@progress/kendo-angular-schematics": "17.0.1-develop.1",
|
|
34
|
+
"@progress/kendo-common": "^1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"schematics": "./schematics/collection.json",
|
|
37
|
-
"module": "
|
|
38
|
-
"es2020": "fesm2020/progress-kendo-angular-listbox.mjs",
|
|
39
|
-
"esm2020": "esm2020/progress-kendo-angular-listbox.mjs",
|
|
40
|
-
"fesm2020": "fesm2020/progress-kendo-angular-listbox.mjs",
|
|
41
|
-
"fesm2015": "fesm2015/progress-kendo-angular-listbox.mjs",
|
|
37
|
+
"module": "fesm2022/progress-kendo-angular-listbox.mjs",
|
|
42
38
|
"typings": "index.d.ts",
|
|
43
39
|
"exports": {
|
|
44
40
|
"./package.json": {
|
|
@@ -46,11 +42,9 @@
|
|
|
46
42
|
},
|
|
47
43
|
".": {
|
|
48
44
|
"types": "./index.d.ts",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"node": "./fesm2015/progress-kendo-angular-listbox.mjs",
|
|
53
|
-
"default": "./fesm2020/progress-kendo-angular-listbox.mjs"
|
|
45
|
+
"esm2022": "./esm2022/progress-kendo-angular-listbox.mjs",
|
|
46
|
+
"esm": "./esm2022/progress-kendo-angular-listbox.mjs",
|
|
47
|
+
"default": "./fesm2022/progress-kendo-angular-listbox.mjs"
|
|
54
48
|
}
|
|
55
49
|
},
|
|
56
50
|
"sideEffects": false
|
|
@@ -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': '17.0.
|
|
10
|
-
'@progress/kendo-angular-common': '17.0.
|
|
11
|
-
'@progress/kendo-angular-l10n': '17.0.
|
|
9
|
+
'@progress/kendo-angular-buttons': '17.0.1-develop.1',
|
|
10
|
+
'@progress/kendo-angular-common': '17.0.1-develop.1',
|
|
11
|
+
'@progress/kendo-angular-l10n': '17.0.1-develop.1',
|
|
12
12
|
// Peer of kendo-angular-buttons
|
|
13
|
-
'@progress/kendo-angular-popup': '17.0.
|
|
13
|
+
'@progress/kendo-angular-popup': '17.0.1-develop.1'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|
package/size.d.ts
CHANGED