@progress/kendo-angular-listbox 13.0.0-develop.5 → 13.0.0-develop.7

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.
@@ -15,6 +15,7 @@ import { allTools, DEFAULT_TOOLBAR_POSITION, sizeClassMap, actionsClasses } from
15
15
  import { KeyboardNavigationService } from './keyboard-navigation.service';
16
16
  import { take } from 'rxjs/operators';
17
17
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
18
+ import { caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
18
19
  import * as i0 from "@angular/core";
19
20
  import * as i1 from "./keyboard-navigation.service";
20
21
  import * as i2 from "./selection.service";
@@ -72,6 +73,14 @@ export class ListBoxComponent {
72
73
  * @hidden
73
74
  */
74
75
  this.selectedTools = allTools;
76
+ /**
77
+ * @hidden
78
+ */
79
+ this.caretAltLeftIcon = caretAltLeftIcon;
80
+ /**
81
+ * @hidden
82
+ */
83
+ this.caretAltRightIcon = caretAltRightIcon;
75
84
  this._size = DEFAULT_SIZE;
76
85
  this.subs = new Subscription();
77
86
  validatePackage(packageMetadata);
@@ -209,6 +218,30 @@ export class ListBoxComponent {
209
218
  }
210
219
  return fieldAccessor(dataItem, this.textField);
211
220
  }
221
+ /**
222
+ * @hidden
223
+ */
224
+ toolIcon(icon) {
225
+ return this.direction === 'ltr' ?
226
+ icon :
227
+ icon === 'caret-alt-left' ?
228
+ 'caret-alt-right' :
229
+ icon === 'caret-alt-right' ?
230
+ 'caret-alt-left' :
231
+ icon;
232
+ }
233
+ /**
234
+ * @hidden
235
+ */
236
+ toolSVGIcon(icon) {
237
+ return this.direction === 'ltr' ?
238
+ icon :
239
+ icon === this.caretAltLeftIcon ?
240
+ this.caretAltRightIcon :
241
+ icon === this.caretAltRightIcon ?
242
+ this.caretAltLeftIcon :
243
+ icon;
244
+ }
212
245
  onClickEvent(prevIndex, currentIndex) {
213
246
  this.keyboardNavigationService.selectedListboxItemIndex = currentIndex;
214
247
  this.keyboardNavigationService.focusedListboxItemIndex = currentIndex;
@@ -317,7 +350,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
317
350
  <ng-container kendoListBoxLocalizedMessages
318
351
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
319
352
  moveUp="Move Up"
320
-
353
+
321
354
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
322
355
  moveDown="Move Down"
323
356
 
@@ -350,8 +383,8 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
350
383
  kendoButton
351
384
  [attr.tabindex]="i === 0 ? '0' : '-1'"
352
385
  [size]="this.size"
353
- [icon]="tool.icon"
354
- [svgIcon]="tool.svgIcon"
386
+ [icon]="toolIcon(tool.icon)"
387
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
355
388
  [attr.title]="messageFor(tool.name)"
356
389
  (click)="performAction(tool.name)"
357
390
  role="button"
@@ -413,7 +446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
413
446
  <ng-container kendoListBoxLocalizedMessages
414
447
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
415
448
  moveUp="Move Up"
416
-
449
+
417
450
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
418
451
  moveDown="Move Down"
419
452
 
@@ -446,8 +479,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
446
479
  kendoButton
447
480
  [attr.tabindex]="i === 0 ? '0' : '-1'"
448
481
  [size]="this.size"
449
- [icon]="tool.icon"
450
- [svgIcon]="tool.svgIcon"
482
+ [icon]="toolIcon(tool.icon)"
483
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
451
484
  [attr.title]="messageFor(tool.name)"
452
485
  (click)="performAction(tool.name)"
453
486
  role="button"
@@ -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: 1685016391,
13
- version: '13.0.0-develop.5',
12
+ publishDate: 1685096884,
13
+ version: '13.0.0-develop.7',
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
  };
@@ -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: 1685016391,
28
- version: '13.0.0-develop.5',
27
+ publishDate: 1685096884,
28
+ version: '13.0.0-develop.7',
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
 
@@ -602,6 +602,14 @@ class ListBoxComponent {
602
602
  * @hidden
603
603
  */
604
604
  this.selectedTools = allTools;
605
+ /**
606
+ * @hidden
607
+ */
608
+ this.caretAltLeftIcon = caretAltLeftIcon;
609
+ /**
610
+ * @hidden
611
+ */
612
+ this.caretAltRightIcon = caretAltRightIcon;
605
613
  this._size = DEFAULT_SIZE;
606
614
  this.subs = new Subscription();
607
615
  validatePackage(packageMetadata);
@@ -740,6 +748,30 @@ class ListBoxComponent {
740
748
  }
741
749
  return fieldAccessor(dataItem, this.textField);
742
750
  }
751
+ /**
752
+ * @hidden
753
+ */
754
+ toolIcon(icon) {
755
+ return this.direction === 'ltr' ?
756
+ icon :
757
+ icon === 'caret-alt-left' ?
758
+ 'caret-alt-right' :
759
+ icon === 'caret-alt-right' ?
760
+ 'caret-alt-left' :
761
+ icon;
762
+ }
763
+ /**
764
+ * @hidden
765
+ */
766
+ toolSVGIcon(icon) {
767
+ return this.direction === 'ltr' ?
768
+ icon :
769
+ icon === this.caretAltLeftIcon ?
770
+ this.caretAltRightIcon :
771
+ icon === this.caretAltRightIcon ?
772
+ this.caretAltLeftIcon :
773
+ icon;
774
+ }
743
775
  onClickEvent(prevIndex, currentIndex) {
744
776
  this.keyboardNavigationService.selectedListboxItemIndex = currentIndex;
745
777
  this.keyboardNavigationService.focusedListboxItemIndex = currentIndex;
@@ -851,7 +883,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
851
883
  <ng-container kendoListBoxLocalizedMessages
852
884
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
853
885
  moveUp="Move Up"
854
-
886
+
855
887
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
856
888
  moveDown="Move Down"
857
889
 
@@ -884,8 +916,8 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
884
916
  kendoButton
885
917
  [attr.tabindex]="i === 0 ? '0' : '-1'"
886
918
  [size]="this.size"
887
- [icon]="tool.icon"
888
- [svgIcon]="tool.svgIcon"
919
+ [icon]="toolIcon(tool.icon)"
920
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
889
921
  [attr.title]="messageFor(tool.name)"
890
922
  (click)="performAction(tool.name)"
891
923
  role="button"
@@ -947,7 +979,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
947
979
  <ng-container kendoListBoxLocalizedMessages
948
980
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
949
981
  moveUp="Move Up"
950
-
982
+
951
983
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
952
984
  moveDown="Move Down"
953
985
 
@@ -980,8 +1012,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
980
1012
  kendoButton
981
1013
  [attr.tabindex]="i === 0 ? '0' : '-1'"
982
1014
  [size]="this.size"
983
- [icon]="tool.icon"
984
- [svgIcon]="tool.svgIcon"
1015
+ [icon]="toolIcon(tool.icon)"
1016
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
985
1017
  [attr.title]="messageFor(tool.name)"
986
1018
  (click)="performAction(tool.name)"
987
1019
  role="button"
@@ -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: 1685016391,
28
- version: '13.0.0-develop.5',
27
+ publishDate: 1685096884,
28
+ version: '13.0.0-develop.7',
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
 
@@ -597,6 +597,14 @@ class ListBoxComponent {
597
597
  * @hidden
598
598
  */
599
599
  this.selectedTools = allTools;
600
+ /**
601
+ * @hidden
602
+ */
603
+ this.caretAltLeftIcon = caretAltLeftIcon;
604
+ /**
605
+ * @hidden
606
+ */
607
+ this.caretAltRightIcon = caretAltRightIcon;
600
608
  this._size = DEFAULT_SIZE;
601
609
  this.subs = new Subscription();
602
610
  validatePackage(packageMetadata);
@@ -734,6 +742,30 @@ class ListBoxComponent {
734
742
  }
735
743
  return fieldAccessor(dataItem, this.textField);
736
744
  }
745
+ /**
746
+ * @hidden
747
+ */
748
+ toolIcon(icon) {
749
+ return this.direction === 'ltr' ?
750
+ icon :
751
+ icon === 'caret-alt-left' ?
752
+ 'caret-alt-right' :
753
+ icon === 'caret-alt-right' ?
754
+ 'caret-alt-left' :
755
+ icon;
756
+ }
757
+ /**
758
+ * @hidden
759
+ */
760
+ toolSVGIcon(icon) {
761
+ return this.direction === 'ltr' ?
762
+ icon :
763
+ icon === this.caretAltLeftIcon ?
764
+ this.caretAltRightIcon :
765
+ icon === this.caretAltRightIcon ?
766
+ this.caretAltLeftIcon :
767
+ icon;
768
+ }
737
769
  onClickEvent(prevIndex, currentIndex) {
738
770
  this.keyboardNavigationService.selectedListboxItemIndex = currentIndex;
739
771
  this.keyboardNavigationService.focusedListboxItemIndex = currentIndex;
@@ -842,7 +874,7 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
842
874
  <ng-container kendoListBoxLocalizedMessages
843
875
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
844
876
  moveUp="Move Up"
845
-
877
+
846
878
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
847
879
  moveDown="Move Down"
848
880
 
@@ -875,8 +907,8 @@ ListBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
875
907
  kendoButton
876
908
  [attr.tabindex]="i === 0 ? '0' : '-1'"
877
909
  [size]="this.size"
878
- [icon]="tool.icon"
879
- [svgIcon]="tool.svgIcon"
910
+ [icon]="toolIcon(tool.icon)"
911
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
880
912
  [attr.title]="messageFor(tool.name)"
881
913
  (click)="performAction(tool.name)"
882
914
  role="button"
@@ -938,7 +970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
938
970
  <ng-container kendoListBoxLocalizedMessages
939
971
  i18n-moveUp="kendo.listbox.moveUp|The title of the Move Up button"
940
972
  moveUp="Move Up"
941
-
973
+
942
974
  i18n-moveDown="kendo.listbox.moveDown|The title of the Move Down button"
943
975
  moveDown="Move Down"
944
976
 
@@ -971,8 +1003,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
971
1003
  kendoButton
972
1004
  [attr.tabindex]="i === 0 ? '0' : '-1'"
973
1005
  [size]="this.size"
974
- [icon]="tool.icon"
975
- [svgIcon]="tool.svgIcon"
1006
+ [icon]="toolIcon(tool.icon)"
1007
+ [svgIcon]="toolSVGIcon(tool.svgIcon)"
976
1008
  [attr.title]="messageFor(tool.name)"
977
1009
  (click)="performAction(tool.name)"
978
1010
  role="button"
@@ -11,6 +11,7 @@ import { ActionName, ListBoxToolbarConfig, Tool } from './toolbar';
11
11
  import { Button } from '@progress/kendo-angular-buttons';
12
12
  import { KeyboardNavigationService } from './keyboard-navigation.service';
13
13
  import { LocalizationService } from '@progress/kendo-angular-l10n';
14
+ import { SVGIcon } from '@progress/kendo-svg-icons';
14
15
  import * as i0 from "@angular/core";
15
16
  /**
16
17
  * Represents the [Kendo UI ListBox component for Angular]({% slug overview_listbox %}).
@@ -124,6 +125,14 @@ export declare class ListBoxComponent implements OnInit, AfterViewInit, OnDestro
124
125
  * @hidden
125
126
  */
126
127
  parentListbox: ListBoxComponent;
128
+ /**
129
+ * @hidden
130
+ */
131
+ caretAltLeftIcon: SVGIcon;
132
+ /**
133
+ * @hidden
134
+ */
135
+ caretAltRightIcon: SVGIcon;
127
136
  private localizationSubscription;
128
137
  private _size;
129
138
  private subs;
@@ -155,6 +164,14 @@ export declare class ListBoxComponent implements OnInit, AfterViewInit, OnDestro
155
164
  * @hidden
156
165
  */
157
166
  getText(dataItem: any): string;
167
+ /**
168
+ * @hidden
169
+ */
170
+ toolIcon(icon: string): string;
171
+ /**
172
+ * @hidden
173
+ */
174
+ toolSVGIcon(icon: SVGIcon): SVGIcon;
158
175
  private onClickEvent;
159
176
  private initSubscriptions;
160
177
  private onFocusIn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-listbox",
3
- "version": "13.0.0-develop.5",
3
+ "version": "13.0.0-develop.7",
4
4
  "description": "Kendo UI for Angular ListBox",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,14 +23,14 @@
23
23
  "@angular/core": "13 - 16",
24
24
  "@angular/platform-browser": "13 - 16",
25
25
  "@progress/kendo-licensing": "^1.0.2",
26
- "@progress/kendo-angular-buttons": "13.0.0-develop.5",
27
- "@progress/kendo-angular-common": "13.0.0-develop.5",
28
- "@progress/kendo-angular-popup": "13.0.0-develop.5",
26
+ "@progress/kendo-angular-buttons": "13.0.0-develop.7",
27
+ "@progress/kendo-angular-common": "13.0.0-develop.7",
28
+ "@progress/kendo-angular-popup": "13.0.0-develop.7",
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": "13.0.0-develop.5",
33
+ "@progress/kendo-angular-schematics": "13.0.0-develop.7",
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': '13.0.0-develop.5',
10
- '@progress/kendo-angular-common': '13.0.0-develop.5',
11
- '@progress/kendo-angular-l10n': '13.0.0-develop.5',
9
+ '@progress/kendo-angular-buttons': '13.0.0-develop.7',
10
+ '@progress/kendo-angular-common': '13.0.0-develop.7',
11
+ '@progress/kendo-angular-l10n': '13.0.0-develop.7',
12
12
  // Peer of kendo-angular-buttons
13
- '@progress/kendo-angular-popup': '13.0.0-develop.5'
13
+ '@progress/kendo-angular-popup': '13.0.0-develop.7'
14
14
  } });
15
15
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
16
16
  }