2019-12-20 13:49:40 +00:00
|
|
|
<template>
|
|
|
|
<div :class="containerClass">
|
|
|
|
<div class="layout-config-content-wrapper">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="#" class="layout-config-button" @click="toggleConfigurator">
|
2019-12-20 13:49:40 +00:00
|
|
|
<i class="pi pi-cog"></i>
|
2022-09-14 12:04:18 +00:00
|
|
|
</a>
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="#" class="layout-config-close" @click="hideConfigurator">
|
2019-12-20 13:49:40 +00:00
|
|
|
<i class="pi pi-times"></i>
|
2022-09-14 12:04:18 +00:00
|
|
|
</a>
|
2019-12-20 13:49:40 +00:00
|
|
|
|
|
|
|
<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">
|
2022-09-14 14:26:41 +00:00
|
|
|
<Button icon="pi pi-minus" @click="decrementScale()" class="p-button-text" :disabled="scale === scales[0]" />
|
2022-12-08 19:24:21 +00:00
|
|
|
<i v-for="s of scales" :key="s" class="pi pi-circle-fill" :class="{ 'scale-active': s === scale }" />
|
2022-09-14 14:26:41 +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>
|
2022-09-14 14:26:41 +00:00
|
|
|
<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>
|
2022-12-08 19:24:21 +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')">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/tailwind-light.png" alt="Tailwind Light" />
|
2021-09-06 08:54:28 +00:00
|
|
|
</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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/fluent-light.png" alt="Fluent Light" />
|
2020-10-10 10:32:08 +00:00
|
|
|
</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')">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<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')">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<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)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<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)">
|
2022-12-09 07:52:51 +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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/saga-blue.png" alt="Saga Blue" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Blue</span>
|
2020-05-07 19:13:58 +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, 'saga-green')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/saga-green.png" alt="Saga Green" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Green</span>
|
2020-05-07 19:13:58 +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, 'saga-orange')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/saga-orange.png" alt="Saga Orange" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Saga Orange</span>
|
2020-05-07 19:13:58 +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, 'saga-purple')">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/vela-blue.png" alt="Vela Blue" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Blue</span>
|
2020-05-07 19:13:58 +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-green', true)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/vela-green.png" alt="Vela Green" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Green</span>
|
2020-05-07 19:13:58 +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-orange', true)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/vela-orange.png" alt="Vela Orange" />
|
2020-05-07 19:13:58 +00:00
|
|
|
</button>
|
2020-05-12 22:46:48 +00:00
|
|
|
<span>Vela Orange</span>
|
2020-05-07 19:13:58 +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-purple', true)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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)">
|
2022-12-09 07:52:51 +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>
|
|
|
|
|
2020-10-10 10:20:25 +00:00
|
|
|
<h4>Premium Themes</h4>
|
2022-12-08 19:24:21 +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">
|
2020-10-10 10:20:25 +00:00
|
|
|
<button class="p-link" type="button" @click="changeTheme($event, 'soho-light')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/soho-light.png" alt="Soho Light" />
|
2020-10-10 10:20:25 +00:00
|
|
|
</button>
|
|
|
|
<span>Soho Light</span>
|
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-3">
|
2020-10-10 10:20:25 +00:00
|
|
|
<button class="p-link" type="button" @click="changeTheme($event, 'soho-dark', true)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/soho-dark.png" alt="Soho Dark" />
|
2020-10-10 10:20:25 +00:00
|
|
|
</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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/viva-light.svg" alt="Viva Light" />
|
2021-01-13 09:24:57 +00:00
|
|
|
</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)">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/viva-dark.svg" alt="Viva Dark" />
|
2021-01-13 09:24:57 +00:00
|
|
|
</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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/mira.jpg" alt="Mira" />
|
2020-11-26 08:53:02 +00:00
|
|
|
</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')">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img src="/demo/images/themes/nano.jpg" alt="Mira" />
|
2020-11-26 08:53:02 +00:00
|
|
|
</button>
|
|
|
|
<span>Nano</span>
|
|
|
|
</div>
|
2020-10-10 10:20:25 +00:00
|
|
|
</div>
|
|
|
|
|
2021-09-13 16:05:18 +00:00
|
|
|
<h4>Admin Templates</h4>
|
2022-12-08 19:24:21 +00:00
|
|
|
<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">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/sakai-vue">
|
2022-12-09 07:53:08 +00:00
|
|
|
<img alt="Ultima" src="@/assets/images/layouts/sakai-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2021-09-13 16:05:18 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/atlantis-vue">
|
2022-12-09 07:53:08 +00:00
|
|
|
<img alt="Atlantis" src="@/assets/images/layouts/atlantis-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2021-09-21 07:05:08 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/freya-vue">
|
2022-12-09 07:53:08 +00:00
|
|
|
<img alt="Freya" src="@/assets/images/layouts/freya-vue.png" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2021-05-06 13:12:18 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/ultima-vue">
|
2022-12-09 07:53:08 +00:00
|
|
|
<img alt="Ultima" src="@/assets/images/layouts/ultima-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2020-10-22 10:45:59 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/diamond-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Diamond" src="@/assets/images/layouts/diamond-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2020-03-23 12:31:25 +00:00
|
|
|
</div>
|
2022-05-26 13:53:30 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/verona-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Verona" src="@/assets/images/layouts/verona-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2022-05-26 13:53:30 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/poseidon-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Poseidon" src="@/assets/images/layouts/poseidon-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2022-05-26 13:53:30 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/sapphire-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Sapphire" src="@/assets/images/layouts/sapphire-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/serenity-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Serenity" src="@/assets/images/layouts/serenity-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2020-01-10 11:56:46 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/babylon-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Babylon" src="@/assets/images/layouts/babylon-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/avalon-vue">
|
2022-12-09 07:53:08 +00:00
|
|
|
<img alt="Avalon" src="@/assets/images/layouts/avalon-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/apollo-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Apollo" src="@/assets/images/layouts/apollo-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2019-12-24 08:45:43 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/roma-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Roma" src="@/assets/images/layouts/roma-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2020-01-07 15:38:02 +00:00
|
|
|
</div>
|
2022-01-13 11:03:59 +00:00
|
|
|
<div class="col-12 md:col-6">
|
2022-12-08 19:24:21 +00:00
|
|
|
<a href="https://www.primefaces.org/layouts/prestige-vue">
|
2022-12-09 07:52:51 +00:00
|
|
|
<img alt="Prestige" src="@/assets/images/layouts/prestige-vue.jpg" />
|
2022-12-08 19:24:21 +00:00
|
|
|
</a>
|
2020-07-05 11:07:29 +00:00
|
|
|
</div>
|
2019-12-20 13:49:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-12-08 19:24:21 +00:00
|
|
|
import EventBus from '@/layouts/AppEventBus';
|
2020-11-26 08:53:02 +00:00
|
|
|
|
2019-12-20 13:49:40 +00:00
|
|
|
export default {
|
2020-05-07 19:13:58 +00:00
|
|
|
props: {
|
2020-06-20 09:40:01 +00:00
|
|
|
inputStyle: String
|
2020-05-07 19:13:58 +00:00
|
|
|
},
|
2019-12-20 13:49:40 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2020-05-14 08:37:01 +00:00
|
|
|
active: false,
|
|
|
|
scale: 14,
|
2022-09-14 14:26:41 +00:00
|
|
|
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) => {
|
2022-09-14 14:26:41 +00:00
|
|
|
if (event.theme === 'nano') this.scale = 12;
|
|
|
|
else this.scale = 14;
|
2020-11-26 08:53:02 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
|
2022-09-14 14:26:41 +00:00
|
|
|
if (this.active) this.bindOutsideClickListener();
|
|
|
|
else this.unbindOutsideClickListener();
|
2019-12-20 13:49:40 +00:00
|
|
|
},
|
|
|
|
hideConfigurator(event) {
|
|
|
|
this.active = false;
|
|
|
|
this.unbindOutsideClickListener();
|
|
|
|
event.preventDefault();
|
|
|
|
},
|
|
|
|
changeTheme(event, theme, dark) {
|
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;
|
|
|
|
}
|
|
|
|
};
|
2022-12-08 19:24:21 +00:00
|
|
|
|
2019-12-20 13:49:40 +00:00
|
|
|
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-05-07 19:13:58 +00:00
|
|
|
}
|
2020-06-27 22:43:07 +00:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
containerClass() {
|
2022-09-14 14:26:41 +00:00
|
|
|
return ['layout-config', { 'layout-config-active': this.active }];
|
2020-06-27 22:43:07 +00:00
|
|
|
},
|
|
|
|
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
|
|
|
}
|
2022-09-14 14:26:41 +00:00
|
|
|
};
|
2019-12-20 14:22:50 +00:00
|
|
|
</script>
|