@progress/kendo-angular-buttons 17.0.0-develop.47 → 17.0.0-develop.48

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.
@@ -7,7 +7,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { ChipComponent } from './chip.component';
8
8
  import { ChipListSelection } from './models/selection';
9
9
  import { ChipListRemoveEvent } from './chip-list-remove-event-args.interface';
10
- import { ChipListSize } from '../common/models';
10
+ import { ChipSize } from '../common/models';
11
11
  import * as i0 from "@angular/core";
12
12
  export declare class ChipListComponent implements OnInit, AfterViewInit, AfterContentInit, OnDestroy {
13
13
  private localizationService;
@@ -39,8 +39,8 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
39
39
  * * `'large'`
40
40
  * * `none`
41
41
  */
42
- set size(size: ChipListSize);
43
- get size(): ChipListSize;
42
+ set size(size: ChipSize);
43
+ get size(): ChipSize;
44
44
  /**
45
45
  * Fires each time when the ChipList selection is changed.
46
46
  */
@@ -90,6 +90,7 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
90
90
  private handleArrowKeys;
91
91
  private updateChips;
92
92
  private normalizeActiveIndex;
93
+ private setChipSize;
93
94
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipListComponent, never>;
94
95
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipListComponent, "kendo-chiplist, kendo-chip-list", never, { "selection": { "alias": "selection"; "required": false; }; "size": { "alias": "size"; "required": false; }; "role": { "alias": "role"; "required": false; }; "navigable": { "alias": "navigable"; "required": false; }; }, { "selectedChange": "selectedChange"; "remove": "remove"; }, ["chips"], ["*"], true, never>;
95
96
  }
@@ -168,6 +168,10 @@ export declare class ChipComponent implements OnInit, AfterViewInit, OnChanges {
168
168
  * @hidden
169
169
  */
170
170
  defaultMenuIcon: SVGIcon;
171
+ /**
172
+ * @hidden
173
+ */
174
+ sizeIsSet: boolean;
171
175
  private _size;
172
176
  private _rounded;
173
177
  private _fillMode;
@@ -11,7 +11,3 @@ export type ButtonSize = 'small' | 'medium' | 'large' | 'none';
11
11
  * Specifies the possible sizes of the Chip.
12
12
  */
13
13
  export type ChipSize = 'small' | 'medium' | 'large' | 'none';
14
- /**
15
- * Specifies the possible gap between Chips in a ChipList.
16
- */
17
- export type ChipListSize = 'small' | 'medium' | 'large' | 'none';
@@ -45,6 +45,7 @@ export class ChipListComponent {
45
45
  set size(size) {
46
46
  const sizeValue = size ? size : 'medium';
47
47
  this.handleClasses(sizeValue, 'size');
48
+ this.chips?.forEach(chip => this.setChipSize(chip, sizeValue));
48
49
  this._size = sizeValue;
49
50
  }
50
51
  get size() {
@@ -261,6 +262,11 @@ export class ChipListComponent {
261
262
  this.currentActiveIndex = Math.max(this.chips.length - 1, 0);
262
263
  }
263
264
  }
265
+ setChipSize(chip, size) {
266
+ const hasSize = chip.sizeIsSet;
267
+ !hasSize && chip.size !== size && (chip.size = size);
268
+ !hasSize && (chip.sizeIsSet = false);
269
+ }
264
270
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
265
271
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipListComponent, isStandalone: true, selector: "kendo-chiplist, kendo-chip-list", inputs: { selection: "selection", size: "size", role: "role", navigable: "navigable" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.aria-orientation": "this.orientation", "attr.dir": "this.direction", "class.k-selection-single": "this.single", "attr.aria-multiselectable": "this.multiple", "class.k-selection-multiple": "this.multiple", "attr.role": "this.role" } }, providers: [
266
272
  LocalizationService,
@@ -105,6 +105,7 @@ export class ChipComponent {
105
105
  */
106
106
  set size(size) {
107
107
  const newSize = size ? size : DEFAULT_SIZE;
108
+ !this.sizeIsSet && (this.sizeIsSet = true);
108
109
  this.handleClasses(newSize, 'size');
109
110
  this._size = newSize;
110
111
  }
@@ -208,6 +209,10 @@ export class ChipComponent {
208
209
  * @hidden
209
210
  */
210
211
  defaultMenuIcon = moreVerticalIcon;
212
+ /**
213
+ * @hidden
214
+ */
215
+ sizeIsSet = false;
211
216
  _size = 'medium';
212
217
  _rounded = 'medium';
213
218
  _fillMode = 'solid';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-buttons',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1731335168,
13
- version: '17.0.0-develop.47',
12
+ publishDate: 1731338026,
13
+ version: '17.0.0-develop.48',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -42,8 +42,8 @@ const packageMetadata = {
42
42
  name: '@progress/kendo-angular-buttons',
43
43
  productName: 'Kendo UI for Angular',
44
44
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
45
- publishDate: 1731335168,
46
- version: '17.0.0-develop.47',
45
+ publishDate: 1731338026,
46
+ version: '17.0.0-develop.48',
47
47
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
48
48
  };
49
49
 
@@ -1107,6 +1107,7 @@ class ChipComponent {
1107
1107
  */
1108
1108
  set size(size) {
1109
1109
  const newSize = size ? size : DEFAULT_SIZE$1;
1110
+ !this.sizeIsSet && (this.sizeIsSet = true);
1110
1111
  this.handleClasses(newSize, 'size');
1111
1112
  this._size = newSize;
1112
1113
  }
@@ -1210,6 +1211,10 @@ class ChipComponent {
1210
1211
  * @hidden
1211
1212
  */
1212
1213
  defaultMenuIcon = moreVerticalIcon;
1214
+ /**
1215
+ * @hidden
1216
+ */
1217
+ sizeIsSet = false;
1213
1218
  _size = 'medium';
1214
1219
  _rounded = 'medium';
1215
1220
  _fillMode = 'solid';
@@ -1605,6 +1610,7 @@ class ChipListComponent {
1605
1610
  set size(size) {
1606
1611
  const sizeValue = size ? size : 'medium';
1607
1612
  this.handleClasses(sizeValue, 'size');
1613
+ this.chips?.forEach(chip => this.setChipSize(chip, sizeValue));
1608
1614
  this._size = sizeValue;
1609
1615
  }
1610
1616
  get size() {
@@ -1821,6 +1827,11 @@ class ChipListComponent {
1821
1827
  this.currentActiveIndex = Math.max(this.chips.length - 1, 0);
1822
1828
  }
1823
1829
  }
1830
+ setChipSize(chip, size) {
1831
+ const hasSize = chip.sizeIsSet;
1832
+ !hasSize && chip.size !== size && (chip.size = size);
1833
+ !hasSize && (chip.sizeIsSet = false);
1834
+ }
1824
1835
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipListComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
1825
1836
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ChipListComponent, isStandalone: true, selector: "kendo-chiplist, kendo-chip-list", inputs: { selection: "selection", size: "size", role: "role", navigable: "navigable" }, outputs: { selectedChange: "selectedChange", remove: "remove" }, host: { listeners: { "click": "onClick($event)" }, properties: { "class.k-chip-list": "this.hostClass", "attr.aria-orientation": "this.orientation", "attr.dir": "this.direction", "class.k-selection-single": "this.single", "attr.aria-multiselectable": "this.multiple", "class.k-selection-multiple": "this.multiple", "attr.role": "this.role" } }, providers: [
1826
1837
  LocalizationService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-buttons",
3
- "version": "17.0.0-develop.47",
3
+ "version": "17.0.0-develop.48",
4
4
  "description": "Buttons Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -25,15 +25,15 @@
25
25
  "@angular/core": "16 - 18",
26
26
  "@angular/platform-browser": "16 - 18",
27
27
  "@progress/kendo-licensing": "^1.0.2",
28
- "@progress/kendo-angular-common": "17.0.0-develop.47",
29
- "@progress/kendo-angular-l10n": "17.0.0-develop.47",
30
- "@progress/kendo-angular-popup": "17.0.0-develop.47",
31
- "@progress/kendo-angular-icons": "17.0.0-develop.47",
28
+ "@progress/kendo-angular-common": "17.0.0-develop.48",
29
+ "@progress/kendo-angular-l10n": "17.0.0-develop.48",
30
+ "@progress/kendo-angular-popup": "17.0.0-develop.48",
31
+ "@progress/kendo-angular-icons": "17.0.0-develop.48",
32
32
  "rxjs": "^6.5.3 || ^7.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "tslib": "^2.3.1",
36
- "@progress/kendo-angular-schematics": "17.0.0-develop.47",
36
+ "@progress/kendo-angular-schematics": "17.0.0-develop.48",
37
37
  "@progress/kendo-common": "^1.0.1"
38
38
  },
39
39
  "schematics": "./schematics/collection.json",