feat: Remove the usage of clickAway mixin with directive (#9323)
This commit is contained in:
parent
705f8ef948
commit
12af2fe026
@ -88,7 +88,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { getUnixTime } from 'date-fns';
|
import { getUnixTime } from 'date-fns';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import CustomSnoozeModal from 'dashboard/components/CustomSnoozeModal.vue';
|
import CustomSnoozeModal from 'dashboard/components/CustomSnoozeModal.vue';
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
@ -109,7 +108,7 @@ export default {
|
|||||||
WootDropdownMenu,
|
WootDropdownMenu,
|
||||||
CustomSnoozeModal,
|
CustomSnoozeModal,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, alertMixin, keyboardEventListenerMixins],
|
mixins: [alertMixin, keyboardEventListenerMixins],
|
||||||
props: { conversationId: { type: [String, Number], required: true } },
|
props: { conversationId: { type: [String, Number], required: true } },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -47,7 +47,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
||||||
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
||||||
@ -67,7 +66,7 @@ export default {
|
|||||||
AvailabilityStatusBadge,
|
AvailabilityStatusBadge,
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [clickaway, alertMixin],
|
mixins: [alertMixin],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -106,7 +106,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import Auth from '../../../api/auth';
|
import Auth from '../../../api/auth';
|
||||||
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
||||||
@ -119,7 +118,6 @@ export default {
|
|||||||
WootDropdownItem,
|
WootDropdownItem,
|
||||||
AvailabilityStatus,
|
AvailabilityStatus,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -18,13 +18,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Chrome } from 'vue-color';
|
import { Chrome } from 'vue-color';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Chrome,
|
Chrome,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@ -33,7 +33,6 @@
|
|||||||
import AddLabel from 'shared/components/ui/dropdown/AddLabel.vue';
|
import AddLabel from 'shared/components/ui/dropdown/AddLabel.vue';
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
import LabelDropdown from 'shared/components/ui/label/LabelDropdown.vue';
|
import LabelDropdown from 'shared/components/ui/label/LabelDropdown.vue';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import adminMixin from 'dashboard/mixins/isAdmin';
|
import adminMixin from 'dashboard/mixins/isAdmin';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -42,7 +41,7 @@ export default {
|
|||||||
LabelDropdown,
|
LabelDropdown,
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [clickaway, adminMixin, keyboardEventListenerMixins],
|
mixins: [adminMixin, keyboardEventListenerMixins],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
allLabels: {
|
allLabels: {
|
||||||
|
|||||||
@ -45,7 +45,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import wootConstants from 'dashboard/constants/globals';
|
import wootConstants from 'dashboard/constants/globals';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import FilterItem from './FilterItem.vue';
|
import FilterItem from './FilterItem.vue';
|
||||||
import uiSettingsMixin from 'dashboard/mixins/uiSettings';
|
import uiSettingsMixin from 'dashboard/mixins/uiSettings';
|
||||||
|
|
||||||
@ -53,7 +52,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
FilterItem,
|
FilterItem,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, uiSettingsMixin],
|
mixins: [uiSettingsMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showActionsDropdown: false,
|
showActionsDropdown: false,
|
||||||
|
|||||||
@ -37,7 +37,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import EmailTranscriptModal from './EmailTranscriptModal.vue';
|
import EmailTranscriptModal from './EmailTranscriptModal.vue';
|
||||||
import ResolveAction from '../../buttons/ResolveAction.vue';
|
import ResolveAction from '../../buttons/ResolveAction.vue';
|
||||||
@ -52,7 +51,7 @@ export default {
|
|||||||
EmailTranscriptModal,
|
EmailTranscriptModal,
|
||||||
ResolveAction,
|
ResolveAction,
|
||||||
},
|
},
|
||||||
mixins: [alertMixin, clickaway],
|
mixins: [alertMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showEmailActionsModal: false,
|
showEmailActionsModal: false,
|
||||||
|
|||||||
@ -153,7 +153,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
|
|
||||||
@ -218,7 +217,6 @@ export default {
|
|||||||
ArticleSearchPopover,
|
ArticleSearchPopover,
|
||||||
},
|
},
|
||||||
mixins: [
|
mixins: [
|
||||||
clickaway,
|
|
||||||
inboxMixin,
|
inboxMixin,
|
||||||
uiSettingsMixin,
|
uiSettingsMixin,
|
||||||
alertMixin,
|
alertMixin,
|
||||||
|
|||||||
@ -180,7 +180,6 @@
|
|||||||
</woot-modal>
|
</woot-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
import timeMixin from 'dashboard/mixins/time';
|
import timeMixin from 'dashboard/mixins/time';
|
||||||
@ -200,7 +199,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Thumbnail,
|
Thumbnail,
|
||||||
},
|
},
|
||||||
mixins: [keyboardEventListenerMixins, clickaway, timeMixin],
|
mixins: [keyboardEventListenerMixins, timeMixin],
|
||||||
props: {
|
props: {
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -51,7 +51,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { evaluateSLAStatus } from '../helpers/SLAHelper';
|
import { evaluateSLAStatus } from '../helpers/SLAHelper';
|
||||||
import SLAPopoverCard from './SLAPopoverCard.vue';
|
import SLAPopoverCard from './SLAPopoverCard.vue';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
const REFRESH_INTERVAL = 60000;
|
const REFRESH_INTERVAL = 60000;
|
||||||
|
|
||||||
@ -59,7 +58,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
SLAPopoverCard,
|
SLAPopoverCard,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
chat: {
|
chat: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -101,14 +101,12 @@
|
|||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
||||||
import Spinner from 'shared/components/Spinner.vue';
|
import Spinner from 'shared/components/Spinner.vue';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Thumbnail,
|
Thumbnail,
|
||||||
Spinner,
|
Spinner,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
selectedInboxes: {
|
selectedInboxes: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -74,11 +74,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [clickaway],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
query: '',
|
query: '',
|
||||||
|
|||||||
@ -59,10 +59,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
export default {
|
export default {
|
||||||
mixins: [clickaway],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
query: '',
|
query: '',
|
||||||
|
|||||||
@ -36,7 +36,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
||||||
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
||||||
|
|
||||||
@ -45,7 +44,6 @@ export default {
|
|||||||
WootDropdownItem,
|
WootDropdownItem,
|
||||||
WootDropdownMenu,
|
WootDropdownMenu,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
selectedInboxes: {
|
selectedInboxes: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -87,7 +87,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { SHORTCUT_KEYS } from './constants';
|
import { SHORTCUT_KEYS } from './constants';
|
||||||
import Hotkey from 'dashboard/components/base/Hotkey.vue';
|
import Hotkey from 'dashboard/components/base/Hotkey.vue';
|
||||||
|
|
||||||
@ -95,7 +94,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
Hotkey,
|
Hotkey,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
show: {
|
show: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -106,7 +106,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
||||||
import AddCannedModal from 'dashboard/routes/dashboard/settings/canned/AddCanned.vue';
|
import AddCannedModal from 'dashboard/routes/dashboard/settings/canned/AddCanned.vue';
|
||||||
import { copyTextToClipboard } from 'shared/helpers/clipboard';
|
import { copyTextToClipboard } from 'shared/helpers/clipboard';
|
||||||
@ -124,7 +123,7 @@ export default {
|
|||||||
TranslateModal,
|
TranslateModal,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
},
|
},
|
||||||
mixins: [alertMixin, clickaway, messageFormatterMixin],
|
mixins: [alertMixin, messageFormatterMixin],
|
||||||
props: {
|
props: {
|
||||||
message: {
|
message: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -73,7 +73,6 @@ import SearchResultConversationsList from './SearchResultConversationsList.vue';
|
|||||||
import SearchResultMessagesList from './SearchResultMessagesList.vue';
|
import SearchResultMessagesList from './SearchResultMessagesList.vue';
|
||||||
import SearchResultContactsList from './SearchResultContactsList.vue';
|
import SearchResultContactsList from './SearchResultContactsList.vue';
|
||||||
|
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { CONVERSATION_EVENTS } from '../../../helper/AnalyticsHelper/events';
|
import { CONVERSATION_EVENTS } from '../../../helper/AnalyticsHelper/events';
|
||||||
export default {
|
export default {
|
||||||
@ -84,7 +83,6 @@ export default {
|
|||||||
SearchResultConversationsList,
|
SearchResultConversationsList,
|
||||||
SearchResultMessagesList,
|
SearchResultMessagesList,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedTab: 'all',
|
selectedTab: 'all',
|
||||||
|
|||||||
@ -28,7 +28,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { VeTable } from 'vue-easytable';
|
import { VeTable } from 'vue-easytable';
|
||||||
import { getCountryFlag } from 'dashboard/helper/flag';
|
import { getCountryFlag } from 'dashboard/helper/flag';
|
||||||
|
|
||||||
@ -45,7 +44,7 @@ export default {
|
|||||||
Spinner,
|
Spinner,
|
||||||
VeTable,
|
VeTable,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, timeMixin, rtlMixin],
|
mixins: [timeMixin, rtlMixin],
|
||||||
props: {
|
props: {
|
||||||
contacts: {
|
contacts: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -78,7 +78,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import Spinner from 'shared/components/Spinner.vue';
|
import Spinner from 'shared/components/Spinner.vue';
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
@ -92,7 +91,7 @@ export default {
|
|||||||
ThumbnailGroup,
|
ThumbnailGroup,
|
||||||
MultiselectDropdownItems,
|
MultiselectDropdownItems,
|
||||||
},
|
},
|
||||||
mixins: [alertMixin, agentMixin, clickaway],
|
mixins: [alertMixin, agentMixin],
|
||||||
props: {
|
props: {
|
||||||
conversationId: {
|
conversationId: {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
|
|||||||
@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import MacroPreview from './MacroPreview.vue';
|
import MacroPreview from './MacroPreview.vue';
|
||||||
import { CONVERSATION_EVENTS } from '../../../../helper/AnalyticsHelper/events';
|
import { CONVERSATION_EVENTS } from '../../../../helper/AnalyticsHelper/events';
|
||||||
|
|
||||||
@ -42,7 +41,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
MacroPreview,
|
MacroPreview,
|
||||||
},
|
},
|
||||||
mixins: [alertMixin, clickaway],
|
mixins: [alertMixin],
|
||||||
props: {
|
props: {
|
||||||
macro: {
|
macro: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -166,7 +166,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import timeMixin from 'dashboard/mixins/time';
|
import timeMixin from 'dashboard/mixins/time';
|
||||||
import ContactInfoRow from './ContactInfoRow.vue';
|
import ContactInfoRow from './ContactInfoRow.vue';
|
||||||
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
||||||
@ -195,7 +194,7 @@ export default {
|
|||||||
NewConversation,
|
NewConversation,
|
||||||
ContactMergeModal,
|
ContactMergeModal,
|
||||||
},
|
},
|
||||||
mixins: [alertMixin, adminMixin, clickaway, timeMixin],
|
mixins: [alertMixin, adminMixin, timeMixin],
|
||||||
props: {
|
props: {
|
||||||
contact: {
|
contact: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|||||||
@ -48,7 +48,6 @@ import { mapGetters } from 'vuex';
|
|||||||
import Spinner from 'shared/components/Spinner.vue';
|
import Spinner from 'shared/components/Spinner.vue';
|
||||||
import LabelDropdown from 'shared/components/ui/label/LabelDropdown.vue';
|
import LabelDropdown from 'shared/components/ui/label/LabelDropdown.vue';
|
||||||
import AddLabel from 'shared/components/ui/dropdown/AddLabel.vue';
|
import AddLabel from 'shared/components/ui/dropdown/AddLabel.vue';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import adminMixin from 'dashboard/mixins/isAdmin';
|
import adminMixin from 'dashboard/mixins/isAdmin';
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
import conversationLabelMixin from 'dashboard/mixins/conversation/labelMixin';
|
import conversationLabelMixin from 'dashboard/mixins/conversation/labelMixin';
|
||||||
@ -60,12 +59,7 @@ export default {
|
|||||||
AddLabel,
|
AddLabel,
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [
|
mixins: [conversationLabelMixin, adminMixin, keyboardEventListenerMixins],
|
||||||
clickaway,
|
|
||||||
conversationLabelMixin,
|
|
||||||
adminMixin,
|
|
||||||
keyboardEventListenerMixins,
|
|
||||||
],
|
|
||||||
props: {
|
props: {
|
||||||
conversationId: {
|
conversationId: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|||||||
@ -33,7 +33,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import timeMixin from '../../../../mixins/time';
|
import timeMixin from '../../../../mixins/time';
|
||||||
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
||||||
@ -50,7 +49,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mixins: [timeMixin, messageFormatterMixin, clickaway],
|
mixins: [timeMixin, messageFormatterMixin],
|
||||||
props: {
|
props: {
|
||||||
isOnExpandedLayout: {
|
isOnExpandedLayout: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { debounce } from '@chatwoot/utils';
|
import { debounce } from '@chatwoot/utils';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
import keyboardEventListenerMixins from 'shared/mixins/keyboardEventListenerMixins';
|
||||||
|
|
||||||
import SearchHeader from './Header.vue';
|
import SearchHeader from './Header.vue';
|
||||||
@ -52,7 +51,7 @@ export default {
|
|||||||
SearchResults,
|
SearchResults,
|
||||||
ArticleView,
|
ArticleView,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, portalMixin, alertMixin, keyboardEventListenerMixins],
|
mixins: [portalMixin, alertMixin, keyboardEventListenerMixins],
|
||||||
props: {
|
props: {
|
||||||
selectedPortalSlug: {
|
selectedPortalSlug: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@ -138,8 +138,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
import WootDropdownItem from 'shared/components/ui/dropdown/DropdownItem.vue';
|
||||||
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
import WootDropdownMenu from 'shared/components/ui/dropdown/DropdownMenu.vue';
|
||||||
import MultiselectDropdownItems from 'shared/components/ui/MultiselectDropdownItems.vue';
|
import MultiselectDropdownItems from 'shared/components/ui/MultiselectDropdownItems.vue';
|
||||||
@ -152,7 +150,6 @@ export default {
|
|||||||
WootDropdownMenu,
|
WootDropdownMenu,
|
||||||
MultiselectDropdownItems,
|
MultiselectDropdownItems,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
headerTitle: {
|
headerTitle: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@ -109,14 +109,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import alertMixin from 'shared/mixins/alertMixin';
|
import alertMixin from 'shared/mixins/alertMixin';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import wootConstants from 'dashboard/constants/globals';
|
import wootConstants from 'dashboard/constants/globals';
|
||||||
import { PORTALS_EVENTS } from '../../../../../helper/AnalyticsHelper/events';
|
import { PORTALS_EVENTS } from '../../../../../helper/AnalyticsHelper/events';
|
||||||
|
|
||||||
const { ARTICLE_STATUS_TYPES } = wootConstants;
|
const { ARTICLE_STATUS_TYPES } = wootConstants;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [alertMixin, clickaway],
|
mixins: [alertMixin],
|
||||||
props: {
|
props: {
|
||||||
isSidebarOpen: {
|
isSidebarOpen: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -47,13 +47,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import PortalSwitch from './PortalSwitch.vue';
|
import PortalSwitch from './PortalSwitch.vue';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
PortalSwitch,
|
PortalSwitch,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
portals: {
|
portals: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -36,13 +36,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
const EmojiInput = () => import('shared/components/emoji/EmojiInput');
|
const EmojiInput = () => import('shared/components/emoji/EmojiInput');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { EmojiInput },
|
components: { EmojiInput },
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
label: {
|
label: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
@ -57,7 +57,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import InboxOptionMenu from './InboxOptionMenu.vue';
|
import InboxOptionMenu from './InboxOptionMenu.vue';
|
||||||
import { INBOX_EVENTS } from 'dashboard/helper/AnalyticsHelper/events';
|
import { INBOX_EVENTS } from 'dashboard/helper/AnalyticsHelper/events';
|
||||||
import InboxDisplayMenu from './InboxDisplayMenu.vue';
|
import InboxDisplayMenu from './InboxDisplayMenu.vue';
|
||||||
@ -68,7 +67,7 @@ export default {
|
|||||||
InboxOptionMenu,
|
InboxOptionMenu,
|
||||||
InboxDisplayMenu,
|
InboxDisplayMenu,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, alertMixin],
|
mixins: [alertMixin],
|
||||||
props: {
|
props: {
|
||||||
isContextMenuOpen: {
|
isContextMenuOpen: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@ -115,7 +115,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import rtlMixin from 'shared/mixins/rtlMixin';
|
import rtlMixin from 'shared/mixins/rtlMixin';
|
||||||
import NotificationPanelList from './NotificationPanelList.vue';
|
import NotificationPanelList from './NotificationPanelList.vue';
|
||||||
|
|
||||||
@ -125,7 +124,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
NotificationPanelList,
|
NotificationPanelList,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, rtlMixin],
|
mixins: [rtlMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pageSize: 15,
|
pageSize: 15,
|
||||||
|
|||||||
@ -21,7 +21,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import Spinner from 'shared/components/Spinner.vue';
|
import Spinner from 'shared/components/Spinner.vue';
|
||||||
import EmptyState from 'dashboard/components/widgets/EmptyState.vue';
|
import EmptyState from 'dashboard/components/widgets/EmptyState.vue';
|
||||||
import campaignMixin from 'shared/mixins/campaignMixin';
|
import campaignMixin from 'shared/mixins/campaignMixin';
|
||||||
@ -34,7 +33,7 @@ export default {
|
|||||||
CampaignCard,
|
CampaignCard,
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [clickaway, campaignMixin],
|
mixins: [campaignMixin],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
campaigns: {
|
campaigns: {
|
||||||
|
|||||||
@ -22,14 +22,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import SLAPopoverCard from 'dashboard/components/widgets/conversation/components/SLAPopoverCard.vue';
|
import SLAPopoverCard from 'dashboard/components/widgets/conversation/components/SLAPopoverCard.vue';
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SLAPopoverCard,
|
SLAPopoverCard,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
slaEvents: {
|
slaEvents: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -23,8 +23,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
import SearchSuggestions from './SearchSuggestions.vue';
|
import SearchSuggestions from './SearchSuggestions.vue';
|
||||||
import PublicSearchInput from './PublicSearchInput.vue';
|
import PublicSearchInput from './PublicSearchInput.vue';
|
||||||
|
|
||||||
@ -35,7 +33,6 @@ export default {
|
|||||||
PublicSearchInput,
|
PublicSearchInput,
|
||||||
SearchSuggestions,
|
SearchSuggestions,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
type: [String, Number],
|
type: [String, Number],
|
||||||
|
|||||||
@ -74,13 +74,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue';
|
||||||
import MultiselectDropdownItems from 'shared/components/ui/MultiselectDropdownItems.vue';
|
import MultiselectDropdownItems from 'shared/components/ui/MultiselectDropdownItems.vue';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Thumbnail,
|
Thumbnail,
|
||||||
MultiselectDropdownItems,
|
MultiselectDropdownItems,
|
||||||
},
|
},
|
||||||
mixins: [clickaway],
|
|
||||||
props: {
|
props: {
|
||||||
options: {
|
options: {
|
||||||
type: Array,
|
type: Array,
|
||||||
|
|||||||
@ -49,7 +49,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
|
|
||||||
import ChatAttachmentButton from 'widget/components/ChatAttachment.vue';
|
import ChatAttachmentButton from 'widget/components/ChatAttachment.vue';
|
||||||
import ChatSendButton from 'widget/components/ChatSendButton.vue';
|
import ChatSendButton from 'widget/components/ChatSendButton.vue';
|
||||||
@ -69,7 +68,7 @@ export default {
|
|||||||
FluentIcon,
|
FluentIcon,
|
||||||
ResizableTextArea,
|
ResizableTextArea,
|
||||||
},
|
},
|
||||||
mixins: [clickaway, configMixin, darkModeMixin],
|
mixins: [configMixin, darkModeMixin],
|
||||||
props: {
|
props: {
|
||||||
onSendMessage: {
|
onSendMessage: {
|
||||||
type: Function,
|
type: Function,
|
||||||
|
|||||||
@ -83,7 +83,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mixin as clickaway } from 'vue-clickaway';
|
|
||||||
import countries from 'shared/constants/countries.js';
|
import countries from 'shared/constants/countries.js';
|
||||||
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
||||||
import mentionSelectionKeyboardMixin from 'dashboard/components/widgets/mentions/mentionSelectionKeyboardMixin.js';
|
import mentionSelectionKeyboardMixin from 'dashboard/components/widgets/mentions/mentionSelectionKeyboardMixin.js';
|
||||||
@ -94,12 +93,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
FluentIcon,
|
FluentIcon,
|
||||||
},
|
},
|
||||||
mixins: [
|
mixins: [mentionSelectionKeyboardMixin, FormulateInputMixin, darkModeMixin],
|
||||||
mentionSelectionKeyboardMixin,
|
|
||||||
FormulateInputMixin,
|
|
||||||
darkModeMixin,
|
|
||||||
clickaway,
|
|
||||||
],
|
|
||||||
props: {
|
props: {
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user