v-sistec-features 1.9.2 → 1.9.3
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 +2 -0
- package/dist/vDataTable.js +227 -221
- package/package.json +1 -1
- package/src/DatatableVue/components/SearchDatatable.vue +5 -1
- package/src/DatatableVue/components/VDataTable.vue +6 -2
- package/src/DatatableVue/keys.ts +1 -0
- package/src/DatatableVue/types/v-data-table.ts +2 -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-c7098e42]{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-c7098e42]:hover{cursor:pointer}.selected[data-v-c7098e42]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-e5706981]{overflow-x:auto}.state-feedback[data-v-e5706981]{padding:1rem;text-align:center}.state-feedback.error[data-v-e5706981]{color:red}.pagination-controls[data-v-e5706981]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-e5706981]{width:40px;height:40px;border-radius:4px}.container-img[data-v-e5706981]{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-e5706981]{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-e5706981]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-e5706981]{cursor:pointer}.container-img.container-img-preview[data-v-e5706981]: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-e5706981]{opacity:.3}.erro-custom-container[data-v-e5706981]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-e5706981]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-e5706981]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-e5706981]{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-e5706981]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-e5706981]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-e5706981]{border-color:#ffffff5f!important}.ghost-item[data-v-e5706981]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-e5706981]{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-e5706981]{cursor:grab}.column-move-move[data-v-e5706981]{transition:transform .4s ease}.column-move-enter-active[data-v-e5706981],.column-move-leave-active[data-v-e5706981]{transition:all .4s ease}.header-ordering[data-v-e5706981]{display:flex;justify-content:space-between}
|
|
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-1f716b02]{overflow-x:auto}.state-feedback[data-v-1f716b02]{padding:1rem;text-align:center}.state-feedback.error[data-v-1f716b02]{color:red}.pagination-controls[data-v-1f716b02]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-1f716b02]{width:40px;height:40px;border-radius:4px}.container-img[data-v-1f716b02]{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-1f716b02]{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-1f716b02]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-1f716b02]{cursor:pointer}.container-img.container-img-preview[data-v-1f716b02]: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-1f716b02]{opacity:.3}.erro-custom-container[data-v-1f716b02]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-1f716b02]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-1f716b02]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-1f716b02]{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-1f716b02]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-1f716b02]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-1f716b02]{border-color:#ffffff5f!important}.ghost-item[data-v-1f716b02]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-1f716b02]{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-1f716b02]{cursor:grab}.column-move-move[data-v-1f716b02]{transition:transform .4s ease}.column-move-enter-active[data-v-1f716b02],.column-move-leave-active[data-v-1f716b02]{transition:all .4s ease}.header-ordering[data-v-1f716b02]{display:flex;justify-content:space-between}
|
package/dist/vDataTable.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ declare interface VDataTableProps {
|
|
|
148
148
|
class_container?: string;
|
|
149
149
|
class_pagination?: string;
|
|
150
150
|
class_filters?: string;
|
|
151
|
+
class_page_size?: string;
|
|
151
152
|
min_loading_delay?: number;
|
|
152
153
|
retry_attempts?: number;
|
|
153
154
|
retry_delay?: number;
|
|
@@ -158,6 +159,7 @@ declare interface VDataTableProps {
|
|
|
158
159
|
deactivate_selected_info?: boolean;
|
|
159
160
|
immediate?: boolean;
|
|
160
161
|
placeholder_search?: string;
|
|
162
|
+
deactivate_search_on_clear?: boolean;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
export { }
|
package/dist/vDataTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as R, useSlots as Ce, inject as Se, onMounted as $e, computed as
|
|
1
|
+
import { defineComponent as R, useSlots as Ce, inject as Se, onMounted as $e, computed as C, watch as P, resolveComponent as ze, createElementBlock as n, openBlock as s, createCommentVNode as g, createElementVNode as t, withDirectives as ne, withKeys as Be, vModelText as re, Fragment as M, renderList as B, createBlock as U, withCtx as H, createTextVNode as V, toDisplayString as v, normalizeClass as m, withModifiers as se, ref as k, provide as Ve, readonly as Ne, nextTick as Te, renderSlot as O, createVNode as Q, createStaticVNode as je, resolveDynamicComponent as le, unref as f, TransitionGroup as De, mergeProps as Ae, normalizeStyle as Ee } from "vue";
|
|
2
2
|
import { _ as oe, P as Ie } from "./Pagination-DtVDFQ07.js";
|
|
3
3
|
import Oe from "vuedraggable";
|
|
4
|
-
const ie = Symbol("v-datatable-key"),
|
|
4
|
+
const ie = Symbol("v-datatable-key"), Xt = /* @__PURE__ */ R({
|
|
5
5
|
__name: "VColumn",
|
|
6
6
|
props: {
|
|
7
7
|
field: { default: null },
|
|
@@ -22,7 +22,7 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
22
22
|
increasing_value: { default: "" }
|
|
23
23
|
},
|
|
24
24
|
setup(w) {
|
|
25
|
-
const i = w,
|
|
25
|
+
const i = w, b = Ce(), S = Se(ie);
|
|
26
26
|
if (!S)
|
|
27
27
|
throw new Error("VColumn deve ser usado dentro de um VDataTable.");
|
|
28
28
|
const z = ["text", "img", "date", "html"];
|
|
@@ -55,7 +55,7 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
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: b.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 }
|
|
@@ -81,41 +81,42 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
81
81
|
filter: { default: "" },
|
|
82
82
|
list_filter: { default: () => [] },
|
|
83
83
|
item_use: { default: () => [1, 2] },
|
|
84
|
-
placeholder_search: { default: "Buscar..." }
|
|
84
|
+
placeholder_search: { default: "Buscar..." },
|
|
85
|
+
deactivate_search_on_clear: { type: Boolean, default: !1 }
|
|
85
86
|
},
|
|
86
87
|
emits: ["update:search", "update:filter", "search"],
|
|
87
88
|
setup(w, { emit: i }) {
|
|
88
|
-
const
|
|
89
|
-
get: () =>
|
|
90
|
-
set: (
|
|
91
|
-
}), $ =
|
|
92
|
-
get: () =>
|
|
93
|
-
set: (
|
|
89
|
+
const b = w, S = i, z = C({
|
|
90
|
+
get: () => b.search,
|
|
91
|
+
set: (p) => S("update:search", p)
|
|
92
|
+
}), $ = C({
|
|
93
|
+
get: () => b.filter,
|
|
94
|
+
set: (p) => S("update:filter", p)
|
|
94
95
|
});
|
|
95
96
|
P($, () => {
|
|
96
97
|
S("search");
|
|
97
98
|
}), P(
|
|
98
|
-
() =>
|
|
99
|
-
(
|
|
100
|
-
Array.isArray(
|
|
99
|
+
() => b.list_filter,
|
|
100
|
+
(p) => {
|
|
101
|
+
Array.isArray(p) ? (p.forEach((d, h) => {
|
|
101
102
|
d?.type === 1 && !d.to && console.error(`Filtro na posição ${h} é do tipo 'router-link' mas não possui a propriedade 'to'.`);
|
|
102
|
-
}),
|
|
103
|
+
}), b.item_use.includes(2) && p.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.");
|
|
103
104
|
},
|
|
104
105
|
{ immediate: !0, deep: !0 }
|
|
105
106
|
);
|
|
106
|
-
function D(
|
|
107
|
-
$.value ===
|
|
107
|
+
function D(p) {
|
|
108
|
+
$.value === p ? $.value = "" : $.value = p;
|
|
108
109
|
}
|
|
109
110
|
function I() {
|
|
110
|
-
z.value = "", S("search");
|
|
111
|
+
z.value = "", b.deactivate_search_on_clear || S("search");
|
|
111
112
|
}
|
|
112
|
-
function o(
|
|
113
|
-
|
|
113
|
+
function o(p) {
|
|
114
|
+
p.click && typeof p.click == "function" ? p.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
|
|
114
115
|
}
|
|
115
|
-
return (
|
|
116
|
+
return (p, d) => {
|
|
116
117
|
const h = ze("router-link");
|
|
117
|
-
return s(),
|
|
118
|
-
w.item_use.includes(2) ? (s(),
|
|
118
|
+
return s(), n("div", He, [
|
|
119
|
+
w.item_use.includes(2) ? (s(), n("a", Pe, [...d[3] || (d[3] = [
|
|
119
120
|
t("svg", {
|
|
120
121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
121
122
|
class: "icon icon-tabler icon-tabler-filter",
|
|
@@ -137,17 +138,17 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
137
138
|
], -1)
|
|
138
139
|
])])) : g("", !0),
|
|
139
140
|
t("div", qe, [
|
|
140
|
-
|
|
141
|
+
ne(t("input", {
|
|
141
142
|
type: "text",
|
|
142
143
|
class: "form-control ms-1",
|
|
143
144
|
id: "inputSearchVDataTable",
|
|
144
145
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => z.value = u),
|
|
145
|
-
onKeyup: d[1] || (d[1] =
|
|
146
|
+
onKeyup: d[1] || (d[1] = Be((u) => p.$emit("search"), ["enter"])),
|
|
146
147
|
placeholder: w.placeholder_search
|
|
147
148
|
}, null, 40, Le), [
|
|
148
149
|
[re, z.value]
|
|
149
150
|
]),
|
|
150
|
-
z.value ? (s(),
|
|
151
|
+
z.value ? (s(), n("span", {
|
|
151
152
|
key: 0,
|
|
152
153
|
onClick: d[2] || (d[2] = (u) => I()),
|
|
153
154
|
class: "inputClose",
|
|
@@ -173,7 +174,7 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
173
174
|
t("path", { d: "M18 6l-12 12" }),
|
|
174
175
|
t("path", { d: "M6 6l12 12" })
|
|
175
176
|
], -1)
|
|
176
|
-
])])) : (s(),
|
|
177
|
+
])])) : (s(), n("span", Ue, [...d[5] || (d[5] = [
|
|
177
178
|
t("svg", {
|
|
178
179
|
xmlns: "http://www.w3.org/2000/svg",
|
|
179
180
|
width: "24",
|
|
@@ -196,22 +197,22 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
196
197
|
], -1)
|
|
197
198
|
])]))
|
|
198
199
|
]),
|
|
199
|
-
w.item_use.includes(2) ? (s(),
|
|
200
|
-
(s(!0),
|
|
200
|
+
w.item_use.includes(2) ? (s(), n("div", Fe, [
|
|
201
|
+
(s(!0), n(M, null, B(b.list_filter, (u, T) => (s(), n(M, { key: T }, [
|
|
201
202
|
"type" in u && u.type === 1 && (!("visible" in u) || u.visible) ? (s(), U(h, {
|
|
202
203
|
key: 0,
|
|
203
204
|
to: u?.to,
|
|
204
205
|
class: "dropdown-item cursor-pointer"
|
|
205
206
|
}, {
|
|
206
207
|
default: H(() => [
|
|
207
|
-
|
|
208
|
+
V(v(u.text), 1)
|
|
208
209
|
]),
|
|
209
210
|
_: 2
|
|
210
|
-
}, 1032, ["to"])) : (!("type" in u) || u.type === 2) && (!("visible" in u) || u.visible) ? (s(),
|
|
211
|
+
}, 1032, ["to"])) : (!("type" in u) || u.type === 2) && (!("visible" in u) || u.visible) ? (s(), n("a", {
|
|
211
212
|
key: 1,
|
|
212
213
|
onClick: se((_) => D(String(u.value)), ["prevent"]),
|
|
213
214
|
class: m(["dropdown-item cursor-pointer", $.value === u?.value ? "bg-info text-dark selected" : ""])
|
|
214
|
-
}, v(u.text), 11, Ke)) : (!("type" in u) || u.type === 3) && (!("visible" in u) || u.visible) ? (s(),
|
|
215
|
+
}, v(u.text), 11, Ke)) : (!("type" in u) || u.type === 3) && (!("visible" in u) || u.visible) ? (s(), n("a", {
|
|
215
216
|
key: 2,
|
|
216
217
|
onClick: se((_) => o(u), ["prevent"]),
|
|
217
218
|
class: m(["dropdown-item cursor-pointer", u?.active ? "bg-info text-dark selected" : ""])
|
|
@@ -221,25 +222,25 @@ const ie = Symbol("v-datatable-key"), Gt = /* @__PURE__ */ R({
|
|
|
221
222
|
]);
|
|
222
223
|
};
|
|
223
224
|
}
|
|
224
|
-
}), Ge = /* @__PURE__ */ oe(Xe, [["__scopeId", "data-v-
|
|
225
|
+
}), Ge = /* @__PURE__ */ oe(Xe, [["__scopeId", "data-v-5bb59b4b"]]);
|
|
225
226
|
function We() {
|
|
226
|
-
const w = k(!1), i = k(""),
|
|
227
|
+
const w = k(!1), i = k(""), b = k(0), S = k(0), z = C(() => ({
|
|
227
228
|
position: "fixed",
|
|
228
229
|
zIndex: 9999,
|
|
229
230
|
pointerEvents: "none",
|
|
230
231
|
top: `${S.value + 15}px`,
|
|
231
|
-
left: `${
|
|
232
|
+
left: `${b.value + 15}px`
|
|
232
233
|
}));
|
|
233
|
-
function $(
|
|
234
|
-
const d =
|
|
235
|
-
let
|
|
236
|
-
|
|
234
|
+
function $(p) {
|
|
235
|
+
const d = p.clientX, h = p.clientY, u = window.innerHeight, T = 15, _ = 300;
|
|
236
|
+
let x = h + T;
|
|
237
|
+
x + _ > u && (x = h - _ - T, x < 0 && (x = 0)), b.value = d, S.value = x;
|
|
237
238
|
}
|
|
238
|
-
function D(
|
|
239
|
-
w.value = !0, i.value = d, $(
|
|
239
|
+
function D(p, d) {
|
|
240
|
+
w.value = !0, i.value = d, $(p);
|
|
240
241
|
}
|
|
241
|
-
function I(
|
|
242
|
-
w.value && $(
|
|
242
|
+
function I(p) {
|
|
243
|
+
w.value && $(p);
|
|
243
244
|
}
|
|
244
245
|
function o() {
|
|
245
246
|
w.value = !1;
|
|
@@ -253,42 +254,42 @@ function We() {
|
|
|
253
254
|
handleMouseLeave: o
|
|
254
255
|
};
|
|
255
256
|
}
|
|
256
|
-
const Je = { class: "
|
|
257
|
+
const Je = { class: "mx-2 d-inline-block" }, Qe = {
|
|
257
258
|
key: 0,
|
|
258
259
|
class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
|
|
259
260
|
role: "alert"
|
|
260
|
-
},
|
|
261
|
+
}, Re = { class: "alert-title m-0" }, Ze = { class: "badge bg-azure text-azure-fg" }, et = { key: 0 }, tt = { key: 2 }, at = {
|
|
261
262
|
key: 5,
|
|
262
263
|
class: "text-danger erro-custom-container"
|
|
263
|
-
},
|
|
264
|
+
}, st = { class: "badge bg-orange text-white erro-custom-text" }, lt = { key: 0 }, nt = { key: 2 }, rt = {
|
|
264
265
|
key: 5,
|
|
265
266
|
class: "text-danger erro-custom-container"
|
|
266
|
-
},
|
|
267
|
+
}, ot = { class: "badge bg-orange text-white erro-custom-text" }, it = ["colspan"], dt = {
|
|
267
268
|
key: 0,
|
|
268
269
|
class: "d-flex flex-column justify-content-center align-items-center",
|
|
269
270
|
style: { height: "6rem" }
|
|
270
|
-
},
|
|
271
|
+
}, ut = {
|
|
271
272
|
key: 1,
|
|
272
273
|
style: { height: "3rem" }
|
|
273
274
|
}, ct = {
|
|
274
275
|
key: 2,
|
|
275
276
|
class: "p-3 text-center text-secondary"
|
|
276
|
-
},
|
|
277
|
+
}, pt = {
|
|
277
278
|
key: 1,
|
|
278
279
|
class: "feedback-container text-center"
|
|
279
|
-
},
|
|
280
|
+
}, mt = {
|
|
280
281
|
key: 0,
|
|
281
282
|
class: "text-secondary"
|
|
282
|
-
},
|
|
283
|
+
}, vt = {
|
|
283
284
|
key: 1,
|
|
284
285
|
class: "text-secondary"
|
|
285
|
-
},
|
|
286
|
+
}, _t = {
|
|
286
287
|
key: 2,
|
|
287
288
|
class: "table-responsive"
|
|
288
|
-
},
|
|
289
|
+
}, ht = { key: 0 }, ft = {
|
|
289
290
|
key: 0,
|
|
290
291
|
class: "w-1"
|
|
291
|
-
},
|
|
292
|
+
}, gt = { class: "header-ordering" }, kt = ["onClick"], yt = {
|
|
292
293
|
key: 0,
|
|
293
294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
294
295
|
width: "16",
|
|
@@ -299,7 +300,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
299
300
|
"stroke-width": "2",
|
|
300
301
|
"stroke-linecap": "round",
|
|
301
302
|
"stroke-linejoin": "round"
|
|
302
|
-
},
|
|
303
|
+
}, wt = {
|
|
303
304
|
key: 1,
|
|
304
305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
305
306
|
width: "16",
|
|
@@ -310,7 +311,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
310
311
|
"stroke-width": "2",
|
|
311
312
|
"stroke-linecap": "round",
|
|
312
313
|
"stroke-linejoin": "round"
|
|
313
|
-
},
|
|
314
|
+
}, bt = {
|
|
314
315
|
key: 2,
|
|
315
316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
317
|
width: "16",
|
|
@@ -321,7 +322,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
321
322
|
"stroke-width": "2",
|
|
322
323
|
"stroke-linecap": "round",
|
|
323
324
|
"stroke-linejoin": "round"
|
|
324
|
-
},
|
|
325
|
+
}, xt = { class: "header-ordering" }, Mt = ["onClick"], Ct = {
|
|
325
326
|
key: 0,
|
|
326
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
327
328
|
width: "16",
|
|
@@ -332,7 +333,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
332
333
|
"stroke-width": "2",
|
|
333
334
|
"stroke-linecap": "round",
|
|
334
335
|
"stroke-linejoin": "round"
|
|
335
|
-
},
|
|
336
|
+
}, St = {
|
|
336
337
|
key: 1,
|
|
337
338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
338
339
|
width: "16",
|
|
@@ -343,7 +344,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
343
344
|
"stroke-width": "2",
|
|
344
345
|
"stroke-linecap": "round",
|
|
345
346
|
"stroke-linejoin": "round"
|
|
346
|
-
},
|
|
347
|
+
}, $t = {
|
|
347
348
|
key: 2,
|
|
348
349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
349
350
|
width: "16",
|
|
@@ -354,16 +355,16 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
354
355
|
"stroke-width": "2",
|
|
355
356
|
"stroke-linecap": "round",
|
|
356
357
|
"stroke-linejoin": "round"
|
|
357
|
-
},
|
|
358
|
+
}, zt = {
|
|
358
359
|
key: 0,
|
|
359
360
|
class: "w-1"
|
|
360
|
-
}, Bt = ["checked", "onChange"],
|
|
361
|
+
}, Bt = ["checked", "onChange"], Vt = ["onClick"], Nt = ["onClick"], Tt = { key: 0 }, jt = { key: 1 }, Dt = ["onClick", "innerHTML"], At = ["onClick"], Et = ["src"], It = ["src"], Ot = {
|
|
361
362
|
key: 5,
|
|
362
363
|
class: "text-danger erro-custom-container"
|
|
363
|
-
},
|
|
364
|
+
}, Ht = { class: "badge bg-orange text-white erro-custom-text" }, Pt = { key: 1 }, qt = {
|
|
364
365
|
key: 2,
|
|
365
366
|
class: "text-center p-4 text-secondary"
|
|
366
|
-
},
|
|
367
|
+
}, Lt = ["src"], Ut = /* @__PURE__ */ R({
|
|
367
368
|
__name: "VDataTable",
|
|
368
369
|
props: {
|
|
369
370
|
fetch: {},
|
|
@@ -387,6 +388,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
387
388
|
class_container: { default: "" },
|
|
388
389
|
class_pagination: { default: "" },
|
|
389
390
|
class_filters: { default: "" },
|
|
391
|
+
class_page_size: { default: "" },
|
|
390
392
|
min_loading_delay: { default: 600 },
|
|
391
393
|
retry_attempts: { default: 3 },
|
|
392
394
|
retry_delay: { default: 2e3 },
|
|
@@ -396,17 +398,18 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
396
398
|
page_starts_at: { default: 0 },
|
|
397
399
|
deactivate_selected_info: { type: Boolean, default: !1 },
|
|
398
400
|
immediate: { type: Boolean, default: !0 },
|
|
399
|
-
placeholder_search: { default: "Buscar..." }
|
|
401
|
+
placeholder_search: { default: "Buscar..." },
|
|
402
|
+
deactivate_search_on_clear: { type: Boolean, default: !1 }
|
|
400
403
|
},
|
|
401
404
|
setup(w, { expose: i }) {
|
|
402
405
|
const {
|
|
403
|
-
isHovering:
|
|
406
|
+
isHovering: b,
|
|
404
407
|
previewSrc: S,
|
|
405
408
|
previewStyle: z,
|
|
406
409
|
handleMouseOver: $,
|
|
407
410
|
handleMouseMove: D,
|
|
408
411
|
handleMouseLeave: I
|
|
409
|
-
} = We(), o = w,
|
|
412
|
+
} = We(), o = w, p = k(!1), d = k({}), h = k([]), u = k([]), T = k(0), _ = k([]), x = k(null), F = k(!1), K = k(null), c = k({
|
|
410
413
|
current_page: o.page_starts_at,
|
|
411
414
|
// pagina atual
|
|
412
415
|
count: 0,
|
|
@@ -417,7 +420,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
417
420
|
// termo de busca
|
|
418
421
|
filter: ""
|
|
419
422
|
// filtro selecionado
|
|
420
|
-
}), de =
|
|
423
|
+
}), de = C(() => (c.value.current_page = o.page_starts_at, o.endpoint)), { data: ue, pending: ce, error: Y, execute: pe, attempt: A } = o.fetch(de, {
|
|
421
424
|
params: () => o.deactivate_default_params ? o.add_params && typeof o.add_params == "function" ? {
|
|
422
425
|
...o.add_params(),
|
|
423
426
|
...q.value
|
|
@@ -437,9 +440,9 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
437
440
|
retryDelay: o.retry_delay,
|
|
438
441
|
paramsReactives: !1,
|
|
439
442
|
immediate: !1
|
|
440
|
-
}, o.fetch_name), X =
|
|
443
|
+
}, o.fetch_name), X = C(
|
|
441
444
|
() => h.value.filter((r) => r.locked)
|
|
442
|
-
), G =
|
|
445
|
+
), G = C({
|
|
443
446
|
get() {
|
|
444
447
|
return h.value.filter((r) => !r.locked);
|
|
445
448
|
},
|
|
@@ -447,10 +450,10 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
447
450
|
const e = X.value;
|
|
448
451
|
h.value = [...r, ...e];
|
|
449
452
|
}
|
|
450
|
-
}), me =
|
|
453
|
+
}), me = C(() => [...G.value, ...X.value]), ve = C(() => {
|
|
451
454
|
let r = [1];
|
|
452
455
|
return o.list_filter.length > 0 && r.push(2), r;
|
|
453
|
-
}), q =
|
|
456
|
+
}), q = C(() => {
|
|
454
457
|
const r = {};
|
|
455
458
|
for (const e of h.value)
|
|
456
459
|
if (e.use_ordering)
|
|
@@ -463,35 +466,35 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
463
466
|
else
|
|
464
467
|
continue;
|
|
465
468
|
return r;
|
|
466
|
-
}), W =
|
|
467
|
-
[o.page_param_name]:
|
|
468
|
-
[o.page_size_param_name]:
|
|
469
|
-
[o.search_param_name]:
|
|
470
|
-
[o.filter_param_name]:
|
|
471
|
-
})), _e =
|
|
469
|
+
}), W = C(() => ({
|
|
470
|
+
[o.page_param_name]: c.value.current_page + 1,
|
|
471
|
+
[o.page_size_param_name]: c.value.limit_per_page,
|
|
472
|
+
[o.search_param_name]: c.value.search || "",
|
|
473
|
+
[o.filter_param_name]: c.value.filter || ""
|
|
474
|
+
})), _e = C(() => ce.value || F.value), L = (r) => {
|
|
472
475
|
const e = o.item_key;
|
|
473
476
|
return _.value.some((a) => a[e] === r[e]);
|
|
474
|
-
}, Z =
|
|
477
|
+
}, Z = C(() => {
|
|
475
478
|
if (!u.value.length) return !1;
|
|
476
479
|
const r = u.value.filter((e) => L(e)).length;
|
|
477
480
|
return r === 0 ? !1 : r === u.value.length ? !0 : "indeterminate";
|
|
478
|
-
}), he =
|
|
479
|
-
P([Z,
|
|
480
|
-
|
|
481
|
+
}), he = C(() => _.value.length > 0);
|
|
482
|
+
P([Z, x], ([r]) => {
|
|
483
|
+
x.value && (r === "indeterminate" ? (x.value.checked = !1, x.value.indeterminate = !0) : (x.value.checked = r, x.value.indeterminate = !1));
|
|
481
484
|
}, {
|
|
482
485
|
immediate: !0,
|
|
483
486
|
flush: "post"
|
|
484
487
|
}), P(ue, (r) => {
|
|
485
|
-
r ? (u.value = r[o.data_key] || [], T.value = r[o.total_key] || 0,
|
|
488
|
+
r ? (u.value = r[o.data_key] || [], T.value = r[o.total_key] || 0, c.value.count = T.value) : (u.value = [], T.value = 0);
|
|
486
489
|
}, { immediate: !0 });
|
|
487
490
|
function fe() {
|
|
488
491
|
const r = u.value;
|
|
489
492
|
if (!r.length) return;
|
|
490
493
|
const e = Z.value;
|
|
491
494
|
if (e === !0 || e === "indeterminate") {
|
|
492
|
-
const a = r.map((
|
|
495
|
+
const a = r.map((l) => l[o.item_key]);
|
|
493
496
|
_.value = _.value.filter(
|
|
494
|
-
(
|
|
497
|
+
(l) => !a.includes(l[o.item_key])
|
|
495
498
|
);
|
|
496
499
|
} else
|
|
497
500
|
r.forEach((a) => {
|
|
@@ -499,30 +502,30 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
499
502
|
});
|
|
500
503
|
}
|
|
501
504
|
function ge(r) {
|
|
502
|
-
const e = o.item_key, a = _.value.findIndex((
|
|
505
|
+
const e = o.item_key, a = _.value.findIndex((l) => l[e] === r[e]);
|
|
503
506
|
a > -1 ? _.value.splice(a, 1) : _.value.push(r);
|
|
504
507
|
}
|
|
505
508
|
function ke(r) {
|
|
506
509
|
h.value.push(r);
|
|
507
510
|
}
|
|
508
|
-
|
|
511
|
+
Ve(ie, { addColumn: ke });
|
|
509
512
|
function E() {
|
|
510
|
-
|
|
513
|
+
p.value || (p.value = !0), K.value && clearTimeout(K.value), F.value = !0, K.value = setTimeout(() => {
|
|
511
514
|
F.value = !1;
|
|
512
|
-
}, o.min_loading_delay),
|
|
515
|
+
}, o.min_loading_delay), pe();
|
|
513
516
|
}
|
|
514
517
|
function N() {
|
|
515
|
-
|
|
518
|
+
c.value.current_page = o.page_starts_at, E();
|
|
516
519
|
}
|
|
517
520
|
const ee = (r) => {
|
|
518
521
|
const e = r.target, a = parseInt(e.value, 10);
|
|
519
|
-
a > 0 && (
|
|
522
|
+
a > 0 && (c.value.limit_per_page = a, c.value.limit_per_page = a, N());
|
|
520
523
|
};
|
|
521
524
|
function j(r, e, a = null) {
|
|
522
525
|
if (!r) return e;
|
|
523
|
-
const
|
|
526
|
+
const l = r.split(".");
|
|
524
527
|
let y = e;
|
|
525
|
-
for (const J of
|
|
528
|
+
for (const J of l)
|
|
526
529
|
y && typeof y == "object" && J in y ? y = y[J] : console.error(`Caminho inválido ou valor nulo em: ${r} na parte ${J}`);
|
|
527
530
|
return a && (y = a(y)), y;
|
|
528
531
|
}
|
|
@@ -536,21 +539,21 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
536
539
|
e === "none" ? d.value[r] = "increasing" : e === "increasing" ? d.value[r] = "decreasing" : d.value[r] = "none", N();
|
|
537
540
|
}
|
|
538
541
|
function we(r) {
|
|
539
|
-
r > 0 ? (
|
|
542
|
+
r > 0 ? (c.value.limit_per_page = r, N()) : console.warn("O limite deve ser um número maior que zero.");
|
|
540
543
|
}
|
|
541
544
|
function be(r) {
|
|
542
|
-
|
|
545
|
+
c.value.search = r, N();
|
|
543
546
|
}
|
|
544
547
|
function xe(r) {
|
|
545
|
-
|
|
548
|
+
c.value.filter = r, N();
|
|
546
549
|
}
|
|
547
550
|
function Me(r) {
|
|
548
|
-
r >= 0 && r <= Math.ceil(
|
|
551
|
+
r >= 0 && r <= Math.ceil(c.value.count / c.value.limit_per_page) ? (c.value.current_page = r, E()) : console.warn("Número de página inválido.");
|
|
549
552
|
}
|
|
550
553
|
i({
|
|
551
554
|
execute: E,
|
|
552
555
|
reSearch: N,
|
|
553
|
-
pagination: Ne(
|
|
556
|
+
pagination: Ne(c),
|
|
554
557
|
set_limit_per_page: we,
|
|
555
558
|
set_search: be,
|
|
556
559
|
set_filter: xe,
|
|
@@ -568,7 +571,7 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
568
571
|
}));
|
|
569
572
|
},
|
|
570
573
|
{ deep: !0, immediate: o.immediate }
|
|
571
|
-
), (r, e) => (s(),
|
|
574
|
+
), (r, e) => (s(), n("div", null, [
|
|
572
575
|
t("div", {
|
|
573
576
|
class: m(["", o.class_container])
|
|
574
577
|
}, [
|
|
@@ -581,15 +584,17 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
581
584
|
}, [
|
|
582
585
|
O(r.$slots, "pageSize", {
|
|
583
586
|
changePageSize: ee,
|
|
584
|
-
limit_per_page:
|
|
587
|
+
limit_per_page: c.value.limit_per_page
|
|
585
588
|
}, () => [
|
|
586
|
-
t("div",
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
589
|
+
t("div", {
|
|
590
|
+
class: m(["text-secondary", o.class_page_size])
|
|
591
|
+
}, [
|
|
592
|
+
V(v(o.first_text_page_size) + " ", 1),
|
|
593
|
+
t("div", Je, [
|
|
594
|
+
ne(t("input", {
|
|
590
595
|
class: "form-control form-control-sm",
|
|
591
596
|
onChange: ee,
|
|
592
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
597
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => c.value.limit_per_page = a),
|
|
593
598
|
min: "1",
|
|
594
599
|
size: "3",
|
|
595
600
|
"aria-label": "Número de registros por página",
|
|
@@ -597,132 +602,133 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
597
602
|
}, null, 544), [
|
|
598
603
|
[
|
|
599
604
|
re,
|
|
600
|
-
|
|
605
|
+
c.value.limit_per_page,
|
|
601
606
|
void 0,
|
|
602
607
|
{ lazy: !0 }
|
|
603
608
|
]
|
|
604
609
|
])
|
|
605
610
|
]),
|
|
606
|
-
|
|
607
|
-
])
|
|
611
|
+
V(" " + v(o.second_text_page_size), 1)
|
|
612
|
+
], 2)
|
|
608
613
|
], !0),
|
|
609
614
|
O(r.$slots, "fieldMiddle", {}, void 0, !0),
|
|
610
615
|
Q(Ge, {
|
|
611
|
-
search:
|
|
612
|
-
"onUpdate:search": e[1] || (e[1] = (a) =>
|
|
613
|
-
filter:
|
|
614
|
-
"onUpdate:filter": e[2] || (e[2] = (a) =>
|
|
616
|
+
search: c.value.search,
|
|
617
|
+
"onUpdate:search": e[1] || (e[1] = (a) => c.value.search = a),
|
|
618
|
+
filter: c.value.filter,
|
|
619
|
+
"onUpdate:filter": e[2] || (e[2] = (a) => c.value.filter = a),
|
|
615
620
|
list_filter: o.list_filter,
|
|
616
621
|
item_use: ve.value,
|
|
617
622
|
onSearch: N,
|
|
623
|
+
deactivate_search_on_clear: o.deactivate_search_on_clear,
|
|
618
624
|
placeholder_search: o.placeholder_search
|
|
619
|
-
}, null, 8, ["search", "filter", "list_filter", "item_use", "placeholder_search"])
|
|
625
|
+
}, null, 8, ["search", "filter", "list_filter", "item_use", "deactivate_search_on_clear", "placeholder_search"])
|
|
620
626
|
], 2),
|
|
621
627
|
O(r.$slots, "item-selected-info", {
|
|
622
628
|
selected_items: _.value,
|
|
623
629
|
clearSelection: () => _.value = []
|
|
624
630
|
}, () => [
|
|
625
|
-
o.use_checkbox && _.value.length > 0 && !o.deactivate_selected_info ? (s(),
|
|
626
|
-
t("h4",
|
|
631
|
+
o.use_checkbox && _.value.length > 0 && !o.deactivate_selected_info ? (s(), n("div", Qe, [
|
|
632
|
+
t("h4", Re, [
|
|
627
633
|
e[5] || (e[5] = t("strong", null, "Itens Selecionados:", -1)),
|
|
628
|
-
e[6] || (e[6] =
|
|
629
|
-
t("span",
|
|
634
|
+
e[6] || (e[6] = V()),
|
|
635
|
+
t("span", Ze, v(_.value.length), 1)
|
|
630
636
|
]),
|
|
631
637
|
t("a", {
|
|
632
638
|
class: "cursor-pointer",
|
|
633
639
|
onClick: e[3] || (e[3] = (a) => _.value = [])
|
|
634
640
|
}, [...e[7] || (e[7] = [
|
|
635
|
-
je('<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-
|
|
641
|
+
je('<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-1f716b02><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-1f716b02></path><path d="M4 7l16 0" data-v-1f716b02></path><path d="M10 11l0 6" data-v-1f716b02></path><path d="M14 11l0 6" data-v-1f716b02></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-1f716b02></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-1f716b02></path></svg> Limpar Seleção', 2)
|
|
636
642
|
])])
|
|
637
643
|
])) : g("", !0)
|
|
638
644
|
], !0),
|
|
639
|
-
_e.value ? (s(),
|
|
640
|
-
o.custom_loading ? (s(), U(
|
|
645
|
+
_e.value ? (s(), n(M, { key: 0 }, [
|
|
646
|
+
o.custom_loading ? (s(), U(le(o.custom_loading), { key: 0 })) : (s(), n("table", {
|
|
641
647
|
key: 1,
|
|
642
648
|
class: m(["table table-vcenter table-selectable", o.class_table])
|
|
643
649
|
}, [
|
|
644
650
|
t("thead", null, [
|
|
645
651
|
t("tr", null, [
|
|
646
|
-
(s(!0),
|
|
652
|
+
(s(!0), n(M, null, B(h.value, (a) => (s(), n("th", {
|
|
647
653
|
key: a.field || a.header,
|
|
648
654
|
class: m(a.class_column)
|
|
649
655
|
}, v(a.header), 3))), 128))
|
|
650
656
|
])
|
|
651
657
|
]),
|
|
652
658
|
t("tbody", null, [
|
|
653
|
-
o.type_loading === "placeholder" ? (s(!0),
|
|
659
|
+
o.type_loading === "placeholder" ? (s(!0), n(M, { key: 0 }, B(c.value.limit_per_page, (a) => (s(), n("tr", {
|
|
654
660
|
key: "placeholder-" + a,
|
|
655
661
|
class: "placeholder-glow"
|
|
656
662
|
}, [
|
|
657
|
-
(s(!0),
|
|
658
|
-
key:
|
|
659
|
-
class: m(
|
|
663
|
+
(s(!0), n(M, null, B(h.value, (l) => (s(), n("td", {
|
|
664
|
+
key: l.field || l.header,
|
|
665
|
+
class: m(l.class_row)
|
|
660
666
|
}, [
|
|
661
|
-
|
|
667
|
+
l.bodySlot ? (s(), n("span", et, [...e[8] || (e[8] = [
|
|
662
668
|
t("span", { class: "placeholder col-8" }, null, -1)
|
|
663
|
-
])])) :
|
|
669
|
+
])])) : l.type === "text" ? (s(), n("span", {
|
|
664
670
|
key: 1,
|
|
665
|
-
class: m(
|
|
671
|
+
class: m(l.class_item)
|
|
666
672
|
}, [...e[9] || (e[9] = [
|
|
667
673
|
t("span", { class: "placeholder col-8" }, null, -1)
|
|
668
|
-
])], 2)) :
|
|
674
|
+
])], 2)) : l.type === "date" ? (s(), n("span", tt, [...e[10] || (e[10] = [
|
|
669
675
|
t("span", { class: "placeholder col-9" }, null, -1)
|
|
670
|
-
])])) :
|
|
676
|
+
])])) : l.type === "html" ? (s(), n("div", {
|
|
671
677
|
key: 3,
|
|
672
|
-
class: m(
|
|
678
|
+
class: m(l.class_item)
|
|
673
679
|
}, [...e[11] || (e[11] = [
|
|
674
680
|
t("div", { class: "placeholder col-12" }, null, -1)
|
|
675
|
-
])], 2)) :
|
|
681
|
+
])], 2)) : l.type === "img" ? (s(), n("div", {
|
|
676
682
|
key: 4,
|
|
677
|
-
class: m(
|
|
683
|
+
class: m(l.class_item)
|
|
678
684
|
}, [...e[12] || (e[12] = [
|
|
679
685
|
t("div", { class: "placeholder placeholder-img" }, null, -1)
|
|
680
|
-
])], 2)) : (s(),
|
|
681
|
-
e[13] || (e[13] =
|
|
682
|
-
t("span",
|
|
683
|
-
e[14] || (e[14] =
|
|
686
|
+
])], 2)) : (s(), n("span", at, [
|
|
687
|
+
e[13] || (e[13] = V("tipo ", -1)),
|
|
688
|
+
t("span", st, v(l.type), 1),
|
|
689
|
+
e[14] || (e[14] = V(" não suportado ", -1))
|
|
684
690
|
]))
|
|
685
691
|
], 2))), 128))
|
|
686
|
-
]))), 128)) : o.type_loading === "spiner-table" ? (s(!0),
|
|
692
|
+
]))), 128)) : o.type_loading === "spiner-table" ? (s(!0), n(M, { key: 1 }, B(c.value.limit_per_page, (a) => (s(), n("tr", {
|
|
687
693
|
key: "placeholder-" + a
|
|
688
694
|
}, [
|
|
689
|
-
(s(!0),
|
|
690
|
-
key:
|
|
691
|
-
class: m(
|
|
695
|
+
(s(!0), n(M, null, B(h.value, (l) => (s(), n("td", {
|
|
696
|
+
key: l.field || l.header,
|
|
697
|
+
class: m(l.class_row)
|
|
692
698
|
}, [
|
|
693
|
-
|
|
699
|
+
l.bodySlot ? (s(), n("span", lt, [...e[15] || (e[15] = [
|
|
694
700
|
t("span", {
|
|
695
701
|
class: "spinner-border spinner-border-sm",
|
|
696
702
|
role: "status",
|
|
697
703
|
"aria-hidden": "true"
|
|
698
704
|
}, null, -1)
|
|
699
|
-
])])) :
|
|
705
|
+
])])) : l.type === "text" ? (s(), n("span", {
|
|
700
706
|
key: 1,
|
|
701
|
-
class: m(
|
|
707
|
+
class: m(l.class_item)
|
|
702
708
|
}, [...e[16] || (e[16] = [
|
|
703
709
|
t("span", {
|
|
704
710
|
class: "spinner-border spinner-border-sm",
|
|
705
711
|
role: "status",
|
|
706
712
|
"aria-hidden": "true"
|
|
707
713
|
}, null, -1)
|
|
708
|
-
])], 2)) :
|
|
714
|
+
])], 2)) : l.type === "date" ? (s(), n("span", nt, [...e[17] || (e[17] = [
|
|
709
715
|
t("span", {
|
|
710
716
|
class: "spinner-border spinner-border-sm",
|
|
711
717
|
role: "status",
|
|
712
718
|
"aria-hidden": "true"
|
|
713
719
|
}, null, -1)
|
|
714
|
-
])])) :
|
|
720
|
+
])])) : l.type === "html" ? (s(), n("div", {
|
|
715
721
|
key: 3,
|
|
716
|
-
class: m(
|
|
722
|
+
class: m(l.class_item)
|
|
717
723
|
}, [...e[18] || (e[18] = [
|
|
718
724
|
t("span", {
|
|
719
725
|
class: "spinner-border spinner-border-sm",
|
|
720
726
|
role: "status",
|
|
721
727
|
"aria-hidden": "true"
|
|
722
728
|
}, null, -1)
|
|
723
|
-
])], 2)) :
|
|
729
|
+
])], 2)) : l.type === "img" ? (s(), n("div", {
|
|
724
730
|
key: 4,
|
|
725
|
-
class: m(["",
|
|
731
|
+
class: m(["", l.class_item])
|
|
726
732
|
}, [...e[19] || (e[19] = [
|
|
727
733
|
t("span", { class: "placeholder-img d-flex justify-content-center align-items-center" }, [
|
|
728
734
|
t("span", {
|
|
@@ -731,40 +737,40 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
731
737
|
"aria-hidden": "true"
|
|
732
738
|
})
|
|
733
739
|
], -1)
|
|
734
|
-
])], 2)) : (s(),
|
|
735
|
-
e[20] || (e[20] =
|
|
736
|
-
t("span",
|
|
737
|
-
e[21] || (e[21] =
|
|
740
|
+
])], 2)) : (s(), n("span", rt, [
|
|
741
|
+
e[20] || (e[20] = V("tipo ", -1)),
|
|
742
|
+
t("span", ot, v(l.type), 1),
|
|
743
|
+
e[21] || (e[21] = V(" não suportado ", -1))
|
|
738
744
|
]))
|
|
739
745
|
], 2))), 128))
|
|
740
|
-
]))), 128)) : o.type_loading === "spiner" ? (s(!0),
|
|
746
|
+
]))), 128)) : o.type_loading === "spiner" ? (s(!0), n(M, { key: 2 }, B(c.value.limit_per_page, (a) => (s(), n("tr", { key: a }, [
|
|
741
747
|
t("td", {
|
|
742
748
|
colspan: h.value.length,
|
|
743
749
|
class: "text-center p-0",
|
|
744
750
|
style: { "border-bottom": "none" }
|
|
745
751
|
}, [
|
|
746
|
-
a === Math.floor(
|
|
752
|
+
a === Math.floor(c.value.limit_per_page / 2) + 1 ? (s(), n("div", dt, [...e[22] || (e[22] = [
|
|
747
753
|
t("div", {
|
|
748
754
|
class: "spinner-border",
|
|
749
755
|
style: { width: "3rem", height: "3rem" },
|
|
750
756
|
role: "status"
|
|
751
757
|
}, null, -1),
|
|
752
758
|
t("span", { class: "mt-2" }, "Carregando...", -1)
|
|
753
|
-
])])) : (s(),
|
|
754
|
-
], 8,
|
|
759
|
+
])])) : (s(), n("div", ut))
|
|
760
|
+
], 8, it)
|
|
755
761
|
]))), 128)) : g("", !0)
|
|
756
762
|
])
|
|
757
763
|
], 2)),
|
|
758
|
-
f(A) && f(A).current > 1 ? (s(),
|
|
759
|
-
], 64)) : f(Y) ? (s(),
|
|
764
|
+
f(A) && f(A).current > 1 ? (s(), n("div", ct, " A conexão falhou. Tentando novamente... (Tentativa " + v(f(A).current) + " de " + v(f(A).total) + ") ", 1)) : g("", !0)
|
|
765
|
+
], 64)) : f(Y) ? (s(), n("div", pt, [
|
|
760
766
|
e[23] || (e[23] = t("h4", { class: "text-danger" }, "Ocorreu um Erro", -1)),
|
|
761
|
-
f(A) ? (s(),
|
|
767
|
+
f(A) ? (s(), n("p", mt, " Não foi possível carregar os dados após " + v(f(A).total) + " tentativa(s). ", 1)) : (s(), n("p", vt, " Não foi possível carregar os dados. Verifique sua conexão. ")),
|
|
762
768
|
t("button", {
|
|
763
769
|
class: "btn btn-primary mt-2",
|
|
764
770
|
onClick: E
|
|
765
771
|
}, " Tentar Novamente ")
|
|
766
|
-
])) : u.value ? (s(),
|
|
767
|
-
u.value.length > 0 ? (s(),
|
|
772
|
+
])) : u.value ? (s(), n("div", _t, [
|
|
773
|
+
u.value.length > 0 ? (s(), n("div", ht, [
|
|
768
774
|
t("table", {
|
|
769
775
|
class: m(["table table-vcenter table-selectable", o.class_table])
|
|
770
776
|
}, [
|
|
@@ -779,92 +785,92 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
779
785
|
"drag-class": "dragging-item"
|
|
780
786
|
}, {
|
|
781
787
|
header: H(() => [
|
|
782
|
-
o.use_checkbox ? (s(),
|
|
788
|
+
o.use_checkbox ? (s(), n("th", ft, [
|
|
783
789
|
t("input", {
|
|
784
790
|
class: "form-check-input m-0",
|
|
785
791
|
type: "checkbox",
|
|
786
792
|
ref_key: "selectAllCheckbox",
|
|
787
|
-
ref:
|
|
793
|
+
ref: x,
|
|
788
794
|
onChange: fe,
|
|
789
795
|
"aria-label": "Selecionar todos os itens na página"
|
|
790
796
|
}, null, 544)
|
|
791
797
|
])) : g("", !0)
|
|
792
798
|
]),
|
|
793
799
|
item: H(({ element: a }) => [
|
|
794
|
-
a.use_ordering ? (s(),
|
|
800
|
+
a.use_ordering ? (s(), n("th", {
|
|
795
801
|
key: 0,
|
|
796
802
|
class: m(["header-draggable", a.class_column])
|
|
797
803
|
}, [
|
|
798
|
-
t("div",
|
|
804
|
+
t("div", gt, [
|
|
799
805
|
t("span", null, v(a.header), 1),
|
|
800
806
|
t("span", {
|
|
801
807
|
onClick: () => te(a.header),
|
|
802
808
|
class: "ms-2 cursor-pointer"
|
|
803
809
|
}, [
|
|
804
|
-
!d.value[a.header] || d.value[a.header] === "none" ? (s(),
|
|
810
|
+
!d.value[a.header] || d.value[a.header] === "none" ? (s(), n("svg", yt, [...e[24] || (e[24] = [
|
|
805
811
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
806
812
|
t("path", { d: "m11 16-4 4-4-4" }, null, -1),
|
|
807
813
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
808
814
|
t("path", { d: "M15 8h6" }, null, -1),
|
|
809
815
|
t("path", { d: "M15 16h6" }, null, -1),
|
|
810
816
|
t("path", { d: "M13 12h8" }, null, -1)
|
|
811
|
-
])])) : d.value[a.header] === "decreasing" ? (s(),
|
|
817
|
+
])])) : d.value[a.header] === "decreasing" ? (s(), n("svg", wt, [...e[25] || (e[25] = [
|
|
812
818
|
t("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
813
819
|
t("path", { d: "M7 20V4" }, null, -1),
|
|
814
820
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
815
821
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
816
822
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
817
|
-
])])) : d.value[a.header] === "increasing" ? (s(),
|
|
823
|
+
])])) : d.value[a.header] === "increasing" ? (s(), n("svg", bt, [...e[26] || (e[26] = [
|
|
818
824
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
819
825
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
820
826
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
821
827
|
t("path", { d: "M11 16h7" }, null, -1),
|
|
822
828
|
t("path", { d: "M11 20h10" }, null, -1)
|
|
823
829
|
])])) : g("", !0)
|
|
824
|
-
], 8,
|
|
830
|
+
], 8, kt)
|
|
825
831
|
])
|
|
826
|
-
], 2)) : (s(),
|
|
832
|
+
], 2)) : (s(), n("th", {
|
|
827
833
|
key: 1,
|
|
828
834
|
class: m(["header-draggable", a.class_column])
|
|
829
835
|
}, v(a.header), 3))
|
|
830
836
|
]),
|
|
831
837
|
footer: H(() => [
|
|
832
|
-
(s(!0),
|
|
838
|
+
(s(!0), n(M, null, B(X.value, (a) => (s(), n(M, {
|
|
833
839
|
key: a.field || a.header
|
|
834
840
|
}, [
|
|
835
|
-
a.use_ordering ? (s(),
|
|
841
|
+
a.use_ordering ? (s(), n("th", {
|
|
836
842
|
key: 0,
|
|
837
843
|
class: m(["header-locked header-ordering", a.class_column])
|
|
838
844
|
}, [
|
|
839
|
-
t("div",
|
|
845
|
+
t("div", xt, [
|
|
840
846
|
t("span", null, v(a.header), 1),
|
|
841
847
|
t("span", {
|
|
842
848
|
onClick: () => te(a.header),
|
|
843
849
|
class: "ms-2 cursor-pointer"
|
|
844
850
|
}, [
|
|
845
|
-
!d.value[a.header] || d.value[a.header] === "none" ? (s(),
|
|
851
|
+
!d.value[a.header] || d.value[a.header] === "none" ? (s(), n("svg", Ct, [...e[27] || (e[27] = [
|
|
846
852
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
847
853
|
t("path", { d: "m11 16-4 4-4-4" }, null, -1),
|
|
848
854
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
849
855
|
t("path", { d: "M15 8h6" }, null, -1),
|
|
850
856
|
t("path", { d: "M15 16h6" }, null, -1),
|
|
851
857
|
t("path", { d: "M13 12h8" }, null, -1)
|
|
852
|
-
])])) : d.value[a.header] === "decreasing" ? (s(),
|
|
858
|
+
])])) : d.value[a.header] === "decreasing" ? (s(), n("svg", St, [...e[28] || (e[28] = [
|
|
853
859
|
t("path", { d: "m3 16 4 4 4-4" }, null, -1),
|
|
854
860
|
t("path", { d: "M7 20V4" }, null, -1),
|
|
855
861
|
t("path", { d: "M11 4h10" }, null, -1),
|
|
856
862
|
t("path", { d: "M11 8h7" }, null, -1),
|
|
857
863
|
t("path", { d: "M11 12h4" }, null, -1)
|
|
858
|
-
])])) : d.value[a.header] === "increasing" ? (s(),
|
|
864
|
+
])])) : d.value[a.header] === "increasing" ? (s(), n("svg", $t, [...e[29] || (e[29] = [
|
|
859
865
|
t("path", { d: "m3 8 4-4 4 4" }, null, -1),
|
|
860
866
|
t("path", { d: "M7 4v16" }, null, -1),
|
|
861
867
|
t("path", { d: "M11 12h4" }, null, -1),
|
|
862
868
|
t("path", { d: "M11 16h7" }, null, -1),
|
|
863
869
|
t("path", { d: "M11 20h10" }, null, -1)
|
|
864
870
|
])])) : g("", !0)
|
|
865
|
-
], 8,
|
|
871
|
+
], 8, Mt)
|
|
866
872
|
])
|
|
867
|
-
], 2)) : (s(),
|
|
873
|
+
], 2)) : (s(), n("th", {
|
|
868
874
|
key: 1,
|
|
869
875
|
class: m(["header-locked", a.class_column])
|
|
870
876
|
}, v(a.header), 3))
|
|
@@ -874,78 +880,78 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
874
880
|
}, 8, ["modelValue"])
|
|
875
881
|
]),
|
|
876
882
|
t("tbody", null, [
|
|
877
|
-
(s(!0),
|
|
883
|
+
(s(!0), n(M, null, B(u.value, (a) => (s(), U(De, {
|
|
878
884
|
tag: "tr",
|
|
879
885
|
key: a[o.item_key],
|
|
880
886
|
name: "column-move"
|
|
881
887
|
}, {
|
|
882
888
|
default: H(() => [
|
|
883
|
-
o.use_checkbox ? (s(),
|
|
889
|
+
o.use_checkbox ? (s(), n("td", zt, [
|
|
884
890
|
t("input", {
|
|
885
891
|
class: "form-check-input m-0",
|
|
886
892
|
type: "checkbox",
|
|
887
893
|
checked: L(a),
|
|
888
|
-
onChange: (
|
|
894
|
+
onChange: (l) => ge(a),
|
|
889
895
|
"aria-label": "Selecionar este item"
|
|
890
896
|
}, null, 40, Bt)
|
|
891
897
|
])) : g("", !0),
|
|
892
|
-
(s(!0),
|
|
893
|
-
key:
|
|
894
|
-
class: m(
|
|
898
|
+
(s(!0), n(M, null, B(me.value, (l) => (s(), n("td", {
|
|
899
|
+
key: l.field || l.header,
|
|
900
|
+
class: m(l.class_row)
|
|
895
901
|
}, [
|
|
896
|
-
|
|
902
|
+
l.bodySlot ? (s(), U(le(l.bodySlot), {
|
|
897
903
|
key: 0,
|
|
898
904
|
item: a,
|
|
899
905
|
"is-selected": L(a)
|
|
900
|
-
}, null, 8, ["item", "is-selected"])) :
|
|
906
|
+
}, null, 8, ["item", "is-selected"])) : l.type === "text" ? (s(), n("span", {
|
|
901
907
|
key: 1,
|
|
902
|
-
onClick: (y) =>
|
|
903
|
-
class: m(
|
|
904
|
-
}, v(ye(j(
|
|
908
|
+
onClick: (y) => l.click ? l.click(a) : null,
|
|
909
|
+
class: m(l.class_item + (l.click ? " cursor-pointer" : ""))
|
|
910
|
+
}, v(ye(j(l.field, a, l.transform_function), l.limite_text ?? null)), 11, Vt)) : l.type === "date" ? (s(), n("span", {
|
|
905
911
|
key: 2,
|
|
906
|
-
onClick: (y) =>
|
|
907
|
-
class: m(
|
|
912
|
+
onClick: (y) => l.click ? l.click(a) : null,
|
|
913
|
+
class: m(l.class_item + (l.click ? " cursor-pointer" : ""))
|
|
908
914
|
}, [
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
915
|
+
l.format === "complete" ? (s(), n("span", Tt, v(new Date(j(l.field, a)).toLocaleString()), 1)) : g("", !0),
|
|
916
|
+
l.format === "simple" ? (s(), n("span", jt, v(new Date(j(
|
|
917
|
+
l.field,
|
|
912
918
|
a
|
|
913
919
|
)).toLocaleDateString()), 1)) : g("", !0)
|
|
914
|
-
], 10,
|
|
920
|
+
], 10, Nt)) : l.type === "html" ? (s(), n("div", {
|
|
915
921
|
key: 3,
|
|
916
|
-
onClick: (y) =>
|
|
917
|
-
class: m(
|
|
918
|
-
innerHTML: j(
|
|
919
|
-
}, null, 10,
|
|
922
|
+
onClick: (y) => l.click ? l.click(a) : null,
|
|
923
|
+
class: m(l.class_item + (l.click ? " cursor-pointer" : "")),
|
|
924
|
+
innerHTML: j(l.field, a)
|
|
925
|
+
}, null, 10, Dt)) : l.type === "img" ? (s(), n("div", {
|
|
920
926
|
key: 4,
|
|
921
|
-
onClick: (y) =>
|
|
922
|
-
class: m(
|
|
927
|
+
onClick: (y) => l.click ? l.click(a) : null,
|
|
928
|
+
class: m(l.class_item + (l.click ? " cursor-pointer" : ""))
|
|
923
929
|
}, [
|
|
924
|
-
j(
|
|
930
|
+
j(l.field, a) ? (s(), n("div", Ae({
|
|
925
931
|
key: 0,
|
|
926
932
|
ref_for: !0
|
|
927
|
-
},
|
|
933
|
+
}, l.deactivate_img_preview ? {
|
|
928
934
|
class: "container-img"
|
|
929
935
|
} : {
|
|
930
|
-
onMouseover: (y) => f($)(y, j(
|
|
936
|
+
onMouseover: (y) => f($)(y, j(l.field, a)),
|
|
931
937
|
onMousemove: f(D),
|
|
932
938
|
onMouseleave: f(I),
|
|
933
939
|
class: "container-img container-img-preview"
|
|
934
940
|
}), [
|
|
935
941
|
t("img", {
|
|
936
942
|
class: "img-tamanho",
|
|
937
|
-
src: j(
|
|
938
|
-
}, null, 8,
|
|
943
|
+
src: j(l.field, a)
|
|
944
|
+
}, null, 8, Et),
|
|
939
945
|
t("img", {
|
|
940
946
|
class: "img-tamanho-cover",
|
|
941
|
-
src: j(
|
|
942
|
-
}, null, 8,
|
|
947
|
+
src: j(l.field, a)
|
|
948
|
+
}, null, 8, It),
|
|
943
949
|
e[30] || (e[30] = t("div", { class: "bg-img" }, null, -1))
|
|
944
950
|
], 16)) : g("", !0)
|
|
945
|
-
], 10,
|
|
946
|
-
e[31] || (e[31] =
|
|
947
|
-
t("span",
|
|
948
|
-
e[32] || (e[32] =
|
|
951
|
+
], 10, At)) : (s(), n("span", Ot, [
|
|
952
|
+
e[31] || (e[31] = V("tipo ", -1)),
|
|
953
|
+
t("span", Ht, v(l.type), 1),
|
|
954
|
+
e[32] || (e[32] = V(" não suportado", -1))
|
|
949
955
|
]))
|
|
950
956
|
], 2))), 128))
|
|
951
957
|
]),
|
|
@@ -953,30 +959,30 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
953
959
|
}, 1024))), 128))
|
|
954
960
|
])
|
|
955
961
|
], 2)
|
|
956
|
-
])) :
|
|
962
|
+
])) : p.value === !1 ? (s(), n("div", Pt)) : (s(), n("div", qt, [...e[33] || (e[33] = [
|
|
957
963
|
t("p", { class: "m-0" }, "Nenhum item encontrado.", -1)
|
|
958
964
|
])]))
|
|
959
965
|
])) : g("", !0)
|
|
960
966
|
], 2)
|
|
961
967
|
], 2),
|
|
962
968
|
O(r.$slots, "pagination", {
|
|
963
|
-
pagination:
|
|
969
|
+
pagination: c.value,
|
|
964
970
|
tradePage: E,
|
|
965
971
|
error: f(Y)
|
|
966
972
|
}, () => [
|
|
967
|
-
!f(Y) &&
|
|
973
|
+
!f(Y) && c.value.count > 0 ? (s(), n("div", {
|
|
968
974
|
key: 0,
|
|
969
975
|
class: m(["px-3", o.class_pagination])
|
|
970
976
|
}, [
|
|
971
977
|
Q(Ie, {
|
|
972
978
|
page_starts_at: o.page_starts_at,
|
|
973
979
|
filtering: !0,
|
|
974
|
-
pagination:
|
|
980
|
+
pagination: c.value,
|
|
975
981
|
onTradePage: E
|
|
976
982
|
}, null, 8, ["page_starts_at", "pagination"])
|
|
977
983
|
], 2)) : g("", !0)
|
|
978
984
|
], !0),
|
|
979
|
-
f(
|
|
985
|
+
f(b) ? (s(), n("div", {
|
|
980
986
|
key: 0,
|
|
981
987
|
class: "image-preview-container",
|
|
982
988
|
style: Ee(f(z))
|
|
@@ -985,12 +991,12 @@ const Je = { class: "text-secondary" }, Qe = { class: "mx-2 d-inline-block" }, R
|
|
|
985
991
|
src: f(S),
|
|
986
992
|
alt: "Preview",
|
|
987
993
|
class: "image-preview-large"
|
|
988
|
-
}, null, 8,
|
|
994
|
+
}, null, 8, Lt)
|
|
989
995
|
], 4)) : g("", !0)
|
|
990
996
|
]));
|
|
991
997
|
}
|
|
992
|
-
}),
|
|
998
|
+
}), Gt = /* @__PURE__ */ oe(Ut, [["__scopeId", "data-v-1f716b02"]]);
|
|
993
999
|
export {
|
|
994
|
-
|
|
995
|
-
|
|
1000
|
+
Xt as VColumn,
|
|
1001
|
+
Gt as VDataTable
|
|
996
1002
|
};
|
package/package.json
CHANGED
|
@@ -62,6 +62,7 @@ interface SearchProps {
|
|
|
62
62
|
list_filter?: any[];
|
|
63
63
|
item_use?: number[];
|
|
64
64
|
placeholder_search?: string;
|
|
65
|
+
deactivate_search_on_clear?: boolean;
|
|
65
66
|
}
|
|
66
67
|
const props = withDefaults(defineProps<SearchProps>(), {
|
|
67
68
|
filter: "",
|
|
@@ -96,6 +97,7 @@ const props = withDefaults(defineProps<SearchProps>(), {
|
|
|
96
97
|
// até o momento existem 2 items: 1 (search) e 2 (filter)
|
|
97
98
|
placeholder_search: "Buscar...",
|
|
98
99
|
click: null,
|
|
100
|
+
deactivate_search_on_clear: false,
|
|
99
101
|
});
|
|
100
102
|
|
|
101
103
|
const emit = defineEmits(['update:search', 'update:filter', "search"])
|
|
@@ -144,7 +146,9 @@ function tradeFilter(newFilter: string): void {
|
|
|
144
146
|
|
|
145
147
|
function cleanSearch(): void {
|
|
146
148
|
modelSearch.value = ""
|
|
147
|
-
|
|
149
|
+
if (!props.deactivate_search_on_clear){
|
|
150
|
+
emit('search'); // emite o evento de busca para atualizar a lista
|
|
151
|
+
}
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
function clickItem(filter: any): void {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="" :class="props.class_content">
|
|
6
6
|
<div :class="props.class_filters" class="d-flex justify-content-between align-items-start ">
|
|
7
7
|
<slot name="pageSize" :changePageSize="changePageSize" :limit_per_page="pagination.limit_per_page">
|
|
8
|
-
<div class="text-secondary">
|
|
8
|
+
<div class="text-secondary" :class="props.class_page_size">
|
|
9
9
|
{{ props.first_text_page_size }}
|
|
10
10
|
<div class="mx-2 d-inline-block">
|
|
11
11
|
<input class="form-control form-control-sm" @change="changePageSize"
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
</slot>
|
|
22
22
|
|
|
23
23
|
<Search v-model:search="pagination.search" v-model:filter="pagination.filter" :list_filter="props.list_filter"
|
|
24
|
-
:item_use="item_use" @search="reSearch"
|
|
24
|
+
:item_use="item_use" @search="reSearch"
|
|
25
|
+
:deactivate_search_on_clear="props.deactivate_search_on_clear"
|
|
26
|
+
:placeholder_search="props.placeholder_search"/>
|
|
25
27
|
</div>
|
|
26
28
|
<slot name="item-selected-info" :selected_items="selected_items" :clearSelection="() => selected_items = []">
|
|
27
29
|
<div v-if="(props.use_checkbox && selected_items.length > 0) && !props.deactivate_selected_info"
|
|
@@ -397,6 +399,7 @@ const props = withDefaults(defineProps<VDataTableProps>(), {
|
|
|
397
399
|
class_container: '',
|
|
398
400
|
class_pagination: '',
|
|
399
401
|
class_filters: '',
|
|
402
|
+
class_page_size: '',
|
|
400
403
|
min_loading_delay: 600,
|
|
401
404
|
retry_attempts: 3,
|
|
402
405
|
retry_delay: 2000,
|
|
@@ -409,6 +412,7 @@ const props = withDefaults(defineProps<VDataTableProps>(), {
|
|
|
409
412
|
deactivate_selected_info: false,
|
|
410
413
|
immediate: true,
|
|
411
414
|
placeholder_search: "Buscar...",
|
|
415
|
+
deactivate_search_on_clear: false,
|
|
412
416
|
});
|
|
413
417
|
|
|
414
418
|
|
package/src/DatatableVue/keys.ts
CHANGED
|
@@ -37,6 +37,7 @@ export interface VDataTableProps {
|
|
|
37
37
|
class_container?: string;
|
|
38
38
|
class_pagination?: string;
|
|
39
39
|
class_filters?: string;
|
|
40
|
+
class_page_size?: string;
|
|
40
41
|
|
|
41
42
|
/*
|
|
42
43
|
* tempo mínimo em ms para mostrar o loading para evitar telas piscando
|
|
@@ -61,6 +62,7 @@ export interface VDataTableProps {
|
|
|
61
62
|
deactivate_selected_info?: boolean;
|
|
62
63
|
immediate?: boolean;
|
|
63
64
|
placeholder_search?: string;
|
|
65
|
+
deactivate_search_on_clear?: boolean;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
export interface ExposedFunctions<T extends Record<string, any>> {
|