@progress/kendo-angular-toolbar 21.3.1-develop.1 → 21.4.0-develop.10

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.
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1765532961,
14
- version: '21.3.1-develop.1',
13
+ publishDate: 1766140268,
14
+ version: '21.4.0-develop.10',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -5,7 +5,7 @@
5
5
  /* eslint-disable no-case-declarations */
6
6
  import { Component, HostBinding, ViewChild, TemplateRef, ElementRef, QueryList, ContentChildren, Input, HostListener, Output, EventEmitter, ViewContainerRef, NgZone, Renderer2, ChangeDetectorRef } from '@angular/core';
7
7
  import { PopupService } from '@progress/kendo-angular-popup';
8
- import { guid, normalizeKeys, ResizeSensorComponent } from '@progress/kendo-angular-common';
8
+ import { guid, normalizeKeys, parseCSSClassNames, ResizeSensorComponent } from '@progress/kendo-angular-common';
9
9
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
10
10
  import { validatePackage } from '@progress/kendo-licensing';
11
11
  import { packageMetadata } from './package-metadata';
@@ -932,23 +932,16 @@ export class ToolBarComponent {
932
932
  }
933
933
  }
934
934
  normalizePopupClasses(classList) {
935
- let classes = ['k-toolbar-popup'];
935
+ const classes = ['k-toolbar-popup'];
936
936
  if (this.normalizedOverflow.mode === 'menu') {
937
937
  classes.push('k-menu-popup');
938
938
  }
939
939
  if (!classList) {
940
940
  return classes;
941
941
  }
942
- if (typeof classList === 'string') {
943
- classes.push(...classList.split(' '));
944
- }
945
- else if (Array.isArray(classList)) {
946
- classes = [...classes, ...classList];
947
- }
948
- else {
949
- for (const cl in classList) {
950
- classes.push(classList[cl]);
951
- }
942
+ const parsedClassList = parseCSSClassNames(classList);
943
+ if (parsedClassList.length) {
944
+ classes.push(...parsedClassList);
952
945
  }
953
946
  return classes;
954
947
  }
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
6
6
  import { EventEmitter, Injectable, inject, ElementRef, Directive, ViewChild, Input, Output, forwardRef, Component, HostBinding, ViewContainerRef, ContentChildren, HostListener, isDevMode, ViewChildren, NgModule } from '@angular/core';
7
7
  import * as i2 from '@progress/kendo-angular-popup';
8
8
  import { PopupService } from '@progress/kendo-angular-popup';
9
- import { normalizeKeys, Keys, isPresent as isPresent$1, isDocumentAvailable, guid, ResizeSensorComponent, ResizeBatchService } from '@progress/kendo-angular-common';
9
+ import { normalizeKeys, Keys, isPresent as isPresent$1, isDocumentAvailable, guid, parseCSSClassNames, ResizeSensorComponent, ResizeBatchService } from '@progress/kendo-angular-common';
10
10
  import * as i1 from '@progress/kendo-angular-l10n';
11
11
  import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
12
12
  import { validatePackage } from '@progress/kendo-licensing';
@@ -26,8 +26,8 @@ const packageMetadata = {
26
26
  productName: 'Kendo UI for Angular',
27
27
  productCode: 'KENDOUIANGULAR',
28
28
  productCodes: ['KENDOUIANGULAR'],
29
- publishDate: 1765532961,
30
- version: '21.3.1-develop.1',
29
+ publishDate: 1766140268,
30
+ version: '21.4.0-develop.10',
31
31
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
32
32
  };
33
33
 
@@ -2009,23 +2009,16 @@ class ToolBarComponent {
2009
2009
  }
2010
2010
  }
2011
2011
  normalizePopupClasses(classList) {
2012
- let classes = ['k-toolbar-popup'];
2012
+ const classes = ['k-toolbar-popup'];
2013
2013
  if (this.normalizedOverflow.mode === 'menu') {
2014
2014
  classes.push('k-menu-popup');
2015
2015
  }
2016
2016
  if (!classList) {
2017
2017
  return classes;
2018
2018
  }
2019
- if (typeof classList === 'string') {
2020
- classes.push(...classList.split(' '));
2021
- }
2022
- else if (Array.isArray(classList)) {
2023
- classes = [...classes, ...classList];
2024
- }
2025
- else {
2026
- for (const cl in classList) {
2027
- classes.push(classList[cl]);
2028
- }
2019
+ const parsedClassList = parseCSSClassNames(classList);
2020
+ if (parsedClassList.length) {
2021
+ classes.push(...parsedClassList);
2029
2022
  }
2030
2023
  return classes;
2031
2024
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-toolbar",
3
- "version": "21.3.1-develop.1",
3
+ "version": "21.4.0-develop.10",
4
4
  "description": "Kendo UI Angular Toolbar component - a single UI element that organizes buttons and other navigation elements",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -45,7 +45,7 @@
45
45
  "package": {
46
46
  "productName": "Kendo UI for Angular",
47
47
  "productCode": "KENDOUIANGULAR",
48
- "publishDate": 1765532961,
48
+ "publishDate": 1766140268,
49
49
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
50
50
  }
51
51
  },
@@ -55,17 +55,17 @@
55
55
  "@angular/core": "18 - 21",
56
56
  "@angular/platform-browser": "18 - 21",
57
57
  "@progress/kendo-licensing": "^1.7.0",
58
- "@progress/kendo-angular-buttons": "21.3.1-develop.1",
59
- "@progress/kendo-angular-common": "21.3.1-develop.1",
60
- "@progress/kendo-angular-l10n": "21.3.1-develop.1",
61
- "@progress/kendo-angular-icons": "21.3.1-develop.1",
62
- "@progress/kendo-angular-indicators": "21.3.1-develop.1",
63
- "@progress/kendo-angular-popup": "21.3.1-develop.1",
58
+ "@progress/kendo-angular-buttons": "21.4.0-develop.10",
59
+ "@progress/kendo-angular-common": "21.4.0-develop.10",
60
+ "@progress/kendo-angular-l10n": "21.4.0-develop.10",
61
+ "@progress/kendo-angular-icons": "21.4.0-develop.10",
62
+ "@progress/kendo-angular-indicators": "21.4.0-develop.10",
63
+ "@progress/kendo-angular-popup": "21.4.0-develop.10",
64
64
  "rxjs": "^6.5.3 || ^7.0.0"
65
65
  },
66
66
  "dependencies": {
67
67
  "tslib": "^2.3.1",
68
- "@progress/kendo-angular-schematics": "21.3.1-develop.1"
68
+ "@progress/kendo-angular-schematics": "21.4.0-develop.10"
69
69
  },
70
70
  "schematics": "./schematics/collection.json",
71
71
  "module": "fesm2022/progress-kendo-angular-toolbar.mjs",
@@ -36,7 +36,7 @@ export interface PopupSettings {
36
36
  /**
37
37
  * Sets CSS classes for styling the popup.
38
38
  */
39
- popupClass?: string;
39
+ popupClass?: string | string[] | Set<string> | object;
40
40
  /**
41
41
  * Sets the anchor pivot point.
42
42
  */