@progress/kendo-angular-buttons 24.2.2-develop.9 → 25.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 +117 -117
- package/index.d.ts +3280 -52
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/button/button-settings.d.ts +0 -39
- package/button/button.component.d.ts +0 -200
- package/button/button.module.d.ts +0 -32
- package/button/button.service.d.ts +0 -17
- package/button/selection-settings.d.ts +0 -11
- package/buttongroup/buttongroup.component.d.ts +0 -103
- package/buttongroup/buttongroup.module.d.ts +0 -37
- package/buttons.module.d.ts +0 -46
- package/chip/chip-content-click-event-args.interface.d.ts +0 -18
- package/chip/chip-list-remove-event-args.interface.d.ts +0 -23
- package/chip/chip-list.component.d.ts +0 -105
- package/chip/chip-remove-event-args.interface.d.ts +0 -18
- package/chip/chip.component.d.ts +0 -204
- package/chip/chip.module.d.ts +0 -33
- package/chip/models/avatar-settings.interface.d.ts +0 -39
- package/chip/models/selection.d.ts +0 -13
- package/common/models/arrow-settings.d.ts +0 -22
- package/common/models/fillmode.d.ts +0 -12
- package/common/models/icon-position.d.ts +0 -10
- package/common/models/rounded.d.ts +0 -12
- package/common/models/size.d.ts +0 -24
- package/common/models/styling-classes.d.ts +0 -11
- package/common/models/theme-color.d.ts +0 -40
- package/common/models.d.ts +0 -11
- package/direction.d.ts +0 -8
- package/directives.d.ts +0 -173
- package/dropdownbutton/dropdownbutton.component.d.ts +0 -176
- package/dropdownbutton/dropdownbutton.module.d.ts +0 -36
- package/floatingactionbutton/animations/animations.d.ts +0 -13
- package/floatingactionbutton/dial-item.component.d.ts +0 -36
- package/floatingactionbutton/dial-list.component.d.ts +0 -27
- package/floatingactionbutton/floatingactionbutton.component.d.ts +0 -296
- package/floatingactionbutton/floatingactionbutton.module.d.ts +0 -34
- package/floatingactionbutton/models/align.d.ts +0 -33
- package/floatingactionbutton/models/item-animation.interface.d.ts +0 -25
- package/floatingactionbutton/models/item-click.event.d.ts +0 -25
- package/floatingactionbutton/models/item.interface.d.ts +0 -51
- package/floatingactionbutton/models/offset.d.ts +0 -23
- package/floatingactionbutton/models/position-mode.d.ts +0 -13
- package/floatingactionbutton/templates/dial-item-template.directive.d.ts +0 -26
- package/floatingactionbutton/templates/fab-template.directive.d.ts +0 -27
- package/floatingactionbutton/utils.d.ts +0 -12
- package/focusable/focus.service.d.ts +0 -20
- package/focusable/focusable.directive.d.ts +0 -26
- package/listbutton/button-item-template.directive.d.ts +0 -38
- package/listbutton/container.service.d.ts +0 -15
- package/listbutton/list-button.d.ts +0 -164
- package/listbutton/list-item-model.d.ts +0 -75
- package/listbutton/list.component.d.ts +0 -28
- package/listbutton/popup-settings.d.ts +0 -52
- package/navigation/key-events.d.ts +0 -12
- package/navigation/navigation-action.d.ts +0 -18
- package/navigation/navigation-config.d.ts +0 -15
- package/navigation/navigation.service.d.ts +0 -28
- package/package-metadata.d.ts +0 -9
- package/preventable-event.d.ts +0 -21
- package/segmentedcontrol/models.d.ts +0 -41
- package/segmentedcontrol/segmented-control.component.d.ts +0 -81
- package/segmentedcontrol/segmented-control.module.d.ts +0 -19
- package/smartpastebutton/models/form-field.d.ts +0 -40
- package/smartpastebutton/models/index.d.ts +0 -6
- package/smartpastebutton/models/service-settings.d.ts +0 -114
- package/smartpastebutton/smartpastebutton.component.d.ts +0 -175
- package/smartpastebutton/smartpastebutton.module.d.ts +0 -27
- package/smartpastebutton/utils.d.ts +0 -50
- package/speechtotextbutton/models/error-event.d.ts +0 -13
- package/speechtotextbutton/models/integration-mode.d.ts +0 -11
- package/speechtotextbutton/models/result-event.d.ts +0 -18
- package/speechtotextbutton/models/speechtotextbutton-settings.d.ts +0 -61
- package/speechtotextbutton/speechtotextbutton.component.d.ts +0 -187
- package/speechtotextbutton/speechtotextbutton.module.d.ts +0 -19
- package/splitbutton/localization/custom-messages.component.d.ts +0 -18
- package/splitbutton/localization/localized-messages.directive.d.ts +0 -16
- package/splitbutton/localization/messages.d.ts +0 -38
- package/splitbutton/splitbutton.component.d.ts +0 -284
- package/splitbutton/splitbutton.module.d.ts +0 -23
- package/util.d.ts +0 -49
|
@@ -1,114 +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 { HttpHeaders, HttpResponse } from "@angular/common/http";
|
|
6
|
-
import { PreventableEvent } from "@progress/kendo-angular-common";
|
|
7
|
-
import { SmartPasteFormField } from "./form-field";
|
|
8
|
-
/**
|
|
9
|
-
* Defines the data structure for the HTTP request body sent by Smart Paste.
|
|
10
|
-
*/
|
|
11
|
-
export interface SmartPasteAIRequestData {
|
|
12
|
-
/**
|
|
13
|
-
* Sets the form fields to send to the AI service.
|
|
14
|
-
*/
|
|
15
|
-
formFields: Array<SmartPasteFormField>;
|
|
16
|
-
/**
|
|
17
|
-
* Sets the content to be sent to the AI service.
|
|
18
|
-
*/
|
|
19
|
-
content: string;
|
|
20
|
-
/**
|
|
21
|
-
* Sets the URL of the AI service endpoint.
|
|
22
|
-
*/
|
|
23
|
-
url?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Sets the request options for the AI service.
|
|
26
|
-
* Includes headers, HTTP method, and other configurations.
|
|
27
|
-
*/
|
|
28
|
-
requestOptions: {
|
|
29
|
-
role?: string;
|
|
30
|
-
headers?: HttpHeaders;
|
|
31
|
-
method?: string;
|
|
32
|
-
withCredentials?: boolean;
|
|
33
|
-
body?: any;
|
|
34
|
-
responseType?: 'json' | 'arraybuffer' | 'blob' | 'text';
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*
|
|
41
|
-
* Represents the response from the AI request in the Smart Paste Button.
|
|
42
|
-
*/
|
|
43
|
-
export interface SmartPasteAIResponse {
|
|
44
|
-
/**
|
|
45
|
-
* A record mapping form field names to their parsed values. The id of each field corresponds to the `field` property in `SmartPasteFormField`.
|
|
46
|
-
*/
|
|
47
|
-
fieldValues: Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Defines configuration options for the HTTP request sent to the AI service.
|
|
51
|
-
*/
|
|
52
|
-
export interface SmartPasteAIRequestOptions {
|
|
53
|
-
/**
|
|
54
|
-
* Sets the HTTP headers to include with the request.
|
|
55
|
-
*/
|
|
56
|
-
headers?: HttpHeaders;
|
|
57
|
-
/**
|
|
58
|
-
* Sets the role of the user making the request.
|
|
59
|
-
*
|
|
60
|
-
* @default 'user'
|
|
61
|
-
*/
|
|
62
|
-
role?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the HTTP method for the request.
|
|
65
|
-
*
|
|
66
|
-
* @default 'POST'
|
|
67
|
-
*/
|
|
68
|
-
method?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Includes credentials such as cookies and authorization headers with the request.
|
|
71
|
-
*
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
withCredentials?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the expected response type from the AI service.
|
|
77
|
-
*
|
|
78
|
-
* @default 'json'
|
|
79
|
-
*/
|
|
80
|
-
responseType?: 'json' | 'arraybuffer' | 'blob' | 'text';
|
|
81
|
-
/**
|
|
82
|
-
* Sets the body of the request.
|
|
83
|
-
*/
|
|
84
|
-
body?: any;
|
|
85
|
-
/**
|
|
86
|
-
* Sets additional custom options to spread into the request configuration.
|
|
87
|
-
*/
|
|
88
|
-
[key: string]: any;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
export declare const DEFAULT_AI_REQUEST_OPTIONS: SmartPasteAIRequestOptions;
|
|
94
|
-
/**
|
|
95
|
-
* Represents the event arguments for the `requestStart` event of the SmartPasteButton.
|
|
96
|
-
*/
|
|
97
|
-
export declare class SmartPasteRequestStartEvent extends PreventableEvent {
|
|
98
|
-
/**
|
|
99
|
-
* Gets the request data to send to the AI service.
|
|
100
|
-
*/
|
|
101
|
-
requestData: SmartPasteAIRequestData;
|
|
102
|
-
constructor(requestData: SmartPasteAIRequestData);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Represents the event arguments for the `requestEnd` event of the SmartPasteButton.
|
|
106
|
-
*/
|
|
107
|
-
export declare class SmartPasteRequestEndEvent extends PreventableEvent {
|
|
108
|
-
/**
|
|
109
|
-
* Gets the HTTP response from the AI service.
|
|
110
|
-
* Contains an error object when the request fails.
|
|
111
|
-
*/
|
|
112
|
-
response: HttpResponse<any>;
|
|
113
|
-
constructor(response: HttpResponse<any>);
|
|
114
|
-
}
|
|
@@ -1,175 +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 { ElementRef, OnDestroy, OnInit, Renderer2, NgZone, EventEmitter } from '@angular/core';
|
|
6
|
-
import { HttpClient } from '@angular/common/http';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { ControlContainer } from '@angular/forms';
|
|
9
|
-
import { SmartPasteAIRequestOptions, SmartPasteFormField, SmartPasteRequestStartEvent, SmartPasteRequestEndEvent } from './models';
|
|
10
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
12
|
-
import { ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from '../common/models';
|
|
13
|
-
import { SmartPasteField } from '@progress/kendo-smartpaste-common';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
/**
|
|
16
|
-
* Represents the Kendo UI SmartPasteButton component for Angular.
|
|
17
|
-
*
|
|
18
|
-
* Fills form fields with AI-powered data extraction from clipboard content.
|
|
19
|
-
*/
|
|
20
|
-
export declare class SmartPasteButtonComponent implements OnInit, OnDestroy {
|
|
21
|
-
renderer: Renderer2;
|
|
22
|
-
ngZone: NgZone;
|
|
23
|
-
private http;
|
|
24
|
-
private controlContainer;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the form controls to include in Smart Paste.
|
|
27
|
-
* When not set, all form controls are included.
|
|
28
|
-
*
|
|
29
|
-
* @default null
|
|
30
|
-
*/
|
|
31
|
-
formFields: SmartPasteFormField[] | null;
|
|
32
|
-
/**
|
|
33
|
-
* When `true`, disables the SmartPasteButton and prevents user interaction.
|
|
34
|
-
*
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
set disabled(disabled: boolean);
|
|
38
|
-
get disabled(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the padding of the SmartPasteButton.
|
|
41
|
-
*
|
|
42
|
-
* @default undefined
|
|
43
|
-
*/
|
|
44
|
-
set size(size: ButtonSize);
|
|
45
|
-
get size(): ButtonSize;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the border radius of the SmartPasteButton.
|
|
48
|
-
*
|
|
49
|
-
* @default undefined
|
|
50
|
-
*/
|
|
51
|
-
set rounded(rounded: ButtonRounded);
|
|
52
|
-
get rounded(): ButtonRounded;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the background and border styles of the SmartPasteButton.
|
|
55
|
-
*
|
|
56
|
-
* @default undefined
|
|
57
|
-
*/
|
|
58
|
-
set fillMode(fillMode: ButtonFillMode);
|
|
59
|
-
get fillMode(): ButtonFillMode;
|
|
60
|
-
/**
|
|
61
|
-
* Sets a predefined theme color for the SmartPasteButton.
|
|
62
|
-
* The theme color applies as a background and border color and adjusts the text color.
|
|
63
|
-
*
|
|
64
|
-
* @default undefined
|
|
65
|
-
*/
|
|
66
|
-
set themeColor(themeColor: ButtonThemeColor);
|
|
67
|
-
get themeColor(): ButtonThemeColor;
|
|
68
|
-
/**
|
|
69
|
-
* Sets an SVG icon to display inside the SmartPasteButton.
|
|
70
|
-
*/
|
|
71
|
-
set svgIcon(icon: SVGIcon);
|
|
72
|
-
get svgIcon(): SVGIcon;
|
|
73
|
-
/**
|
|
74
|
-
* Specifies a URL for an `img` element inside the SmartPasteButton.
|
|
75
|
-
* The URL can be relative or absolute. When relative, the browser evaluates it relative to the web page URL.
|
|
76
|
-
*/
|
|
77
|
-
imageUrl: string;
|
|
78
|
-
/**
|
|
79
|
-
* Defines one or more CSS classes separated by spaces for a `span` element inside the SmartPasteButton.
|
|
80
|
-
* Use `iconClass` to add custom icons.
|
|
81
|
-
*/
|
|
82
|
-
set iconClass(value: string);
|
|
83
|
-
get iconClass(): string;
|
|
84
|
-
/**
|
|
85
|
-
* Specifies the icon name to display in the SmartPasteButton.
|
|
86
|
-
*
|
|
87
|
-
* @default 'paste-sparkle'
|
|
88
|
-
*/
|
|
89
|
-
set icon(name: string);
|
|
90
|
-
get icon(): string;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the URL to which Smart Paste sends the AI request.
|
|
93
|
-
* When set, the component sends and handles an HTTP request automatically. Handle the `requestStart` event to modify request options before sending.
|
|
94
|
-
* When not set, the component does not send an HTTP request. Handle the `requestStart` event to send and manage a custom HTTP request.
|
|
95
|
-
*/
|
|
96
|
-
requestUrl?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Configures the HTTP request options for the AI request.
|
|
99
|
-
* Use this to customize headers, method, credentials, and other request settings.
|
|
100
|
-
*/
|
|
101
|
-
requestOptions?: SmartPasteAIRequestOptions;
|
|
102
|
-
/**
|
|
103
|
-
* Sets static form field metadata to bypass DOM extraction when Smart Paste runs.
|
|
104
|
-
* Use this when you want to provide form field configuration directly instead of extracting it from the DOM.
|
|
105
|
-
*
|
|
106
|
-
* @hidden
|
|
107
|
-
* @default null
|
|
108
|
-
*/
|
|
109
|
-
smartPasteFormFields: SmartPasteField[] | null;
|
|
110
|
-
/**
|
|
111
|
-
* Fires when the Smart Paste request is about to start.
|
|
112
|
-
* Prevent the event to stop the request before sending it.
|
|
113
|
-
*/
|
|
114
|
-
requestStart: EventEmitter<SmartPasteRequestStartEvent>;
|
|
115
|
-
/**
|
|
116
|
-
* Fires when the Smart Paste request completes, either successfully or with an error.
|
|
117
|
-
* Prevent the event to cancel populating the form fields with the response data.
|
|
118
|
-
*/
|
|
119
|
-
requestEnd: EventEmitter<SmartPasteRequestEndEvent>;
|
|
120
|
-
/**
|
|
121
|
-
* Fires when the user cancels an ongoing Smart Paste request.
|
|
122
|
-
*/
|
|
123
|
-
requestCancel: EventEmitter<void>;
|
|
124
|
-
get iconButtonClass(): boolean;
|
|
125
|
-
get classDisabled(): boolean;
|
|
126
|
-
get getDirection(): string;
|
|
127
|
-
onFocus(): void;
|
|
128
|
-
onBlur(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Focuses the SmartPasteButton.
|
|
131
|
-
*/
|
|
132
|
-
focus(): void;
|
|
133
|
-
/**
|
|
134
|
-
* Removes focus from the SmartPasteButton.
|
|
135
|
-
*/
|
|
136
|
-
blur(): void;
|
|
137
|
-
get hasText(): boolean;
|
|
138
|
-
set isFocused(isFocused: boolean);
|
|
139
|
-
get isFocused(): boolean;
|
|
140
|
-
element: HTMLElement;
|
|
141
|
-
isDisabled: boolean;
|
|
142
|
-
subs: Subscription;
|
|
143
|
-
private _size;
|
|
144
|
-
private _rounded;
|
|
145
|
-
private _fillMode;
|
|
146
|
-
private _themeColor;
|
|
147
|
-
private _focused;
|
|
148
|
-
private direction;
|
|
149
|
-
private _iconClass;
|
|
150
|
-
private _icon;
|
|
151
|
-
private _svgIcon;
|
|
152
|
-
private kendoSmartPaste;
|
|
153
|
-
private smartPasteBusy;
|
|
154
|
-
private currentRequestSubscription;
|
|
155
|
-
private nativeForm;
|
|
156
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone, http: HttpClient, controlContainer: ControlContainer);
|
|
157
|
-
ngOnInit(): void;
|
|
158
|
-
ngOnDestroy(): void;
|
|
159
|
-
/**
|
|
160
|
-
* Starts the Smart Paste operation.
|
|
161
|
-
* Reads clipboard content and sends it to the AI service for processing.
|
|
162
|
-
*/
|
|
163
|
-
paste(): Promise<void>;
|
|
164
|
-
private sendSmartPasteRequest;
|
|
165
|
-
private unsubscribeCurrentRequest;
|
|
166
|
-
private defaultGetSmartPasteField;
|
|
167
|
-
private defaultSetKendoInputValue;
|
|
168
|
-
private setControlValue;
|
|
169
|
-
private extractFormFields;
|
|
170
|
-
private handleClasses;
|
|
171
|
-
private handleThemeColor;
|
|
172
|
-
private handleSmartPasteRequest;
|
|
173
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartPasteButtonComponent, [null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
174
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartPasteButtonComponent, "button[kendoSmartPasteButton]", ["kendoSmartPasteButton"], { "formFields": { "alias": "formFields"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "requestUrl": { "alias": "requestUrl"; "required": false; }; "requestOptions": { "alias": "requestOptions"; "required": false; }; "smartPasteFormFields": { "alias": "smartPasteFormFields"; "required": false; }; }, { "requestStart": "requestStart"; "requestEnd": "requestEnd"; "requestCancel": "requestCancel"; }, never, ["*"], true, never>;
|
|
175
|
-
}
|
|
@@ -1,27 +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 * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./smartpastebutton.component";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
9
|
-
* definition for the SmartPasteButton component.
|
|
10
|
-
*
|
|
11
|
-
* The module is meant for backward compatibility. For new applications, use the standalone SmartPasteButton component.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts-no-run
|
|
15
|
-
* import { SmartPasteButtonModule } from '@progress/kendo-angular-buttons';
|
|
16
|
-
*
|
|
17
|
-
* _@NgModule({
|
|
18
|
-
* imports: [SmartPasteButtonModule]
|
|
19
|
-
* })
|
|
20
|
-
* export class AppModule {}
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare class SmartPasteButtonModule {
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SmartPasteButtonModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartPasteButtonModule, never, [typeof i1.SmartPasteButtonComponent], [typeof i1.SmartPasteButtonComponent]>;
|
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SmartPasteButtonModule>;
|
|
27
|
-
}
|
|
@@ -1,50 +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 { SmartPasteCustomInput } from "@progress/kendo-smartpaste-common";
|
|
6
|
-
import { HttpClient, HttpResponse } from "@angular/common/http";
|
|
7
|
-
import { Observable } from "rxjs";
|
|
8
|
-
import { SmartPasteAIResponse } from './models';
|
|
9
|
-
/**
|
|
10
|
-
* Checks if a field should be ignored during Smart Paste.
|
|
11
|
-
*
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare function isFieldIgnored(element: Element | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare const getElementIdentifier: (element: HTMLElement) => string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies custom inputs (Kendo components) to include in Smart Paste.
|
|
21
|
-
* Each custom input has an identifier used to detect the component.
|
|
22
|
-
* Defaults to common Kendo UI components (DropDownList, ComboBox, AutoComplete, MultiSelect, DatePicker, etc.).
|
|
23
|
-
*
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export declare const customInputs: SmartPasteCustomInput[];
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export declare const requiresDateValue: (element: HTMLElement) => boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
export declare const requiresBooleanValue: (element: HTMLElement) => boolean;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
export declare const requiresNumericValue: (element: HTMLElement) => boolean;
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
export declare const populateCustomInputs: (element: HTMLElement, value: any) => any;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
export declare const readClipboard: () => Promise<string>;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
export declare const sendSmartPasteRequest: (http: HttpClient, requestData: any) => Observable<HttpResponse<SmartPasteAIResponse>>;
|
|
@@ -1,13 +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
|
-
* Arguments for the `error` event of the `SpeechToTextButton`.
|
|
7
|
-
*/
|
|
8
|
-
export interface SpeechToTextErrorEvent {
|
|
9
|
-
/**
|
|
10
|
-
* Message detailing the cause of the speech recognition error. Use this message for debugging or user feedback.
|
|
11
|
-
*/
|
|
12
|
-
errorMessage: string;
|
|
13
|
-
}
|
|
@@ -1,11 +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
|
-
* Specifies the speech recognition engine or integration the component will use. The possible values are:
|
|
7
|
-
*
|
|
8
|
-
* * `webSpeech`—Uses the browser's native Web Speech API to perform speech recognition. This is the default mode when available and supported by the browser.
|
|
9
|
-
* * `none`—Disables built-in speech recognition. Use this when integrating with a custom or third-party speech recognition service.
|
|
10
|
-
*/
|
|
11
|
-
export type IntegrationMode = 'webSpeech' | 'none';
|
|
@@ -1,18 +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
|
-
* Arguments for the `result` event of the `SpeechToTextButton`.
|
|
7
|
-
*/
|
|
8
|
-
export interface SpeechToTextResultEvent {
|
|
9
|
-
/**
|
|
10
|
-
* Indicates whether the speech recognition result is final (true) or interim (false).
|
|
11
|
-
*/
|
|
12
|
-
isFinal: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* An array of possible recognition alternatives returned by the speech engine.
|
|
15
|
-
* Each alternative contains a transcript of the recognized speech and a confidence score (see [SpeechRecognitionAlternative](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative)).
|
|
16
|
-
*/
|
|
17
|
-
alternatives: SpeechRecognitionAlternative[];
|
|
18
|
-
}
|
|
@@ -1,61 +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 { ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from "../../common/models";
|
|
6
|
-
import { IntegrationMode } from "./integration-mode";
|
|
7
|
-
/**
|
|
8
|
-
* Defines the settings interface for the speech-to-text functionality used in components that integrate the SpeechToTextButton component, such as the AIPrompt ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/aiprompt/configuration#enabling-speech-to-text)).
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const speechSettings: SpeechToTextButtonSettings = {
|
|
13
|
-
* continuous: true,
|
|
14
|
-
* lang: 'en-US',
|
|
15
|
-
* interimResults: false,
|
|
16
|
-
* disabled: false
|
|
17
|
-
* };
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export interface SpeechToTextButtonSettings {
|
|
21
|
-
/**
|
|
22
|
-
* Specifies whether the component returns continuous results for each recognition, or only a single result once recognition stops.
|
|
23
|
-
*/
|
|
24
|
-
continuous?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* When `true`, disables the SpeechToTextButton and prevents user interaction.
|
|
27
|
-
*/
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the background and border styles of the SpeechToTextButton.
|
|
31
|
-
*/
|
|
32
|
-
fillMode?: ButtonFillMode;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
|
|
35
|
-
*/
|
|
36
|
-
integrationMode?: IntegrationMode;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies whether the component should return interim results or not. Interim results are results that are not yet final.
|
|
39
|
-
*/
|
|
40
|
-
interimResults?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies a `BCP 47` language tag (e.g., `'en-US'`, `'bg-BG'`) used for speech recognition.
|
|
43
|
-
*/
|
|
44
|
-
lang?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Represents the maximum number of alternative transcriptions to return for each result.
|
|
47
|
-
*/
|
|
48
|
-
maxAlternatives?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the border radius of the SpeechToTextButton.
|
|
51
|
-
*/
|
|
52
|
-
rounded?: ButtonRounded;
|
|
53
|
-
/**
|
|
54
|
-
* Sets the padding of the SpeechToTextButton.
|
|
55
|
-
*/
|
|
56
|
-
size?: ButtonSize;
|
|
57
|
-
/**
|
|
58
|
-
* Sets a predefined theme color for the SpeechToTextButton. The theme color applies as a background and border color and adjusts the text color.
|
|
59
|
-
*/
|
|
60
|
-
themeColor?: ButtonThemeColor;
|
|
61
|
-
}
|
|
@@ -1,187 +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 { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
7
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { IntegrationMode } from './models/integration-mode';
|
|
10
|
-
import { SpeechToTextResultEvent } from './models/result-event';
|
|
11
|
-
import { SpeechToTextErrorEvent } from './models/error-event';
|
|
12
|
-
import { ButtonFillMode, ButtonRounded, ButtonSize, ButtonThemeColor } from '../common/models';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the Kendo UI SpeechToTextButton component for Angular.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <button kendoSpeechToTextButton></button>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class SpeechToTextButtonComponent implements OnInit, OnDestroy {
|
|
23
|
-
renderer: Renderer2;
|
|
24
|
-
ngZone: NgZone;
|
|
25
|
-
/**
|
|
26
|
-
* When `true`, disables the SpeechToTextButton and prevents user interaction.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
set disabled(disabled: boolean);
|
|
31
|
-
get disabled(): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the padding of the SpeechToTextButton. The default value is set by the Kendo theme.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
set size(size: ButtonSize);
|
|
37
|
-
get size(): ButtonSize;
|
|
38
|
-
/**
|
|
39
|
-
* Sets the border radius of the SpeechToTextButton. The default value is set by the Kendo theme.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
set rounded(rounded: ButtonRounded);
|
|
43
|
-
get rounded(): ButtonRounded;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the background and border styles of the SpeechToTextButton. The default value is set by the Kendo theme.
|
|
46
|
-
*/
|
|
47
|
-
set fillMode(fillMode: ButtonFillMode);
|
|
48
|
-
get fillMode(): ButtonFillMode;
|
|
49
|
-
/**
|
|
50
|
-
* Sets a predefined theme color for the SpeechToTextButton. The default value is set by the Kendo theme.
|
|
51
|
-
* The theme color applies as a background and border color and adjusts the text color for contrast.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
set themeColor(themeColor: ButtonThemeColor);
|
|
55
|
-
get themeColor(): ButtonThemeColor;
|
|
56
|
-
/**
|
|
57
|
-
* Specifies which speech recognition engine or integration the component should use. Allows the component to operate in different environments or use alternative implementations.
|
|
58
|
-
*/
|
|
59
|
-
integrationMode: IntegrationMode;
|
|
60
|
-
/**
|
|
61
|
-
* Specifies a `BCP 47` language tag (e.g., 'en-US', 'bg-BG') used for speech recognition.
|
|
62
|
-
*
|
|
63
|
-
* @default 'en-US'
|
|
64
|
-
*/
|
|
65
|
-
lang: string;
|
|
66
|
-
/**
|
|
67
|
-
* Specifies whether continuous results are returned for each recognition, or only a single result once recognition stops.
|
|
68
|
-
*
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
continuous: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Specifies whether interim results should be returned or not. Interim results are results that are not yet final.
|
|
74
|
-
*
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
interimResults: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Represents the maximum number of alternative transcriptions to return for each result.
|
|
80
|
-
*
|
|
81
|
-
* @default 1
|
|
82
|
-
*/
|
|
83
|
-
maxAlternatives: number;
|
|
84
|
-
/**
|
|
85
|
-
* Fires when the speech recognition service has begun listening to incoming audio.
|
|
86
|
-
*/
|
|
87
|
-
start: EventEmitter<any>;
|
|
88
|
-
/**
|
|
89
|
-
* Fires when the speech recognition service has disconnected.
|
|
90
|
-
*/
|
|
91
|
-
end: EventEmitter<any>;
|
|
92
|
-
/**
|
|
93
|
-
* Fires when the speech recognition service returns a result - a word or phrase has been positively recognized.
|
|
94
|
-
*/
|
|
95
|
-
result: EventEmitter<SpeechToTextResultEvent>;
|
|
96
|
-
/**
|
|
97
|
-
* Fires when a speech recognition error occurs. The event argument is a string, containing the error message.
|
|
98
|
-
*/
|
|
99
|
-
error: EventEmitter<SpeechToTextErrorEvent>;
|
|
100
|
-
/**
|
|
101
|
-
* Fires when the user clicks the SpeechToTextButton.
|
|
102
|
-
*/
|
|
103
|
-
click: EventEmitter<any>;
|
|
104
|
-
get iconButtonClass(): boolean;
|
|
105
|
-
get listeningClass(): boolean;
|
|
106
|
-
speechToTextButtonClass: boolean;
|
|
107
|
-
get classDisabled(): boolean;
|
|
108
|
-
get getDirection(): string;
|
|
109
|
-
/**
|
|
110
|
-
* @hidden
|
|
111
|
-
*/
|
|
112
|
-
onFocus(): void;
|
|
113
|
-
/**
|
|
114
|
-
* @hidden
|
|
115
|
-
*/
|
|
116
|
-
onBlur(): void;
|
|
117
|
-
/**
|
|
118
|
-
* Focuses the SpeechToTextButton component.
|
|
119
|
-
*/
|
|
120
|
-
focus(): void;
|
|
121
|
-
/**
|
|
122
|
-
* Removes focus from the SpeechToTextButton component.
|
|
123
|
-
*/
|
|
124
|
-
blur(): void;
|
|
125
|
-
ngOnInit(): void;
|
|
126
|
-
ngOnChanges(changes: any): void;
|
|
127
|
-
ngOnDestroy(): void;
|
|
128
|
-
constructor(element: ElementRef, renderer: Renderer2, localization: LocalizationService, ngZone: NgZone);
|
|
129
|
-
/**
|
|
130
|
-
* Indicates whether the button is actively listening for incoming audio.
|
|
131
|
-
*/
|
|
132
|
-
isListening: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Indicates whether web speech functionality is supported.
|
|
135
|
-
*/
|
|
136
|
-
get isWebSpeechSupported(): boolean;
|
|
137
|
-
set isFocused(isFocused: boolean);
|
|
138
|
-
get isFocused(): boolean;
|
|
139
|
-
/**
|
|
140
|
-
* @hidden
|
|
141
|
-
*/
|
|
142
|
-
get hasText(): boolean;
|
|
143
|
-
/**
|
|
144
|
-
* @hidden
|
|
145
|
-
*/
|
|
146
|
-
onClick(): void;
|
|
147
|
-
/**
|
|
148
|
-
* @hidden
|
|
149
|
-
*/
|
|
150
|
-
get buttonSvgIcon(): SVGIcon;
|
|
151
|
-
/**
|
|
152
|
-
* @hidden
|
|
153
|
-
*/
|
|
154
|
-
get buttonIcon(): string;
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
|
-
element: HTMLElement;
|
|
159
|
-
/**
|
|
160
|
-
* @hidden
|
|
161
|
-
*/
|
|
162
|
-
isDisabled: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* @hidden
|
|
165
|
-
*/
|
|
166
|
-
subs: Subscription;
|
|
167
|
-
private microphoneSvgIcon;
|
|
168
|
-
private stopSvgIcon;
|
|
169
|
-
private speechRecognition;
|
|
170
|
-
private _size;
|
|
171
|
-
private _rounded;
|
|
172
|
-
private _fillMode;
|
|
173
|
-
private _themeColor;
|
|
174
|
-
private _focused;
|
|
175
|
-
private direction;
|
|
176
|
-
private handleClasses;
|
|
177
|
-
private handleStart;
|
|
178
|
-
private handleEnd;
|
|
179
|
-
private handleResult;
|
|
180
|
-
private handleError;
|
|
181
|
-
private toObservable;
|
|
182
|
-
private handleThemeColor;
|
|
183
|
-
private destroyWebSpeech;
|
|
184
|
-
private createWebSpeech;
|
|
185
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpeechToTextButtonComponent, never>;
|
|
186
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SpeechToTextButtonComponent, "button[kendoSpeechToTextButton]", ["kendoSpeechToTextButton"], { "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "fillMode": { "alias": "fillMode"; "required": false; }; "themeColor": { "alias": "themeColor"; "required": false; }; "integrationMode": { "alias": "integrationMode"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "continuous": { "alias": "continuous"; "required": false; }; "interimResults": { "alias": "interimResults"; "required": false; }; "maxAlternatives": { "alias": "maxAlternatives"; "required": false; }; }, { "start": "start"; "end": "end"; "result": "result"; "error": "error"; "click": "click"; }, never, ["*"], true, never>;
|
|
187
|
-
}
|
|
@@ -1,19 +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 * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./speechtotextbutton.component";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the exported package module.
|
|
9
|
-
*
|
|
10
|
-
* Required for adding SpeechToTextButton features in NgModule-based Angular applications.
|
|
11
|
-
*
|
|
12
|
-
* The package exports:
|
|
13
|
-
* - `SpeechToTextButtonComponent`—The SpeechToTextButton component class.
|
|
14
|
-
*/
|
|
15
|
-
export declare class SpeechToTextButtonModule {
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpeechToTextButtonModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpeechToTextButtonModule, never, [typeof i1.SpeechToTextButtonComponent], [typeof i1.SpeechToTextButtonComponent]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SpeechToTextButtonModule>;
|
|
19
|
-
}
|