@progress/kendo-angular-buttons 22.1.0-develop.9 → 23.0.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.
Files changed (37) hide show
  1. package/README.md +2 -1
  2. package/button/button.component.d.ts +7 -16
  3. package/button/selection-settings.d.ts +1 -1
  4. package/buttons.module.d.ts +2 -1
  5. package/chip/chip-list.component.d.ts +1 -3
  6. package/chip/chip.component.d.ts +7 -15
  7. package/common/models/fillmode.d.ts +2 -2
  8. package/common/models/size.d.ts +2 -2
  9. package/common/models/theme-color.d.ts +3 -5
  10. package/directives.d.ts +16 -1
  11. package/dropdownbutton/dropdownbutton.component.d.ts +5 -9
  12. package/fesm2022/progress-kendo-angular-buttons.mjs +1112 -442
  13. package/floatingactionbutton/floatingactionbutton.component.d.ts +10 -14
  14. package/floatingactionbutton/models/align.d.ts +1 -1
  15. package/floatingactionbutton/models/item-animation.interface.d.ts +1 -1
  16. package/floatingactionbutton/models/item-click.event.d.ts +1 -1
  17. package/floatingactionbutton/models/item.interface.d.ts +2 -2
  18. package/floatingactionbutton/models/offset.d.ts +1 -1
  19. package/floatingactionbutton/models/position-mode.d.ts +1 -1
  20. package/floatingactionbutton/templates/dial-item-template.directive.d.ts +1 -1
  21. package/floatingactionbutton/templates/fab-template.directive.d.ts +1 -1
  22. package/index.d.ts +3 -0
  23. package/listbutton/button-item-template.directive.d.ts +1 -1
  24. package/listbutton/list-item-model.d.ts +1 -1
  25. package/package-metadata.mjs +2 -2
  26. package/package.json +8 -7
  27. package/smartpastebutton/models/form-field.d.ts +40 -0
  28. package/smartpastebutton/models/index.d.ts +6 -0
  29. package/smartpastebutton/models/service-settings.d.ts +108 -0
  30. package/smartpastebutton/smartpastebutton.component.d.ts +175 -0
  31. package/smartpastebutton/smartpastebutton.module.d.ts +27 -0
  32. package/smartpastebutton/utils.d.ts +50 -0
  33. package/speechtotextbutton/models/speechtotextbutton-settings.d.ts +1 -1
  34. package/speechtotextbutton/speechtotextbutton.component.d.ts +5 -11
  35. package/splitbutton/localization/custom-messages.component.d.ts +1 -1
  36. package/splitbutton/splitbutton.component.d.ts +9 -17
  37. package/util.d.ts +2 -2
@@ -52,21 +52,17 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
52
52
  dialItemTemplate: DialItemTemplateDirective;
53
53
  fabTemplate: FloatingActionButtonTemplateDirective;
54
54
  /**
55
- * Specifies the theme color of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#theme-colors)).
56
- * @default "primary"
55
+ * Specifies the theme color of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/appearance#theme-colors)). The default value is set by the Kendo theme.
57
56
  */
58
57
  set themeColor(themeColor: ButtonThemeColor);
59
58
  get themeColor(): ButtonThemeColor;
60
59
  /**
61
- * Specifies the size of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#size)).
62
- * @default "medium"
60
+ * Specifies the size of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/appearance#size)). The default value is set by the Kendo theme.
63
61
  */
64
62
  set size(size: ButtonSize);
65
63
  get size(): ButtonSize;
66
64
  /**
67
- * Specifies the border radius of the FloatingActionButton ([see example](slug:appearance_floatingactionbutton#roundness)).
68
- *
69
- * @default "full"
65
+ * Specifies the border radius of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/appearance#roundness)). The default value is set by the Kendo theme.
70
66
  */
71
67
  set rounded(rounded: ButtonRounded);
72
68
  get rounded(): ButtonRounded;
@@ -77,19 +73,19 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
77
73
  set disabled(disabled: boolean);
78
74
  get disabled(): boolean;
79
75
  /**
80
- * Specifies the alignment of the FloatingActionButton ([see example](slug:positioning_floatingactionbutton#alignment)).
76
+ * Specifies the alignment of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#alignment)).
81
77
  * @default { horizontal: 'end', vertical: 'top' }
82
78
  */
83
79
  set align(align: FabAlign);
84
80
  get align(): FabAlign;
85
81
  /**
86
- * Specifies the offset position of the FloatingActionButton ([see example]({% slug positioning_floatingactionbutton %}#offset)).
82
+ * Specifies the offset position of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#offset)).
87
83
  * @default { x: '16px', y: '16px' }
88
84
  */
89
85
  set offset(offset: FabOffset);
90
86
  get offset(): FabOffset;
91
87
  /**
92
- * Specifies the position mode of the FloatingActionButton ([see example](slug:positioning_floatingactionbutton#position-mode)).
88
+ * Specifies the position mode of the FloatingActionButton ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#position-mode)).
93
89
  * @default "fixed"
94
90
  */
95
91
  positionMode: FabPositionMode;
@@ -98,7 +94,7 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
98
94
  */
99
95
  icon: string;
100
96
  /**
101
- * Defines an [`SVGIcon`](slug:api_icons_svgicon) to be rendered within the FloatingActionButton.
97
+ * Defines an [`SVGIcon`](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) to be rendered within the FloatingActionButton.
102
98
  */
103
99
  svgIcon: SVGIcon;
104
100
  /**
@@ -147,12 +143,12 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
147
143
  dialItemClick: EventEmitter<DialItemClickEvent>;
148
144
  /**
149
145
  * Fires when the popup is about to open. This event is preventable
150
- * ([more information and example](slug:events_floatingactionbutton)).
146
+ * ([more information and example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/events)).
151
147
  */
152
148
  open: EventEmitter<PreventableEvent>;
153
149
  /**
154
150
  * Fires when the popup is about to close. This event is preventable
155
- * ([more information and example](slug:events_floatingactionbutton)).
151
+ * ([more information and example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/events)).
156
152
  */
157
153
  close: EventEmitter<PreventableEvent>;
158
154
  /**
@@ -199,7 +195,7 @@ export declare class FloatingActionButtonComponent implements AfterViewInit, OnD
199
195
  * Toggles the visibility of the FloatingActionButton dial items popup.
200
196
  *
201
197
  * If you use the `toggleDial` method to open or close the dial items,
202
- * the `open` and `close` events do not fire ([more information and examples](slug:openstate_floatingactionbutton)).
198
+ * the `open` and `close` events do not fire ([more information and examples](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/open_state)).
203
199
  *
204
200
  * @param open - The state of dial items popup.
205
201
  */
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Specifies the horizontal and vertical alignment of the FloatingActionButton relative to the viewport or parent element
7
- * ([see example](slug:positioning_floatingactionbutton#alignment)).
7
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#alignment)).
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Specifies the animation settings for the dial items of the FloatingActionButton
7
- * ([see example]({% slug dialitems_floatingactionbutton %}#animation)).
7
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/dial_items#animation)).
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Arguments for the `click` event of a dial item
7
- * ([see example](slug:events_floatingactionbutton)).
7
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/events)).
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -5,7 +5,7 @@
5
5
  import { SVGIcon } from "@progress/kendo-svg-icons";
6
6
  /**
7
7
  * An interface for the dial items of the FloatingActionButton
8
- * ([see example]({% slug dialitems_floatingactionbutton %}#dial-items)).
8
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/dial_items#dial-items)).
9
9
  */
10
10
  export interface DialItem {
11
11
  /**
@@ -33,7 +33,7 @@ export interface DialItem {
33
33
  */
34
34
  iconClass?: string;
35
35
  /**
36
- * Defines an [`SVGIcon`](slug:api_icons_svgicon) to render within the dial item.
36
+ * Defines an [`SVGIcon`](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) to render within the dial item.
37
37
  */
38
38
  svgIcon?: SVGIcon;
39
39
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Specifies the horizontal and vertical offset positions of the FloatingActionButton
7
- * ([see example]({% slug positioning_floatingactionbutton %}#offset)).
7
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#offset)).
8
8
  *
9
9
  * @example
10
10
  * ```typescript
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Specifies the `positionMode` of the FloatingActionButton
7
- * ([see example](slug:positioning_floatingactionbutton#position-mode)).
7
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/positioning#position-mode)).
8
8
  *
9
9
  * The possible values are:
10
10
  * - `absolute`&mdash;Positions the FloatingActionButton absolutely to its first positioned parent element.
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Represents a template that defines the content of a dial item.
9
9
  * To define the template, nest an `<ng-template>` tag with the `kendoDialItemTemplate` directive inside the `<kendo-floatingactionbutton>` tag
10
- *([see example]({% slug templates_floatingactionbutton %}#dial-item-template)).
10
+ *([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/templates#dial-item-template)).
11
11
  *
12
12
  * @example
13
13
  * ```html
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  * Represents a template that defines the content of the FloatingActionButton.
9
9
  * To define the template, nest an `<ng-template>` tag with the `kendoFloatingActionButtonTemplate` directive inside the `<kendo-floatingactionbutton>` tag
10
10
  *
11
- * ([see example](slug:templates_floatingactionbutton#floatingactionbutton-template)).
11
+ * ([see example](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/templates#floatingactionbutton-template)).
12
12
  *
13
13
  * @example
14
14
  * ```html
package/index.d.ts CHANGED
@@ -44,6 +44,9 @@ export { SpeechToTextResultEvent } from './speechtotextbutton/models/result-even
44
44
  export { SpeechToTextErrorEvent } from './speechtotextbutton/models/error-event';
45
45
  export { SpeechToTextButtonSettings } from './speechtotextbutton/models/speechtotextbutton-settings';
46
46
  export { SpeechToTextButtonModule } from './speechtotextbutton/speechtotextbutton.module';
47
+ export { SmartPasteButtonComponent } from './smartpastebutton/smartpastebutton.component';
48
+ export { SmartPasteButtonModule } from './smartpastebutton/smartpastebutton.module';
49
+ export { SmartPasteFormField, SmartPasteType, SmartPasteAIRequestData, SmartPasteAIResponse, SmartPasteAIRequestOptions, SmartPasteRequestStartEvent, SmartPasteRequestEndEvent } from './smartpastebutton/models';
47
50
  export { ButtonSize, ChipSize, ButtonRounded, ChipRounded, ButtonFillMode, ChipFillMode, ButtonThemeColor, ChipThemeColor, ArrowIconSettings } from './common/models';
48
51
  export { FocusableDirective } from './focusable/focusable.directive';
49
52
  export { PreventableEvent } from './preventable-event';
@@ -28,7 +28,7 @@ import * as i0 from "@angular/core";
28
28
  * </kendo-dropdownbutton>
29
29
  * ```
30
30
  *
31
- * For more examples, refer to the article on the [DropDownButton templates](slug:itemstemplates_dropdownbutton).
31
+ * For more examples, refer to the article on the [DropDownButton templates](https://www.telerik.com/kendo-angular-ui/components/buttons/dropdownbutton/items-and-templates).
32
32
  */
33
33
  export declare class ButtonItemTemplateDirective {
34
34
  templateRef: TemplateRef<any>;
@@ -42,7 +42,7 @@ export interface ListItemModel {
42
42
  */
43
43
  icon?: string;
44
44
  /**
45
- * Defines an [SVGIcon](slug:api_icons_svgicon) rendered next to the title.
45
+ * Defines an [SVGIcon](https://www.telerik.com/kendo-angular-ui/components/icons/api/svgicon) rendered next to the title.
46
46
  */
47
47
  svgIcon?: SVGIcon;
48
48
  /**
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1769599907,
11
- "version": "22.1.0-develop.9",
10
+ "publishDate": 1770666577,
11
+ "version": "23.0.0-develop.10",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-buttons",
3
- "version": "22.1.0-develop.9",
3
+ "version": "23.0.0-develop.10",
4
4
  "description": "Buttons Package for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -21,7 +21,7 @@
21
21
  "package": {
22
22
  "productName": "Kendo UI for Angular",
23
23
  "productCode": "KENDOUIANGULAR",
24
- "publishDate": 1769599907,
24
+ "publishDate": 1770666577,
25
25
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
26
26
  }
27
27
  },
@@ -31,15 +31,16 @@
31
31
  "@angular/core": "19 - 21",
32
32
  "@angular/platform-browser": "19 - 21",
33
33
  "@progress/kendo-licensing": "^1.10.0",
34
- "@progress/kendo-angular-common": "22.1.0-develop.9",
35
- "@progress/kendo-angular-l10n": "22.1.0-develop.9",
36
- "@progress/kendo-angular-popup": "22.1.0-develop.9",
37
- "@progress/kendo-angular-icons": "22.1.0-develop.9",
34
+ "@progress/kendo-angular-common": "23.0.0-develop.10",
35
+ "@progress/kendo-angular-l10n": "23.0.0-develop.10",
36
+ "@progress/kendo-angular-popup": "23.0.0-develop.10",
37
+ "@progress/kendo-angular-icons": "23.0.0-develop.10",
38
+ "@progress/kendo-smartpaste-common": "0.0.0-PLACEHOLDER",
38
39
  "rxjs": "^6.5.3 || ^7.0.0"
39
40
  },
40
41
  "dependencies": {
41
42
  "tslib": "^2.3.1",
42
- "@progress/kendo-angular-schematics": "22.1.0-develop.9",
43
+ "@progress/kendo-angular-schematics": "23.0.0-develop.10",
43
44
  "@progress/kendo-common": "^1.0.1",
44
45
  "@progress/kendo-webspeech-common": "1.0.1"
45
46
  },
@@ -0,0 +1,40 @@
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
+ * Represents a form field configuration for Smart Paste.
7
+ */
8
+ export interface SmartPasteFormField {
9
+ /**
10
+ * Sets the name or identifier of the form field.
11
+ */
12
+ field: string;
13
+ /**
14
+ * Sets the data type of the form field.
15
+ */
16
+ type: SmartPasteType;
17
+ /**
18
+ * Sets the description of the form field.
19
+ * Helps the AI understand the purpose and expected content of the field.
20
+ */
21
+ description: string;
22
+ /**
23
+ * Sets the allowed values for enum-type fields.
24
+ * Use this for fields with a fixed set of options like select or radio buttons.
25
+ */
26
+ allowedValues?: string[];
27
+ }
28
+ /**
29
+ * @hidden
30
+ */
31
+ export interface SmartPasteFormFieldInternal extends SmartPasteFormField {
32
+ /**
33
+ * The DOM element associated with the form field.
34
+ */
35
+ element: Element | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
36
+ }
37
+ /**
38
+ * Defines the data type for a Smart Paste form field.
39
+ */
40
+ export type SmartPasteType = 'string' | 'boolean' | 'number' | 'fixed-choices' | 'kendo-input';
@@ -0,0 +1,6 @@
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
+ export * from './form-field';
6
+ export * from './service-settings';
@@ -0,0 +1,108 @@
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
+ export declare class SmartPasteRequestStartEvent extends PreventableEvent {
95
+ /**
96
+ * Gets the request data to send to the AI service.
97
+ */
98
+ requestData: SmartPasteAIRequestData;
99
+ constructor(requestData: SmartPasteAIRequestData);
100
+ }
101
+ export declare class SmartPasteRequestEndEvent extends PreventableEvent {
102
+ /**
103
+ * Gets the HTTP response from the AI service.
104
+ * Contains an error object when the request fails.
105
+ */
106
+ response: HttpResponse<any>;
107
+ constructor(response: HttpResponse<any>);
108
+ }
@@ -0,0 +1,175 @@
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
+ * @default null
107
+ */
108
+ smartPasteFormFields: SmartPasteField[] | null;
109
+ /**
110
+ * Fires when the Smart Paste request is about to start.
111
+ * Prevent the event to stop the request before sending it.
112
+ */
113
+ requestStart: EventEmitter<SmartPasteRequestStartEvent>;
114
+ /**
115
+ * Fires when the Smart Paste request completes, either successfully or with an error.
116
+ * Prevent the event to cancel populating the form fields with the response data.
117
+ */
118
+ requestEnd: EventEmitter<SmartPasteRequestEndEvent>;
119
+ /**
120
+ * Fires when the user cancels an ongoing Smart Paste request.
121
+ */
122
+ requestCancel: EventEmitter<void>;
123
+ get iconButtonClass(): boolean;
124
+ classButton: 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
+ }
@@ -0,0 +1,27 @@
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
+ }