@progress/kendo-react-conversational-ui
Version:
React Chat component allows the user to participate in chat sessions with users or chat bots. KendoReact Conversational UI components
9 lines (8 loc) • 1.39 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;const r=require("react"),c=require("@progress/kendo-react-common"),a=require("./Action.js"),i=require("./base/SelectableItemsContainer.js");function u(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(e,o,t.get?t:{enumerable:!0,get:()=>s[o]})}}return e.default=s,Object.freeze(e)}const n=u(r);class l extends i.SelectableItemsContainer{constructor(e){super(e)}render(){const e=this.props.group.actions?this.props.group.actions.length-1:0;return n.createElement("div",{className:this.getClassNames(),onClick:this.onRequestContainerSelection,onKeyDown:this.onKeyDown},this.props.group.actions&&this.props.group.actions.map((o,t)=>n.createElement(a,{item:o,onActionExecute:this.props.onActionExecute,selected:t===this.state.selectedItemIndex,isFirstItemInGroup:t===0,isLastItemInGroup:t===e,key:t})))}getClassNames(){return c.classNames("k-quick-replies")}}module.exports=l;