@progress/kendo-angular-listbox 1.0.5 → 11.0.0-develop.100
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +1 -1
- package/constants.d.ts +2 -2
- package/data-binding.directive.d.ts +1 -1
- package/{esm2015/constants.js → esm2020/constants.mjs} +21 -13
- package/{esm2015/data-binding.directive.js → esm2020/data-binding.directive.mjs} +6 -5
- package/{esm2015/main.js → esm2020/index.mjs} +1 -1
- package/{esm2015/item-selectable.directive.js → esm2020/item-selectable.directive.mjs} +5 -4
- package/{esm2015/item-template.directive.js → esm2020/item-template.directive.mjs} +5 -5
- package/{esm2015/listbox.component.js → esm2020/listbox.component.mjs} +55 -37
- package/{esm2015/listbox.module.js → esm2020/listbox.module.mjs} +5 -5
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +2 -2
- package/{esm2015/kendo-angular-listbox.js → esm2020/progress-kendo-angular-listbox.mjs} +2 -2
- package/{esm2015/selection.service.js → esm2020/selection.service.mjs} +4 -4
- package/{esm2015/size.js → esm2020/size.mjs} +1 -1
- package/{esm2015/toolbar.js → esm2020/toolbar.mjs} +1 -1
- package/{esm2015/util.js → esm2020/util.mjs} +1 -1
- package/fesm2015/{kendo-angular-listbox.js → progress-kendo-angular-listbox.mjs} +92 -66
- package/fesm2020/progress-kendo-angular-listbox.mjs +613 -0
- package/{main.d.ts → index.d.ts} +2 -1
- package/item-selectable.directive.d.ts +1 -1
- package/item-template.directive.d.ts +1 -1
- package/listbox.component.d.ts +5 -2
- package/listbox.module.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +30 -57
- package/{kendo-angular-listbox.d.ts → progress-kendo-angular-listbox.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/selection.service.d.ts +1 -1
- package/size.d.ts +1 -1
- package/toolbar.d.ts +3 -1
- package/util.d.ts +1 -1
- package/bundles/kendo-angular-listbox.umd.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
package/LICENSE.md
CHANGED
|
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**Telerik End
|
|
|
8
8
|
|
|
9
9
|
All available Kendo UI commercial licenses may be obtained at http://www.telerik.com/purchase/kendo-ui.
|
|
10
10
|
|
|
11
|
-
*Copyright ©
|
|
11
|
+
*Copyright © 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
package/NOTICE.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Progress Kendo UI for Angular
|
|
1
|
+
Progress Kendo UI for Angular 2023
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2016-2022 Progress Software Corporation and/or one of its
|
|
4
4
|
subsidiaries or affiliates. All rights reserved.
|
|
@@ -37,7 +37,7 @@ DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style
|
|
|
37
37
|
Isaac Z. Schlueter | glob | 7.1.3 - Open Source | ISC-style License
|
|
38
38
|
Jorik Tangelder (Eight Media) | HammerJS | 2.0.8 - Open Source | MIT-style License
|
|
39
39
|
Matt Mueller | cheerio | 0.22 - Open Source | MIT-style License
|
|
40
|
-
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
40
|
+
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
41
41
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
42
42
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
43
43
|
ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
|
|
@@ -433,7 +433,7 @@ subject to the following terms and conditions:
|
|
|
433
433
|
@types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*,
|
|
434
434
|
@types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*,
|
|
435
435
|
@types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are
|
|
436
|
-
subject to the following terms and conditions:
|
|
436
|
+
subject to the following terms and conditions:
|
|
437
437
|
|
|
438
438
|
This project is licensed under the MIT license.
|
|
439
439
|
Copyrights are respective of each contributor listed at the beginning of each
|
|
@@ -640,7 +640,7 @@ Such technology is subject to the following terms and conditions:
|
|
|
640
640
|
2. Special Notices Regarding Commercially Licensed Third-Party Components
|
|
641
641
|
incorporated into the Product: NONE
|
|
642
642
|
|
|
643
|
-
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
643
|
+
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
644
644
|
|
|
645
645
|
(a) Progress Kendo UI for Angular 2022 incorporates Kendo UI Licensing CLI v1.1
|
|
646
646
|
from Progress Software Corporation. See NOTICE.txt text file within product for
|
package/README.md
CHANGED
|
@@ -26,6 +26,6 @@ Kendo UI for Angular is a commercial UI library designed and built for developin
|
|
|
26
26
|
* [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui)
|
|
27
27
|
* [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2)
|
|
28
28
|
|
|
29
|
-
*Copyright ©
|
|
29
|
+
*Copyright © 2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
|
|
30
30
|
|
|
31
31
|
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
|
package/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ListBoxToolbarPosition, Tool } from "./toolbar";
|
|
@@ -20,6 +20,6 @@ export declare const sizeClassMap: {
|
|
|
20
20
|
/**
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const actionsClasses: {
|
|
24
24
|
[key: string]: string;
|
|
25
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon, caretDoubleAltLeftIcon, caretDoubleAltRightIcon, xIcon } from "@progress/kendo-svg-icons";
|
|
5
6
|
/**
|
|
6
7
|
* @hidden
|
|
7
8
|
*/
|
|
@@ -13,37 +14,44 @@ export const allTools = [
|
|
|
13
14
|
{
|
|
14
15
|
name: 'moveUp',
|
|
15
16
|
label: 'Move Up',
|
|
16
|
-
icon: '
|
|
17
|
+
icon: 'caret-alt-up',
|
|
18
|
+
svgIcon: caretAltUpIcon
|
|
17
19
|
},
|
|
18
20
|
{
|
|
19
21
|
name: 'moveDown',
|
|
20
22
|
label: 'Move Down',
|
|
21
|
-
icon: '
|
|
23
|
+
icon: 'caret-alt-down',
|
|
24
|
+
svgIcon: caretAltDownIcon
|
|
22
25
|
},
|
|
23
26
|
{
|
|
24
27
|
name: 'transferTo',
|
|
25
28
|
label: 'Transfer From',
|
|
26
|
-
icon: '
|
|
29
|
+
icon: 'caret-alt-left',
|
|
30
|
+
svgIcon: caretAltLeftIcon
|
|
27
31
|
},
|
|
28
32
|
{
|
|
29
33
|
name: 'transferFrom',
|
|
30
34
|
label: 'Transfer To',
|
|
31
|
-
icon: '
|
|
35
|
+
icon: 'caret-alt-right',
|
|
36
|
+
svgIcon: caretAltRightIcon
|
|
32
37
|
},
|
|
33
38
|
{
|
|
34
39
|
name: 'transferAllTo',
|
|
35
40
|
label: 'Transfer All To',
|
|
36
|
-
icon: '
|
|
41
|
+
icon: 'caret-double-alt-right',
|
|
42
|
+
svgIcon: caretDoubleAltRightIcon
|
|
37
43
|
},
|
|
38
44
|
{
|
|
39
45
|
name: 'transferAllFrom',
|
|
40
46
|
label: 'Transfer All From',
|
|
41
|
-
icon: '
|
|
47
|
+
icon: 'caret-double-alt-left',
|
|
48
|
+
svgIcon: caretDoubleAltLeftIcon
|
|
42
49
|
},
|
|
43
50
|
{
|
|
44
51
|
name: 'remove',
|
|
45
52
|
label: 'Remove',
|
|
46
|
-
icon: 'x'
|
|
53
|
+
icon: 'x',
|
|
54
|
+
svgIcon: xIcon
|
|
47
55
|
}
|
|
48
56
|
];
|
|
49
57
|
/**
|
|
@@ -57,9 +65,9 @@ export const sizeClassMap = {
|
|
|
57
65
|
/**
|
|
58
66
|
* @hidden
|
|
59
67
|
*/
|
|
60
|
-
export const
|
|
61
|
-
left: 'k-listbox-
|
|
62
|
-
right: 'k-listbox-
|
|
63
|
-
top: 'k-listbox-
|
|
64
|
-
bottom: 'k-listbox-
|
|
68
|
+
export const actionsClasses = {
|
|
69
|
+
left: 'k-listbox-actions-left',
|
|
70
|
+
right: 'k-listbox-actions-right',
|
|
71
|
+
top: 'k-listbox-actions-top',
|
|
72
|
+
bottom: 'k-listbox-actions-bottom'
|
|
65
73
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input } from '@angular/core';
|
|
6
6
|
import { isChanged } from '@progress/kendo-angular-common';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
|
+
import { ListBoxComponent } from './listbox.component';
|
|
8
9
|
import { isPresent } from './util';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "./listbox.component";
|
|
@@ -58,7 +59,7 @@ export class DataBindingDirective {
|
|
|
58
59
|
*/
|
|
59
60
|
ngOnChanges(changes) {
|
|
60
61
|
if (isChanged('connectedWith', changes, false)) {
|
|
61
|
-
if (!changes
|
|
62
|
+
if (!changes['connectedWith'].firstChange) {
|
|
62
63
|
this.selectedBoxSub.unsubscribe();
|
|
63
64
|
this.selectedBoxSub = new Subscription();
|
|
64
65
|
}
|
|
@@ -128,9 +129,9 @@ export class DataBindingDirective {
|
|
|
128
129
|
this.selectedBox = target;
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
132
|
+
DataBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DataBindingDirective, deps: [{ token: i1.ListBoxComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
133
|
+
DataBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DataBindingDirective, selector: "[kendoListBoxDataBinding]", inputs: { connectedWith: "connectedWith" }, usesOnChanges: true, ngImport: i0 });
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DataBindingDirective, decorators: [{
|
|
134
135
|
type: Directive,
|
|
135
136
|
args: [{
|
|
136
137
|
selector: '[kendoListBoxDataBinding]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export { ListBoxComponent } from './listbox.component';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Directive, Input, HostBinding, HostListener } from '@angular/core';
|
|
6
|
+
import { ListBoxSelectionService } from './selection.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "./selection.service";
|
|
8
9
|
/**
|
|
@@ -20,9 +21,9 @@ export class ItemSelectableDirective {
|
|
|
20
21
|
this.selectionService.select(this.index);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
ItemSelectableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemSelectableDirective, deps: [{ token: i1.ListBoxSelectionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
ItemSelectableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: { index: "index" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-selected": "this.selectedClassName" } }, ngImport: i0 });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemSelectableDirective, decorators: [{
|
|
26
27
|
type: Directive,
|
|
27
28
|
args: [{
|
|
28
29
|
selector: '[kendoListBoxItemSelectable]'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Directive } from '@angular/core';
|
|
5
|
+
import { Directive, TemplateRef } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Renders the ListBox item content. To define the item template, nest an `<ng-template>` tag
|
|
@@ -28,9 +28,9 @@ export class ItemTemplateDirective {
|
|
|
28
28
|
this.templateRef = templateRef;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: ItemTemplateDirective, selector: "[kendoListBoxItemTemplate]", ngImport: i0 });
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ItemTemplateDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
36
|
selector: '[kendoListBoxItemTemplate]'
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ContentChild, EventEmitter, HostBinding, Input, isDevMode, Output } from '@angular/core';
|
|
5
|
+
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, Input, isDevMode, Output, Renderer2 } from '@angular/core';
|
|
6
6
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { packageMetadata } from './package-metadata';
|
|
9
9
|
import { ListBoxSelectionService } from './selection.service';
|
|
10
10
|
import { ItemTemplateDirective } from './item-template.directive';
|
|
11
11
|
import { defaultItemDisabled, fieldAccessor, getTools } from './util';
|
|
12
|
-
import { allTools, DEFAULT_TOOLBAR_POSITION, sizeClassMap,
|
|
12
|
+
import { allTools, DEFAULT_TOOLBAR_POSITION, sizeClassMap, actionsClasses } from './constants';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "./selection.service";
|
|
15
|
-
import * as i2 from "@angular
|
|
16
|
-
import * as i3 from "@
|
|
15
|
+
import * as i2 from "@progress/kendo-angular-buttons";
|
|
16
|
+
import * as i3 from "@angular/common";
|
|
17
17
|
import * as i4 from "./item-selectable.directive";
|
|
18
|
+
const DEFAULT_SIZE = 'medium';
|
|
18
19
|
/**
|
|
19
20
|
* Represents the [Kendo UI ListBox component for Angular]({% slug overview_listbox %}).
|
|
20
21
|
*/
|
|
@@ -31,15 +32,6 @@ export class ListBoxComponent {
|
|
|
31
32
|
* The data which will be displayed by the ListBox.
|
|
32
33
|
*/
|
|
33
34
|
this.data = [];
|
|
34
|
-
/**
|
|
35
|
-
* Sets the size of the component.
|
|
36
|
-
*
|
|
37
|
-
* The possible values are:
|
|
38
|
-
* - `'small'`
|
|
39
|
-
* - `'medium'` (default)
|
|
40
|
-
* - `'large'`
|
|
41
|
-
*/
|
|
42
|
-
this.size = 'medium';
|
|
43
35
|
/**
|
|
44
36
|
* A function which determines if a specific item is disabled.
|
|
45
37
|
*/
|
|
@@ -56,13 +48,32 @@ export class ListBoxComponent {
|
|
|
56
48
|
* @hidden
|
|
57
49
|
*/
|
|
58
50
|
this.selectedTools = allTools;
|
|
51
|
+
this._size = DEFAULT_SIZE;
|
|
59
52
|
this.sub = new Subscription();
|
|
60
53
|
validatePackage(packageMetadata);
|
|
61
54
|
this.setToolbarClass(DEFAULT_TOOLBAR_POSITION);
|
|
55
|
+
this.setSizingClass(this.size);
|
|
62
56
|
this.sub.add(this.selectionService.onSelect.subscribe((e) => {
|
|
63
57
|
this.selectionChange.next(e);
|
|
64
58
|
}));
|
|
65
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Sets the size of the component.
|
|
62
|
+
*
|
|
63
|
+
* The possible values are:
|
|
64
|
+
* - `'small'`
|
|
65
|
+
* - `'medium'` (default)
|
|
66
|
+
* - `'large'`
|
|
67
|
+
*/
|
|
68
|
+
set size(size) {
|
|
69
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
70
|
+
this.renderer.removeClass(this.hostElement.nativeElement, `k-listbox-${sizeClassMap[this.size]}`);
|
|
71
|
+
this.setSizingClass(newSize);
|
|
72
|
+
this._size = size;
|
|
73
|
+
}
|
|
74
|
+
get size() {
|
|
75
|
+
return this._size;
|
|
76
|
+
}
|
|
66
77
|
/**
|
|
67
78
|
* Sets whether a toolbar should be displayed with the ListBox, as well as what tools and position should be used.
|
|
68
79
|
*/
|
|
@@ -125,26 +136,31 @@ export class ListBoxComponent {
|
|
|
125
136
|
return fieldAccessor(dataItem, this.textField);
|
|
126
137
|
}
|
|
127
138
|
setToolbarClass(pos) {
|
|
128
|
-
Object.keys(
|
|
139
|
+
Object.keys(actionsClasses).forEach((className) => {
|
|
129
140
|
if (pos === className) {
|
|
130
|
-
this.renderer.addClass(this.hostElement.nativeElement,
|
|
141
|
+
this.renderer.addClass(this.hostElement.nativeElement, actionsClasses[className]);
|
|
131
142
|
}
|
|
132
143
|
else {
|
|
133
|
-
this.renderer.removeClass(this.hostElement.nativeElement,
|
|
144
|
+
this.renderer.removeClass(this.hostElement.nativeElement, actionsClasses[className]);
|
|
134
145
|
}
|
|
135
146
|
});
|
|
136
147
|
}
|
|
148
|
+
setSizingClass(size) {
|
|
149
|
+
this.renderer.addClass(this.hostElement.nativeElement, `k-listbox-${sizeClassMap[size]}`);
|
|
150
|
+
}
|
|
137
151
|
}
|
|
138
|
-
ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
139
|
-
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
140
|
-
<div class="k-listbox-
|
|
141
|
-
<
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
152
|
+
ListBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxComponent, deps: [{ token: i1.ListBoxSelectionService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
153
|
+
ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ListBoxComponent, selector: "kendo-listbox", inputs: { textField: "textField", data: "data", size: "size", toolbar: "toolbar", itemDisabled: "itemDisabled" }, outputs: { selectionChange: "selectionChange", actionClick: "actionClick" }, host: { properties: { "class.k-listbox": "this.listboxClassName" } }, providers: [ListBoxSelectionService], queries: [{ propertyName: "itemTemplate", first: true, predicate: ItemTemplateDirective, descendants: true }], ngImport: i0, template: `
|
|
154
|
+
<div class="k-listbox-actions" *ngIf="selectedTools.length > 0">
|
|
155
|
+
<button
|
|
156
|
+
*ngFor="let tool of selectedTools"
|
|
157
|
+
kendoButton
|
|
158
|
+
[size]="this.size"
|
|
159
|
+
[icon]="tool.icon"
|
|
160
|
+
[svgIcon]="tool.svgIcon"
|
|
161
|
+
(click)="performAction(tool.name)"
|
|
162
|
+
role="button"
|
|
163
|
+
></button>
|
|
148
164
|
</div>
|
|
149
165
|
<div class="k-list-scroller k-selectable">
|
|
150
166
|
<div class="{{ listClasses }}">
|
|
@@ -171,21 +187,23 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
171
187
|
</div>
|
|
172
188
|
</div>
|
|
173
189
|
</div>
|
|
174
|
-
`, isInline: true,
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
190
|
+
`, isInline: true, components: [{ type: i2.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.ItemSelectableDirective, selector: "[kendoListBoxItemSelectable]", inputs: ["index"] }, { type: i2.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxComponent, decorators: [{
|
|
176
192
|
type: Component,
|
|
177
193
|
args: [{
|
|
178
194
|
selector: 'kendo-listbox',
|
|
179
195
|
providers: [ListBoxSelectionService],
|
|
180
196
|
template: `
|
|
181
|
-
<div class="k-listbox-
|
|
182
|
-
<
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
197
|
+
<div class="k-listbox-actions" *ngIf="selectedTools.length > 0">
|
|
198
|
+
<button
|
|
199
|
+
*ngFor="let tool of selectedTools"
|
|
200
|
+
kendoButton
|
|
201
|
+
[size]="this.size"
|
|
202
|
+
[icon]="tool.icon"
|
|
203
|
+
[svgIcon]="tool.svgIcon"
|
|
204
|
+
(click)="performAction(tool.name)"
|
|
205
|
+
role="button"
|
|
206
|
+
></button>
|
|
189
207
|
</div>
|
|
190
208
|
<div class="k-list-scroller k-selectable">
|
|
191
209
|
<div class="{{ listClasses }}">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
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';
|
|
@@ -15,10 +15,10 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*/
|
|
16
16
|
export class ListBoxModule {
|
|
17
17
|
}
|
|
18
|
-
ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
20
|
-
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
18
|
+
ListBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
ListBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxModule, declarations: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective], imports: [ButtonsModule, CommonModule], exports: [ListBoxComponent, ItemTemplateDirective, ItemSelectableDirective, DataBindingDirective] });
|
|
20
|
+
ListBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxModule, imports: [[ButtonsModule, CommonModule]] });
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxModule, decorators: [{
|
|
22
22
|
type: NgModule,
|
|
23
23
|
args: [{
|
|
24
24
|
imports: [ButtonsModule, CommonModule],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
@@ -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:
|
|
12
|
+
publishDate: 1673469243,
|
|
13
13
|
version: '',
|
|
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
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* Generated bundle index. Do not edit.
|
|
7
7
|
*/
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './index';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { EventEmitter, Injectable } from "@angular/core";
|
|
@@ -23,8 +23,8 @@ export class ListBoxSelectionService {
|
|
|
23
23
|
this.selectedIndex = null;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
ListBoxSelectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
ListBoxSelectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
ListBoxSelectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxSelectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
ListBoxSelectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxSelectionService });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ListBoxSelectionService, decorators: [{
|
|
29
29
|
type: Injectable
|
|
30
30
|
}] });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { getter } from '@progress/kendo-common';
|