@progress/kendo-angular-listbox 16.5.0 → 16.6.0-develop.2
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/data-binding.directive.d.ts +1 -1
- package/directives.d.ts +13 -0
- package/esm2020/data-binding.directive.mjs +3 -2
- package/esm2020/directives.mjs +19 -0
- package/esm2020/index.mjs +1 -0
- package/esm2020/item-selectable.directive.mjs +3 -2
- package/esm2020/item-template.directive.mjs +3 -2
- package/esm2020/listbox.component.mjs +9 -6
- package/esm2020/listbox.module.mjs +15 -31
- package/esm2020/localization/custom-messages.component.mjs +3 -2
- package/esm2020/localization/localized-messages.directive.mjs +3 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-listbox.mjs +69 -68
- package/fesm2020/progress-kendo-angular-listbox.mjs +69 -68
- package/index.d.ts +1 -0
- package/item-selectable.directive.d.ts +1 -1
- package/item-template.directive.d.ts +1 -1
- package/listbox.component.d.ts +1 -1
- package/listbox.module.d.ts +6 -9
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/package.json +5 -5
- package/schematics/ngAdd/index.js +4 -4
|
@@ -33,5 +33,5 @@ export declare class DataBindingDirective implements OnChanges, OnDestroy {
|
|
|
33
33
|
private transferItem;
|
|
34
34
|
private transferAll;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataBindingDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DataBindingDirective, "[kendoListBoxDataBinding]", never, { "connectedWith": "connectedWith"; }, {}, never, never,
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DataBindingDirective, "[kendoListBoxDataBinding]", never, { "connectedWith": "connectedWith"; }, {}, never, never, true, never>;
|
|
37
37
|
}
|
package/directives.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DataBindingDirective } from "./data-binding.directive";
|
|
6
|
+
import { ItemSelectableDirective } from "./item-selectable.directive";
|
|
7
|
+
import { ItemTemplateDirective } from "./item-template.directive";
|
|
8
|
+
import { ListBoxComponent } from "./listbox.component";
|
|
9
|
+
import { CustomMessagesComponent } from "./localization/custom-messages.component";
|
|
10
|
+
/**
|
|
11
|
+
* Utility array that contains all `@progress/kendo-angular-listbox` related components and directives
|
|
12
|
+
*/
|
|
13
|
+
export declare const KENDO_LISTBOX: readonly [typeof ListBoxComponent, typeof ItemTemplateDirective, typeof ItemSelectableDirective, typeof DataBindingDirective, typeof CustomMessagesComponent];
|
|
@@ -135,11 +135,12 @@ export class DataBindingDirective {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, deps: [{ token: i1.ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
138
|
-
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DataBindingDirective, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
138
|
+
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 });
|
|
139
139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
140
140
|
type: Directive,
|
|
141
141
|
args: [{
|
|
142
|
-
selector: '[kendoListBoxDataBinding]'
|
|
142
|
+
selector: '[kendoListBoxDataBinding]',
|
|
143
|
+
standalone: true
|
|
143
144
|
}]
|
|
144
145
|
}], ctorParameters: function () { return [{ type: i1.ListBoxComponent }]; }, propDecorators: { connectedWith: [{
|
|
145
146
|
type: Input
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DataBindingDirective } from "./data-binding.directive";
|
|
6
|
+
import { ItemSelectableDirective } from "./item-selectable.directive";
|
|
7
|
+
import { ItemTemplateDirective } from "./item-template.directive";
|
|
8
|
+
import { ListBoxComponent } from "./listbox.component";
|
|
9
|
+
import { CustomMessagesComponent } from "./localization/custom-messages.component";
|
|
10
|
+
/**
|
|
11
|
+
* Utility array that contains all `@progress/kendo-angular-listbox` related components and directives
|
|
12
|
+
*/
|
|
13
|
+
export const KENDO_LISTBOX = [
|
|
14
|
+
ListBoxComponent,
|
|
15
|
+
ItemTemplateDirective,
|
|
16
|
+
ItemSelectableDirective,
|
|
17
|
+
DataBindingDirective,
|
|
18
|
+
CustomMessagesComponent,
|
|
19
|
+
];
|
package/esm2020/index.mjs
CHANGED
|
@@ -9,3 +9,4 @@ export { ItemTemplateDirective } from './item-template.directive';
|
|
|
9
9
|
export { ItemSelectableDirective } from './item-selectable.directive';
|
|
10
10
|
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
11
11
|
export { LocalizedMessagesDirective } from "./localization/localized-messages.directive";
|
|
12
|
+
export * from './directives';
|
|
@@ -22,11 +22,12 @@ export class ItemSelectableDirective {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: i1.ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "mousedown": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
25
|
+
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 });
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
|
-
selector: '[kendoListBoxItemSelectable]'
|
|
29
|
+
selector: '[kendoListBoxItemSelectable]',
|
|
30
|
+
standalone: true
|
|
30
31
|
}]
|
|
31
32
|
}], ctorParameters: function () { return [{ type: i1.ListBoxSelectionService }]; }, propDecorators: { index: [{
|
|
32
33
|
type: Input
|
|
@@ -29,10 +29,11 @@ export class ItemTemplateDirective {
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
32
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
33
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
|
-
selector: '[kendoListBoxItemTemplate]'
|
|
36
|
+
selector: '[kendoListBoxItemTemplate]',
|
|
37
|
+
standalone: true
|
|
37
38
|
}]
|
|
38
39
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
@@ -12,18 +12,19 @@ import { ListBoxSelectionService } from './selection.service';
|
|
|
12
12
|
import { ItemTemplateDirective } from './item-template.directive';
|
|
13
13
|
import { defaultItemDisabled, fieldAccessor, getTools } from './util';
|
|
14
14
|
import { allTools, DEFAULT_TOOLBAR_POSITION, sizeClassMap, actionsClasses } from './constants';
|
|
15
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
15
16
|
import { KeyboardNavigationService } from './keyboard-navigation.service';
|
|
16
17
|
import { take } from 'rxjs/operators';
|
|
17
18
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
18
19
|
import { caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
|
|
20
|
+
import { ItemSelectableDirective } from './item-selectable.directive';
|
|
21
|
+
import { NgIf, NgFor } from '@angular/common';
|
|
22
|
+
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
23
|
+
import { TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
19
24
|
import * as i0 from "@angular/core";
|
|
20
25
|
import * as i1 from "./keyboard-navigation.service";
|
|
21
26
|
import * as i2 from "./selection.service";
|
|
22
27
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
23
|
-
import * as i4 from "@progress/kendo-angular-buttons";
|
|
24
|
-
import * as i5 from "@angular/common";
|
|
25
|
-
import * as i6 from "./localization/localized-messages.directive";
|
|
26
|
-
import * as i7 from "./item-selectable.directive";
|
|
27
28
|
const DEFAULT_SIZE = 'medium';
|
|
28
29
|
let idx = 0;
|
|
29
30
|
/**
|
|
@@ -354,7 +355,7 @@ export class ListBoxComponent {
|
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxComponent, deps: [{ token: i1.KeyboardNavigationService }, { token: i2.ListBoxSelectionService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
357
|
-
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListBoxComponent, 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: [
|
|
358
|
+
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
|
|
358
359
|
ListBoxSelectionService,
|
|
359
360
|
KeyboardNavigationService,
|
|
360
361
|
LocalizationService,
|
|
@@ -454,7 +455,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
454
455
|
>{{ messageFor('noDataText') }}</span>
|
|
455
456
|
</div>
|
|
456
457
|
</div>
|
|
457
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
458
|
+
`, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
458
459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
459
460
|
type: Component,
|
|
460
461
|
args: [{
|
|
@@ -561,6 +562,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
561
562
|
</div>
|
|
562
563
|
</div>
|
|
563
564
|
`,
|
|
565
|
+
standalone: true,
|
|
566
|
+
imports: [LocalizedMessagesDirective, NgIf, NgFor, ButtonComponent, ItemSelectableDirective, TemplateContextDirective]
|
|
564
567
|
}]
|
|
565
568
|
}], ctorParameters: function () { return [{ type: i1.KeyboardNavigationService }, { type: i2.ListBoxSelectionService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { listboxClassName: [{
|
|
566
569
|
type: HostBinding,
|
|
@@ -3,46 +3,30 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NgModule } from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ItemSelectableDirective } from './item-selectable.directive';
|
|
11
|
-
import { DataBindingDirective } from './data-binding.directive';
|
|
12
|
-
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
13
|
-
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
6
|
+
import { KENDO_LISTBOX } from './directives';
|
|
7
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
+
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
14
10
|
import * as i0 from "@angular/core";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
CustomMessagesComponent,
|
|
22
|
-
];
|
|
11
|
+
import * as i1 from "./listbox.component";
|
|
12
|
+
import * as i2 from "./item-template.directive";
|
|
13
|
+
import * as i3 from "./item-selectable.directive";
|
|
14
|
+
import * as i4 from "./data-binding.directive";
|
|
15
|
+
import * as i5 from "./localization/custom-messages.component";
|
|
16
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
23
17
|
/**
|
|
24
18
|
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
|
|
25
19
|
*/
|
|
26
20
|
export class ListBoxModule {
|
|
27
21
|
}
|
|
28
22
|
ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
-
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule,
|
|
30
|
-
|
|
31
|
-
ItemTemplateDirective,
|
|
32
|
-
ItemSelectableDirective,
|
|
33
|
-
DataBindingDirective,
|
|
34
|
-
CustomMessagesComponent], imports: [ButtonsModule, CommonModule], exports: [LocalizedMessagesDirective,
|
|
35
|
-
ListBoxComponent,
|
|
36
|
-
ItemTemplateDirective,
|
|
37
|
-
ItemSelectableDirective,
|
|
38
|
-
DataBindingDirective,
|
|
39
|
-
CustomMessagesComponent] });
|
|
40
|
-
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, imports: [ButtonsModule, CommonModule] });
|
|
23
|
+
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, imports: [i1.ListBoxComponent, i2.ItemTemplateDirective, i3.ItemSelectableDirective, i4.DataBindingDirective, i5.CustomMessagesComponent], exports: [i1.ListBoxComponent, i2.ItemTemplateDirective, i3.ItemSelectableDirective, i4.DataBindingDirective, i5.CustomMessagesComponent] });
|
|
24
|
+
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.ListBoxComponent, i5.CustomMessagesComponent] });
|
|
41
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
42
26
|
type: NgModule,
|
|
43
27
|
args: [{
|
|
44
|
-
imports: [
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
imports: [...KENDO_LISTBOX],
|
|
29
|
+
exports: [...KENDO_LISTBOX],
|
|
30
|
+
providers: [IconsService, PopupService, ResizeBatchService]
|
|
47
31
|
}]
|
|
48
32
|
}] });
|
|
@@ -21,7 +21,7 @@ export class CustomMessagesComponent extends Messages {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, selector: "kendo-listbox-messages", providers: [
|
|
24
|
+
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-listbox-messages", providers: [
|
|
25
25
|
{
|
|
26
26
|
provide: Messages,
|
|
27
27
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
@@ -37,6 +37,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
39
|
selector: 'kendo-listbox-messages',
|
|
40
|
-
template:
|
|
40
|
+
template: ``,
|
|
41
|
+
standalone: true
|
|
41
42
|
}]
|
|
42
43
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -17,7 +17,7 @@ export class LocalizedMessagesDirective extends Messages {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
20
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
21
21
|
{
|
|
22
22
|
provide: Messages,
|
|
23
23
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
@@ -32,6 +32,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
32
32
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
selector: '[kendoListBoxLocalizedMessages]'
|
|
35
|
+
selector: '[kendoListBoxLocalizedMessages]',
|
|
36
|
+
standalone: true
|
|
36
37
|
}]
|
|
37
38
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -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: '16.
|
|
12
|
+
publishDate: 1721847300,
|
|
13
|
+
version: '16.6.0-develop.2',
|
|
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
|
};
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Injectable, Directive, Input,
|
|
6
|
+
import { EventEmitter, Injectable, Directive, Input, HostBinding, HostListener, forwardRef, isDevMode, Component, ContentChild, ViewChild, ViewChildren, Output, NgModule } from '@angular/core';
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { getter } from '@progress/kendo-common';
|
|
10
10
|
import { caretAltUpIcon, caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, caretDoubleAltRightIcon, caretDoubleAltLeftIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import {
|
|
11
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
12
|
+
import { Keys, TemplateContextDirective, isChanged, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
12
13
|
import { take } from 'rxjs/operators';
|
|
13
14
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
14
15
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
+
import { NgIf, NgFor } from '@angular/common';
|
|
17
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
18
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
@@ -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: '16.
|
|
27
|
+
publishDate: 1721847300,
|
|
28
|
+
version: '16.6.0-develop.2',
|
|
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
|
|
|
@@ -79,11 +79,12 @@ class ItemTemplateDirective {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
82
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
82
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
83
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
84
84
|
type: Directive,
|
|
85
85
|
args: [{
|
|
86
|
-
selector: '[kendoListBoxItemTemplate]'
|
|
86
|
+
selector: '[kendoListBoxItemTemplate]',
|
|
87
|
+
standalone: true
|
|
87
88
|
}]
|
|
88
89
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
89
90
|
|
|
@@ -473,6 +474,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
473
474
|
type: Injectable
|
|
474
475
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
|
|
475
476
|
|
|
477
|
+
/**
|
|
478
|
+
* @hidden
|
|
479
|
+
*/
|
|
480
|
+
class ItemSelectableDirective {
|
|
481
|
+
constructor(selectionService) {
|
|
482
|
+
this.selectionService = selectionService;
|
|
483
|
+
}
|
|
484
|
+
get selectedClassName() {
|
|
485
|
+
return this.selectionService.isSelected(this.index);
|
|
486
|
+
}
|
|
487
|
+
onClick(event) {
|
|
488
|
+
event.stopPropagation();
|
|
489
|
+
this.selectionService.select(this.index);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
493
|
+
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 });
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
495
|
+
type: Directive,
|
|
496
|
+
args: [{
|
|
497
|
+
selector: '[kendoListBoxItemSelectable]',
|
|
498
|
+
standalone: true
|
|
499
|
+
}]
|
|
500
|
+
}], ctorParameters: function () { return [{ type: ListBoxSelectionService }]; }, propDecorators: { index: [{
|
|
501
|
+
type: Input
|
|
502
|
+
}], selectedClassName: [{
|
|
503
|
+
type: HostBinding,
|
|
504
|
+
args: ['class.k-selected']
|
|
505
|
+
}], onClick: [{
|
|
506
|
+
type: HostListener,
|
|
507
|
+
args: ['mousedown', ['$event']]
|
|
508
|
+
}] } });
|
|
509
|
+
|
|
476
510
|
/**
|
|
477
511
|
* @hidden
|
|
478
512
|
*/
|
|
@@ -510,7 +544,7 @@ class LocalizedMessagesDirective extends Messages {
|
|
|
510
544
|
}
|
|
511
545
|
}
|
|
512
546
|
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
513
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
547
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
514
548
|
{
|
|
515
549
|
provide: Messages,
|
|
516
550
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
@@ -525,42 +559,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
525
559
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
526
560
|
}
|
|
527
561
|
],
|
|
528
|
-
selector: '[kendoListBoxLocalizedMessages]'
|
|
562
|
+
selector: '[kendoListBoxLocalizedMessages]',
|
|
563
|
+
standalone: true
|
|
529
564
|
}]
|
|
530
565
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
531
566
|
|
|
532
|
-
/**
|
|
533
|
-
* @hidden
|
|
534
|
-
*/
|
|
535
|
-
class ItemSelectableDirective {
|
|
536
|
-
constructor(selectionService) {
|
|
537
|
-
this.selectionService = selectionService;
|
|
538
|
-
}
|
|
539
|
-
get selectedClassName() {
|
|
540
|
-
return this.selectionService.isSelected(this.index);
|
|
541
|
-
}
|
|
542
|
-
onClick(event) {
|
|
543
|
-
event.stopPropagation();
|
|
544
|
-
this.selectionService.select(this.index);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
548
|
-
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "mousedown": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
550
|
-
type: Directive,
|
|
551
|
-
args: [{
|
|
552
|
-
selector: '[kendoListBoxItemSelectable]'
|
|
553
|
-
}]
|
|
554
|
-
}], ctorParameters: function () { return [{ type: ListBoxSelectionService }]; }, propDecorators: { index: [{
|
|
555
|
-
type: Input
|
|
556
|
-
}], selectedClassName: [{
|
|
557
|
-
type: HostBinding,
|
|
558
|
-
args: ['class.k-selected']
|
|
559
|
-
}], onClick: [{
|
|
560
|
-
type: HostListener,
|
|
561
|
-
args: ['mousedown', ['$event']]
|
|
562
|
-
}] } });
|
|
563
|
-
|
|
564
567
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
565
568
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
566
569
|
const DEFAULT_SIZE = 'medium';
|
|
@@ -897,7 +900,7 @@ class ListBoxComponent {
|
|
|
897
900
|
}
|
|
898
901
|
}
|
|
899
902
|
ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
|
|
900
|
-
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListBoxComponent, 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: [
|
|
903
|
+
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
|
|
901
904
|
ListBoxSelectionService,
|
|
902
905
|
KeyboardNavigationService,
|
|
903
906
|
LocalizationService,
|
|
@@ -997,7 +1000,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
997
1000
|
>{{ messageFor('noDataText') }}</span>
|
|
998
1001
|
</div>
|
|
999
1002
|
</div>
|
|
1000
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
1003
|
+
`, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
1001
1004
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
1002
1005
|
type: Component,
|
|
1003
1006
|
args: [{
|
|
@@ -1104,6 +1107,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1104
1107
|
</div>
|
|
1105
1108
|
</div>
|
|
1106
1109
|
`,
|
|
1110
|
+
standalone: true,
|
|
1111
|
+
imports: [LocalizedMessagesDirective, NgIf, NgFor, ButtonComponent, ItemSelectableDirective, TemplateContextDirective]
|
|
1107
1112
|
}]
|
|
1108
1113
|
}], ctorParameters: function () { return [{ type: KeyboardNavigationService }, { type: ListBoxSelectionService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { listboxClassName: [{
|
|
1109
1114
|
type: HostBinding,
|
|
@@ -1274,11 +1279,12 @@ class DataBindingDirective {
|
|
|
1274
1279
|
}
|
|
1275
1280
|
}
|
|
1276
1281
|
DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1277
|
-
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DataBindingDirective, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
1282
|
+
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 });
|
|
1278
1283
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
1279
1284
|
type: Directive,
|
|
1280
1285
|
args: [{
|
|
1281
|
-
selector: '[kendoListBoxDataBinding]'
|
|
1286
|
+
selector: '[kendoListBoxDataBinding]',
|
|
1287
|
+
standalone: true
|
|
1282
1288
|
}]
|
|
1283
1289
|
}], ctorParameters: function () { return [{ type: ListBoxComponent }]; }, propDecorators: { connectedWith: [{
|
|
1284
1290
|
type: Input
|
|
@@ -1298,7 +1304,7 @@ class CustomMessagesComponent extends Messages {
|
|
|
1298
1304
|
}
|
|
1299
1305
|
}
|
|
1300
1306
|
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1301
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, selector: "kendo-listbox-messages", providers: [
|
|
1307
|
+
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-listbox-messages", providers: [
|
|
1302
1308
|
{
|
|
1303
1309
|
provide: Messages,
|
|
1304
1310
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
@@ -1314,42 +1320,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1314
1320
|
}
|
|
1315
1321
|
],
|
|
1316
1322
|
selector: 'kendo-listbox-messages',
|
|
1317
|
-
template:
|
|
1323
|
+
template: ``,
|
|
1324
|
+
standalone: true
|
|
1318
1325
|
}]
|
|
1319
1326
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
1320
1327
|
|
|
1321
|
-
|
|
1322
|
-
|
|
1328
|
+
/**
|
|
1329
|
+
* Utility array that contains all `@progress/kendo-angular-listbox` related components and directives
|
|
1330
|
+
*/
|
|
1331
|
+
const KENDO_LISTBOX = [
|
|
1323
1332
|
ListBoxComponent,
|
|
1324
1333
|
ItemTemplateDirective,
|
|
1325
1334
|
ItemSelectableDirective,
|
|
1326
1335
|
DataBindingDirective,
|
|
1327
1336
|
CustomMessagesComponent,
|
|
1328
1337
|
];
|
|
1338
|
+
|
|
1339
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
1329
1340
|
/**
|
|
1330
1341
|
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
|
|
1331
1342
|
*/
|
|
1332
1343
|
class ListBoxModule {
|
|
1333
1344
|
}
|
|
1334
1345
|
ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1335
|
-
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule,
|
|
1336
|
-
|
|
1337
|
-
ItemTemplateDirective,
|
|
1338
|
-
ItemSelectableDirective,
|
|
1339
|
-
DataBindingDirective,
|
|
1340
|
-
CustomMessagesComponent], imports: [ButtonsModule, CommonModule], exports: [LocalizedMessagesDirective,
|
|
1341
|
-
ListBoxComponent,
|
|
1342
|
-
ItemTemplateDirective,
|
|
1343
|
-
ItemSelectableDirective,
|
|
1344
|
-
DataBindingDirective,
|
|
1345
|
-
CustomMessagesComponent] });
|
|
1346
|
-
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, imports: [ButtonsModule, CommonModule] });
|
|
1346
|
+
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] });
|
|
1347
|
+
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [ListBoxComponent, CustomMessagesComponent] });
|
|
1347
1348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
1348
1349
|
type: NgModule,
|
|
1349
1350
|
args: [{
|
|
1350
|
-
imports: [
|
|
1351
|
-
|
|
1352
|
-
|
|
1351
|
+
imports: [...KENDO_LISTBOX],
|
|
1352
|
+
exports: [...KENDO_LISTBOX],
|
|
1353
|
+
providers: [IconsService, PopupService, ResizeBatchService]
|
|
1353
1354
|
}]
|
|
1354
1355
|
}] });
|
|
1355
1356
|
|
|
@@ -1357,5 +1358,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1357
1358
|
* Generated bundle index. Do not edit.
|
|
1358
1359
|
*/
|
|
1359
1360
|
|
|
1360
|
-
export { CustomMessagesComponent, DataBindingDirective, ItemSelectableDirective, ItemTemplateDirective, ListBoxComponent, ListBoxModule, LocalizedMessagesDirective };
|
|
1361
|
+
export { CustomMessagesComponent, DataBindingDirective, ItemSelectableDirective, ItemTemplateDirective, KENDO_LISTBOX, ListBoxComponent, ListBoxModule, LocalizedMessagesDirective };
|
|
1361
1362
|
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { EventEmitter, Injectable, Directive, Input,
|
|
6
|
+
import { EventEmitter, Injectable, Directive, Input, HostBinding, HostListener, forwardRef, isDevMode, Component, ContentChild, ViewChild, ViewChildren, Output, NgModule } from '@angular/core';
|
|
7
7
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { getter } from '@progress/kendo-common';
|
|
10
10
|
import { caretAltUpIcon, caretAltDownIcon, caretAltRightIcon, caretAltLeftIcon, caretDoubleAltRightIcon, caretDoubleAltLeftIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
11
|
-
import {
|
|
11
|
+
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
12
|
+
import { Keys, TemplateContextDirective, isChanged, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
12
13
|
import { take } from 'rxjs/operators';
|
|
13
14
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
14
15
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
+
import { NgIf, NgFor } from '@angular/common';
|
|
17
|
+
import { IconsService } from '@progress/kendo-angular-icons';
|
|
18
|
+
import { PopupService } from '@progress/kendo-angular-popup';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
@@ -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: '16.
|
|
27
|
+
publishDate: 1721847300,
|
|
28
|
+
version: '16.6.0-develop.2',
|
|
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
|
|
|
@@ -79,11 +79,12 @@ class ItemTemplateDirective {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
82
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
82
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemTemplateDirective, isStandalone: true, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
83
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
84
84
|
type: Directive,
|
|
85
85
|
args: [{
|
|
86
|
-
selector: '[kendoListBoxItemTemplate]'
|
|
86
|
+
selector: '[kendoListBoxItemTemplate]',
|
|
87
|
+
standalone: true
|
|
87
88
|
}]
|
|
88
89
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
89
90
|
|
|
@@ -468,6 +469,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
468
469
|
type: Injectable
|
|
469
470
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.NgZone }]; } });
|
|
470
471
|
|
|
472
|
+
/**
|
|
473
|
+
* @hidden
|
|
474
|
+
*/
|
|
475
|
+
class ItemSelectableDirective {
|
|
476
|
+
constructor(selectionService) {
|
|
477
|
+
this.selectionService = selectionService;
|
|
478
|
+
}
|
|
479
|
+
get selectedClassName() {
|
|
480
|
+
return this.selectionService.isSelected(this.index);
|
|
481
|
+
}
|
|
482
|
+
onClick(event) {
|
|
483
|
+
event.stopPropagation();
|
|
484
|
+
this.selectionService.select(this.index);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
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: [{
|
|
490
|
+
type: Directive,
|
|
491
|
+
args: [{
|
|
492
|
+
selector: '[kendoListBoxItemSelectable]',
|
|
493
|
+
standalone: true
|
|
494
|
+
}]
|
|
495
|
+
}], ctorParameters: function () { return [{ type: ListBoxSelectionService }]; }, propDecorators: { index: [{
|
|
496
|
+
type: Input
|
|
497
|
+
}], selectedClassName: [{
|
|
498
|
+
type: HostBinding,
|
|
499
|
+
args: ['class.k-selected']
|
|
500
|
+
}], onClick: [{
|
|
501
|
+
type: HostListener,
|
|
502
|
+
args: ['mousedown', ['$event']]
|
|
503
|
+
}] } });
|
|
504
|
+
|
|
471
505
|
/**
|
|
472
506
|
* @hidden
|
|
473
507
|
*/
|
|
@@ -505,7 +539,7 @@ class LocalizedMessagesDirective extends Messages {
|
|
|
505
539
|
}
|
|
506
540
|
}
|
|
507
541
|
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
508
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
542
|
+
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoListBoxLocalizedMessages]", providers: [
|
|
509
543
|
{
|
|
510
544
|
provide: Messages,
|
|
511
545
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
@@ -520,42 +554,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
520
554
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
521
555
|
}
|
|
522
556
|
],
|
|
523
|
-
selector: '[kendoListBoxLocalizedMessages]'
|
|
557
|
+
selector: '[kendoListBoxLocalizedMessages]',
|
|
558
|
+
standalone: true
|
|
524
559
|
}]
|
|
525
560
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
526
561
|
|
|
527
|
-
/**
|
|
528
|
-
* @hidden
|
|
529
|
-
*/
|
|
530
|
-
class ItemSelectableDirective {
|
|
531
|
-
constructor(selectionService) {
|
|
532
|
-
this.selectionService = selectionService;
|
|
533
|
-
}
|
|
534
|
-
get selectedClassName() {
|
|
535
|
-
return this.selectionService.isSelected(this.index);
|
|
536
|
-
}
|
|
537
|
-
onClick(event) {
|
|
538
|
-
event.stopPropagation();
|
|
539
|
-
this.selectionService.select(this.index);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
543
|
-
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "mousedown": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
545
|
-
type: Directive,
|
|
546
|
-
args: [{
|
|
547
|
-
selector: '[kendoListBoxItemSelectable]'
|
|
548
|
-
}]
|
|
549
|
-
}], ctorParameters: function () { return [{ type: ListBoxSelectionService }]; }, propDecorators: { index: [{
|
|
550
|
-
type: Input
|
|
551
|
-
}], selectedClassName: [{
|
|
552
|
-
type: HostBinding,
|
|
553
|
-
args: ['class.k-selected']
|
|
554
|
-
}], onClick: [{
|
|
555
|
-
type: HostListener,
|
|
556
|
-
args: ['mousedown', ['$event']]
|
|
557
|
-
}] } });
|
|
558
|
-
|
|
559
562
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
560
563
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
561
564
|
const DEFAULT_SIZE = 'medium';
|
|
@@ -888,7 +891,7 @@ class ListBoxComponent {
|
|
|
888
891
|
}
|
|
889
892
|
}
|
|
890
893
|
ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", 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 });
|
|
891
|
-
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListBoxComponent, 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: [
|
|
894
|
+
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: [
|
|
892
895
|
ListBoxSelectionService,
|
|
893
896
|
KeyboardNavigationService,
|
|
894
897
|
LocalizationService,
|
|
@@ -988,7 +991,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versi
|
|
|
988
991
|
>{{ messageFor('noDataText') }}</span>
|
|
989
992
|
</div>
|
|
990
993
|
</div>
|
|
991
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
994
|
+
`, 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], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
992
995
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
993
996
|
type: Component,
|
|
994
997
|
args: [{
|
|
@@ -1095,6 +1098,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1095
1098
|
</div>
|
|
1096
1099
|
</div>
|
|
1097
1100
|
`,
|
|
1101
|
+
standalone: true,
|
|
1102
|
+
imports: [LocalizedMessagesDirective, NgIf, NgFor, ButtonComponent, ItemSelectableDirective, TemplateContextDirective]
|
|
1098
1103
|
}]
|
|
1099
1104
|
}], ctorParameters: function () { return [{ type: KeyboardNavigationService }, { type: ListBoxSelectionService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { listboxClassName: [{
|
|
1100
1105
|
type: HostBinding,
|
|
@@ -1265,11 +1270,12 @@ class DataBindingDirective {
|
|
|
1265
1270
|
}
|
|
1266
1271
|
}
|
|
1267
1272
|
DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, deps: [{ token: ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1268
|
-
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DataBindingDirective, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
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 });
|
|
1269
1274
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
1270
1275
|
type: Directive,
|
|
1271
1276
|
args: [{
|
|
1272
|
-
selector: '[kendoListBoxDataBinding]'
|
|
1277
|
+
selector: '[kendoListBoxDataBinding]',
|
|
1278
|
+
standalone: true
|
|
1273
1279
|
}]
|
|
1274
1280
|
}], ctorParameters: function () { return [{ type: ListBoxComponent }]; }, propDecorators: { connectedWith: [{
|
|
1275
1281
|
type: Input
|
|
@@ -1289,7 +1295,7 @@ class CustomMessagesComponent extends Messages {
|
|
|
1289
1295
|
}
|
|
1290
1296
|
}
|
|
1291
1297
|
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1292
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, selector: "kendo-listbox-messages", providers: [
|
|
1298
|
+
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-listbox-messages", providers: [
|
|
1293
1299
|
{
|
|
1294
1300
|
provide: Messages,
|
|
1295
1301
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
@@ -1305,42 +1311,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1305
1311
|
}
|
|
1306
1312
|
],
|
|
1307
1313
|
selector: 'kendo-listbox-messages',
|
|
1308
|
-
template:
|
|
1314
|
+
template: ``,
|
|
1315
|
+
standalone: true
|
|
1309
1316
|
}]
|
|
1310
1317
|
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
1311
1318
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1319
|
+
/**
|
|
1320
|
+
* Utility array that contains all `@progress/kendo-angular-listbox` related components and directives
|
|
1321
|
+
*/
|
|
1322
|
+
const KENDO_LISTBOX = [
|
|
1314
1323
|
ListBoxComponent,
|
|
1315
1324
|
ItemTemplateDirective,
|
|
1316
1325
|
ItemSelectableDirective,
|
|
1317
1326
|
DataBindingDirective,
|
|
1318
1327
|
CustomMessagesComponent,
|
|
1319
1328
|
];
|
|
1329
|
+
|
|
1330
|
+
//IMPORTANT: NgModule export kept for backwards compatibility
|
|
1320
1331
|
/**
|
|
1321
1332
|
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
|
|
1322
1333
|
*/
|
|
1323
1334
|
class ListBoxModule {
|
|
1324
1335
|
}
|
|
1325
1336
|
ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1326
|
-
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule,
|
|
1327
|
-
|
|
1328
|
-
ItemTemplateDirective,
|
|
1329
|
-
ItemSelectableDirective,
|
|
1330
|
-
DataBindingDirective,
|
|
1331
|
-
CustomMessagesComponent], imports: [ButtonsModule, CommonModule], exports: [LocalizedMessagesDirective,
|
|
1332
|
-
ListBoxComponent,
|
|
1333
|
-
ItemTemplateDirective,
|
|
1334
|
-
ItemSelectableDirective,
|
|
1335
|
-
DataBindingDirective,
|
|
1336
|
-
CustomMessagesComponent] });
|
|
1337
|
-
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, imports: [ButtonsModule, CommonModule] });
|
|
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] });
|
|
1338
1339
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
1339
1340
|
type: NgModule,
|
|
1340
1341
|
args: [{
|
|
1341
|
-
imports: [
|
|
1342
|
-
|
|
1343
|
-
|
|
1342
|
+
imports: [...KENDO_LISTBOX],
|
|
1343
|
+
exports: [...KENDO_LISTBOX],
|
|
1344
|
+
providers: [IconsService, PopupService, ResizeBatchService]
|
|
1344
1345
|
}]
|
|
1345
1346
|
}] });
|
|
1346
1347
|
|
|
@@ -1348,5 +1349,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1348
1349
|
* Generated bundle index. Do not edit.
|
|
1349
1350
|
*/
|
|
1350
1351
|
|
|
1351
|
-
export { CustomMessagesComponent, DataBindingDirective, ItemSelectableDirective, ItemTemplateDirective, ListBoxComponent, ListBoxModule, LocalizedMessagesDirective };
|
|
1352
|
+
export { CustomMessagesComponent, DataBindingDirective, ItemSelectableDirective, ItemTemplateDirective, KENDO_LISTBOX, ListBoxComponent, ListBoxModule, LocalizedMessagesDirective };
|
|
1352
1353
|
|
package/index.d.ts
CHANGED
|
@@ -15,3 +15,4 @@ export { ListBoxToolbarConfig } from './toolbar';
|
|
|
15
15
|
export { ListBoxSelectionEvent } from './selection.service';
|
|
16
16
|
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
17
17
|
export { LocalizedMessagesDirective } from "./localization/localized-messages.directive";
|
|
18
|
+
export * from './directives';
|
|
@@ -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,
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemSelectableDirective, "[kendoListBoxItemSelectable]", never, { "index": "index"; }, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -27,5 +27,5 @@ export declare class ItemTemplateDirective {
|
|
|
27
27
|
templateRef: TemplateRef<any>;
|
|
28
28
|
constructor(templateRef: TemplateRef<any>);
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemTemplateDirective, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoListBoxItemTemplate]", never, {}, {}, never, never,
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoListBoxItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
31
31
|
}
|
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,
|
|
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>;
|
|
186
186
|
}
|
package/listbox.module.d.ts
CHANGED
|
@@ -3,19 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./
|
|
7
|
-
import * as i2 from "./
|
|
8
|
-
import * as i3 from "./item-
|
|
9
|
-
import * as i4 from "./
|
|
10
|
-
import * as i5 from "./
|
|
11
|
-
import * as i6 from "./localization/custom-messages.component";
|
|
12
|
-
import * as i7 from "@progress/kendo-angular-buttons";
|
|
13
|
-
import * as i8 from "@angular/common";
|
|
6
|
+
import * as i1 from "./listbox.component";
|
|
7
|
+
import * as i2 from "./item-template.directive";
|
|
8
|
+
import * as i3 from "./item-selectable.directive";
|
|
9
|
+
import * as i4 from "./data-binding.directive";
|
|
10
|
+
import * as i5 from "./localization/custom-messages.component";
|
|
14
11
|
/**
|
|
15
12
|
* Represents the [NgModule](https://angular.io/api/core/NgModule) definition for the ListBox component.
|
|
16
13
|
*/
|
|
17
14
|
export declare class ListBoxModule {
|
|
18
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListBoxModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ListBoxModule, [typeof i1.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ListBoxModule, never, [typeof i1.ListBoxComponent, typeof i2.ItemTemplateDirective, typeof i3.ItemSelectableDirective, typeof i4.DataBindingDirective, typeof i5.CustomMessagesComponent], [typeof i1.ListBoxComponent, typeof i2.ItemTemplateDirective, typeof i3.ItemSelectableDirective, typeof i4.DataBindingDirective, typeof i5.CustomMessagesComponent]>;
|
|
20
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<ListBoxModule>;
|
|
21
18
|
}
|
|
@@ -14,5 +14,5 @@ export declare class CustomMessagesComponent extends Messages {
|
|
|
14
14
|
constructor(service: LocalizationService);
|
|
15
15
|
protected get override(): boolean;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-listbox-messages", never, {}, {}, never, never,
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-listbox-messages", never, {}, {}, never, never, true, never>;
|
|
18
18
|
}
|
|
@@ -12,5 +12,5 @@ export declare class LocalizedMessagesDirective extends Messages {
|
|
|
12
12
|
protected service: LocalizationService;
|
|
13
13
|
constructor(service: LocalizationService);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoListBoxLocalizedMessages]", never, {}, {}, never, never,
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoListBoxLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-listbox",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.6.0-develop.2",
|
|
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": "15 - 18",
|
|
24
24
|
"@angular/platform-browser": "15 - 18",
|
|
25
25
|
"@progress/kendo-licensing": "^1.0.2",
|
|
26
|
-
"@progress/kendo-angular-buttons": "16.
|
|
27
|
-
"@progress/kendo-angular-common": "16.
|
|
28
|
-
"@progress/kendo-angular-popup": "16.
|
|
26
|
+
"@progress/kendo-angular-buttons": "16.6.0-develop.2",
|
|
27
|
+
"@progress/kendo-angular-common": "16.6.0-develop.2",
|
|
28
|
+
"@progress/kendo-angular-popup": "16.6.0-develop.2",
|
|
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": "16.
|
|
33
|
+
"@progress/kendo-angular-schematics": "16.6.0-develop.2",
|
|
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': '16.
|
|
10
|
-
'@progress/kendo-angular-common': '16.
|
|
11
|
-
'@progress/kendo-angular-l10n': '16.
|
|
9
|
+
'@progress/kendo-angular-buttons': '16.6.0-develop.2',
|
|
10
|
+
'@progress/kendo-angular-common': '16.6.0-develop.2',
|
|
11
|
+
'@progress/kendo-angular-l10n': '16.6.0-develop.2',
|
|
12
12
|
// Peer of kendo-angular-buttons
|
|
13
|
-
'@progress/kendo-angular-popup': '16.
|
|
13
|
+
'@progress/kendo-angular-popup': '16.6.0-develop.2'
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|