v-sistec-features 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v-sistec-features.css +1 -1
- package/dist/vDataTable.d.ts +1 -0
- package/dist/vDataTable.js +179 -173
- package/package.json +1 -1
- package/src/DatatableVue/components/SearchDatatable.vue +10 -2
- package/src/DatatableVue/components/VDataTable.vue +10 -2
- package/src/DatatableVue/types/v-data-table.ts +1 -0
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
* Copyright 2018-2025 The Tabler Authors
|
|
9
9
|
* Copyright 2018-2025 codecalm.net Paweł Kuna
|
|
10
10
|
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
|
|
11
|
-
*/[data-bs-theme-base=slate]{--tblr-gray-50:#f8fafc;--tblr-gray-100:#f1f5f9;--tblr-gray-200:#e2e8f0;--tblr-gray-300:#cbd5e1;--tblr-gray-400:#94a3b8;--tblr-gray-500:#64748b;--tblr-gray-600:#475569;--tblr-gray-700:#334155;--tblr-gray-800:#1e293b;--tblr-gray-900:#0f172a;--tblr-gray-950:#020617}[data-bs-theme-base=gray]{--tblr-gray-50:#f9fafb;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-gray-950:#030712}[data-bs-theme-base=zinc]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f4f4f5;--tblr-gray-200:#e4e4e7;--tblr-gray-300:#d4d4d8;--tblr-gray-400:#a1a1aa;--tblr-gray-500:#71717a;--tblr-gray-600:#52525b;--tblr-gray-700:#3f3f46;--tblr-gray-800:#27272a;--tblr-gray-900:#18181b;--tblr-gray-950:#09090b}[data-bs-theme-base=neutral]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f5f5f5;--tblr-gray-200:#e5e5e5;--tblr-gray-300:#d4d4d4;--tblr-gray-400:#a3a3a3;--tblr-gray-500:#737373;--tblr-gray-600:#525252;--tblr-gray-700:#404040;--tblr-gray-800:#262626;--tblr-gray-900:#171717;--tblr-gray-950:#0a0a0a}[data-bs-theme-base=stone]{--tblr-gray-50:#fafaf9;--tblr-gray-100:#f5f5f4;--tblr-gray-200:#e7e5e4;--tblr-gray-300:#d6d3d1;--tblr-gray-400:#a8a29e;--tblr-gray-500:#78716c;--tblr-gray-600:#57534e;--tblr-gray-700:#44403c;--tblr-gray-800:#292524;--tblr-gray-900:#1c1917;--tblr-gray-950:#0c0a09}[data-bs-theme-base=pink]{--tblr-gray-50:#fdf2f8;--tblr-gray-100:#fce7f3;--tblr-gray-200:#fbcfe8;--tblr-gray-300:#f9a8d4;--tblr-gray-400:#f472b6;--tblr-gray-500:#ec4899;--tblr-gray-600:#db2777;--tblr-gray-700:#be185d;--tblr-gray-800:#9d174d;--tblr-gray-900:#831843;--tblr-gray-950:#500724}[data-bs-theme-primary=blue]{--tblr-primary:#066fd1;--tblr-primary-rgb:6,111,209}[data-bs-theme-primary=azure]{--tblr-primary:#4299e1;--tblr-primary-rgb:66,153,225}[data-bs-theme-primary=indigo]{--tblr-primary:#4263eb;--tblr-primary-rgb:66,99,235}[data-bs-theme-primary=purple]{--tblr-primary:#ae3ec9;--tblr-primary-rgb:174,62,201}[data-bs-theme-primary=pink]{--tblr-primary:#d6336c;--tblr-primary-rgb:214,51,108}[data-bs-theme-primary=red]{--tblr-primary:#d63939;--tblr-primary-rgb:214,57,57}[data-bs-theme-primary=orange]{--tblr-primary:#f76707;--tblr-primary-rgb:247,103,7}[data-bs-theme-primary=yellow]{--tblr-primary:#f59f00;--tblr-primary-rgb:245,159,0}[data-bs-theme-primary=lime]{--tblr-primary:#74b816;--tblr-primary-rgb:116,184,22}[data-bs-theme-primary=green]{--tblr-primary:#2fb344;--tblr-primary-rgb:47,179,68}[data-bs-theme-primary=teal]{--tblr-primary:#0ca678;--tblr-primary-rgb:12,166,120}[data-bs-theme-primary=cyan]{--tblr-primary:#17a2b8;--tblr-primary-rgb:23,162,184}[data-bs-theme-radius="0"]{--tblr-border-radius-scale:0}[data-bs-theme-radius="0.5"]{--tblr-border-radius-scale:.5}[data-bs-theme-radius="1"]{--tblr-border-radius-scale:1}[data-bs-theme-radius="1.5"]{--tblr-border-radius-scale:1.5}[data-bs-theme-radius="2"]{--tblr-border-radius-scale:2}[data-bs-theme-primary=inverted]{--tblr-primary:var(--tblr-gray-800);--tblr-primary-fg:var(--tblr-light);--tblr-primary-rgb:31,41,55}[data-bs-theme-primary=inverted] [data-bs-theme=dark],[data-bs-theme-primary=inverted][data-bs-theme=dark]{--tblr-primary:#f9fafb;--tblr-primary-fg:var(--tblr-dark);--tblr-primary-rgb:249,250,251}[data-bs-theme-font=monospace]{--tblr-body-font-family:var(--tblr-font-monospace);--tblr-body-font-size:80%}[data-bs-theme-font=sans-serif]{--tblr-body-font-family:var(--tblr-font-sans-serif)}[data-bs-theme-font=serif]{--tblr-body-font-family:var(--tblr-font-serif)}[data-bs-theme-font=comic]{--tblr-body-font-family:var(--tblr-font-comic)}:root{--color-error-inputs: red}[data-bs-theme=dark]{--color-error-inputs: oklch(.666 .179 58.318)}.style-custom-v-required-default{display:flex!important;justify-content:center!important;flex-direction:column!important;gap:2px}.style-custom-v-required-error .v-required-span{color:var(--color-error-inputs)!important;white-space:pre-wrap}.multiselect__tags{background-color:var(--cor-bg-inputs);border:var(--border-inputs);border-radius:5px!important;font-size:.875rem;line-height:1.4285714286}.multiselect__placeholder{color:var(--color-text-multiselect)!important}.style-custom-v-required-error input,.style-custom-v-required-error select,.style-custom-v-required-error textarea{border:2px solid var(--color-error-inputs)!important;color:var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__tags{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__input{border:none!important}.style-custom-v-required-error .multiselect__placeholder{color:var(--color-error-inputs)!important}.style-custom-v-required-error .image-drop-zone{border-color:var(--color-error-inputs)!important}.style-custom-v-required-error .quillWrapper{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error input::placeholder{color:var(--color-error-inputs)!important}.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width:600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width:600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width:600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}.rotate-180[data-v-785126fa] svg{transform:rotate(180deg)}.page-select[data-v-785126fa]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-785126fa]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-785126fa]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-785126fa]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-785126fa] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-785126fa] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-785126fa]{margin:0!important;padding:0!important}.t-container{width:100%;display:flex;justify-content:space-between;align-items:center;color:#fff}.scroll-finish-style[data-v-77d6f2cb]{color:#6c757d;display:block;text-align:center;margin-top:1rem;margin-bottom:1rem}.inputClose[data-v-5bb59b4b]{color:var(--tblr-icon-color);z-index:10;position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:1.2em;min-width:2.5rem;display:flex;justify-content:center}.inputClose[data-v-5bb59b4b]:hover{cursor:pointer}.selected[data-v-5bb59b4b]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-9a1d925a]{overflow-x:auto}.state-feedback[data-v-9a1d925a]{padding:1rem;text-align:center}.state-feedback.error[data-v-9a1d925a]{color:red}.pagination-controls[data-v-9a1d925a]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-9a1d925a]{width:40px;height:40px;border-radius:4px}.container-img[data-v-9a1d925a]{aspect-ratio:1;display:flex;justify-content:center;overflow:hidden;position:relative;max-width:40px;min-width:40px}.container-img .img-tamanho-cover[data-v-9a1d925a]{position:absolute;top:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.5;filter:blur(4px)}.container-img .img-tamanho[data-v-9a1d925a]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-9a1d925a]{cursor:pointer}.container-img.container-img-preview[data-v-9a1d925a]:hover{border-style:dashed;border-color:var(--tblr-primary);border-width:2px;transition:border-width .15s ease-in-out}.container-img.container-img-preview:hover .img-tamanho[data-v-9a1d925a]{opacity:.3}.erro-custom-container[data-v-9a1d925a]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-9a1d925a]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-9a1d925a]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-9a1d925a]{position:fixed;z-index:9999;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;padding:5px;pointer-events:none;transition:opacity .2s ease-in-out}.image-preview-container .image-preview-large[data-v-9a1d925a]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-9a1d925a]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-9a1d925a]{border-color:#ffffff5f!important}.ghost-item[data-v-9a1d925a]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-9a1d925a]{cursor:grabbing;background:var(--tblr-primary);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;opacity:.5;background-color:var(--tblr-primary-bg-subtle);filter:grayscale(0) invert(0)}.header-draggable[data-v-9a1d925a]{cursor:grab}.column-move-move[data-v-9a1d925a]{transition:transform .4s ease}.column-move-enter-active[data-v-9a1d925a],.column-move-leave-active[data-v-9a1d925a]{transition:all .4s ease}.header-ordering[data-v-9a1d925a]{display:flex;justify-content:space-between}.expand-item-expand-enter-active[data-v-9a1d925a]{transition:all .5s ease}.expand-item-expand-enter-from[data-v-9a1d925a]{opacity:0;transform:scaleY(.3) translateY(-30px)}.expand-item-expand-enter-to[data-v-9a1d925a]{opacity:1;transform:scaleY(1);transform:translateY(0)}.expand-item-expand-leave-active[data-v-9a1d925a]{transition:all .4s ease}.expand-item-expand-leave-to[data-v-9a1d925a]{opacity:0;transform:scaleY(.3) translateY(-30px)}.expand-item-fade-enter-active[data-v-9a1d925a],.expand-item-fade-leave-active[data-v-9a1d925a]{transition:opacity .5s ease}.expand-item-fade-enter-from[data-v-9a1d925a],.expand-item-fade-leave-to[data-v-9a1d925a]{opacity:0}.btn-clean[data-v-9a1d925a]{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;transition:background-color .2s ease}.btn-clean[data-v-9a1d925a]:hover{background-color:#0000000d}.icon-transition-arrow[data-v-9a1d925a]{transition:transform .3s cubic-bezier(.4,0,.2,1),color .2s ease;color:var(--tblr-primary, #206bc4)}.is-expanded .icon-transition-arrow[data-v-9a1d925a]{transform:rotate(90deg)}.icon-transition-plus[data-v-9a1d925a]{transition:transform .3s cubic-bezier(.4,0,.2,1),color .2s ease;color:var(--tblr-primary, #206bc4)}.icon-transition-plus .vertical-line[data-v-9a1d925a]{transform-origin:center;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}.is-expanded .icon-transition-plus[data-v-9a1d925a]{transform:rotate(180deg)}.is-expanded .icon-transition-plus .vertical-line[data-v-9a1d925a]{transform:scaleY(0);opacity:0}
|
|
11
|
+
*/[data-bs-theme-base=slate]{--tblr-gray-50:#f8fafc;--tblr-gray-100:#f1f5f9;--tblr-gray-200:#e2e8f0;--tblr-gray-300:#cbd5e1;--tblr-gray-400:#94a3b8;--tblr-gray-500:#64748b;--tblr-gray-600:#475569;--tblr-gray-700:#334155;--tblr-gray-800:#1e293b;--tblr-gray-900:#0f172a;--tblr-gray-950:#020617}[data-bs-theme-base=gray]{--tblr-gray-50:#f9fafb;--tblr-gray-100:#f3f4f6;--tblr-gray-200:#e5e7eb;--tblr-gray-300:#d1d5db;--tblr-gray-400:#9ca3af;--tblr-gray-500:#6b7280;--tblr-gray-600:#4b5563;--tblr-gray-700:#374151;--tblr-gray-800:#1f2937;--tblr-gray-900:#111827;--tblr-gray-950:#030712}[data-bs-theme-base=zinc]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f4f4f5;--tblr-gray-200:#e4e4e7;--tblr-gray-300:#d4d4d8;--tblr-gray-400:#a1a1aa;--tblr-gray-500:#71717a;--tblr-gray-600:#52525b;--tblr-gray-700:#3f3f46;--tblr-gray-800:#27272a;--tblr-gray-900:#18181b;--tblr-gray-950:#09090b}[data-bs-theme-base=neutral]{--tblr-gray-50:#fafafa;--tblr-gray-100:#f5f5f5;--tblr-gray-200:#e5e5e5;--tblr-gray-300:#d4d4d4;--tblr-gray-400:#a3a3a3;--tblr-gray-500:#737373;--tblr-gray-600:#525252;--tblr-gray-700:#404040;--tblr-gray-800:#262626;--tblr-gray-900:#171717;--tblr-gray-950:#0a0a0a}[data-bs-theme-base=stone]{--tblr-gray-50:#fafaf9;--tblr-gray-100:#f5f5f4;--tblr-gray-200:#e7e5e4;--tblr-gray-300:#d6d3d1;--tblr-gray-400:#a8a29e;--tblr-gray-500:#78716c;--tblr-gray-600:#57534e;--tblr-gray-700:#44403c;--tblr-gray-800:#292524;--tblr-gray-900:#1c1917;--tblr-gray-950:#0c0a09}[data-bs-theme-base=pink]{--tblr-gray-50:#fdf2f8;--tblr-gray-100:#fce7f3;--tblr-gray-200:#fbcfe8;--tblr-gray-300:#f9a8d4;--tblr-gray-400:#f472b6;--tblr-gray-500:#ec4899;--tblr-gray-600:#db2777;--tblr-gray-700:#be185d;--tblr-gray-800:#9d174d;--tblr-gray-900:#831843;--tblr-gray-950:#500724}[data-bs-theme-primary=blue]{--tblr-primary:#066fd1;--tblr-primary-rgb:6,111,209}[data-bs-theme-primary=azure]{--tblr-primary:#4299e1;--tblr-primary-rgb:66,153,225}[data-bs-theme-primary=indigo]{--tblr-primary:#4263eb;--tblr-primary-rgb:66,99,235}[data-bs-theme-primary=purple]{--tblr-primary:#ae3ec9;--tblr-primary-rgb:174,62,201}[data-bs-theme-primary=pink]{--tblr-primary:#d6336c;--tblr-primary-rgb:214,51,108}[data-bs-theme-primary=red]{--tblr-primary:#d63939;--tblr-primary-rgb:214,57,57}[data-bs-theme-primary=orange]{--tblr-primary:#f76707;--tblr-primary-rgb:247,103,7}[data-bs-theme-primary=yellow]{--tblr-primary:#f59f00;--tblr-primary-rgb:245,159,0}[data-bs-theme-primary=lime]{--tblr-primary:#74b816;--tblr-primary-rgb:116,184,22}[data-bs-theme-primary=green]{--tblr-primary:#2fb344;--tblr-primary-rgb:47,179,68}[data-bs-theme-primary=teal]{--tblr-primary:#0ca678;--tblr-primary-rgb:12,166,120}[data-bs-theme-primary=cyan]{--tblr-primary:#17a2b8;--tblr-primary-rgb:23,162,184}[data-bs-theme-radius="0"]{--tblr-border-radius-scale:0}[data-bs-theme-radius="0.5"]{--tblr-border-radius-scale:.5}[data-bs-theme-radius="1"]{--tblr-border-radius-scale:1}[data-bs-theme-radius="1.5"]{--tblr-border-radius-scale:1.5}[data-bs-theme-radius="2"]{--tblr-border-radius-scale:2}[data-bs-theme-primary=inverted]{--tblr-primary:var(--tblr-gray-800);--tblr-primary-fg:var(--tblr-light);--tblr-primary-rgb:31,41,55}[data-bs-theme-primary=inverted] [data-bs-theme=dark],[data-bs-theme-primary=inverted][data-bs-theme=dark]{--tblr-primary:#f9fafb;--tblr-primary-fg:var(--tblr-dark);--tblr-primary-rgb:249,250,251}[data-bs-theme-font=monospace]{--tblr-body-font-family:var(--tblr-font-monospace);--tblr-body-font-size:80%}[data-bs-theme-font=sans-serif]{--tblr-body-font-family:var(--tblr-font-sans-serif)}[data-bs-theme-font=serif]{--tblr-body-font-family:var(--tblr-font-serif)}[data-bs-theme-font=comic]{--tblr-body-font-family:var(--tblr-font-comic)}:root{--color-error-inputs: red}[data-bs-theme=dark]{--color-error-inputs: oklch(.666 .179 58.318)}.style-custom-v-required-default{display:flex!important;justify-content:center!important;flex-direction:column!important;gap:2px}.style-custom-v-required-error .v-required-span{color:var(--color-error-inputs)!important;white-space:pre-wrap}.multiselect__tags{background-color:var(--cor-bg-inputs);border:var(--border-inputs);border-radius:5px!important;font-size:.875rem;line-height:1.4285714286}.multiselect__placeholder{color:var(--color-text-multiselect)!important}.style-custom-v-required-error input,.style-custom-v-required-error select,.style-custom-v-required-error textarea{border:2px solid var(--color-error-inputs)!important;color:var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__tags{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error .multiselect__input{border:none!important}.style-custom-v-required-error .multiselect__placeholder{color:var(--color-error-inputs)!important}.style-custom-v-required-error .image-drop-zone{border-color:var(--color-error-inputs)!important}.style-custom-v-required-error .quillWrapper{border:2px solid var(--color-error-inputs)!important}.style-custom-v-required-error input::placeholder{color:var(--color-error-inputs)!important}.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width:600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width:600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width:600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}.rotate-180[data-v-785126fa] svg{transform:rotate(180deg)}.page-select[data-v-785126fa]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-785126fa]{border:none;--cor-escurecida: color-mix(in srgb, var(--tblr-primary), #000 25%);background:transparent;padding:1px 10px;border-radius:7px;margin:0!important;transition:color .15s ease-in-out,background-color .15s ease-in-out}.page-estilo[data-v-785126fa]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-785126fa]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-785126fa] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-785126fa] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-785126fa]{margin:0!important;padding:0!important}.t-container{width:100%;display:flex;justify-content:space-between;align-items:center;color:#fff}.scroll-finish-style[data-v-77d6f2cb]{color:#6c757d;display:block;text-align:center;margin-top:1rem;margin-bottom:1rem}.inputClose[data-v-1c9019e3]{color:var(--tblr-icon-color);z-index:10;position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:1.2em;min-width:2.5rem;display:flex;justify-content:center}.inputClose[data-v-1c9019e3]:hover{cursor:pointer}.selected[data-v-1c9019e3]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-fd6a6767]{overflow-x:auto}.state-feedback[data-v-fd6a6767]{padding:1rem;text-align:center}.state-feedback.error[data-v-fd6a6767]{color:red}.pagination-controls[data-v-fd6a6767]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-fd6a6767]{width:40px;height:40px;border-radius:4px}.container-img[data-v-fd6a6767]{aspect-ratio:1;display:flex;justify-content:center;overflow:hidden;position:relative;max-width:40px;min-width:40px}.container-img .img-tamanho-cover[data-v-fd6a6767]{position:absolute;top:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:.5;filter:blur(4px)}.container-img .img-tamanho[data-v-fd6a6767]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-fd6a6767]{cursor:pointer}.container-img.container-img-preview[data-v-fd6a6767]:hover{border-style:dashed;border-color:var(--tblr-primary);border-width:2px;transition:border-width .15s ease-in-out}.container-img.container-img-preview:hover .img-tamanho[data-v-fd6a6767]{opacity:.3}.erro-custom-container[data-v-fd6a6767]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-fd6a6767]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-fd6a6767]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-fd6a6767]{position:fixed;z-index:9999;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #0003;padding:5px;pointer-events:none;transition:opacity .2s ease-in-out}.image-preview-container .image-preview-large[data-v-fd6a6767]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-fd6a6767]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-fd6a6767]{border-color:#ffffff5f!important}.ghost-item[data-v-fd6a6767]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-fd6a6767]{cursor:grabbing;background:var(--tblr-primary);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;opacity:.5;background-color:var(--tblr-primary-bg-subtle);filter:grayscale(0) invert(0)}.header-draggable[data-v-fd6a6767]{cursor:grab}.column-move-move[data-v-fd6a6767]{transition:transform .4s ease}.column-move-enter-active[data-v-fd6a6767],.column-move-leave-active[data-v-fd6a6767]{transition:all .4s ease}.header-ordering[data-v-fd6a6767]{display:flex;justify-content:space-between}.expand-item-expand-enter-active[data-v-fd6a6767]{transition:all .5s ease}.expand-item-expand-enter-from[data-v-fd6a6767]{opacity:0;transform:scaleY(.3) translateY(-30px)}.expand-item-expand-enter-to[data-v-fd6a6767]{opacity:1;transform:scaleY(1);transform:translateY(0)}.expand-item-expand-leave-active[data-v-fd6a6767]{transition:all .4s ease}.expand-item-expand-leave-to[data-v-fd6a6767]{opacity:0;transform:scaleY(.3) translateY(-30px)}.expand-item-fade-enter-active[data-v-fd6a6767],.expand-item-fade-leave-active[data-v-fd6a6767]{transition:opacity .5s ease}.expand-item-fade-enter-from[data-v-fd6a6767],.expand-item-fade-leave-to[data-v-fd6a6767]{opacity:0}.btn-clean[data-v-fd6a6767]{display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:4px;transition:background-color .2s ease;background:transparent;border:none;outline:none;cursor:pointer}.btn-clean[data-v-fd6a6767]:hover{background-color:#0000000d}.icon-transition-arrow[data-v-fd6a6767]{transition:transform .3s cubic-bezier(.4,0,.2,1),color .2s ease;color:var(--tblr-primary, #206bc4)}.is-expanded .icon-transition-arrow[data-v-fd6a6767]{transform:rotate(90deg)}.icon-transition-plus[data-v-fd6a6767]{transition:transform .3s cubic-bezier(.4,0,.2,1),color .2s ease;color:var(--tblr-primary, #206bc4)}.icon-transition-plus .vertical-line[data-v-fd6a6767]{transform-origin:center;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}.is-expanded .icon-transition-plus[data-v-fd6a6767]{transform:rotate(180deg)}.is-expanded .icon-transition-plus .vertical-line[data-v-fd6a6767]{transform:scaleY(0);opacity:0}
|
package/dist/vDataTable.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ declare interface VDataTableProps {
|
|
|
167
167
|
type_animation_expand?: 'fade' | 'expand' | 'none';
|
|
168
168
|
deactivate_animation_expand?: boolean;
|
|
169
169
|
type_button_expand?: 'arrow' | 'plus';
|
|
170
|
+
deactivate_search_empty?: boolean;
|
|
170
171
|
item_key?: string;
|
|
171
172
|
limit_per_page?: number;
|
|
172
173
|
page_starts_at?: number;
|
package/dist/vDataTable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as te, useSlots as Ve, inject as Te, onMounted as je, computed as
|
|
1
|
+
import { defineComponent as te, useSlots as Ve, inject as Te, onMounted as je, computed as S, watch as L, resolveComponent as Ne, createElementBlock as s, openBlock as n, createCommentVNode as h, createElementVNode as t, withDirectives as ie, withKeys as Ee, vModelText as de, Fragment as x, renderList as V, createBlock as ee, withCtx as O, createTextVNode as T, toDisplayString as m, normalizeClass as p, withModifiers as re, ref as g, provide as De, readonly as Ie, nextTick as Ae, renderSlot as D, createVNode as q, createStaticVNode as He, resolveDynamicComponent as oe, unref as f, TransitionGroup as Oe, mergeProps as Pe, Transition as qe, normalizeStyle as Le } from "vue";
|
|
2
2
|
import { _ as ue, P as Ue } from "./Pagination-DtVDFQ07.js";
|
|
3
3
|
import Fe from "vuedraggable";
|
|
4
4
|
const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
@@ -21,17 +21,17 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
21
21
|
decreasing_value: { default: "" },
|
|
22
22
|
increasing_value: { default: "" }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const i =
|
|
26
|
-
if (!
|
|
24
|
+
setup(b) {
|
|
25
|
+
const i = b, y = Ve(), M = Te(ce);
|
|
26
|
+
if (!M)
|
|
27
27
|
throw new Error("VColumn deve ser usado dentro de um VDataTable.");
|
|
28
|
-
const
|
|
28
|
+
const B = ["text", "img", "date", "html"];
|
|
29
29
|
return je(() => {
|
|
30
30
|
if (i.field !== null && !i.field)
|
|
31
31
|
throw new Error('A propriedade "field" é obrigatória em VColumn.');
|
|
32
32
|
if (!i.header)
|
|
33
33
|
throw new Error('A propriedade "header" é obrigatória em VColumn.');
|
|
34
|
-
if (i.field !== null && !
|
|
34
|
+
if (i.field !== null && !B.includes(i.type))
|
|
35
35
|
throw new Error(`O tipo "${i.type}" não é suportado em VColumn. Tipos suportados: text, img, date, html.`);
|
|
36
36
|
if (i.limite_text) {
|
|
37
37
|
if (i.type !== "text")
|
|
@@ -41,7 +41,7 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
41
41
|
if (isNaN(Number(i.limite_text)) || Number(i.limite_text) <= 0)
|
|
42
42
|
throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
M.addColumn({
|
|
45
45
|
field: i.field,
|
|
46
46
|
header: i.header,
|
|
47
47
|
type: i.type,
|
|
@@ -55,12 +55,12 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
55
55
|
param_ordering: i.param_ordering,
|
|
56
56
|
decreasing_value: i.decreasing_value,
|
|
57
57
|
increasing_value: i.increasing_value,
|
|
58
|
-
bodySlot:
|
|
58
|
+
bodySlot: y.body,
|
|
59
59
|
...i.type === "text" && { limite_text: Number(i.limite_text) },
|
|
60
60
|
...i.type === "img" && { deactivate_img_preview: i.deactivate_img_preview },
|
|
61
61
|
...i.type === "date" && { format: i.format }
|
|
62
62
|
});
|
|
63
|
-
}), (
|
|
63
|
+
}), (z, I) => null;
|
|
64
64
|
}
|
|
65
65
|
}), Ke = { class: "dropdown d-flex" }, Ye = {
|
|
66
66
|
key: 0,
|
|
@@ -82,41 +82,45 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
82
82
|
list_filter: { default: () => [] },
|
|
83
83
|
item_use: { default: () => [1, 2] },
|
|
84
84
|
placeholder_search: { default: "Buscar..." },
|
|
85
|
-
deactivate_search_on_clear: { type: Boolean, default: !1 }
|
|
85
|
+
deactivate_search_on_clear: { type: Boolean, default: !1 },
|
|
86
|
+
deactivate_search_empty: { type: Boolean, default: !1 }
|
|
86
87
|
},
|
|
87
88
|
emits: ["update:search", "update:filter", "search"],
|
|
88
|
-
setup(
|
|
89
|
-
const
|
|
90
|
-
get: () =>
|
|
91
|
-
set: (
|
|
92
|
-
}),
|
|
93
|
-
get: () =>
|
|
94
|
-
set: (
|
|
89
|
+
setup(b, { emit: i }) {
|
|
90
|
+
const y = b, M = i, B = S({
|
|
91
|
+
get: () => y.search,
|
|
92
|
+
set: (d) => M("update:search", d)
|
|
93
|
+
}), z = S({
|
|
94
|
+
get: () => y.filter,
|
|
95
|
+
set: (d) => M("update:filter", d)
|
|
95
96
|
});
|
|
96
|
-
L(
|
|
97
|
-
|
|
97
|
+
L(z, () => {
|
|
98
|
+
M("search");
|
|
98
99
|
}), L(
|
|
99
|
-
() =>
|
|
100
|
-
(
|
|
101
|
-
Array.isArray(
|
|
102
|
-
|
|
103
|
-
}),
|
|
100
|
+
() => y.list_filter,
|
|
101
|
+
(d) => {
|
|
102
|
+
Array.isArray(d) ? (d.forEach((_, k) => {
|
|
103
|
+
_?.type === 1 && !_.to && console.error(`Filtro na posição ${k} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
|
|
104
|
+
}), y.item_use.includes(2) && d.length === 0 && console.error("Nenhum filtro foi passado. Certifique-se de que o array de filtros não está vazio.")) : console.error("list_filter deve ser um array.");
|
|
104
105
|
},
|
|
105
106
|
{ immediate: !0, deep: !0 }
|
|
106
107
|
);
|
|
107
|
-
function I(
|
|
108
|
-
|
|
108
|
+
function I(d) {
|
|
109
|
+
z.value === d ? z.value = "" : z.value = d;
|
|
109
110
|
}
|
|
110
111
|
function P() {
|
|
111
|
-
|
|
112
|
+
B.value = "", y.deactivate_search_on_clear || M("search");
|
|
113
|
+
}
|
|
114
|
+
function o(d) {
|
|
115
|
+
d.click && typeof d.click == "function" ? d.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
|
|
112
116
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
117
|
+
function $() {
|
|
118
|
+
y.deactivate_search_empty && B.value.trim() === "" || M("search");
|
|
115
119
|
}
|
|
116
|
-
return (
|
|
117
|
-
const
|
|
120
|
+
return (d, _) => {
|
|
121
|
+
const k = Ne("router-link");
|
|
118
122
|
return n(), s("div", Ke, [
|
|
119
|
-
|
|
123
|
+
b.item_use.includes(2) ? (n(), s("a", Ye, [..._[2] || (_[2] = [
|
|
120
124
|
t("svg", {
|
|
121
125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
126
|
class: "icon icon-tabler icon-tabler-filter",
|
|
@@ -142,18 +146,18 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
142
146
|
type: "text",
|
|
143
147
|
class: "form-control ms-1",
|
|
144
148
|
id: "inputSearchVDataTable",
|
|
145
|
-
"onUpdate:modelValue":
|
|
146
|
-
onKeyup:
|
|
147
|
-
placeholder:
|
|
149
|
+
"onUpdate:modelValue": _[0] || (_[0] = (u) => B.value = u),
|
|
150
|
+
onKeyup: Ee($, ["enter"]),
|
|
151
|
+
placeholder: b.placeholder_search
|
|
148
152
|
}, null, 40, Ge), [
|
|
149
|
-
[de,
|
|
153
|
+
[de, B.value]
|
|
150
154
|
]),
|
|
151
|
-
|
|
155
|
+
B.value ? (n(), s("span", {
|
|
152
156
|
key: 0,
|
|
153
|
-
onClick:
|
|
157
|
+
onClick: _[1] || (_[1] = (u) => P()),
|
|
154
158
|
class: "inputClose",
|
|
155
159
|
title: "Limpar pesquisa"
|
|
156
|
-
}, [...
|
|
160
|
+
}, [..._[3] || (_[3] = [
|
|
157
161
|
t("svg", {
|
|
158
162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
159
163
|
width: "24",
|
|
@@ -174,7 +178,7 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
174
178
|
t("path", { d: "M18 6l-12 12" }),
|
|
175
179
|
t("path", { d: "M6 6l12 12" })
|
|
176
180
|
], -1)
|
|
177
|
-
])])) : (n(), s("span", We, [...
|
|
181
|
+
])])) : (n(), s("span", We, [..._[4] || (_[4] = [
|
|
178
182
|
t("svg", {
|
|
179
183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
180
184
|
width: "24",
|
|
@@ -197,24 +201,24 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
197
201
|
], -1)
|
|
198
202
|
])]))
|
|
199
203
|
]),
|
|
200
|
-
|
|
201
|
-
(n(!0), s(
|
|
202
|
-
"type" in u && u.type === 1 && (!("visible" in u) || u.visible) ? (n(), ee(
|
|
204
|
+
b.item_use.includes(2) ? (n(), s("div", Je, [
|
|
205
|
+
(n(!0), s(x, null, V(y.list_filter, (u, v) => (n(), s(x, { key: v }, [
|
|
206
|
+
"type" in u && u.type === 1 && (!("visible" in u) || u.visible) ? (n(), ee(k, {
|
|
203
207
|
key: 0,
|
|
204
208
|
to: u?.to,
|
|
205
209
|
class: "dropdown-item cursor-pointer"
|
|
206
210
|
}, {
|
|
207
211
|
default: O(() => [
|
|
208
|
-
|
|
212
|
+
T(m(u.text), 1)
|
|
209
213
|
]),
|
|
210
214
|
_: 2
|
|
211
215
|
}, 1032, ["to"])) : (!("type" in u) || u.type === 2) && (!("visible" in u) || u.visible) ? (n(), s("a", {
|
|
212
216
|
key: 1,
|
|
213
|
-
onClick: re((
|
|
214
|
-
class: p(["dropdown-item cursor-pointer",
|
|
217
|
+
onClick: re((C) => I(String(u.value)), ["prevent"]),
|
|
218
|
+
class: p(["dropdown-item cursor-pointer", z.value === u?.value ? "bg-info text-dark selected" : ""])
|
|
215
219
|
}, m(u.text), 11, Qe)) : (!("type" in u) || u.type === 3) && (!("visible" in u) || u.visible) ? (n(), s("a", {
|
|
216
220
|
key: 2,
|
|
217
|
-
onClick: re((
|
|
221
|
+
onClick: re((C) => o(u), ["prevent"]),
|
|
218
222
|
class: p(["dropdown-item cursor-pointer", u?.active ? "bg-info text-dark selected" : ""])
|
|
219
223
|
}, m(u.text), 11, Re)) : h("", !0)
|
|
220
224
|
], 64))), 128))
|
|
@@ -222,33 +226,33 @@ const ce = Symbol("v-datatable-key"), ra = /* @__PURE__ */ te({
|
|
|
222
226
|
]);
|
|
223
227
|
};
|
|
224
228
|
}
|
|
225
|
-
}), et = /* @__PURE__ */ ue(Ze, [["__scopeId", "data-v-
|
|
229
|
+
}), et = /* @__PURE__ */ ue(Ze, [["__scopeId", "data-v-1c9019e3"]]);
|
|
226
230
|
function tt() {
|
|
227
|
-
const
|
|
231
|
+
const b = g(!1), i = g(""), y = g(0), M = g(0), B = S(() => ({
|
|
228
232
|
position: "fixed",
|
|
229
233
|
zIndex: 9999,
|
|
230
234
|
pointerEvents: "none",
|
|
231
|
-
top: `${
|
|
232
|
-
left: `${
|
|
235
|
+
top: `${M.value + 15}px`,
|
|
236
|
+
left: `${y.value + 15}px`
|
|
233
237
|
}));
|
|
234
|
-
function
|
|
235
|
-
const d =
|
|
236
|
-
let
|
|
237
|
-
|
|
238
|
+
function z($) {
|
|
239
|
+
const d = $.clientX, _ = $.clientY, k = window.innerHeight, u = 15, v = 300;
|
|
240
|
+
let C = _ + u;
|
|
241
|
+
C + v > k && (C = _ - v - u, C < 0 && (C = 0)), y.value = d, M.value = C;
|
|
238
242
|
}
|
|
239
|
-
function I(
|
|
240
|
-
|
|
243
|
+
function I($, d) {
|
|
244
|
+
b.value = !0, i.value = d, z($);
|
|
241
245
|
}
|
|
242
|
-
function P(
|
|
243
|
-
|
|
246
|
+
function P($) {
|
|
247
|
+
b.value && z($);
|
|
244
248
|
}
|
|
245
249
|
function o() {
|
|
246
|
-
|
|
250
|
+
b.value = !1;
|
|
247
251
|
}
|
|
248
252
|
return {
|
|
249
|
-
isHovering:
|
|
253
|
+
isHovering: b,
|
|
250
254
|
previewSrc: i,
|
|
251
|
-
previewStyle:
|
|
255
|
+
previewStyle: B,
|
|
252
256
|
handleMouseOver: I,
|
|
253
257
|
handleMouseMove: P,
|
|
254
258
|
handleMouseLeave: o
|
|
@@ -300,7 +304,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
300
304
|
"stroke-width": "2",
|
|
301
305
|
"stroke-linecap": "round",
|
|
302
306
|
"stroke-linejoin": "round"
|
|
303
|
-
},
|
|
307
|
+
}, Bt = {
|
|
304
308
|
key: 1,
|
|
305
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
306
310
|
width: "16",
|
|
@@ -311,7 +315,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
311
315
|
"stroke-width": "2",
|
|
312
316
|
"stroke-linecap": "round",
|
|
313
317
|
"stroke-linejoin": "round"
|
|
314
|
-
},
|
|
318
|
+
}, zt = {
|
|
315
319
|
key: 2,
|
|
316
320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
317
321
|
width: "16",
|
|
@@ -344,7 +348,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
344
348
|
"stroke-width": "2",
|
|
345
349
|
"stroke-linecap": "round",
|
|
346
350
|
"stroke-linejoin": "round"
|
|
347
|
-
},
|
|
351
|
+
}, Et = {
|
|
348
352
|
key: 2,
|
|
349
353
|
xmlns: "http://www.w3.org/2000/svg",
|
|
350
354
|
width: "16",
|
|
@@ -355,7 +359,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
355
359
|
"stroke-width": "2",
|
|
356
360
|
"stroke-linecap": "round",
|
|
357
361
|
"stroke-linejoin": "round"
|
|
358
|
-
},
|
|
362
|
+
}, Dt = {
|
|
359
363
|
key: 0,
|
|
360
364
|
class: "w-1"
|
|
361
365
|
}, It = ["onClick"], At = {
|
|
@@ -427,6 +431,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
427
431
|
type_animation_expand: { default: "expand" },
|
|
428
432
|
deactivate_animation_expand: { type: Boolean, default: !1 },
|
|
429
433
|
type_button_expand: { default: "arrow" },
|
|
434
|
+
deactivate_search_empty: { type: Boolean, default: !1 },
|
|
430
435
|
item_key: { default: "id" },
|
|
431
436
|
limit_per_page: { default: 5 },
|
|
432
437
|
page_starts_at: { default: 0 },
|
|
@@ -435,15 +440,15 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
435
440
|
placeholder_search: { default: "Buscar..." },
|
|
436
441
|
deactivate_search_on_clear: { type: Boolean, default: !1 }
|
|
437
442
|
},
|
|
438
|
-
setup(
|
|
443
|
+
setup(b, { expose: i }) {
|
|
439
444
|
const {
|
|
440
|
-
isHovering:
|
|
441
|
-
previewSrc:
|
|
442
|
-
previewStyle:
|
|
443
|
-
handleMouseOver:
|
|
445
|
+
isHovering: y,
|
|
446
|
+
previewSrc: M,
|
|
447
|
+
previewStyle: B,
|
|
448
|
+
handleMouseOver: z,
|
|
444
449
|
handleMouseMove: I,
|
|
445
450
|
handleMouseLeave: P
|
|
446
|
-
} = tt(), o =
|
|
451
|
+
} = tt(), o = b, $ = g(!1), d = g({}), _ = g([]), k = g([]), u = g(0), v = g([]), C = g([]), E = g(null), K = g(!1), Y = g(null), c = g({
|
|
447
452
|
current_page: o.page_starts_at,
|
|
448
453
|
// pagina atual
|
|
449
454
|
count: 0,
|
|
@@ -454,7 +459,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
454
459
|
// termo de busca
|
|
455
460
|
filter: ""
|
|
456
461
|
// filtro selecionado
|
|
457
|
-
}), pe =
|
|
462
|
+
}), pe = S(() => (c.value.current_page = o.page_starts_at, o.endpoint)), { data: _e, pending: me, error: X, execute: ve, attempt: A } = o.fetch(pe, {
|
|
458
463
|
params: () => o.deactivate_default_params ? o.add_params && typeof o.add_params == "function" ? {
|
|
459
464
|
...o.add_params(),
|
|
460
465
|
...U.value
|
|
@@ -474,22 +479,22 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
474
479
|
retryDelay: o.retry_delay,
|
|
475
480
|
paramsReactives: !1,
|
|
476
481
|
immediate: !1
|
|
477
|
-
}, o.fetch_name), G =
|
|
478
|
-
() =>
|
|
479
|
-
), W =
|
|
482
|
+
}, o.fetch_name), G = S(
|
|
483
|
+
() => _.value.filter((l) => l.locked)
|
|
484
|
+
), W = S({
|
|
480
485
|
get() {
|
|
481
|
-
return
|
|
486
|
+
return _.value.filter((l) => !l.locked);
|
|
482
487
|
},
|
|
483
488
|
set(l) {
|
|
484
489
|
const e = G.value;
|
|
485
|
-
|
|
490
|
+
_.value = [...l, ...e];
|
|
486
491
|
}
|
|
487
|
-
}), he =
|
|
492
|
+
}), he = S(() => [...W.value, ...G.value]), fe = S(() => {
|
|
488
493
|
let l = [1];
|
|
489
494
|
return o.list_filter.length > 0 && l.push(2), l;
|
|
490
|
-
}), U =
|
|
495
|
+
}), U = S(() => {
|
|
491
496
|
const l = {};
|
|
492
|
-
for (const e of
|
|
497
|
+
for (const e of _.value)
|
|
493
498
|
if (e.use_ordering)
|
|
494
499
|
if (d.value[e.header] === "increasing")
|
|
495
500
|
l[e.param_ordering] = e.increasing_value || "increasing";
|
|
@@ -500,29 +505,29 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
500
505
|
else
|
|
501
506
|
continue;
|
|
502
507
|
return l;
|
|
503
|
-
}), J =
|
|
508
|
+
}), J = S(() => ({
|
|
504
509
|
[o.page_param_name]: c.value.current_page + 1,
|
|
505
510
|
[o.page_size_param_name]: c.value.limit_per_page,
|
|
506
511
|
[o.search_param_name]: c.value.search || "",
|
|
507
512
|
[o.filter_param_name]: c.value.filter || ""
|
|
508
|
-
})), ge =
|
|
513
|
+
})), ge = S(() => me.value || K.value), F = (l) => {
|
|
509
514
|
const e = o.item_key;
|
|
510
515
|
return v.value.some((a) => a[e] === l[e]);
|
|
511
|
-
}, ae =
|
|
512
|
-
if (!
|
|
513
|
-
const l =
|
|
514
|
-
return l === 0 ? !1 : l ===
|
|
515
|
-
}), ke =
|
|
516
|
-
L([ae,
|
|
517
|
-
|
|
516
|
+
}, ae = S(() => {
|
|
517
|
+
if (!k.value.length) return !1;
|
|
518
|
+
const l = k.value.filter((e) => F(e)).length;
|
|
519
|
+
return l === 0 ? !1 : l === k.value.length ? !0 : "indeterminate";
|
|
520
|
+
}), ke = S(() => v.value.length > 0);
|
|
521
|
+
L([ae, E], ([l]) => {
|
|
522
|
+
E.value && (l === "indeterminate" ? (E.value.checked = !1, E.value.indeterminate = !0) : (E.value.checked = l, E.value.indeterminate = !1));
|
|
518
523
|
}, {
|
|
519
524
|
immediate: !0,
|
|
520
525
|
flush: "post"
|
|
521
526
|
}), L(_e, (l) => {
|
|
522
|
-
l ? (
|
|
527
|
+
l ? (k.value = l[o.data_key] || [], u.value = l[o.total_key] || 0, c.value.count = u.value) : (k.value = [], u.value = 0);
|
|
523
528
|
}, { immediate: !0 });
|
|
524
529
|
function ye() {
|
|
525
|
-
const l =
|
|
530
|
+
const l = k.value;
|
|
526
531
|
if (!l.length) return;
|
|
527
532
|
const e = ae.value;
|
|
528
533
|
if (e === !0 || e === "indeterminate") {
|
|
@@ -540,28 +545,28 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
540
545
|
a > -1 ? v.value.splice(a, 1) : v.value.push(l);
|
|
541
546
|
}
|
|
542
547
|
function xe(l) {
|
|
543
|
-
|
|
548
|
+
_.value.push(l);
|
|
544
549
|
}
|
|
545
|
-
|
|
550
|
+
De(ce, { addColumn: xe });
|
|
546
551
|
function H() {
|
|
547
|
-
|
|
552
|
+
$.value || ($.value = !0), Y.value && clearTimeout(Y.value), K.value = !0, Y.value = setTimeout(() => {
|
|
548
553
|
K.value = !1;
|
|
549
554
|
}, o.min_loading_delay), ve();
|
|
550
555
|
}
|
|
551
|
-
function
|
|
556
|
+
function j() {
|
|
552
557
|
c.value.current_page = o.page_starts_at, H();
|
|
553
558
|
}
|
|
554
559
|
const ne = (l) => {
|
|
555
560
|
const e = l.target, a = parseInt(e.value, 10);
|
|
556
|
-
a > 0 && (c.value.limit_per_page = a, c.value.limit_per_page = a,
|
|
561
|
+
a > 0 && (c.value.limit_per_page = a, c.value.limit_per_page = a, j());
|
|
557
562
|
};
|
|
558
563
|
function N(l, e, a = null) {
|
|
559
564
|
if (!l) return e;
|
|
560
565
|
const r = l.split(".");
|
|
561
|
-
let
|
|
566
|
+
let w = e;
|
|
562
567
|
for (const Z of r)
|
|
563
|
-
|
|
564
|
-
return a && (
|
|
568
|
+
w && typeof w == "object" && Z in w ? w = w[Z] : console.error(`Caminho inválido ou valor nulo em: ${l} na parte ${Z}`);
|
|
569
|
+
return a && (w = a(w)), w;
|
|
565
570
|
}
|
|
566
571
|
function be(l, e) {
|
|
567
572
|
return e && typeof e == "number" && e > 0 && typeof l == "string" && l.length > e ? l.substring(0, e) + "..." : l;
|
|
@@ -570,38 +575,38 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
570
575
|
for (const a in d.value)
|
|
571
576
|
a !== l && (d.value[a] = "none");
|
|
572
577
|
const e = d.value[l] || "none";
|
|
573
|
-
e === "none" ? d.value[l] = "increasing" : e === "increasing" ? d.value[l] = "decreasing" : d.value[l] = "none",
|
|
578
|
+
e === "none" ? d.value[l] = "increasing" : e === "increasing" ? d.value[l] = "decreasing" : d.value[l] = "none", j();
|
|
574
579
|
}
|
|
575
580
|
function Me(l) {
|
|
576
|
-
l > 0 ? (c.value.limit_per_page = l,
|
|
581
|
+
l > 0 ? (c.value.limit_per_page = l, j()) : console.warn("O limite deve ser um número maior que zero.");
|
|
577
582
|
}
|
|
578
583
|
function Ce(l) {
|
|
579
|
-
c.value.search = l,
|
|
584
|
+
c.value.search = l, j();
|
|
580
585
|
}
|
|
581
586
|
function Se(l) {
|
|
582
|
-
c.value.filter = l,
|
|
587
|
+
c.value.filter = l, j();
|
|
583
588
|
}
|
|
584
589
|
function $e(l) {
|
|
585
590
|
l >= 0 && l <= Math.ceil(c.value.count / c.value.limit_per_page) ? (c.value.current_page = l, H()) : console.warn("Número de página inválido.");
|
|
586
591
|
}
|
|
587
592
|
function Q(l) {
|
|
588
|
-
const e = l[o.item_key], a =
|
|
589
|
-
a > -1 ?
|
|
593
|
+
const e = l[o.item_key], a = C.value.findIndex((r) => r === e);
|
|
594
|
+
a > -1 ? C.value.splice(a, 1) : C.value.push(e);
|
|
590
595
|
}
|
|
591
596
|
function R(l) {
|
|
592
597
|
const e = l[o.item_key];
|
|
593
|
-
return
|
|
594
|
-
}
|
|
595
|
-
function ze() {
|
|
596
|
-
$.value = [];
|
|
598
|
+
return C.value.some((a) => a === e);
|
|
597
599
|
}
|
|
598
600
|
function Be() {
|
|
599
|
-
|
|
601
|
+
C.value = [];
|
|
602
|
+
}
|
|
603
|
+
function ze() {
|
|
604
|
+
let l = _.value.length;
|
|
600
605
|
return o.use_checkbox && (l += 1), o.use_expandable_items && (l += 1), l;
|
|
601
606
|
}
|
|
602
607
|
i({
|
|
603
608
|
execute: H,
|
|
604
|
-
reSearch:
|
|
609
|
+
reSearch: j,
|
|
605
610
|
pagination: Ie(c),
|
|
606
611
|
set_limit_per_page: Me,
|
|
607
612
|
set_search: Ce,
|
|
@@ -611,14 +616,14 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
611
616
|
selected_items: v,
|
|
612
617
|
atLeastOneSelected: ke,
|
|
613
618
|
expand_item_toggle: Q,
|
|
614
|
-
close_all_expanded_items:
|
|
619
|
+
close_all_expanded_items: Be
|
|
615
620
|
});
|
|
616
|
-
const le =
|
|
621
|
+
const le = g(!1);
|
|
617
622
|
return L(
|
|
618
623
|
() => o.add_params,
|
|
619
624
|
() => {
|
|
620
|
-
le.value ?
|
|
621
|
-
|
|
625
|
+
le.value ? j() : (le.value = !0, Ae(() => {
|
|
626
|
+
j();
|
|
622
627
|
}));
|
|
623
628
|
},
|
|
624
629
|
{ deep: !0, immediate: o.immediate }
|
|
@@ -626,21 +631,21 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
626
631
|
t("div", {
|
|
627
632
|
class: p(["", o.class_container])
|
|
628
633
|
}, [
|
|
629
|
-
|
|
634
|
+
D(l.$slots, "default", {}, void 0, !0),
|
|
630
635
|
t("div", {
|
|
631
636
|
class: p(["", o.class_content])
|
|
632
637
|
}, [
|
|
633
638
|
t("div", {
|
|
634
639
|
class: p([o.class_filters, "d-flex justify-content-between align-items-start"])
|
|
635
640
|
}, [
|
|
636
|
-
|
|
641
|
+
D(l.$slots, "pageSize", {
|
|
637
642
|
changePageSize: ne,
|
|
638
643
|
limit_per_page: c.value.limit_per_page
|
|
639
644
|
}, () => [
|
|
640
645
|
t("div", {
|
|
641
646
|
class: p(["text-secondary", o.class_page_size])
|
|
642
647
|
}, [
|
|
643
|
-
|
|
648
|
+
T(m(o.first_text_page_size) + " ", 1),
|
|
644
649
|
t("div", at, [
|
|
645
650
|
ie(t("input", {
|
|
646
651
|
class: "form-control form-control-sm",
|
|
@@ -659,10 +664,10 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
659
664
|
]
|
|
660
665
|
])
|
|
661
666
|
]),
|
|
662
|
-
|
|
667
|
+
T(" " + m(o.second_text_page_size), 1)
|
|
663
668
|
], 2)
|
|
664
669
|
], !0),
|
|
665
|
-
|
|
670
|
+
D(l.$slots, "fieldMiddle", {}, void 0, !0),
|
|
666
671
|
q(et, {
|
|
667
672
|
search: c.value.search,
|
|
668
673
|
"onUpdate:search": e[1] || (e[1] = (a) => c.value.search = a),
|
|
@@ -670,48 +675,49 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
670
675
|
"onUpdate:filter": e[2] || (e[2] = (a) => c.value.filter = a),
|
|
671
676
|
list_filter: o.list_filter,
|
|
672
677
|
item_use: fe.value,
|
|
673
|
-
onSearch:
|
|
678
|
+
onSearch: j,
|
|
674
679
|
deactivate_search_on_clear: o.deactivate_search_on_clear,
|
|
675
|
-
placeholder_search: o.placeholder_search
|
|
676
|
-
|
|
680
|
+
placeholder_search: o.placeholder_search,
|
|
681
|
+
deactivate_search_empty: o.deactivate_search_empty
|
|
682
|
+
}, null, 8, ["search", "filter", "list_filter", "item_use", "deactivate_search_on_clear", "placeholder_search", "deactivate_search_empty"])
|
|
677
683
|
], 2),
|
|
678
|
-
|
|
684
|
+
D(l.$slots, "item-selected-info", {
|
|
679
685
|
selected_items: v.value,
|
|
680
686
|
clearSelection: () => v.value = []
|
|
681
687
|
}, () => [
|
|
682
688
|
o.use_checkbox && v.value.length > 0 && !o.deactivate_selected_info ? (n(), s("div", nt, [
|
|
683
689
|
t("h4", st, [
|
|
684
690
|
e[5] || (e[5] = t("strong", null, "Itens Selecionados:", -1)),
|
|
685
|
-
e[6] || (e[6] =
|
|
691
|
+
e[6] || (e[6] = T()),
|
|
686
692
|
t("span", lt, m(v.value.length), 1)
|
|
687
693
|
]),
|
|
688
694
|
t("a", {
|
|
689
695
|
class: "cursor-pointer",
|
|
690
696
|
onClick: e[3] || (e[3] = (a) => v.value = [])
|
|
691
697
|
}, [...e[7] || (e[7] = [
|
|
692
|
-
He('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-
|
|
698
|
+
He('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-trash" data-v-fd6a6767><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-fd6a6767></path><path d="M4 7l16 0" data-v-fd6a6767></path><path d="M10 11l0 6" data-v-fd6a6767></path><path d="M14 11l0 6" data-v-fd6a6767></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-fd6a6767></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-fd6a6767></path></svg> Limpar Seleção', 2)
|
|
693
699
|
])])
|
|
694
700
|
])) : h("", !0)
|
|
695
701
|
], !0),
|
|
696
|
-
ge.value ? (n(), s(
|
|
702
|
+
ge.value ? (n(), s(x, { key: 0 }, [
|
|
697
703
|
o.custom_loading ? (n(), ee(oe(o.custom_loading), { key: 0 })) : (n(), s("table", {
|
|
698
704
|
key: 1,
|
|
699
705
|
class: p(["table table-vcenter table-selectable", o.class_table])
|
|
700
706
|
}, [
|
|
701
707
|
t("thead", null, [
|
|
702
708
|
t("tr", null, [
|
|
703
|
-
(n(!0), s(
|
|
709
|
+
(n(!0), s(x, null, V(_.value, (a) => (n(), s("th", {
|
|
704
710
|
key: a.field || a.header,
|
|
705
711
|
class: p(a.class_column)
|
|
706
712
|
}, m(a.header), 3))), 128))
|
|
707
713
|
])
|
|
708
714
|
]),
|
|
709
715
|
t("tbody", null, [
|
|
710
|
-
o.type_loading === "placeholder" ? (n(!0), s(
|
|
716
|
+
o.type_loading === "placeholder" ? (n(!0), s(x, { key: 0 }, V(c.value.limit_per_page, (a) => (n(), s("tr", {
|
|
711
717
|
key: "placeholder-" + a,
|
|
712
718
|
class: "placeholder-glow"
|
|
713
719
|
}, [
|
|
714
|
-
(n(!0), s(
|
|
720
|
+
(n(!0), s(x, null, V(_.value, (r) => (n(), s("td", {
|
|
715
721
|
key: r.field || r.header,
|
|
716
722
|
class: p(r.class_row)
|
|
717
723
|
}, [
|
|
@@ -735,15 +741,15 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
735
741
|
}, [...e[12] || (e[12] = [
|
|
736
742
|
t("div", { class: "placeholder placeholder-img" }, null, -1)
|
|
737
743
|
])], 2)) : (n(), s("span", it, [
|
|
738
|
-
e[13] || (e[13] =
|
|
744
|
+
e[13] || (e[13] = T("tipo ", -1)),
|
|
739
745
|
t("span", dt, m(r.type), 1),
|
|
740
|
-
e[14] || (e[14] =
|
|
746
|
+
e[14] || (e[14] = T(" não suportado ", -1))
|
|
741
747
|
]))
|
|
742
748
|
], 2))), 128))
|
|
743
|
-
]))), 128)) : o.type_loading === "spiner-table" ? (n(!0), s(
|
|
749
|
+
]))), 128)) : o.type_loading === "spiner-table" ? (n(!0), s(x, { key: 1 }, V(c.value.limit_per_page, (a) => (n(), s("tr", {
|
|
744
750
|
key: "placeholder-" + a
|
|
745
751
|
}, [
|
|
746
|
-
(n(!0), s(
|
|
752
|
+
(n(!0), s(x, null, V(_.value, (r) => (n(), s("td", {
|
|
747
753
|
key: r.field || r.header,
|
|
748
754
|
class: p(r.class_row)
|
|
749
755
|
}, [
|
|
@@ -789,14 +795,14 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
789
795
|
})
|
|
790
796
|
], -1)
|
|
791
797
|
])], 2)) : (n(), s("span", pt, [
|
|
792
|
-
e[20] || (e[20] =
|
|
798
|
+
e[20] || (e[20] = T("tipo ", -1)),
|
|
793
799
|
t("span", _t, m(r.type), 1),
|
|
794
|
-
e[21] || (e[21] =
|
|
800
|
+
e[21] || (e[21] = T(" não suportado ", -1))
|
|
795
801
|
]))
|
|
796
802
|
], 2))), 128))
|
|
797
|
-
]))), 128)) : o.type_loading === "spiner" ? (n(!0), s(
|
|
803
|
+
]))), 128)) : o.type_loading === "spiner" ? (n(!0), s(x, { key: 2 }, V(c.value.limit_per_page, (a) => (n(), s("tr", { key: a }, [
|
|
798
804
|
t("td", {
|
|
799
|
-
colspan:
|
|
805
|
+
colspan: _.value.length,
|
|
800
806
|
class: "text-center p-0",
|
|
801
807
|
style: { "border-bottom": "none" }
|
|
802
808
|
}, [
|
|
@@ -812,21 +818,21 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
812
818
|
]))), 128)) : h("", !0)
|
|
813
819
|
])
|
|
814
820
|
], 2)),
|
|
815
|
-
|
|
816
|
-
], 64)) :
|
|
821
|
+
f(A) && f(A).current > 1 ? (n(), s("div", ft, " A conexão falhou. Tentando novamente... (Tentativa " + m(f(A).current) + " de " + m(f(A).total) + ") ", 1)) : h("", !0)
|
|
822
|
+
], 64)) : f(X) ? (n(), s("div", gt, [
|
|
817
823
|
e[23] || (e[23] = t("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
|
|
818
|
-
|
|
824
|
+
f(A) ? (n(), s("p", kt, " Não foi possível carregar os dados após " + m(f(A).total) + " tentativa(s). ", 1)) : (n(), s("p", yt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
|
|
819
825
|
t("button", {
|
|
820
826
|
class: "btn btn-primary mt-2",
|
|
821
827
|
onClick: H
|
|
822
828
|
}, " Tentar Novamente ")
|
|
823
|
-
])) :
|
|
824
|
-
|
|
829
|
+
])) : k.value ? (n(), s("div", wt, [
|
|
830
|
+
k.value.length > 0 ? (n(), s("div", xt, [
|
|
825
831
|
t("table", {
|
|
826
832
|
class: p(["table table-vcenter table-selectable", o.class_table])
|
|
827
833
|
}, [
|
|
828
834
|
t("thead", null, [
|
|
829
|
-
q(
|
|
835
|
+
q(f(Fe), {
|
|
830
836
|
modelValue: W.value,
|
|
831
837
|
"onUpdate:modelValue": e[4] || (e[4] = (a) => W.value = a),
|
|
832
838
|
tag: "tr",
|
|
@@ -842,7 +848,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
842
848
|
class: "form-check-input m-0",
|
|
843
849
|
type: "checkbox",
|
|
844
850
|
ref_key: "selectAllCheckbox",
|
|
845
|
-
ref:
|
|
851
|
+
ref: E,
|
|
846
852
|
onChange: ye,
|
|
847
853
|
"aria-label": "Selecionar todos os itens na página"
|
|
848
854
|
}, null, 544)
|
|
@@ -866,13 +872,13 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
866
872
|
t("path", { d: "M15 8h6" }, null, -1),
|
|
867
873
|
t("path", { d: "M15 16h6" }, null, -1),
|
|
868
874
|
t("path", { d: "M13 12h8" }, null, -1)
|
|
869
|
-
])])) : d.value[a.header] === "decreasing" ? (n(), s("svg",
|
|
875
|
+
])])) : d.value[a.header] === "decreasing" ? (n(), s("svg", Bt, [...e[25] || (e[25] = [
|
|
870
876
|
t("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
871
877
|
t("path", { d: "M7 20V4" }, null, -1),
|
|
872
878
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
873
879
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
874
880
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
875
|
-
])])) : d.value[a.header] === "increasing" ? (n(), s("svg",
|
|
881
|
+
])])) : d.value[a.header] === "increasing" ? (n(), s("svg", zt, [...e[26] || (e[26] = [
|
|
876
882
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
877
883
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
878
884
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
@@ -887,7 +893,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
887
893
|
}, m(a.header), 3))
|
|
888
894
|
]),
|
|
889
895
|
footer: O(() => [
|
|
890
|
-
(n(!0), s(
|
|
896
|
+
(n(!0), s(x, null, V(G.value, (a) => (n(), s(x, {
|
|
891
897
|
key: a.field || a.header
|
|
892
898
|
}, [
|
|
893
899
|
a.use_ordering ? (n(), s("th", {
|
|
@@ -913,7 +919,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
913
919
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
914
920
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
915
921
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
916
|
-
])])) : d.value[a.header] === "increasing" ? (n(), s("svg",
|
|
922
|
+
])])) : d.value[a.header] === "increasing" ? (n(), s("svg", Et, [...e[29] || (e[29] = [
|
|
917
923
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
918
924
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
919
925
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
@@ -932,7 +938,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
932
938
|
}, 8, ["modelValue"])
|
|
933
939
|
]),
|
|
934
940
|
t("tbody", null, [
|
|
935
|
-
(n(!0), s(
|
|
941
|
+
(n(!0), s(x, null, V(k.value, (a) => (n(), s(x, {
|
|
936
942
|
key: a[o.item_key]
|
|
937
943
|
}, [
|
|
938
944
|
q(Oe, {
|
|
@@ -940,8 +946,8 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
940
946
|
name: "column-move"
|
|
941
947
|
}, {
|
|
942
948
|
default: O(() => [
|
|
943
|
-
o.use_expandable_items ? (n(), s("td",
|
|
944
|
-
|
|
949
|
+
o.use_expandable_items ? (n(), s("td", Dt, [
|
|
950
|
+
D(l.$slots, "expand-button", {
|
|
945
951
|
item: a,
|
|
946
952
|
isExpanded: R(a),
|
|
947
953
|
expand_item_toggle: Q
|
|
@@ -982,7 +988,7 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
982
988
|
"aria-label": "Selecionar este item"
|
|
983
989
|
}, null, 40, Pt)
|
|
984
990
|
])) : h("", !0),
|
|
985
|
-
(n(!0), s(
|
|
991
|
+
(n(!0), s(x, null, V(he.value, (r) => (n(), s("td", {
|
|
986
992
|
key: r.field || r.header,
|
|
987
993
|
class: p(r.class_row)
|
|
988
994
|
}, [
|
|
@@ -992,11 +998,11 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
992
998
|
"is-selected": F(a)
|
|
993
999
|
}, null, 8, ["item", "is-selected"])) : r.type === "text" ? (n(), s("span", {
|
|
994
1000
|
key: 1,
|
|
995
|
-
onClick: (
|
|
1001
|
+
onClick: (w) => r.click ? r.click(a) : null,
|
|
996
1002
|
class: p(r.class_item + (r.click ? " cursor-pointer" : ""))
|
|
997
1003
|
}, m(be(N(r.field, a, r.transform_function), r.limite_text ?? null)), 11, qt)) : r.type === "date" ? (n(), s("span", {
|
|
998
1004
|
key: 2,
|
|
999
|
-
onClick: (
|
|
1005
|
+
onClick: (w) => r.click ? r.click(a) : null,
|
|
1000
1006
|
class: p(r.class_item + (r.click ? " cursor-pointer" : ""))
|
|
1001
1007
|
}, [
|
|
1002
1008
|
r.format === "complete" ? (n(), s("span", Ut, m(new Date(N(r.field, a)).toLocaleString()), 1)) : h("", !0),
|
|
@@ -1006,12 +1012,12 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1006
1012
|
)).toLocaleDateString()), 1)) : h("", !0)
|
|
1007
1013
|
], 10, Lt)) : r.type === "html" ? (n(), s("div", {
|
|
1008
1014
|
key: 3,
|
|
1009
|
-
onClick: (
|
|
1015
|
+
onClick: (w) => r.click ? r.click(a) : null,
|
|
1010
1016
|
class: p(r.class_item + (r.click ? " cursor-pointer" : "")),
|
|
1011
1017
|
innerHTML: N(r.field, a)
|
|
1012
1018
|
}, null, 10, Kt)) : r.type === "img" ? (n(), s("div", {
|
|
1013
1019
|
key: 4,
|
|
1014
|
-
onClick: (
|
|
1020
|
+
onClick: (w) => r.click ? r.click(a) : null,
|
|
1015
1021
|
class: p(r.class_item + (r.click ? " cursor-pointer" : ""))
|
|
1016
1022
|
}, [
|
|
1017
1023
|
N(r.field, a) ? (n(), s("div", Pe({
|
|
@@ -1020,9 +1026,9 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1020
1026
|
}, r.deactivate_img_preview ? {
|
|
1021
1027
|
class: "container-img"
|
|
1022
1028
|
} : {
|
|
1023
|
-
onMouseover: (
|
|
1024
|
-
onMousemove:
|
|
1025
|
-
onMouseleave:
|
|
1029
|
+
onMouseover: (w) => f(z)(w, N(r.field, a)),
|
|
1030
|
+
onMousemove: f(I),
|
|
1031
|
+
onMouseleave: f(P),
|
|
1026
1032
|
class: "container-img container-img-preview"
|
|
1027
1033
|
}), [
|
|
1028
1034
|
t("img", {
|
|
@@ -1036,9 +1042,9 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1036
1042
|
e[32] || (e[32] = t("div", { class: "bg-img" }, null, -1))
|
|
1037
1043
|
], 16)) : h("", !0)
|
|
1038
1044
|
], 10, Yt)) : (n(), s("span", Wt, [
|
|
1039
|
-
e[33] || (e[33] =
|
|
1045
|
+
e[33] || (e[33] = T("tipo ", -1)),
|
|
1040
1046
|
t("span", Jt, m(r.type), 1),
|
|
1041
|
-
e[34] || (e[34] =
|
|
1047
|
+
e[34] || (e[34] = T(" não suportado", -1))
|
|
1042
1048
|
]))
|
|
1043
1049
|
], 2))), 128))
|
|
1044
1050
|
]),
|
|
@@ -1051,9 +1057,9 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1051
1057
|
default: O(() => [
|
|
1052
1058
|
R(a) ? (n(), s("tr", Qt, [
|
|
1053
1059
|
t("td", {
|
|
1054
|
-
colspan:
|
|
1060
|
+
colspan: ze()
|
|
1055
1061
|
}, [
|
|
1056
|
-
|
|
1062
|
+
D(l.$slots, "after-row", { item: a }, void 0, !0)
|
|
1057
1063
|
], 8, Rt)
|
|
1058
1064
|
])) : h("", !0)
|
|
1059
1065
|
]),
|
|
@@ -1062,18 +1068,18 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1062
1068
|
], 64))), 128))
|
|
1063
1069
|
])
|
|
1064
1070
|
], 2)
|
|
1065
|
-
])) :
|
|
1071
|
+
])) : $.value === !1 ? (n(), s("div", Zt)) : (n(), s("div", ea, [...e[35] || (e[35] = [
|
|
1066
1072
|
t("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
|
|
1067
1073
|
])]))
|
|
1068
1074
|
])) : h("", !0)
|
|
1069
1075
|
], 2)
|
|
1070
1076
|
], 2),
|
|
1071
|
-
|
|
1077
|
+
D(l.$slots, "pagination", {
|
|
1072
1078
|
pagination: c.value,
|
|
1073
1079
|
tradePage: H,
|
|
1074
|
-
error:
|
|
1080
|
+
error: f(X)
|
|
1075
1081
|
}, () => [
|
|
1076
|
-
!
|
|
1082
|
+
!f(X) && c.value.count > 0 ? (n(), s("div", {
|
|
1077
1083
|
key: 0,
|
|
1078
1084
|
class: p(["px-3", o.class_pagination])
|
|
1079
1085
|
}, [
|
|
@@ -1085,20 +1091,20 @@ const at = { class: "mx-2 d-inline-block" }, nt = {
|
|
|
1085
1091
|
}, null, 8, ["page_starts_at", "pagination"])
|
|
1086
1092
|
], 2)) : h("", !0)
|
|
1087
1093
|
], !0),
|
|
1088
|
-
|
|
1094
|
+
f(y) ? (n(), s("div", {
|
|
1089
1095
|
key: 0,
|
|
1090
1096
|
class: "image-preview-container",
|
|
1091
|
-
style: Le(
|
|
1097
|
+
style: Le(f(B))
|
|
1092
1098
|
}, [
|
|
1093
1099
|
t("img", {
|
|
1094
|
-
src:
|
|
1100
|
+
src: f(M),
|
|
1095
1101
|
alt: "Preview",
|
|
1096
1102
|
class: "image-preview-large"
|
|
1097
1103
|
}, null, 8, ta)
|
|
1098
1104
|
], 4)) : h("", !0)
|
|
1099
1105
|
]));
|
|
1100
1106
|
}
|
|
1101
|
-
}), oa = /* @__PURE__ */ ue(aa, [["__scopeId", "data-v-
|
|
1107
|
+
}), oa = /* @__PURE__ */ ue(aa, [["__scopeId", "data-v-fd6a6767"]]);
|
|
1102
1108
|
export {
|
|
1103
1109
|
ra as VColumn,
|
|
1104
1110
|
oa as VDataTable
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</a>
|
|
14
14
|
<div class="input-icon">
|
|
15
15
|
<input type="text" class="form-control ms-1" id="inputSearchVDataTable" v-model="modelSearch"
|
|
16
|
-
@keyup.enter="
|
|
16
|
+
@keyup.enter="searchEnter" :placeholder="placeholder_search">
|
|
17
17
|
|
|
18
18
|
<span v-if="modelSearch" @click="cleanSearch()" class=" inputClose" title="Limpar pesquisa">
|
|
19
19
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
@@ -63,6 +63,7 @@ interface SearchProps {
|
|
|
63
63
|
item_use?: number[];
|
|
64
64
|
placeholder_search?: string;
|
|
65
65
|
deactivate_search_on_clear?: boolean;
|
|
66
|
+
deactivate_search_empty?: boolean;
|
|
66
67
|
}
|
|
67
68
|
const props = withDefaults(defineProps<SearchProps>(), {
|
|
68
69
|
filter: "",
|
|
@@ -98,6 +99,7 @@ const props = withDefaults(defineProps<SearchProps>(), {
|
|
|
98
99
|
placeholder_search: "Buscar...",
|
|
99
100
|
click: null,
|
|
100
101
|
deactivate_search_on_clear: false,
|
|
102
|
+
deactivate_search_empty: false,
|
|
101
103
|
});
|
|
102
104
|
|
|
103
105
|
const emit = defineEmits(['update:search', 'update:filter', "search"])
|
|
@@ -158,7 +160,13 @@ function clickItem(filter: any): void {
|
|
|
158
160
|
console.error("O filtro selecionado não possui uma função de clique válida.");
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
|
-
|
|
163
|
+
function searchEnter(): void {
|
|
164
|
+
// emite o evento de busca quando o enter é pressionado
|
|
165
|
+
if (props.deactivate_search_empty && modelSearch.value.trim() === "") {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
emit('search');
|
|
169
|
+
}
|
|
162
170
|
</script>
|
|
163
171
|
<style scoped>
|
|
164
172
|
.inputClose {
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
<Search v-model:search="pagination.search" v-model:filter="pagination.filter" :list_filter="props.list_filter"
|
|
24
24
|
:item_use="item_use" @search="reSearch" :deactivate_search_on_clear="props.deactivate_search_on_clear"
|
|
25
|
-
:placeholder_search="props.placeholder_search"
|
|
25
|
+
:placeholder_search="props.placeholder_search"
|
|
26
|
+
:deactivate_search_empty="props.deactivate_search_empty"
|
|
27
|
+
/>
|
|
26
28
|
</div>
|
|
27
29
|
<slot name="item-selected-info" :selected_items="selected_items" :clearSelection="() => selected_items = []">
|
|
28
30
|
<div v-if="(props.use_checkbox && selected_items.length > 0) && !props.deactivate_selected_info"
|
|
@@ -465,7 +467,8 @@ const props = withDefaults(defineProps<VDataTableProps>(), {
|
|
|
465
467
|
use_expandable_items: false,
|
|
466
468
|
type_animation_expand: 'expand',
|
|
467
469
|
deactivate_animation_expand: false,
|
|
468
|
-
type_button_expand: 'arrow'
|
|
470
|
+
type_button_expand: 'arrow',
|
|
471
|
+
deactivate_search_empty: false,
|
|
469
472
|
});
|
|
470
473
|
|
|
471
474
|
|
|
@@ -1093,6 +1096,11 @@ $max-width-preview: 250px;
|
|
|
1093
1096
|
padding: 4px;
|
|
1094
1097
|
border-radius: 4px;
|
|
1095
1098
|
transition: background-color 0.2s ease;
|
|
1099
|
+
background: transparent;
|
|
1100
|
+
border: none;
|
|
1101
|
+
outline: none;
|
|
1102
|
+
cursor: pointer;
|
|
1103
|
+
|
|
1096
1104
|
|
|
1097
1105
|
&:hover {
|
|
1098
1106
|
background-color: rgba(0, 0, 0, 0.05);
|
|
@@ -58,6 +58,7 @@ export interface VDataTableProps {
|
|
|
58
58
|
type_animation_expand?: 'fade' | 'expand' | 'none';
|
|
59
59
|
deactivate_animation_expand?: boolean;
|
|
60
60
|
type_button_expand?: 'arrow' | 'plus';
|
|
61
|
+
deactivate_search_empty?: boolean;
|
|
61
62
|
|
|
62
63
|
// Define qual propriedade do item será usada como chave única para a seleção.
|
|
63
64
|
item_key?: string;
|