primevue-mirror/layouts/AppConfigurator.vue

484 lines
25 KiB
Vue
Raw Normal View History

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">
2020-06-19 09:41:05 +00:00
<div>
2020-06-17 19:29:33 +00:00
<h4>Component Scale</h4>
2020-05-14 08:37:01 +00:00
<div class="config-scale">
2020-06-25 13:04:00 +00:00
<Button icon="pi pi-minus" @click="decrementScale()" class="p-button-text" :disabled="scale === scales[0]"/>
2021-11-08 12:50:11 +00:00
<i class="pi pi-circle-fill" v-for="s of scales" :class="{'scale-active': s === scale}" :key="s"/>
2020-06-25 13:04:00 +00:00
<Button icon="pi pi-plus" @click="incrementScale()" class="p-button-text" :disabled="scale === scales[scales.length - 1]" />
2020-05-14 08:37:01 +00:00
</div>
2020-06-20 09:40:01 +00:00
<AppInputStyleSwitch />
2020-06-25 13:04:00 +00:00
<h4>Ripple Effect</h4>
<InputSwitch :modelValue="rippleActive" @update:modelValue="onRippleChange" />
2020-06-25 13:04:00 +00:00
2020-06-17 19:29:33 +00:00
<h4>Free Themes</h4>
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
2020-06-19 09:16:03 +00:00
<h5>Bootstrap</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'bootstrap4-light-blue')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/bootstrap4-light-blue.svg" alt="Bootstrap Light Blue" />
2020-06-25 09:49:23 +00:00
</button>
2020-06-26 13:37:03 +00:00
<span>Blue</span>
2020-06-25 09:49:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'bootstrap4-light-purple')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/bootstrap4-light-purple.svg" alt="Bootstrap Light Blue" />
2020-06-19 09:16:03 +00:00
</button>
2020-06-26 13:37:03 +00:00
<span>Purple</span>
2020-06-19 09:16:03 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'bootstrap4-dark-blue', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/bootstrap4-dark-blue.svg" alt="Bootstrap Dark Blue" />
2020-06-19 09:16:03 +00:00
</button>
2020-06-26 13:37:03 +00:00
<span>Blue</span>
2020-06-25 09:49:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'bootstrap4-dark-purple', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/bootstrap4-dark-purple.svg" alt="Bootstrap Dark Blue" />
2020-06-25 09:49:23 +00:00
</button>
2020-06-26 13:37:03 +00:00
<span>Purple</span>
2020-06-19 09:16:03 +00:00
</div>
</div>
2020-06-25 09:49:23 +00:00
<h5>Material Design</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'md-light-indigo')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-light-indigo.svg" alt="Material Light Indigo" />
2020-06-19 09:16:03 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Indigo</span>
2020-06-19 09:16:03 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'md-light-deeppurple')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-light-deeppurple.svg" alt="Material Light Deep Purple" />
2020-06-19 09:16:03 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Deep Purple</span>
2020-06-25 09:19:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'md-dark-indigo', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-dark-indigo.svg" alt="Material Dark Indigo" />
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Indigo</span>
2020-06-25 09:19:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'md-dark-deeppurple', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-dark-deeppurple.svg" alt="Material Dark Deep Purple" />
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Deep Purple</span>
2020-06-25 09:19:23 +00:00
</div>
</div>
2020-06-25 09:49:23 +00:00
<h5>Material Design Compact</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'mdc-light-indigo')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-light-indigo.svg" alt="Material Compact Light Indigo"/>
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Indigo</span>
2020-06-25 09:19:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'mdc-light-deeppurple')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-light-deeppurple.svg" alt="Material Compact Deep Purple" />
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Deep Purple</span>
2020-06-25 09:19:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'mdc-dark-indigo', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-dark-indigo.svg" alt="Material Compact Dark Indigo" />
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Indigo</span>
2020-06-25 09:19:23 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'mdc-dark-deeppurple', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/md-dark-deeppurple.svg" alt="Material Compact Dark Deep Purple" />
2020-06-25 09:19:23 +00:00
</button>
2020-06-26 12:24:56 +00:00
<span>Deep Purple</span>
2020-06-19 09:16:03 +00:00
</div>
</div>
2021-09-06 08:54:28 +00:00
<h5>Tailwind</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2021-09-06 08:54:28 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'tailwind-light')">
<img src="demo/images/themes/tailwind-light.png" alt="Tailwind Light"/>
</button>
<span>Tailwind Light</span>
</div>
</div>
2020-10-10 10:32:08 +00:00
<h5>Fluent UI</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2020-10-10 10:32:08 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'fluent-light')">
<img src="demo/images/themes/fluent-light.png" alt="Fluent Light"/>
</button>
<span>Fluent Light</span>
</div>
</div>
2022-01-13 11:03:59 +00:00
<h5 class="flex align-items-center">PrimeOne Design - 2022 <Tag class="ml-3" value="NEW" rounded severity="success"></Tag></h5>
<div class="grid free-themes">
<div class="col-3">
2021-11-08 10:44:13 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-light-indigo')">
2021-11-15 09:07:43 +00:00
<img src="demo/images/themes/lara-light-indigo.png" alt="Lara Light Indigo" />
2021-11-08 10:44:13 +00:00
</button>
2021-11-08 14:30:55 +00:00
<span>Lara Light Indigo</span>
2021-11-08 10:44:13 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-16 07:06:27 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-light-blue')">
<img src="demo/images/themes/lara-light-blue.png" alt="Lara Light Blue" />
2021-11-08 10:44:13 +00:00
</button>
2021-11-16 07:06:27 +00:00
<span>Lara Light Blue</span>
2021-11-08 10:44:13 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-08 14:24:48 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-light-purple')">
2021-11-15 09:07:43 +00:00
<img src="demo/images/themes/lara-light-purple.png" alt="Lara Light Purple" />
2021-11-08 10:44:13 +00:00
</button>
2021-11-08 14:30:55 +00:00
<span>Lara Light Purple</span>
2021-11-08 10:44:13 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-16 07:06:27 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-light-teal')">
<img src="demo/images/themes/lara-light-teal.png" alt="Lara Light Teal" />
2021-11-08 10:44:13 +00:00
</button>
2021-11-16 07:06:27 +00:00
<span>Lara Light Teal</span>
2021-11-08 10:44:13 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-16 07:06:27 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-dark-indigo', true)">
<img src="demo/images/themes/lara-dark-indigo.png" alt="Lara Dark Indigo" />
2021-11-12 15:13:06 +00:00
</button>
2021-11-16 07:06:27 +00:00
<span>Lara Dark Indigo</span>
2021-11-12 15:13:06 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-15 07:52:45 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-dark-blue', true)">
2021-11-15 09:07:43 +00:00
<img src="demo/images/themes/lara-dark-blue.png" alt="Lara Dark Blue" />
2021-11-12 15:13:06 +00:00
</button>
2021-11-15 07:52:45 +00:00
<span>Lara Dark Blue</span>
2021-11-12 15:13:06 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-16 07:06:27 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-dark-purple', true)">
<img src="demo/images/themes/lara-dark-purple.png" alt="Lara Dark Purple" />
2021-11-12 15:13:06 +00:00
</button>
2021-11-16 07:06:27 +00:00
<span>Lara Dark Purple</span>
2021-11-12 15:13:06 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-11-15 07:52:45 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'lara-dark-teal', true)">
2021-11-15 09:07:43 +00:00
<img src="demo/images/themes/lara-dark-teal.png" alt="Lara Dark Teal" />
2021-11-12 15:13:06 +00:00
</button>
2021-11-15 07:52:45 +00:00
<span>Lara Dark Teal</span>
2021-11-12 15:13:06 +00:00
</div>
2021-11-15 07:22:31 +00:00
</div>
<h5>PrimeOne Design - 2021</h5>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'saga-blue')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/saga-blue.png" alt="Saga Blue" />
</button>
2020-05-12 22:46:48 +00:00
<span>Saga Blue</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'saga-green')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/saga-green.png" alt="Saga Green" />
</button>
2020-05-12 22:46:48 +00:00
<span>Saga Green</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'saga-orange')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/saga-orange.png" alt="Saga Orange" />
</button>
2020-05-12 22:46:48 +00:00
<span>Saga Orange</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'saga-purple')">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/saga-purple.png" alt="Saga Purple" />
2020-05-08 10:30:55 +00:00
</button>
2020-05-12 22:46:48 +00:00
<span>Saga Purple</span>
2020-05-08 10:30:55 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'vela-blue', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/vela-blue.png" alt="Vela Blue" />
</button>
2020-05-12 22:46:48 +00:00
<span>Vela Blue</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'vela-green', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/vela-green.png" alt="Vela Green" />
</button>
2020-05-12 22:46:48 +00:00
<span>Vela Green</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'vela-orange', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/vela-orange.png" alt="Vela Orange" />
</button>
2020-05-12 22:46:48 +00:00
<span>Vela Orange</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'vela-purple', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/vela-purple.png" alt="Vela Purple" />
2020-05-08 10:30:55 +00:00
</button>
2020-05-12 22:46:48 +00:00
<span>Vela Purple</span>
2020-05-08 10:30:55 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'arya-blue', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/arya-blue.png" alt="Arya Blue" />
2020-06-17 14:09:39 +00:00
</button>
2020-06-18 09:01:31 +00:00
<span>Arya Blue</span>
2020-06-17 14:09:39 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'arya-green', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/arya-green.png" alt="Arya Green" />
2020-06-17 14:09:39 +00:00
</button>
2020-06-18 09:01:31 +00:00
<span>Arya Green</span>
2020-06-17 14:09:39 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'arya-orange', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/arya-orange.png" alt="Arya Orange" />
2020-06-17 14:09:39 +00:00
</button>
2020-06-18 09:01:31 +00:00
<span>Arya Orange</span>
2020-06-17 14:09:39 +00:00
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-07-23 08:36:58 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'arya-purple', true)">
2020-07-23 08:36:29 +00:00
<img src="demo/images/themes/arya-purple.png" alt="Arya Purple" />
2020-06-17 14:09:39 +00:00
</button>
2020-06-18 09:01:31 +00:00
<span>Arya Purple</span>
2020-06-17 14:09:39 +00:00
</div>
2020-06-19 09:16:03 +00:00
</div>
<h4>Premium Themes</h4>
2021-04-26 07:29:18 +00:00
<p>Premium themes are only available exclusively for <a href="https://www.primefaces.org/designer/primevue">PrimeVue Theme Designer</a> subscribers and therefore not included in PrimeVue core.</p>
2022-01-13 11:03:59 +00:00
<div class="grid free-themes">
<div class="col-3">
<button class="p-link" type="button" @click="changeTheme($event, 'soho-light')">
<img src="demo/images/themes/soho-light.png" alt="Soho Light" />
</button>
<span>Soho Light</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
<button class="p-link" type="button" @click="changeTheme($event, 'soho-dark', true)">
<img src="demo/images/themes/soho-dark.png" alt="Soho Dark" />
</button>
<span>Soho Dark</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-01-13 09:24:57 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'viva-light')">
<img src="demo/images/themes/viva-light.svg" alt="Viva Light" />
</button>
<span>Viva Light</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2021-01-13 09:24:57 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'viva-dark', true)">
<img src="demo/images/themes/viva-dark.svg" alt="Viva Dark" />
</button>
<span>Viva Dark</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-11-26 08:53:02 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'mira')">
<img src="demo/images/themes/mira.jpg" alt="Mira" />
</button>
<span>Mira</span>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-3">
2020-11-26 08:53:02 +00:00
<button class="p-link" type="button" @click="changeTheme($event, 'nano')">
<img src="demo/images/themes/nano.jpg" alt="Mira" />
</button>
<span>Nano</span>
</div>
</div>
2021-09-13 16:05:18 +00:00
<h4>Admin Templates</h4>
<p>Beautifully crafted <a href="https://cli.vuejs.org">Vue CLI</a> application templates by the PrimeTek design team.</p>
2022-01-13 11:03:59 +00:00
<div class="grid premium-themes">
<div class="col-12 md:col-6">
2021-09-13 16:05:18 +00:00
<a href="https://www.primefaces.org/sakai-vue">
2022-09-06 13:53:29 +00:00
<img alt="Ultima" src="@/assets/images/layouts/sakai-vue.jpg">
2021-09-13 16:05:18 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2021-09-21 07:05:08 +00:00
<a href="https://www.primefaces.org/layouts/atlantis-vue">
2022-09-06 13:53:29 +00:00
<img alt="Atlantis" src="@/assets/images/layouts/atlantis-vue.jpg">
2021-09-21 07:05:08 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2021-05-06 13:12:18 +00:00
<a href="https://www.primefaces.org/layouts/freya-vue">
2022-09-06 13:53:29 +00:00
<img alt="Freya" src="@/assets/images/layouts/freya-vue.png">
2021-05-06 13:12:18 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2021-02-24 07:35:25 +00:00
<a href="https://www.primefaces.org/layouts/ultima-vue">
2022-09-06 13:53:29 +00:00
<img alt="Ultima" src="@/assets/images/layouts/ultima-vue.jpg">
2020-10-22 10:45:59 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2021-02-24 07:35:25 +00:00
<a href="https://www.primefaces.org/layouts/diamond-vue">
2022-09-06 13:53:29 +00:00
<img alt="Diamond" src="@/assets/images/layouts/diamond-vue.jpg">
2020-03-23 12:31:25 +00:00
</a>
</div>
2022-05-26 13:53:30 +00:00
<div class="col-12 md:col-6">
<a href="https://www.primefaces.org/layouts/verona-vue">
2022-09-06 13:53:29 +00:00
<img alt="Verona" src="@/assets/images/layouts/verona-vue.jpg">
2022-05-26 13:53:30 +00:00
</a>
</div>
<div class="col-12 md:col-6">
<a href="https://www.primefaces.org/layouts/poseidon-vue">
2022-09-06 13:53:29 +00:00
<img alt="Poseidon" src="@/assets/images/layouts/poseidon-vue.jpg">
2022-05-26 13:53:30 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2019-12-20 13:49:40 +00:00
<a href="https://www.primefaces.org/layouts/sapphire-vue">
2022-09-06 13:53:29 +00:00
<img alt="Sapphire" src="@/assets/images/layouts/sapphire-vue.jpg">
2019-12-20 13:49:40 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2020-01-10 11:56:46 +00:00
<a href="https://www.primefaces.org/layouts/serenity-vue">
2022-09-06 13:53:29 +00:00
<img alt="Serenity" src="@/assets/images/layouts/serenity-vue.jpg">
2020-01-10 11:56:46 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2019-12-20 13:49:40 +00:00
<a href="https://www.primefaces.org/layouts/babylon-vue">
2022-09-06 13:53:29 +00:00
<img alt="Babylon" src="@/assets/images/layouts/babylon-vue.jpg">
2019-12-20 13:49:40 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2019-12-20 13:49:40 +00:00
<a href="https://www.primefaces.org/layouts/avalon-vue">
2022-09-06 13:53:29 +00:00
<img alt="Avalon" src="@/assets/images/layouts/avalon-vue.jpg">
2019-12-20 13:49:40 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2019-12-24 08:45:43 +00:00
<a href="https://www.primefaces.org/layouts/apollo-vue">
2022-09-06 13:53:29 +00:00
<img alt="Apollo" src="@/assets/images/layouts/apollo-vue.jpg">
2019-12-24 08:45:43 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2020-01-07 15:38:02 +00:00
<a href="https://www.primefaces.org/layouts/roma-vue">
2022-09-06 13:53:29 +00:00
<img alt="Roma" src="@/assets/images/layouts/roma-vue.jpg">
2020-01-07 15:38:02 +00:00
</a>
</div>
2022-01-13 11:03:59 +00:00
<div class="col-12 md:col-6">
2020-07-05 11:07:29 +00:00
<a href="https://www.primefaces.org/layouts/prestige-vue">
2022-09-06 13:53:29 +00:00
<img alt="Prestige" src="@/assets/images/layouts/prestige-vue.jpg">
2020-07-05 11:07:29 +00:00
</a>
</div>
2019-12-20 13:49:40 +00:00
</div>
</div>
</div>
</div>
</div>
</template>
<script>
2022-09-06 11:52:18 +00:00
import EventBus from './AppEventBus';
2020-11-26 08:53:02 +00:00
2019-12-20 13:49:40 +00:00
export default {
props: {
2020-06-20 09:40:01 +00:00
inputStyle: String
},
2019-12-20 13:49:40 +00:00
data() {
return {
2020-05-14 08:37:01 +00:00
active: false,
scale: 14,
scales: [12,13,14,15,16]
2019-12-20 13:49:40 +00:00
}
},
outsideClickListener: null,
2021-04-15 14:53:33 +00:00
themeChangeListener: null,
2019-12-20 13:49:40 +00:00
watch: {
$route() {
if (this.active) {
this.active = false;
this.unbindOutsideClickListener();
}
}
},
2021-04-15 14:53:33 +00:00
beforeUnmount() {
2022-02-23 19:52:21 +00:00
EventBus.off('theme-change', this.themeChangeListener);
2021-04-15 14:53:33 +00:00
},
2020-11-26 08:53:02 +00:00
mounted() {
2021-04-15 14:53:33 +00:00
this.themeChangeListener = (event) => {
2020-11-26 08:53:02 +00:00
if (event.theme === 'nano')
this.scale = 12;
else
this.scale = 14;
this.applyScale();
2021-04-15 14:53:33 +00:00
};
2022-02-23 19:52:21 +00:00
EventBus.on('theme-change', this.themeChangeListener);
2020-11-26 08:53:02 +00:00
},
2019-12-20 13:49:40 +00:00
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) {
2022-09-06 13:53:29 +00:00
debugger
2022-02-23 19:52:21 +00:00
EventBus.emit('theme-change', { 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-14 08:37:01 +00:00
},
decrementScale() {
this.scale--;
2020-11-26 08:53:02 +00:00
this.applyScale();
2020-05-14 08:37:01 +00:00
},
incrementScale() {
this.scale++;
2020-11-26 08:53:02 +00:00
this.applyScale();
},
applyScale() {
2020-05-14 08:37:01 +00:00
document.documentElement.style.fontSize = this.scale + 'px';
2020-06-25 13:04:00 +00:00
},
onRippleChange(value) {
2020-12-09 12:24:11 +00:00
this.$primevue.config.ripple = value;
}
2020-06-27 22:43:07 +00:00
},
computed: {
containerClass() {
return ['layout-config', {'layout-config-active': this.active}];
},
rippleActive() {
2020-12-09 12:24:11 +00:00
return this.$primevue.config.ripple;
2020-06-27 22:43:07 +00:00
}
2020-07-10 11:47:18 +00:00
}
2019-12-20 13:49:40 +00:00
}
2019-12-20 14:22:50 +00:00
</script>