|
@@ -3,7 +3,7 @@
|
|
:className="activePanelTab === 'THUMBS' ? 'active' : ''"
|
|
:className="activePanelTab === 'THUMBS' ? 'active' : ''"
|
|
img="icon-thumbnail"
|
|
img="icon-thumbnail"
|
|
:title="$t('leftPanel.thumbnails')"
|
|
:title="$t('leftPanel.thumbnails')"
|
|
- dataElement="THUMBS"
|
|
|
|
|
|
+ data-element="THUMBS"
|
|
:isActive="activePanelTab === 'THUMBS'"
|
|
:isActive="activePanelTab === 'THUMBS'"
|
|
@click="setActiveLeftPanelTab('THUMBS', 'thumbs')"
|
|
@click="setActiveLeftPanelTab('THUMBS', 'thumbs')"
|
|
>
|
|
>
|
|
@@ -13,7 +13,7 @@
|
|
:className="activePanelTab === 'OUTLINE' ? 'active' : ''"
|
|
:className="activePanelTab === 'OUTLINE' ? 'active' : ''"
|
|
img="icon-outline"
|
|
img="icon-outline"
|
|
:title="$t('leftPanel.outlines')"
|
|
:title="$t('leftPanel.outlines')"
|
|
- dataElement="OUTLINE"
|
|
|
|
|
|
+ data-element="OUTLINE"
|
|
:isActive="activePanelTab === 'OUTLINE'"
|
|
:isActive="activePanelTab === 'OUTLINE'"
|
|
@click="setActiveLeftPanelTab('OUTLINE', 'outline')"
|
|
@click="setActiveLeftPanelTab('OUTLINE', 'outline')"
|
|
>
|
|
>
|
|
@@ -23,7 +23,7 @@
|
|
:className="activePanelTab === 'ANNOTATION' ? 'active' : ''"
|
|
:className="activePanelTab === 'ANNOTATION' ? 'active' : ''"
|
|
img="icon-annotation"
|
|
img="icon-annotation"
|
|
:title="$t('leftPanel.annotations')"
|
|
:title="$t('leftPanel.annotations')"
|
|
- dataElement="ANNOTATION"
|
|
|
|
|
|
+ data-element="ANNOTATION"
|
|
:isActive="activePanelTab === 'ANNOTATION'"
|
|
:isActive="activePanelTab === 'ANNOTATION'"
|
|
@click="setActiveLeftPanelTab('ANNOTATION', 'none')"
|
|
@click="setActiveLeftPanelTab('ANNOTATION', 'none')"
|
|
>
|
|
>
|
|
@@ -34,7 +34,7 @@
|
|
v-if="activeLeftPanel && activePanelTab === 'LAYER'"
|
|
v-if="activeLeftPanel && activePanelTab === 'LAYER'"
|
|
img="icon-view-layers"
|
|
img="icon-view-layers"
|
|
:title="$t('leftPanel.layers')"
|
|
:title="$t('leftPanel.layers')"
|
|
- dataElement="Layers"
|
|
|
|
|
|
+ data-element="Layers"
|
|
:isActive="activePanelTab === 'LAYER'"
|
|
:isActive="activePanelTab === 'LAYER'"
|
|
@click="setActiveLeftPanelTab('LAYER', 'layers')"
|
|
@click="setActiveLeftPanelTab('LAYER', 'layers')"
|
|
>
|
|
>
|
|
@@ -45,7 +45,7 @@
|
|
v-if="activeLeftPanel && activePanelTab === 'COMPARISON'"
|
|
v-if="activeLeftPanel && activePanelTab === 'COMPARISON'"
|
|
img="icon-compare"
|
|
img="icon-compare"
|
|
title="Compare"
|
|
title="Compare"
|
|
- dataElement="COMPARISON"
|
|
|
|
|
|
+ data-element="COMPARISON"
|
|
:isActive="activePanelTab === 'COMPARISON'"
|
|
:isActive="activePanelTab === 'COMPARISON'"
|
|
@click="setActiveLeftPanelTab('COMPARISON')"
|
|
@click="setActiveLeftPanelTab('COMPARISON')"
|
|
/>
|
|
/>
|
|
@@ -53,7 +53,7 @@
|
|
:className="activePanelTab === 'SIGNATURE' ? 'active' : ''"
|
|
:className="activePanelTab === 'SIGNATURE' ? 'active' : ''"
|
|
img="icon-signature"
|
|
img="icon-signature"
|
|
:title="$t('leftPanel.signature')"
|
|
:title="$t('leftPanel.signature')"
|
|
- dataElement="Signature"
|
|
|
|
|
|
+ data-element="SIGNATURE"
|
|
:isActive="activePanelTab === 'SIGNATURE'"
|
|
:isActive="activePanelTab === 'SIGNATURE'"
|
|
@click="setActiveLeftPanelTab('SIGNATURE', 'none')"
|
|
@click="setActiveLeftPanelTab('SIGNATURE', 'none')"
|
|
>
|
|
>
|
|
@@ -63,7 +63,7 @@
|
|
:className="activePanelTab === 'SEARCH' ? 'active' : ''"
|
|
:className="activePanelTab === 'SEARCH' ? 'active' : ''"
|
|
img="icon-search"
|
|
img="icon-search"
|
|
:title="$t('leftPanel.search')"
|
|
:title="$t('leftPanel.search')"
|
|
- dataElement="Search"
|
|
|
|
|
|
+ data-element="SEARCH"
|
|
:isActive="activePanelTab === 'SEARCH'"
|
|
:isActive="activePanelTab === 'SEARCH'"
|
|
@click="setActiveLeftPanelTab('SEARCH', 'none')"
|
|
@click="setActiveLeftPanelTab('SEARCH', 'none')"
|
|
>
|
|
>
|
|
@@ -79,12 +79,12 @@
|
|
|
|
|
|
defineProps(['activePanelTab'])
|
|
defineProps(['activePanelTab'])
|
|
const activeLeftPanel = computed(() => useViewer.isElementOpen('leftPanel'))
|
|
const activeLeftPanel = computed(() => useViewer.isElementOpen('leftPanel'))
|
|
- const activePanelTab = computed(() => useViewer.getActiveElementTab('leftPanelTab'))
|
|
|
|
|
|
+ const activePanelTab = computed(() => useViewer.getActiveElementTab('leftPanel'))
|
|
const useViewer = useViewerStore()
|
|
const useViewer = useViewerStore()
|
|
|
|
|
|
const setActiveLeftPanelTab = (tab, mode) => {
|
|
const setActiveLeftPanelTab = (tab, mode) => {
|
|
if (tab === activePanelTab.value) return
|
|
if (tab === activePanelTab.value) return
|
|
- useViewer.setActiveElementTab('leftPanelTab', tab)
|
|
|
|
|
|
+ useViewer.setActiveElementTab('leftPanel', tab, mode)
|
|
|
|
|
|
if (tab === 'SEARCH') {
|
|
if (tab === 'SEARCH') {
|
|
core.webViewerNamedAction('FindOpen')
|
|
core.webViewerNamedAction('FindOpen')
|
|
@@ -93,9 +93,5 @@
|
|
core.clearSearchResults()
|
|
core.clearSearchResults()
|
|
useViewer.setSearchStatus(false)
|
|
useViewer.setSearchStatus(false)
|
|
}
|
|
}
|
|
-
|
|
|
|
- setTimeout(() => {
|
|
|
|
- core.webViewerPageMode(mode)
|
|
|
|
- }, 0)
|
|
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|