|
|
|
@ -26,46 +26,18 @@ |
|
|
|
|
{{> icon block="rc-input__icon-svg" icon="emoji"}} |
|
|
|
|
</div> |
|
|
|
|
<textarea autofocus dir="auto" name="msg" maxlength="{{maxMessageLength}}" placeholder="{{_ 'Message'}}" rows="1" class="rc-message-box__textarea js-input-message autogrow-short"></textarea> |
|
|
|
|
{{#if sendIcon}} |
|
|
|
|
<div class="rc-message-box__icon js-send"> |
|
|
|
|
{{#unless disableSendIcon}} |
|
|
|
|
<div class="rc-message-box__icon rc-message-box__send js-send" data-desktop> |
|
|
|
|
{{> icon block="rc-input__icon-svg" icon="send"}} |
|
|
|
|
</div> |
|
|
|
|
{{else}} |
|
|
|
|
<label class="rc-message-box__action-label" for="rc-message-box__action-input" data-popover="label"> |
|
|
|
|
<input id="rc-message-box__action-input" type="checkbox" class="rc-popover-anchor" data-popover="anchor"> |
|
|
|
|
<div class="rc-popover js-message-actions" data-popover="popover"> |
|
|
|
|
<div class="rc-popover__content"> |
|
|
|
|
{{# each column in columns }} |
|
|
|
|
<div class="rc-popover__column"> |
|
|
|
|
{{#each group in column }} |
|
|
|
|
<div class="rc-popover__column-wrapper"> |
|
|
|
|
<h3 class="rc-popover__title">{{_ group.name}}</h3> |
|
|
|
|
<ul class="rc-popover__list"> |
|
|
|
|
{{#each group.actions }} |
|
|
|
|
<li class="rc-popover__item" data-action="open" data-open="account"> |
|
|
|
|
<span class="rc-popover__icon"> |
|
|
|
|
{{#if icon}} |
|
|
|
|
{{> icon block="rc-popover__icon-element" icon=icon }} |
|
|
|
|
{{/if}} |
|
|
|
|
</span> |
|
|
|
|
<span class="rc-popover__item-text">{{_ label}}</span> |
|
|
|
|
</li> |
|
|
|
|
{{/each}} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
{{/each}} |
|
|
|
|
</div> |
|
|
|
|
{{/each}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{#if columns}} |
|
|
|
|
<div class="rc-message-box__icon"> |
|
|
|
|
{{> icon block="rc-input__icon-svg" icon="plus"}} |
|
|
|
|
</div> |
|
|
|
|
{{/if}} |
|
|
|
|
</label> |
|
|
|
|
|
|
|
|
|
{{/if}} |
|
|
|
|
{{> messageBox__actions}} |
|
|
|
|
{{/unless}} |
|
|
|
|
{{# messageBox__actionsSmall}} |
|
|
|
|
<span class="rc-message-box__send js-message-action js-send" {{disableSendIcon}} data-small> |
|
|
|
|
{{> icon block="rc-message-box__action" icon="send"}} |
|
|
|
|
</span> |
|
|
|
|
{{/messageBox__actionsSmall}} |
|
|
|
|
</label> |
|
|
|
|
{{#unless embeddedVersion}} |
|
|
|
|
{{#if showFormattingTips}} |
|
|
|
@ -118,3 +90,48 @@ |
|
|
|
|
{{/if}} |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template name="messageBox__actionsSmall"> |
|
|
|
|
<div class="js-message-actions rc-message-box__action-label" data-small> |
|
|
|
|
{{# each actions }} |
|
|
|
|
<span class="js-message-action"> |
|
|
|
|
{{> icon block="rc-message-box__action" icon=icon }} |
|
|
|
|
</span> |
|
|
|
|
{{/each}} |
|
|
|
|
</div> |
|
|
|
|
{{> Template.contentBlock}} |
|
|
|
|
</template> |
|
|
|
|
<template name="messageBox__actions"> |
|
|
|
|
<label class="rc-message-box__action-label" for="rc-message-box__action-input" data-popover="label" data-desktop> |
|
|
|
|
<input id="rc-message-box__action-input" type="checkbox" class="rc-popover-anchor" data-popover="anchor"> |
|
|
|
|
<div class="rc-popover js-message-actions" data-popover="popover"> |
|
|
|
|
<div class="rc-popover__content"> |
|
|
|
|
{{# each column in columns }} |
|
|
|
|
<div class="rc-popover__column"> |
|
|
|
|
{{#each group in column }} |
|
|
|
|
<div class="rc-popover__column-wrapper"> |
|
|
|
|
<h3 class="rc-popover__title">{{_ group.name}}</h3> |
|
|
|
|
<ul class="rc-popover__list"> |
|
|
|
|
{{#each group.actions }} |
|
|
|
|
<li class="rc-popover__item" data-action="open" data-open="account"> |
|
|
|
|
{{#if icon}} |
|
|
|
|
<span class="rc-popover__icon"> |
|
|
|
|
{{> icon block="rc-popover__icon-element" icon=icon }} |
|
|
|
|
</span> |
|
|
|
|
{{/if}} |
|
|
|
|
<span class="rc-popover__item-text">{{_ label}}</span> |
|
|
|
|
</li> |
|
|
|
|
{{/each}} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
{{/each}} |
|
|
|
|
</div> |
|
|
|
|
{{/each}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{{#if columns}} |
|
|
|
|
<div class="rc-message-box__icon"> |
|
|
|
|
{{> icon block="rc-input__icon-svg" icon="plus"}} |
|
|
|
|
</div> |
|
|
|
|
{{/if}} |
|
|
|
|
</label> |
|
|
|
|
</template> |
|
|
|
|