@progress/kendo-angular-buttons 21.4.1-develop.1 → 22.0.0-develop.1
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/fesm2022/progress-kendo-angular-buttons.mjs +105 -105
- package/listbutton/list-button.d.ts +1 -1
- package/package.json +11 -19
- package/splitbutton/localization/messages.d.ts +1 -1
- package/esm2022/button/button-settings.mjs +0 -5
- package/esm2022/button/button.component.mjs +0 -558
- package/esm2022/button/button.module.mjs +0 -43
- package/esm2022/button/button.service.mjs +0 -22
- package/esm2022/button/selection-settings.mjs +0 -5
- package/esm2022/buttongroup/buttongroup.component.mjs +0 -340
- package/esm2022/buttongroup/buttongroup.module.mjs +0 -49
- package/esm2022/buttons.module.mjs +0 -58
- package/esm2022/chip/chip-content-click-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip-list-remove-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip-list.component.mjs +0 -360
- package/esm2022/chip/chip-remove-event-args.interface.mjs +0 -5
- package/esm2022/chip/chip.component.mjs +0 -585
- package/esm2022/chip/chip.module.mjs +0 -45
- package/esm2022/chip/models/avatar-settings.interface.mjs +0 -5
- package/esm2022/chip/models/selection.mjs +0 -5
- package/esm2022/common/models/arrow-settings.mjs +0 -5
- package/esm2022/common/models/fillmode.mjs +0 -5
- package/esm2022/common/models/rounded.mjs +0 -5
- package/esm2022/common/models/size.mjs +0 -5
- package/esm2022/common/models/styling-classes.mjs +0 -5
- package/esm2022/common/models/theme-color.mjs +0 -5
- package/esm2022/common/models.mjs +0 -10
- package/esm2022/direction.mjs +0 -5
- package/esm2022/directives.mjs +0 -176
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +0 -482
- package/esm2022/dropdownbutton/dropdownbutton.module.mjs +0 -50
- package/esm2022/floatingactionbutton/animations/animations.mjs +0 -33
- package/esm2022/floatingactionbutton/dial-item.component.mjs +0 -161
- package/esm2022/floatingactionbutton/dial-list.component.mjs +0 -98
- package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +0 -954
- package/esm2022/floatingactionbutton/floatingactionbutton.module.mjs +0 -47
- package/esm2022/floatingactionbutton/models/align.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item-animation.interface.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item-click.event.mjs +0 -5
- package/esm2022/floatingactionbutton/models/item.interface.mjs +0 -5
- package/esm2022/floatingactionbutton/models/offset.mjs +0 -5
- package/esm2022/floatingactionbutton/models/position-mode.mjs +0 -5
- package/esm2022/floatingactionbutton/templates/dial-item-template.directive.mjs +0 -37
- package/esm2022/floatingactionbutton/templates/fab-template.directive.mjs +0 -38
- package/esm2022/floatingactionbutton/utils.mjs +0 -38
- package/esm2022/focusable/focus.service.mjs +0 -38
- package/esm2022/focusable/focusable.directive.mjs +0 -67
- package/esm2022/index.mjs +0 -33
- package/esm2022/listbutton/button-item-template.directive.mjs +0 -47
- package/esm2022/listbutton/container.service.mjs +0 -18
- package/esm2022/listbutton/list-button.mjs +0 -461
- package/esm2022/listbutton/list-item-model.mjs +0 -5
- package/esm2022/listbutton/list.component.mjs +0 -177
- package/esm2022/listbutton/popup-settings.mjs +0 -5
- package/esm2022/navigation/key-events.mjs +0 -13
- package/esm2022/navigation/navigation-action.mjs +0 -20
- package/esm2022/navigation/navigation-config.mjs +0 -9
- package/esm2022/navigation/navigation.service.mjs +0 -111
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/preventable-event.mjs +0 -25
- package/esm2022/progress-kendo-angular-buttons.mjs +0 -8
- package/esm2022/speechtotextbutton/models/error-event.mjs +0 -5
- package/esm2022/speechtotextbutton/models/integration-mode.mjs +0 -5
- package/esm2022/speechtotextbutton/models/result-event.mjs +0 -5
- package/esm2022/speechtotextbutton/models/speechtotextbutton-settings.mjs +0 -5
- package/esm2022/speechtotextbutton/speechtotextbutton.component.mjs +0 -532
- package/esm2022/speechtotextbutton/speechtotextbutton.module.mjs +0 -31
- package/esm2022/splitbutton/localization/custom-messages.component.mjs +0 -40
- package/esm2022/splitbutton/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/splitbutton/localization/messages.mjs +0 -50
- package/esm2022/splitbutton/splitbutton.component.mjs +0 -761
- package/esm2022/splitbutton/splitbutton.module.mjs +0 -37
- package/esm2022/util.mjs +0 -108
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { KENDO_SPLITBUTTON } from '../directives';
|
|
7
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
8
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { KENDO_TOGGLEBUTTONTABSTOP, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "./splitbutton.component";
|
|
12
|
-
import * as i2 from "./localization/custom-messages.component";
|
|
13
|
-
import * as i3 from "@progress/kendo-angular-common";
|
|
14
|
-
import * as i4 from "../listbutton/button-item-template.directive";
|
|
15
|
-
// IMPORTANT: NgModule export kept for backwards compatibility.
|
|
16
|
-
/**
|
|
17
|
-
* Represents the exported package module.
|
|
18
|
-
*
|
|
19
|
-
* Required for adding SplitButton features in NgModule-based Angular applications.
|
|
20
|
-
*
|
|
21
|
-
* The package exports:
|
|
22
|
-
* - `SplitButtonComponent`—The SplitButton component class.
|
|
23
|
-
* - `SplitButtonCustomMessagesComponent`—The SplitButton custom messages component class.
|
|
24
|
-
*/
|
|
25
|
-
export class SplitButtonModule {
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonModule, imports: [i1.SplitButtonComponent, i2.SplitButtonCustomMessagesComponent, i3.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i3.ToggleButtonTabStopDirective], exports: [i1.SplitButtonComponent, i2.SplitButtonCustomMessagesComponent, i3.ToggleButtonTabStopDirective, i4.ButtonItemTemplateDirective, i3.ToggleButtonTabStopDirective] });
|
|
28
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonModule, providers: [IconsService, PopupService, ResizeBatchService], imports: [i1.SplitButtonComponent] });
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SplitButtonModule, decorators: [{
|
|
31
|
-
type: NgModule,
|
|
32
|
-
args: [{
|
|
33
|
-
exports: [...KENDO_SPLITBUTTON, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
34
|
-
imports: [...KENDO_SPLITBUTTON, ...KENDO_TOGGLEBUTTONTABSTOP],
|
|
35
|
-
providers: [IconsService, PopupService, ResizeBatchService]
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
package/esm2022/util.mjs
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
const resolvedPromise = Promise.resolve(null);
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export const isPresent = (value) => value !== null && value !== undefined;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export const tick = (f) => (resolvedPromise.then(f));
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
function isDocumentNode(container) {
|
|
21
|
-
return container.nodeType === 9;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export function closest(element, selector) {
|
|
27
|
-
if (element.closest) {
|
|
28
|
-
return element.closest(selector);
|
|
29
|
-
}
|
|
30
|
-
const matches = Element.prototype.matches ?
|
|
31
|
-
(el, sel) => el.matches(sel)
|
|
32
|
-
: (el, sel) => el.msMatchesSelector(sel);
|
|
33
|
-
let node = element;
|
|
34
|
-
while (node && !isDocumentNode(node)) {
|
|
35
|
-
if (matches(node, selector)) {
|
|
36
|
-
return node;
|
|
37
|
-
}
|
|
38
|
-
node = node.parentNode;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export const SIZES = {
|
|
45
|
-
small: 'sm',
|
|
46
|
-
medium: 'md',
|
|
47
|
-
large: 'lg'
|
|
48
|
-
};
|
|
49
|
-
const ROUNDNESS = {
|
|
50
|
-
small: 'sm',
|
|
51
|
-
medium: 'md',
|
|
52
|
-
large: 'lg',
|
|
53
|
-
full: 'full'
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*
|
|
58
|
-
* Returns the styling classes to be added and removed
|
|
59
|
-
*/
|
|
60
|
-
export const getStylingClasses = (componentType, stylingOption, previousValue, newValue) => {
|
|
61
|
-
switch (stylingOption) {
|
|
62
|
-
case 'size':
|
|
63
|
-
return {
|
|
64
|
-
toRemove: `k-${componentType}-${SIZES[previousValue]}`,
|
|
65
|
-
toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
|
|
66
|
-
};
|
|
67
|
-
case 'rounded':
|
|
68
|
-
return {
|
|
69
|
-
toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
|
|
70
|
-
toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
|
|
71
|
-
};
|
|
72
|
-
case 'fillMode':
|
|
73
|
-
return {
|
|
74
|
-
toRemove: `k-${componentType}-${previousValue}`,
|
|
75
|
-
toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
|
|
76
|
-
};
|
|
77
|
-
default:
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*
|
|
84
|
-
* Returns the themeColor classes to be added and removed
|
|
85
|
-
*/
|
|
86
|
-
export const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
|
|
87
|
-
return {
|
|
88
|
-
toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
|
|
89
|
-
toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* @hidden
|
|
94
|
-
*/
|
|
95
|
-
export const toggleClass = (className, add, renderer, element) => {
|
|
96
|
-
if (add) {
|
|
97
|
-
renderer.addClass(element, className);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
renderer.removeClass(element, className);
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*
|
|
106
|
-
* Checks for an empty object - {}
|
|
107
|
-
*/
|
|
108
|
-
export const isObjectEmpty = (obj) => obj && Object.keys(obj).length === 0 && obj.constructor === Object;
|