@progress/kendo-react-conversational-ui 7.2.4-develop.2 → 7.2.4-develop.4

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 (93) hide show
  1. package/ViewItem.js +8 -0
  2. package/ViewItem.mjs +59 -0
  3. package/ai-prompt/AIPrompt.js +8 -0
  4. package/ai-prompt/AIPrompt.mjs +35 -0
  5. package/ai-prompt/AIPromptContent.js +8 -0
  6. package/ai-prompt/AIPromptContent.mjs +17 -0
  7. package/ai-prompt/AIPromptContext.js +8 -0
  8. package/ai-prompt/AIPromptContext.mjs +15 -0
  9. package/ai-prompt/AIPromptExpander.js +8 -0
  10. package/ai-prompt/AIPromptExpander.mjs +27 -0
  11. package/ai-prompt/AIPromptFooter.js +8 -0
  12. package/ai-prompt/AIPromptFooter.mjs +16 -0
  13. package/ai-prompt/AIPromptHeader.js +8 -0
  14. package/ai-prompt/AIPromptHeader.mjs +36 -0
  15. package/ai-prompt/views/AIPromptCommandsView.js +8 -0
  16. package/ai-prompt/views/AIPromptCommandsView.mjs +38 -0
  17. package/ai-prompt/views/AIPromptOutputView.js +8 -0
  18. package/ai-prompt/views/AIPromptOutputView.mjs +93 -0
  19. package/ai-prompt/views/AIPromptView.js +8 -0
  20. package/ai-prompt/views/AIPromptView.mjs +61 -0
  21. package/ai-prompt/views/AIPromptViewRender.js +8 -0
  22. package/ai-prompt/views/AIPromptViewRender.mjs +16 -0
  23. package/components/Action.js +8 -0
  24. package/components/Action.mjs +44 -0
  25. package/components/ActionGroup.js +8 -0
  26. package/components/ActionGroup.mjs +49 -0
  27. package/components/Attachment.js +8 -0
  28. package/components/Attachment.mjs +49 -0
  29. package/components/AttachmentGroup.js +8 -0
  30. package/components/AttachmentGroup.mjs +74 -0
  31. package/components/Chat.js +8 -0
  32. package/components/Chat.mjs +208 -0
  33. package/components/ChatMessage.js +8 -0
  34. package/components/ChatMessage.mjs +62 -0
  35. package/components/DateMarker.js +8 -0
  36. package/components/DateMarker.mjs +20 -0
  37. package/components/MessageGroup.js +8 -0
  38. package/components/MessageGroup.mjs +69 -0
  39. package/components/NewMessage.js +8 -0
  40. package/components/NewMessage.mjs +94 -0
  41. package/components/Toolbar.js +8 -0
  42. package/components/Toolbar.mjs +17 -0
  43. package/components/base/FocusableUponSelection.js +8 -0
  44. package/components/base/FocusableUponSelection.mjs +20 -0
  45. package/components/base/SelectableItemsContainer.js +8 -0
  46. package/components/base/SelectableItemsContainer.mjs +42 -0
  47. package/components/templates/HeroCard.js +8 -0
  48. package/components/templates/HeroCard.mjs +45 -0
  49. package/dist/cdn/js/kendo-react-conversational-ui.js +8 -5
  50. package/index.d.mts +811 -5
  51. package/index.d.ts +811 -23
  52. package/index.js +8 -5
  53. package/index.mjs +32 -876
  54. package/messages/index.js +8 -0
  55. package/messages/index.mjs +25 -0
  56. package/package-metadata.js +8 -0
  57. package/package-metadata.mjs +19 -0
  58. package/package.json +6 -6
  59. package/utils.js +8 -0
  60. package/utils.mjs +12 -0
  61. package/ChatPropsAndState.d.ts +0 -95
  62. package/Events.d.ts +0 -42
  63. package/ViewItem.d.ts +0 -61
  64. package/ai-prompt/AIPrompt.d.ts +0 -95
  65. package/ai-prompt/AIPromptContent.d.ts +0 -19
  66. package/ai-prompt/AIPromptContext.d.ts +0 -24
  67. package/ai-prompt/AIPromptExpander.d.ts +0 -10
  68. package/ai-prompt/AIPromptFooter.d.ts +0 -19
  69. package/ai-prompt/AIPromptHeader.d.ts +0 -36
  70. package/ai-prompt/views/AIPromptCommandsView.d.ts +0 -54
  71. package/ai-prompt/views/AIPromptOutputView.d.ts +0 -66
  72. package/ai-prompt/views/AIPromptView.d.ts +0 -26
  73. package/ai-prompt/views/AIPromptViewRender.d.ts +0 -23
  74. package/api/action.interface.d.ts +0 -35
  75. package/api/attachment.interface.d.ts +0 -36
  76. package/api/message.interface.d.ts +0 -60
  77. package/api/user.interface.d.ts +0 -27
  78. package/components/Action.d.ts +0 -23
  79. package/components/ActionGroup.d.ts +0 -27
  80. package/components/Attachment.d.ts +0 -28
  81. package/components/AttachmentGroup.d.ts +0 -27
  82. package/components/Chat.d.ts +0 -76
  83. package/components/ChatMessage.d.ts +0 -72
  84. package/components/DateMarker.d.ts +0 -18
  85. package/components/MessageGroup.d.ts +0 -29
  86. package/components/NewMessage.d.ts +0 -38
  87. package/components/Toolbar.d.ts +0 -13
  88. package/components/base/FocusableUponSelection.d.ts +0 -24
  89. package/components/base/SelectableItemsContainer.d.ts +0 -37
  90. package/components/templates/HeroCard.d.ts +0 -45
  91. package/messages/index.d.ts +0 -39
  92. package/package-metadata.d.ts +0 -9
  93. package/utils.d.ts +0 -9
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import React from 'react';
6
- /**
7
- * The props of the AIPromptViewRender component.
8
- */
9
- interface AIPromptViewRenderProps {
10
- /**
11
- * Specifies the name of the view.
12
- */
13
- name: string;
14
- /**
15
- * Specifies the AIPromptViewRender children elements.
16
- */
17
- children: React.ReactNode;
18
- }
19
- /**
20
- * Represents the KendoReact AIPromptViewRender component.
21
- */
22
- export declare const AIPromptViewRender: (props: AIPromptViewRenderProps) => React.ReactNode;
23
- export {};
@@ -1,35 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The button type of the quick action
7
- * ([see examples]({% slug suggested_actions_chat %})).
8
- *
9
- * * `openUrl`—Opens a new browser window with the specified URL.
10
- * * `reply`—Sends the action value as a reply in the Chat.
11
- * * `call`—Treats a value as a phone number.
12
- * Similar to clicking a [telephone link](https://css-tricks.com/the-current-state-of-telephone-links/).
13
- * * other—
14
- * Handled by user code in the [`ExecuteActionEvent`]({% slug api_conversational-ui_chatactionexecuteevent %}).
15
- */
16
- export type ActionType = 'openUrl' | 'reply' | 'call' | any;
17
- /**
18
- * Defines a quick action for a message.
19
- * The value is interpreted according to the specified action type.
20
- */
21
- export interface Action {
22
- /**
23
- * A predefined or custom (string) type for the action.
24
- */
25
- type: ActionType;
26
- /**
27
- * The value which is associated with the action.
28
- */
29
- value: any;
30
- /**
31
- * An optional title for the quick action.
32
- * If omitted, the Chat displays the value instead.
33
- */
34
- title?: string;
35
- }
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents a message attachment
7
- * ([see examples]({% slug attachments_chat %})).
8
- *
9
- */
10
- export interface Attachment {
11
- /**
12
- * The content type identifier for the attachment.
13
- * Typically a MIME type. Can also be any string.
14
- */
15
- contentType: string;
16
- /**
17
- * The content of the attachment.
18
- */
19
- content: any;
20
- /**
21
- * (Optional) The title of the attachment.
22
- */
23
- title?: string;
24
- /**
25
- * (Optional) The subtitle of the attachment.
26
- */
27
- subtitle?: string;
28
- }
29
- /**
30
- * Specifies the layout for the message attachments.
31
- *
32
- * The supported values are:
33
- * * `"list"`—A vertical list.
34
- * * `"carousel"`—A horizontal, scrollable list. Also called a card deck.
35
- */
36
- export type AttachmentLayout = 'list' | 'carousel';
@@ -1,60 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Action } from './action.interface';
6
- import { Attachment, AttachmentLayout } from './attachment.interface';
7
- import { User } from './user.interface';
8
- /**
9
- * Represents a Chat message.
10
- *
11
- * > * You are required to provide the `author` field.
12
- * > * [Local users]({% slug api_conversational-ui_chatprops %}#toc-user) are displayed to the
13
- * right in left-to-right languages and to the left in right-to-left languages.
14
- * > * If `typing` is set to `true`, the Chat displays a typing indicator instead of text.
15
- */
16
- export interface Message {
17
- /**
18
- * The author of the message.
19
- */
20
- author: User;
21
- /**
22
- * The layout that will be used for displaying message attachments, if any
23
- * ([see example]({% slug attachments_chat %}#toc-display-modes)).
24
- */
25
- attachmentLayout?: AttachmentLayout;
26
- /**
27
- * (Optional) The message attachments
28
- * ([see example]({% slug attachments_chat %})).
29
- */
30
- attachments?: Attachment[];
31
- /**
32
- * The suggested quick actions that will be displayed below this message
33
- * ([see example]({% slug suggested_actions_chat %}#toc-defining-quick-actions)).
34
- *
35
- * > Suggested actions are displayed only for the last message in the conversation.
36
- */
37
- suggestedActions?: Action[];
38
- /**
39
- * An optional status string for the message.
40
- * The status is displayed when the message is selected—either
41
- * by clicking on it or by using the keyboard navigation shortcuts.
42
- */
43
- status?: string;
44
- /**
45
- * (Optional) The text for the message.
46
- * For example, certain messages can contain
47
- * only attachments or quick actions.
48
- */
49
- text?: string;
50
- /**
51
- * The time at which the message was composed.
52
- *
53
- */
54
- timestamp?: Date;
55
- /**
56
- * A Boolean value which indicates if the message is still being typed by the user.
57
- * If set to `true`, the Chat displays a typing indicator instead of the actual message.
58
- */
59
- typing?: boolean;
60
- }
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents a participant in a Chat conversation.
7
- */
8
- export interface User {
9
- /**
10
- * A unique ID for this user.
11
- * Typically, the ID is a number.
12
- * Can also be a string or an object.
13
- */
14
- id: any;
15
- /**
16
- * (Optional) The displayed name for the user.
17
- */
18
- name?: string;
19
- /**
20
- * (Optional) An avatar image for the user.
21
- */
22
- avatarUrl?: string;
23
- /**
24
- * (Optional) An avatar image alt text for the user.
25
- */
26
- avatarAltText?: string;
27
- }
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Action as ActionModel } from './..';
6
- import { FocusableUponSelection, FocusableUponSelectionProps } from './base/FocusableUponSelection';
7
- /**
8
- * @hidden
9
- */
10
- export interface ActionProps extends FocusableUponSelectionProps {
11
- item: ActionModel;
12
- onActionExecute: any;
13
- isFirstItemInGroup?: boolean;
14
- isLastItemInGroup?: boolean;
15
- }
16
- /**
17
- * @hidden
18
- */
19
- export default class Action extends FocusableUponSelection<ActionProps, {}> {
20
- render(): import("react/jsx-runtime").JSX.Element;
21
- private onKeyDown;
22
- private getClassNames;
23
- }
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ActionGroup as ActionGroupModel } from './../ViewItem';
6
- import { SelectableItemsContainer, SelectableItemsContainerProps, SelectableItemsContainerState } from './base/SelectableItemsContainer';
7
- /**
8
- * @hidden
9
- */
10
- export interface ActionGroupProps extends SelectableItemsContainerProps {
11
- group: ActionGroupModel;
12
- itemTemplate?: any;
13
- onActionExecute: any;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export interface ActionGroupState extends SelectableItemsContainerState {
19
- }
20
- /**
21
- * @hidden
22
- */
23
- export default class ActionGroup extends SelectableItemsContainer<ActionGroupProps, ActionGroupState> {
24
- constructor(props: any);
25
- render(): import("react/jsx-runtime").JSX.Element;
26
- private getClassNames;
27
- }
@@ -1,28 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Attachment as AttachmentModel } from './..';
6
- import { FocusableUponSelection, FocusableUponSelectionProps } from './base/FocusableUponSelection';
7
- /**
8
- * @hidden
9
- */
10
- export interface AttachmentProps extends FocusableUponSelectionProps {
11
- item: AttachmentModel;
12
- template?: any;
13
- tabbable?: boolean;
14
- isFirstItemInGroup?: boolean;
15
- isLastItemInGroup?: boolean;
16
- onClick?: any;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export default class Attachment extends FocusableUponSelection<AttachmentProps, {}> {
22
- render(): import("react/jsx-runtime").JSX.Element;
23
- private getTabIndexValue;
24
- private getClassNames;
25
- private getTitleView;
26
- private getSubtitleView;
27
- private getContentView;
28
- }
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { AttachmentGroup as AttachmentGroupModel } from './../ViewItem';
6
- import { SelectableItemsContainer, SelectableItemsContainerProps, SelectableItemsContainerState } from './base/SelectableItemsContainer';
7
- /**
8
- * @hidden
9
- */
10
- export interface AttachmentGroupProps extends SelectableItemsContainerProps {
11
- group: AttachmentGroupModel;
12
- itemTemplate?: any;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export default class AttachmentGroup extends SelectableItemsContainer<AttachmentGroupProps, SelectableItemsContainerState> {
18
- render(): import("react/jsx-runtime").JSX.Element;
19
- protected get isKeyboardNavigationLeftRight(): boolean;
20
- private getLastItemIndex;
21
- private getLeftScrollBtn;
22
- private getRightScrollBtn;
23
- private onAttachmentClick;
24
- private onNavigateBtnClick;
25
- private isCardDeckLayout;
26
- private getClassNames;
27
- }
@@ -1,76 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import PropTypes from 'prop-types';
6
- import * as React from 'react';
7
- import { ChatState } from './../ChatPropsAndState';
8
- import { ChatProps } from './..';
9
- import { ChatMessage } from './ChatMessage';
10
- /**
11
- * Represents the [KendoReact Chat component]({% slug overview_convui %}).
12
- */
13
- export declare class Chat extends React.Component<ChatProps, ChatState> {
14
- /**
15
- * @hidden
16
- */
17
- static propTypes: {
18
- messages: PropTypes.Requireable<(object | null | undefined)[]>;
19
- user: PropTypes.Requireable<object>;
20
- messageTemplate: PropTypes.Requireable<any>;
21
- attachmentTemplate: PropTypes.Requireable<any>;
22
- width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
23
- onMessageSend: PropTypes.Requireable<(...args: any[]) => any>;
24
- onActionExecute: PropTypes.Requireable<(...args: any[]) => any>;
25
- dir: PropTypes.Requireable<string>;
26
- messageBox: PropTypes.Requireable<any>;
27
- };
28
- /**
29
- * @hidden
30
- */
31
- static defaultProps: {
32
- messages: never[];
33
- dateFormat: string;
34
- message: typeof ChatMessage;
35
- };
36
- /**
37
- * @hidden
38
- */
39
- readonly state: ChatState;
40
- private chatWrapperEl;
41
- private viewItemsWrapperEl;
42
- private newMsgComp;
43
- private timeoutIdForChatLosingFocus;
44
- private nextTickId;
45
- private viewItems;
46
- private isDirectionRightToLeft;
47
- private scrollToBottomOnLoadingData;
48
- constructor(props: ChatProps);
49
- /**
50
- * @hidden
51
- */
52
- render(): import("react/jsx-runtime").JSX.Element;
53
- /**
54
- * @hidden
55
- */
56
- componentDidMount(): void;
57
- /**
58
- * @hidden
59
- */
60
- componentWillUnmount(): void;
61
- /**
62
- * @hidden
63
- */
64
- componentDidUpdate(prevProps: ChatProps): void;
65
- private getClassNames;
66
- private checkIsDirectionRightToLeft;
67
- private onFocus;
68
- private onBlur;
69
- private onSelectionRequested;
70
- private onKeyDown;
71
- private renderViewItems;
72
- private onMessageSend;
73
- private onActionExecute;
74
- private scrollViewItemsToBottom;
75
- private getViewItemsFromMsgs;
76
- }
@@ -1,72 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { MessageModel } from './../ViewItem';
7
- import { FocusableUponSelection, FocusableUponSelectionProps } from './base/FocusableUponSelection';
8
- /**
9
- * Represents the properties available to the `messageTemplate` custom component.
10
- *
11
- * For more information, refer to the [Message Template]({% slug message_templates_chat %}) article.
12
- */
13
- export interface ChatMessageTemplateProps {
14
- item: MessageModel;
15
- }
16
- /**
17
- * Represents the properties of [ChatMessage] (% slug api_conversational-ui_chatmessage %) component.
18
- */
19
- export interface ChatMessageProps extends FocusableUponSelectionProps {
20
- /**
21
- * Represents the data item of the `Message`.
22
- */
23
- item: MessageModel;
24
- /**
25
- * Represents the React Component rendered inside the `Message`.
26
- */
27
- template?: React.ComponentType<ChatMessageTemplateProps>;
28
- /**
29
- * @hidden
30
- */
31
- onRequestSelection: any;
32
- /**
33
- * Represents the tab index attribute.
34
- */
35
- tabIndex?: number;
36
- /**
37
- * @hidden
38
- */
39
- isFirstItemInGroup: boolean;
40
- /**
41
- * @hidden
42
- */
43
- isLastItemInGroup: boolean;
44
- /**
45
- * @hidden
46
- */
47
- isOnlyItemInGroup: boolean;
48
- /**
49
- * Represents the date format of the message date.
50
- */
51
- dateFormat?: string;
52
- }
53
- /**
54
- * Represents the ChatMessage component.
55
- */
56
- export declare class ChatMessage extends FocusableUponSelection<ChatMessageProps, {}> {
57
- /**
58
- * @hidden
59
- */
60
- static defaultProps: {
61
- dateFormat: string;
62
- tabIndex: number;
63
- };
64
- /**
65
- * @hidden
66
- */
67
- render(): import("react/jsx-runtime").JSX.Element;
68
- private getMainView;
69
- private getTimestampView;
70
- private getStatusView;
71
- private getClassNames;
72
- }
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { DateMarker as DateMarkerModel } from './../ViewItem';
7
- /**
8
- * @hidden
9
- */
10
- export interface DateMarkerProps {
11
- item: DateMarkerModel;
12
- }
13
- /**
14
- * @hidden
15
- */
16
- export default class DateMarker extends React.Component<DateMarkerProps, {}> {
17
- render(): import("react/jsx-runtime").JSX.Element;
18
- }
@@ -1,29 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { User } from './..';
7
- import { MessageGroup as MessageGroupModel } from './../ViewItem';
8
- import { ChatMessageProps } from './ChatMessage';
9
- /**
10
- * @hidden
11
- */
12
- export interface MessageGroupProps {
13
- group: MessageGroupModel;
14
- user: User;
15
- itemTemplate?: any;
16
- attachmentTemplate?: any;
17
- onRequestSelection: any;
18
- selectedItemIndex: number | null;
19
- isLastGroup: boolean;
20
- message: React.ComponentType<ChatMessageProps>;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- export default class MessageGroup extends React.Component<MessageGroupProps, {}> {
26
- render(): import("react/jsx-runtime").JSX.Element;
27
- private getMsgGroupClassNames;
28
- private getGroupMessagesView;
29
- }
@@ -1,38 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { User } from './..';
7
- import { ChatMessageBoxProps } from '../ChatPropsAndState';
8
- /**
9
- * @hidden
10
- */
11
- export interface NewMessageProps {
12
- onMessageSend: any;
13
- user: User;
14
- isDirectionRightToLeft: boolean | null;
15
- placeholder?: string;
16
- toolbar?: any;
17
- onToolbarActionButtonClick?: any;
18
- showToolbar?: boolean;
19
- MessageBox?: React.ComponentType<ChatMessageBoxProps>;
20
- }
21
- /**
22
- * @hidden
23
- */
24
- export interface NewMessageState {
25
- focused: boolean;
26
- }
27
- /**
28
- * @hidden
29
- */
30
- export default class NewMessage extends React.Component<NewMessageProps, NewMessageState> {
31
- readonly state: NewMessageState;
32
- private inputEl;
33
- render(): import("react/jsx-runtime").JSX.Element;
34
- focusInput(): void;
35
- private onInputKeyDown;
36
- private getClassNames;
37
- private sendMessage;
38
- }
@@ -1,13 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export default class Toolbar extends React.Component<{
10
- children?: React.ReactNode;
11
- }> {
12
- render(): import("react/jsx-runtime").JSX.Element;
13
- }
@@ -1,24 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- /**
7
- * @hidden
8
- */
9
- export interface FocusableUponSelectionProps {
10
- /**
11
- * Sets the `selected` state of the component.
12
- */
13
- selected: boolean;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export declare abstract class FocusableUponSelection<P extends FocusableUponSelectionProps, S = {}> extends React.Component<P, S> {
19
- protected elementToFocus: any;
20
- /**
21
- * @hidden
22
- */
23
- componentDidUpdate(prevProps: any): void;
24
- }
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ActionGroup, AttachmentGroup } from './../../ViewItem';
7
- /**
8
- * @hidden
9
- */
10
- export interface SelectableItemsContainerProps {
11
- selected: boolean;
12
- isLastGroup: boolean;
13
- group: ActionGroup | AttachmentGroup;
14
- onRequestSelection: any;
15
- }
16
- /**
17
- * @hidden
18
- */
19
- export interface SelectableItemsContainerState {
20
- selectedItemIndex: number | null;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- export declare abstract class SelectableItemsContainer<P extends SelectableItemsContainerProps, S extends SelectableItemsContainerState> extends React.Component<P, S> {
26
- readonly state: any;
27
- static getDerivedStateFromProps(props: SelectableItemsContainerProps, state: SelectableItemsContainerState): {
28
- selectedItemIndex: null;
29
- } | {
30
- selectedItemIndex: number;
31
- } | null;
32
- protected onRequestContainerSelection: () => any;
33
- protected onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
34
- protected navigate(incrementSelection: boolean, newSelectedItemIndexUponFirstIncrement?: number): number | null;
35
- protected get isKeyboardNavigationLeftRight(): boolean;
36
- private getLastSelectionIndex;
37
- }
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { Action, HeroCardActionExecuteEvent } from './../..';
7
- export interface HeroCardProps {
8
- /**
9
- * The URL of the hero card image.
10
- */
11
- imageUrl: string;
12
- /**
13
- * The title of the hero card.
14
- */
15
- title: string;
16
- /**
17
- * The subtitle of the hero card.
18
- */
19
- subtitle: string;
20
- /**
21
- * An array with the possible quick actions for this hero card.
22
- */
23
- actions: Action[];
24
- /**
25
- * Fires when the user clicks a button.
26
- */
27
- onActionExecute?: (event: HeroCardActionExecuteEvent) => void;
28
- /**
29
- * Max width of the card image.
30
- */
31
- imageMaxWidth?: string | number;
32
- }
33
- /**
34
- * Represents a Hero Card component. Hero cards host a single large image and action buttons with text content.
35
- */
36
- export declare class HeroCard extends React.Component<HeroCardProps, {}> {
37
- /**
38
- * @hidden
39
- */
40
- render(): import("react/jsx-runtime").JSX.Element;
41
- private onBtnClick;
42
- private getActionsView;
43
- private getTitleView;
44
- private getSubtitleView;
45
- }