repo_name
string
dataset
string
owner
string
lang
string
func_name
string
code
string
docstring
string
url
string
sha
string
design-studio
github_2023
Tiledesk
typescript
CdsActionOnlineAgentsComponent.onStopConditionMeet
onStopConditionMeet() { try { this.action.stopOnConditionMet = !this.action.stopOnConditionMet; } catch (error) { this.logger.log("Error: ", error); } }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-online-agents/cds-action-online-agents.component.ts#L233-L239
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionOpenHoursComponent.ngOnDestroy
ngOnDestroy() { if (this.subscriptionChangedConnector) { this.subscriptionChangedConnector.unsubscribe(); } }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.ts#L68-L72
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionOpenHoursComponent.initialize
private initialize() { if (this.dashboardService.project.timeSlots) { this.timeSlots = Object.keys(this.dashboardService.project.timeSlots).map(key => ({ value: key, ...this.dashboardService.project.timeSlots[key] })); } this.trueIntentAttributes = this.action.trueIntentAttribut...
// }
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.ts#L84-L105
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionOpenHoursComponent.onStopConditionMeet
onStopConditionMeet() { try { this.action.stopOnConditionMet = !this.action.stopOnConditionMet; } catch (error) { this.logger.log("Error: ", error); } }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-open-hours/cds-action-open-hours.component.ts#L239-L245
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.ngOnInit
ngOnInit(): void { this.logger.log('ActionReplyComponent ngOnInit', this.action, this.intentSelected); // // this.logger.log('ngOnInit panel-response::: ', this.typeAction); this.typeAction = (this.action._tdActionType === TYPE_ACTION.RANDOM_REPLY ? TYPE_ACTION.RANDOM_REPLY : TYPE_ACTION.REPLY); try { ...
// SYSTEM FUNCTIONS //
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L73-L95
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.ngOnChanges
ngOnChanges(changes: SimpleChanges): void { if(this.action && this.intentSelected) this.initialize(); }
/** * * @param changes * IMPORTANT! serve per aggiornare il dettaglio della action nel pannello */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L104-L106
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.initialize
private initialize() { this.openCardButton = false; this.arrayResponses = []; this.intentName = ''; this.intentNameResult = true; this.textGrabbing = false; if (this.action) { try { this.arrayResponses = this.action.attributes.commands; } catch (error) { this.logger.l...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L115-L129
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.scrollToBottom
scrollToBottom(): void { setTimeout(() => { try { this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight; this.scrollContainer.nativeElement.animate({ scrollTop: 0 }, '500'); } catch (error) { this.logger.log('scrollToBottom ERROR: ', error...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L133-L142
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.mouseDown
mouseDown() { this.textGrabbing = true; }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L150-L152
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.mouseUp
mouseUp() { this.textGrabbing = false; }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L155-L157
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.drop
drop(event: CdkDragDrop<string[]>) { // this.logger.log( 'DROP REPLY ---> ',event, this.arrayResponses); this.textGrabbing = false; try { let currentPos = event.currentIndex*2+1; let previousPos = event.previousIndex*2+1; const waitCur = this.arrayResponses[currentPos-1]; const msgCu...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L160-L181
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onMoveUpResponse
onMoveUpResponse(index: number) { if(index<2)return; try { let from = index - 1; let to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); from = index; to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L186-L202
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onMoveDownResponse
onMoveDownResponse(index: number) { if(index === this.arrayResponses.length-1)return; try { let from = index; let to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); from = index - 1; to = from + 2; this.arrayResponses.splice(to, 0, this...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L205-L221
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onAddNewActionReply
onAddNewActionReply(ele) { this.logger.log('onAddNewActionReply: ', ele); try { let message = new Message(ele.message.type, ele.message.text); if (ele.message.attributes) { message.attributes = ele.message.attributes; } if (ele.message.metadata) { message.metadata = ele.m...
/** onAddNewActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L225-L246
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onDeleteActionReply
onDeleteActionReply(index: number) { this.logger.log('onDeleteActionReply: ', this.arrayResponses[index]); // !!! cancello tutti i connettori di una action var intentId = this.idAction.substring(0, this.idAction.indexOf('/')); try { let buttons = this.arrayResponses[index].message.attributes.attac...
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L250-L280
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onChangeActionReply
onChangeActionReply(event) { const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.logger.log('onChangeActionReply ************', element); this.onUpdateAndSaveAction(element); }
/** onChangingReplyAction */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L283-L287
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onCreateNewButton
onCreateNewButton(index){ this.logger.log('[cds-action-reply] onCreateNewButton: ', index); try { if(!this.arrayResponses[index].message.attributes || !this.arrayResponses[index].message.attributes.attachment){ this.arrayResponses[index].message.attributes = new MessageAttributes(); } } ...
/** onCreateNewButton */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L292-L310
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onDeleteButton
onDeleteButton(event){ let button = event.buttons[event.index]; event.buttons.splice(event.index, 1); var intentId = this.idAction.substring(0, this.idAction.indexOf('/')); this.connectorService.deleteConnectorFromAction(intentId, button.__idConnector); this.updateAndSaveAction.emit({type: TYPE_UPDA...
/** onDeleteButton */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L336-L342
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onUpdateAndSaveAction
public async onUpdateAndSaveAction(element) { this.logger.log('[cds-action-reply] onUpdateAndSaveAction:::: ', this.action, element); // this.connectorService.updateConnector(this.intentSelected.intent_id); this.updateAndSaveAction.emit(this.action); }
/** onUpdateAndSaveAction: * function called by all actions in @output whenever they are modified! * 1 - update connectors * 2 - update intent * */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L350-L354
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onChangeIntentName
onChangeIntentName(name: string) { name.toString(); try { this.intentName = name.replace(/[^A-Z0-9_]+/ig, ""); } catch (error) { this.logger.log('name is not a string', error) } }
/** onChangeIntentName */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L359-L366
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onBlurIntentName
onBlurIntentName(name: string) { this.intentNameResult = true; }
/** onBlurIntentName */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L369-L371
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onDisableInputMessage
onDisableInputMessage() { try { this.action.attributes.disableInputMessage = !this.action.attributes.disableInputMessage; this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action}); } catch (error) { this.logger.log("Error: ", error); } }
/** onDisableInputMessage */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L374-L381
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onOpenButtonPanel
onOpenButtonPanel(buttonSelected) { this.logger.log('onOpenButtonPanel 2 :: ', buttonSelected); // this.intentService.setIntentSelected(this.intentSelected.intent_id); this.intentService.selectAction(this.intentSelected.intent_id, this.action._tdActionId); this.controllerService.openButtonPanel(buttonSe...
/** appdashboard-button-configuration-panel: onOpenButtonPanel */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L385-L390
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onSaveButton
onSaveButton(button) { // this.logger.log('onSaveButton :: ', button, this.response); // this.generateCommandsWithWaitOfElements(); }
/** appdashboard-button-configuration-panel: Save button */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L403-L406
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyComponent.onCloseButtonPanel
onCloseButtonPanel() { this.logger.log('onCloseButtonPanel :: '); this.openCardButton = false; }
/** appdashboard-button-configuration-panel: Close button panel */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v1/cds-action-reply.component.ts#L411-L414
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.ngOnInit
ngOnInit(): void { this.logger.log('ActionReplyComponent ngOnInit', this.action, this.intentSelected); // // this.logger.log('ngOnInit panel-response::: ', this.typeAction); this.typeAction = (this.action._tdActionType === TYPE_ACTION.RANDOM_REPLY ? TYPE_ACTION.RANDOM_REPLY : TYPE_ACTION.REPLY); try { ...
// SYSTEM FUNCTIONS //
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L80-L104
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.ngOnChanges
ngOnChanges(changes: SimpleChanges): void { if(this.action && this.intentSelected) this.initialize(); }
/** * * @param changes * IMPORTANT! serve per aggiornare il dettaglio della action nel pannello */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L111-L113
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.initialize
private initialize() { this.openCardButton = false; this.arrayResponses = []; this.intentName = ''; this.intentNameResult = true; this.textGrabbing = false; if (this.action) { try { this.arrayResponses = this.action.attributes.commands; } catch (error) { this.logger.l...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L154-L168
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.scrollToBottom
scrollToBottom(): void { setTimeout(() => { try { this.scrollContainer.nativeElement.scrollTop = this.scrollContainer.nativeElement.scrollHeight; this.scrollContainer.nativeElement.animate({ scrollTop: 0 }, '500'); } catch (error) { this.logger.log('scrollToBottom ERROR: ', error...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L172-L181
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.mouseDown
mouseDown() { this.textGrabbing = true; }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L189-L191
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.mouseUp
mouseUp() { this.textGrabbing = false; }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L194-L196
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.drop
drop(event: CdkDragDrop<string[]>) { // this.logger.log( 'DROP REPLY ---> ',event, this.arrayResponses); this.textGrabbing = false; try { let currentPos = event.currentIndex*2+1; let previousPos = event.previousIndex*2+1; const waitCur = this.arrayResponses[currentPos-1]; const msgCu...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L199-L220
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onMoveUpResponse
onMoveUpResponse(index: number) { if(index<2)return; try { let from = index - 1; let to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); from = index; to = from - 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L225-L241
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onMoveDownResponse
onMoveDownResponse(index: number) { if(index === this.arrayResponses.length-1)return; try { let from = index; let to = from + 2; this.arrayResponses.splice(to, 0, this.arrayResponses.splice(from, 1)[0]); from = index - 1; to = from + 2; this.arrayResponses.splice(to, 0, this...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L244-L260
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onAddNewActionReply
onAddNewActionReply(ele) { this.logger.log('onAddNewActionReply: ', ele); try { let message = new Message(ele.message.type, ele.message.text); if (ele.message.attributes) { message.attributes = ele.message.attributes; } if (ele.message.metadata) { message.metadata = ele.m...
/** onAddNewActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L264-L285
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onDeleteActionReply
onDeleteActionReply(index: number) { this.logger.log('onDeleteActionReply: ', this.arrayResponses[index]); // !!! cancello tutti i connettori di una action var intentId = this.idAction.substring(0, this.idAction.indexOf('/')); try { let buttons = this.arrayResponses[index].message.attributes.attac...
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L289-L319
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onChangeActionReply
onChangeActionReply(event) { const element = {type: TYPE_UPDATE_ACTION.ACTION, element: this.action}; this.logger.log('onChangeActionReply ************', element); this.onUpdateAndSaveAction(element); }
/** onChangingReplyAction */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L322-L326
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onConnectorChangeReply
onConnectorChangeReply(event){ this.logger.log('onConnectorChangeReply ************', event, this.action); this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action}); this.onConnectorChange.emit(event) }
/** onConnectorChangeReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L329-L333
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onCreateNewButton
onCreateNewButton(index){ this.logger.log('[cds-action-reply] onCreateNewButton: ', index); try { if(!this.arrayResponses[index].message.attributes || !this.arrayResponses[index].message.attributes.attachment){ this.arrayResponses[index].message.attributes = new MessageAttributes(); } } ...
/** onCreateNewButton */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L340-L359
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onDeleteButton
onDeleteButton(event){ let button = event.buttons[event.index]; event.buttons.splice(event.index, 1); var intentId = this.idAction.substring(0, this.idAction.indexOf('/')); this.connectorService.deleteConnectorFromAction(intentId, button.__idConnector); this.eventActionChanges.next(this.action) ...
/** onDeleteButton */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L385-L393
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onUpdateAndSaveAction
public async onUpdateAndSaveAction(element) { this.logger.log('[cds-action-reply] onUpdateAndSaveAction:::: ', this.action, element); // this.connectorService.updateConnector(this.intentSelected.intent_id); this.updateAndSaveAction.emit(this.action); }
/** onUpdateAndSaveAction: * function called by all actions in @output whenever they are modified! * 1 - update connectors * 2 - update intent * */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L401-L405
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onChangeIntentName
onChangeIntentName(name: string) { name.toString(); try { this.intentName = name.replace(/[^A-Z0-9_]+/ig, ""); } catch (error) { this.logger.log('name is not a string', error) } }
/** onChangeIntentName */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L410-L417
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onBlurIntentName
onBlurIntentName(name: string) { this.intentNameResult = true; }
/** onBlurIntentName */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L420-L422
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onDisableInputMessage
onDisableInputMessage() { try { this.action.attributes.disableInputMessage = !this.action.attributes.disableInputMessage; this.updateAndSaveAction.emit({type: TYPE_UPDATE_ACTION.ACTION, element: this.action}); } catch (error) { this.logger.log("Error: ", error); } }
/** onDisableInputMessage */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L425-L432
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onOpenButtonPanel
onOpenButtonPanel(buttonSelected) { this.logger.log('onOpenButtonPanel 2 :: ', buttonSelected); // this.intentService.setIntentSelected(this.intentSelected.intent_id); this.intentService.selectAction(this.intentSelected.intent_id, this.action._tdActionId); this.controllerService.openButtonPanel(buttonSe...
/** appdashboard-button-configuration-panel: onOpenButtonPanel */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L436-L441
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onSaveButton
onSaveButton(button) { // this.logger.log('onSaveButton :: ', button, this.response); // this.generateCommandsWithWaitOfElements(); }
/** appdashboard-button-configuration-panel: Save button */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L454-L457
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyV2Component.onCloseButtonPanel
onCloseButtonPanel() { this.logger.log('onCloseButtonPanel :: '); this.openCardButton = false; }
/** appdashboard-button-configuration-panel: Close button panel */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/cds-action-reply-v2/cds-action-reply.component.ts#L462-L465
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onClickDelayTime
onClickDelayTime(opened: boolean){ this.isOpenDelaySlider = !this.isOpenDelaySlider; // this.canShowFilter = !opened; }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L72-L75
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onChangeDelayTime
onChangeDelayTime(value:number){ this.delayTime = value; this.wait.time = value*1000; this.isOpenDelaySlider = false; // this.canShowFilter = true; this.changeActionReply.emit(); }
/** onChangeDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L84-L90
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onChangeExpression
onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); }
/** onChangeExpression */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L93-L97
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onDeleteActionReply
onDeleteActionReply(){ this.deleteActionReply.emit(this.index); }
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L100-L102
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onMoveUpResponse
onMoveUpResponse(){ this.moveUpResponse.emit(this.index); }
/** onMoveUpResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L105-L107
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onMoveDownResponse
onMoveDownResponse(){ this.moveDownResponse.emit(this.index); }
/** onMoveDownResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L110-L112
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onChangeTextarea
onChangeTextarea(text:string) { if(!this.previewMode){ this.response.text = text; // this.changeActionReply.emit(); } }
/** onChangeTextarea */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L115-L120
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onDeletedMetadata
onDeletedMetadata(){ this.response.metadata.src = ''; this.changeActionReply.emit(); }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L127-L130
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onLoadPathElement
onLoadPathElement(){ //this.response.metadata.height = '1000px'; this.changeActionReply.emit(); }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L133-L136
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyFrameComponent.onChangeHeightIframe
onChangeHeightIframe(height){ this.isOpenHeightSlider = false; this.response.metadata.height = height+'px'; this.changeActionReply.emit(); }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-frame/cds-action-reply-frame.component.ts#L139-L143
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.ngOnDestroy
ngOnDestroy() { if (this.subscriptionChangedConnector) { this.subscriptionChangedConnector.unsubscribe(); } }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L68-L72
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.updateConnector
private updateConnector(){ try { this.gallery.forEach((el, index)=> { const array = this.connector.fromId.split("/"); const idButton = array[array.length - 1]; const idConnector = this.idAction+'/'+idButton; this.logger.log('[REPLY-GALLERY] updateConnector :: connector.fromId -...
// }
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L138-L177
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onClickDelayTime
onClickDelayTime(opened: boolean){ this.canShowFilter = !opened; }
/** onClickDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L254-L256
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onChangeDelayTime
onChangeDelayTime(value:number){ this.delayTime = value; this.wait.time = value*1000; this.canShowFilter = true; this.changeActionReply.emit(); }
/** onChangeDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L259-L264
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onChangeExpression
onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); }
/** onChangeExpression */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L267-L271
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onDeleteActionReply
onDeleteActionReply(){ this.deleteActionReply.emit(this.index); }
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L274-L276
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onMoveUpResponse
onMoveUpResponse(){ this.moveUpResponse.emit(this.index); }
/** onMoveUpResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L279-L281
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onMoveDownResponse
onMoveDownResponse(){ this.moveDownResponse.emit(this.index); }
/** onMoveDownResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L284-L286
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onChangeText
onChangeText(text: string, element: 'title' | 'description', index: number) { this.gallery[index][element] = text; this.response.attributes.attachment.gallery = this.gallery; // this.changeActionReply.emit(); }
// }
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L296-L300
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onOpenButtonPanel
onOpenButtonPanel(button){ this.openButtonPanel.emit(button); }
// }
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L308-L310
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onButtonControl
onButtonControl(action: string, indexGallery: number, index){ switch(action){ case 'delete': /** onDeleteButton */ this.onDeleteButton(indexGallery, index) break; case 'moveLeft': break; case 'moveRight': break; case 'new': /** onCreateNewButton */ thi...
/** onButtonControl */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L319-L332
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.dropButtons
dropButtons(event: CdkDragDrop<string[]>) { moveItemInArray(this.buttons, event.previousIndex, event.currentIndex); this.connectorService.updateConnector(this.idIntent); this.changeActionReply.emit(); }
/** dropButtons */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L335-L339
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onBlur
onBlur(event){ this.changeActionReply.emit(); }
/** onBlur */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L355-L357
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.drop
drop(event: CdkDragDrop<string[]>) { // this.textGrabbing = false; moveItemInArray(this.gallery, event.previousIndex, event.currentIndex); }
// EVENT FUNCTIONS //
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L369-L372
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.arraymove
private arraymove(elements, fromIndex, toIndex) { var element = elements[fromIndex]; elements.splice(fromIndex, 1); elements.splice(toIndex, 0, element); }
// ----- DRAG FUNCTIONS: GALLERY ELEMENT: start
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L388-L392
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyGalleryComponent.onMoveTopButton
onMoveTopButton(indexGallery: number, fromIndex){ let toIndex = fromIndex-1; if(toIndex<0){ toIndex = 0; } this.arraymove(this.gallery[indexGallery].buttons, fromIndex, toIndex); }
// ----- BUTTONS INSIDE GALLERY ELEMENT: start
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-gallery/cds-action-reply-gallery.component.ts#L419-L425
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.ngOnDestroy
ngOnDestroy() { if (this.subscriptionChangedConnector) { this.subscriptionChangedConnector.unsubscribe(); } }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L75-L79
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.initialize
private initialize(){ this.delayTime = (this.wait && this.wait.time || this.wait.time === 0)? (this.wait.time/1000) : 500/1000; this.checkButtons(); // this.patchButtons(); // this.buttons = this.response?.attributes?.attachment?.buttons; this.buttons = this.intentService.patchButtons(this.buttons,...
// PRIVATE FUNCTIONS //
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L83-L94
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.updateConnector
private updateConnector(){ try { const array = this.connector.fromId.split("/"); const idButton = array[array.length - 1]; const idConnector = this.idAction+'/'+idButton; this.logger.log(' updateConnector :: connector.fromId - idConnector: ', this.connector.fromId, idConnector); const ...
// }
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L128-L167
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onClickDelayTime
onClickDelayTime(opened: boolean){ this.canShowFilter = !opened; }
/** onClickDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L174-L176
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onChangeDelayTime
onChangeDelayTime(value:number){ this.delayTime = value; this.wait.time = value*1000; this.canShowFilter = true; this.changeActionReply.emit(); }
/** onChangeDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L179-L184
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onChangeExpression
onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); }
/** onChangeExpression */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L187-L191
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onChangeMetadata
onChangeMetadata(metadata: Metadata){ this.response.metadata = metadata; this.changeActionReply.emit(); }
/**onChangeMetadata */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L194-L197
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onDeleteActionReply
onDeleteActionReply(){ this.deleteActionReply.emit(this.index); }
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L200-L202
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onMoveUpResponse
onMoveUpResponse(){ this.moveUpResponse.emit(this.index); }
/** onMoveUpResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L205-L207
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onMoveDownResponse
onMoveDownResponse(){ this.moveDownResponse.emit(this.index); }
/** onMoveDownResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L210-L212
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onChangeTextarea
onChangeTextarea(text:string) { if(!this.previewMode){ this.response.text = text; // this.changeActionReply.emit(); } }
/** onChangeTextarea */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L215-L221
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onOpenButtonPanel
onOpenButtonPanel(button){ this.openButtonPanel.emit(button); }
/** onOpenButtonPanel */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L224-L226
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onButtonControl
onButtonControl(action: string, index: number ){ switch(action){ case 'delete': /** onDeleteButton */ this.deleteButton.emit({index: index, buttons: this.buttons}); break; case 'moveLeft': break; case 'moveRight': break; case 'new': /** onCreateNewButton */ ...
/** onButtonControl */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L229-L243
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.dropButtons
dropButtons(event: CdkDragDrop<string[]>) { moveItemInArray(this.buttons, event.previousIndex, event.currentIndex); this.connectorService.updateConnector(this.idIntent); this.changeActionReply.emit(); }
/** dropButtons */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L246-L250
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onBlur
onBlur(event){ this.changeActionReply.emit(); }
/** onBlur */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L253-L255
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onCloseImagePanel
onCloseImagePanel(event){ //if(event.url){ //this.imagePath = event.url; this.response.metadata.src = event.url; //} //if(event.width){ //this.imageWidth = event.width; this.response.metadata.width = event.width; //} //if(event.height){ //this.imageHeight = event.height...
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L271-L285
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onDeletedMetadata
onDeletedMetadata(event){ this.response.metadata.src = null; this.changeActionReply.emit(); }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L288-L291
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyImageComponent.onMoveLeftButton
onMoveLeftButton(fromIndex){ let toIndex = fromIndex-1; if(toIndex<0){ toIndex = 0; } this.arraymove(this.buttons, fromIndex, toIndex); }
/** */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-image/cds-action-reply-image.component.ts#L298-L304
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onClickDelayTime
onClickDelayTime(opened: boolean){ this.canShowFilter = !opened; }
/** onClickDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L63-L65
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onChangeDelayTime
onChangeDelayTime(value:number){ this.delayTime = value; this.wait.time = value*1000; this.canShowFilter = true; this.changeActionReply.emit(); }
/** onChangeDelayTime */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L68-L73
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onChangeExpression
onChangeExpression(expression: Expression){ this.response._tdJSONCondition = expression; this.filterConditionExist = expression && expression.conditions.length > 0? true : false; this.changeActionReply.emit(); }
/** onChangeExpression */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L76-L80
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onDeleteActionReply
onDeleteActionReply(){ this.deleteActionReply.emit(this.index); }
/** onDeleteActionReply */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L83-L85
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onMoveUpResponse
onMoveUpResponse(){ this.moveUpResponse.emit(this.index); }
/** onMoveUpResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L88-L90
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onMoveDownResponse
onMoveDownResponse(){ this.moveDownResponse.emit(this.index); }
/** onMoveDownResponse */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L93-L95
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onChangeTextarea
onChangeTextarea(text:string) { if(!this.previewMode){ this.metadata.src = text; // this.changeActionReply.emit(); } }
/** onChangeTextarea */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L98-L103
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplyRedirectComponent.onButtonToogleChange
onButtonToogleChange(event){ this.metadata.target = event.value; this.changeActionReply.emit(); }
/** onButtonToogleChange */
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-redirect/cds-action-reply-redirect.component.ts#L110-L113
297d30da01d98a1299e7197eb88cff5b2390a386
design-studio
github_2023
Tiledesk
typescript
CdsActionReplySettingsComponent.ngOnInit
ngOnInit(): void { this.logger.debug("[ACTION REPLY SETTINGS] action detail: ", this.action); this.subscriptionChangedConnector = this.intentService.isChangedConnector$.subscribe((connector: any) => { this.logger.debug('[ACTION REPLY SETTINGS] isChangedConnector -->', connector); let connectorId = t...
// SYSTEM FUNCTIONS //
https://github.com/Tiledesk/design-studio/blob/297d30da01d98a1299e7197eb88cff5b2390a386/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-reply/elements/cds-action-reply-settings/cds-action-reply-settings.component.ts#L57-L70
297d30da01d98a1299e7197eb88cff5b2390a386