2019-12-20 13:49:40 +00:00
|
|
|
<template>
|
|
|
|
<div :class="containerClass">
|
|
|
|
<div class="layout-config-content-wrapper">
|
|
|
|
<a href="#" class="layout-config-button" @click="toggleConfigurator">
|
|
|
|
<i class="pi pi-cog"></i>
|
|
|
|
</a>
|
|
|
|
<a href="#" class="layout-config-close" @click="hideConfigurator">
|
|
|
|
<i class="pi pi-times"></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="layout-config-content">
|
|
|
|
<div class="free-themes">
|
|
|
|
<h1 style="margin-top: 0">FREE THEMES</h1>
|
2019-12-22 09:59:34 +00:00
|
|
|
<p>Built-in component themes created by the <a href="https://www.primefaces.org/designer/primevue">PrimeVue Theme Designer</a>.</p>
|
2020-05-07 19:16:41 +00:00
|
|
|
|
2019-12-20 13:49:40 +00:00
|
|
|
<div class="p-grid">
|
2020-05-07 19:13:58 +00:00
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/saga-blue.png" alt="Saga Blue" @click="changeTheme($event, 'saga-blue', false)"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-blue'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Blue</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/saga-cyan.png" alt="Saga Cyan" @click="changeTheme($event, 'saga-cyan', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-cyan'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Cyan</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-12 22:46:48 +00:00
|
|
|
<img src="./assets/images/themes/saga-deeppurple.png" alt="Saga Deep Purple" @click="changeTheme($event, 'saga-deeppurple', false)"/>
|
2020-05-08 10:30:55 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-deeppurple'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Deep Purple</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/saga-green.png" alt="Saga Green" @click="changeTheme($event, 'saga-green', false)"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-green'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Green</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/saga-indigo.png" alt="Saga Indigo" @click="changeTheme($event, 'saga-indigo', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-indigo'" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Indigo</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/saga-orange.png" alt="Saga Orange" @click="changeTheme($event, 'saga-orange', false)"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-orange'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Orange</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/saga-purple.png" alt="Saga Purple" @click="changeTheme($event, 'saga-purple', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-purple'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Purple</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/saga-teal.png" alt="Saga Teal" @click="changeTheme($event, 'saga-teal', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'saga-teal'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Teal</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/vela-blue.png" alt="Vela Blue" @click="changeTheme($event, 'vela-blue', 'dark-theme-alt')"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-blue'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Blue</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/vela-cyan.png" alt="Vela Cyan" @click="changeTheme($event, 'vela-cyan', 'dark-theme-alt')"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-cyan'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Cyan</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-12 22:46:48 +00:00
|
|
|
<img src="./assets/images/themes/vela-deeppurple.png" alt="Vela Deep Purple" @click="changeTheme($event, 'vela-deeppurple', 'dark-theme-alt')"/>
|
2020-05-08 10:30:55 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-deeppurple'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Deep Purple</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/vela-green.png" alt="Vela Green" @click="changeTheme($event, 'vela-green', 'dark-theme-alt')"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-green'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Green</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/vela-indigo.png" alt="Vela Indigo" @click="changeTheme($event, 'vela-indigo', 'dark-theme-alt')"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-indigo'" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Indigo</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-08 10:30:55 +00:00
|
|
|
<img src="./assets/images/themes/vela-orange.png" alt="Vela Orange" @click="changeTheme($event, 'vela-orange', 'dark-theme-alt')"/>
|
2020-05-07 19:13:58 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-orange'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Orange</span>
|
2020-05-07 19:13:58 +00:00
|
|
|
</div>
|
2020-05-08 10:30:55 +00:00
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/vela-purple.png" alt="Vela Purple" @click="changeTheme($event, 'vela-purple', 'dark-theme-alt')"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-purple'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Purple</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/themes/vela-teal.png" alt="Vela Teal" @click="changeTheme($event, 'vela-teal', 'dark-theme-alt')"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'vela-teal'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Teal</span>
|
2020-05-08 10:30:55 +00:00
|
|
|
</div>
|
2019-12-20 13:49:40 +00:00
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/layouts/themeswitcher-nova-light.png" alt="Nova Light" @click="changeTheme($event, 'nova-light', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'nova-light'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Nova Light</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/layouts/themeswitcher-nova-dark.png" alt="Nova Dark" @click="changeTheme($event, 'nova-dark', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'nova-dark'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Nova Dark</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/layouts/themeswitcher-nova-colored.png" alt="Nova Colored" @click="changeTheme($event, 'nova-colored', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'nova-colored'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Nova Colored</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
2019-12-20 14:22:50 +00:00
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/layouts/themeswitcher-nova-vue.png" alt="Nova Colored" @click="changeTheme($event, 'nova-vue', false)"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'nova-vue'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Nova Vue</span>
|
2019-12-20 14:22:50 +00:00
|
|
|
</div>
|
2019-12-20 13:49:40 +00:00
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-07 19:13:58 +00:00
|
|
|
<img src="./assets/images/layouts/themeswitcher-luna-blue.png" alt="Luna Blue" @click="changeTheme($event, 'luna-blue', 'dark-theme')"/>
|
2019-12-20 13:49:40 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'luna-blue'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Luna Blue</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-07 19:13:58 +00:00
|
|
|
<img src="./assets/images/layouts/themeswitcher-luna-green.png" alt="Luna Green" @click="changeTheme($event, 'luna-green', 'dark-theme')"/>
|
2019-12-20 14:22:50 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'luna-green'" />
|
2019-12-20 13:49:40 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Luna Green</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-07 19:13:58 +00:00
|
|
|
<img src="./assets/images/layouts/themeswitcher-luna-amber.png" alt="Luna Amber" @click="changeTheme($event, 'luna-amber', 'dark-theme')" target="_blank"/>
|
2019-12-20 13:49:40 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'luna-amber'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Luna Amber</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
2020-05-07 19:13:58 +00:00
|
|
|
<img src="./assets/images/layouts/themeswitcher-luna-pink.png" alt="Luna Pink" @click="changeTheme($event, 'luna-pink', 'dark-theme')" target="_blank"/>
|
2019-12-20 13:49:40 +00:00
|
|
|
<i class="pi pi-check" v-if="theme === 'luna-pink'" />
|
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Luna Pink</span>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="p-col-3">
|
|
|
|
<button class="p-link">
|
|
|
|
<img src="./assets/images/layouts/themeswitcher-rhea.png" alt="Rhea" @click="changeTheme($event, 'rhea', false)" target="_blank"/>
|
|
|
|
<i class="pi pi-check" v-if="theme === 'rhea'" />
|
|
|
|
</button>
|
|
|
|
<span>Rhea</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="premium-themes">
|
|
|
|
<h1>PREMIUM VUE-CLI TEMPLATES</h1>
|
2019-12-22 10:02:19 +00:00
|
|
|
<p>Beautifully crafted premium <a href="https://cli.vuejs.org">Vue CLI</a> application templates by the PrimeTek design team.</p>
|
2019-12-20 13:49:40 +00:00
|
|
|
<div class="p-grid">
|
2020-03-23 12:31:25 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
|
|
|
<a href="https://www.primefaces.org/layouts/ultima-vue">
|
|
|
|
<img alt="Ultima" src="./assets/images/layouts/ultima-vue.jpg">
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2019-12-20 13:49:40 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/sapphire-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Sapphire" src="./assets/images/layouts/sapphire-vue.jpg">
|
2019-12-20 13:49:40 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2020-01-10 11:56:46 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/serenity-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Serenity" src="./assets/images/layouts/serenity-vue.jpg">
|
2020-01-10 11:56:46 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2019-12-20 13:49:40 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/babylon-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Babylon" src="./assets/images/layouts/babylon-vue.jpg">
|
2019-12-20 13:49:40 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2019-12-20 13:49:40 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/avalon-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Avalon" src="./assets/images/layouts/avalon-vue.jpg">
|
2019-12-20 13:49:40 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2019-12-24 08:45:43 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/apollo-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Apollo" src="./assets/images/layouts/apollo-vue.jpg">
|
2019-12-24 08:45:43 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-02-28 09:35:04 +00:00
|
|
|
<div class="p-col-12 p-md-6">
|
2020-01-07 15:38:02 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/roma-vue">
|
2020-02-28 09:35:04 +00:00
|
|
|
<img alt="Roma" src="./assets/images/layouts/roma-vue.jpg">
|
2020-01-07 15:38:02 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2020-05-07 19:13:58 +00:00
|
|
|
props: {
|
|
|
|
theme: String
|
|
|
|
},
|
2019-12-20 13:49:40 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2020-05-07 19:13:58 +00:00
|
|
|
active: false
|
2019-12-20 13:49:40 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
outsideClickListener: null,
|
|
|
|
watch: {
|
|
|
|
$route() {
|
|
|
|
if (this.active) {
|
|
|
|
this.active = false;
|
|
|
|
this.unbindOutsideClickListener();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
containerClass() {
|
|
|
|
return ['layout-config', {'layout-config-active': this.active}];
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleConfigurator(event) {
|
|
|
|
this.active = !this.active;
|
|
|
|
event.preventDefault();
|
|
|
|
|
|
|
|
if (this.active)
|
|
|
|
this.bindOutsideClickListener();
|
|
|
|
else
|
|
|
|
this.unbindOutsideClickListener();
|
|
|
|
},
|
|
|
|
hideConfigurator(event) {
|
|
|
|
this.active = false;
|
|
|
|
this.unbindOutsideClickListener();
|
|
|
|
event.preventDefault();
|
|
|
|
},
|
|
|
|
changeTheme(event, theme, dark) {
|
2020-05-07 19:13:58 +00:00
|
|
|
this.$emit('change-theme', {theme: theme, dark: dark});
|
2019-12-20 13:49:40 +00:00
|
|
|
event.preventDefault();
|
|
|
|
},
|
|
|
|
bindOutsideClickListener() {
|
|
|
|
if (!this.outsideClickListener) {
|
|
|
|
this.outsideClickListener = (event) => {
|
|
|
|
if (this.active && this.isOutsideClicked(event)) {
|
|
|
|
this.active = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
document.addEventListener('click', this.outsideClickListener);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
unbindOutsideClickListener() {
|
|
|
|
if (this.outsideClickListener) {
|
|
|
|
document.removeEventListener('click', this.outsideClickListener);
|
|
|
|
this.outsideClickListener = null;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
isOutsideClicked(event) {
|
|
|
|
return !(this.$el.isSameNode(event.target) || this.$el.contains(event.target));
|
2020-05-07 19:13:58 +00:00
|
|
|
}
|
2019-12-20 13:49:40 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-20 14:22:50 +00:00
|
|
|
</script>
|