v-sistec-features 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataPageVue/components/PaginationDatatable.vue.d.ts +17 -0
- package/dist/DataPageVue/components/VDataPage.vue.d.ts +45 -0
- package/dist/DataPageVue/index.d.ts +2 -0
- package/dist/DataPageVue/types/v-data-page.d.ts +50 -0
- package/dist/DatatableVue/components/PaginationDatatable.vue.d.ts +19 -0
- package/dist/DatatableVue/components/SearchDatatable.vue.d.ts +20 -0
- package/dist/DatatableVue/components/VColumn.vue.d.ts +53 -0
- package/dist/DatatableVue/components/VDataTable.vue.d.ts +36 -0
- package/dist/DatatableVue/composables/useImagePreview.d.ts +9 -0
- package/dist/DatatableVue/index.d.ts +3 -0
- package/dist/DatatableVue/keys.d.ts +31 -0
- package/dist/DatatableVue/types/v-data-table.d.ts +46 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/plugin.d.ts +5 -0
- package/dist/core.js +2 -2083
- package/dist/iframeCommunicator/index.d.ts +2 -0
- package/dist/iframeCommunicator/useIframeCommunicator.d.ts +8 -0
- package/dist/iframeCommunicator/useThemeFromParent.d.ts +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/plugin-CS5DnmVr.js +2086 -0
- package/dist/v-sistec-features.css +1 -1
- package/dist/vDataPage.js +1 -1
- package/dist/vDataTable.js +103 -103
- package/package.json +5 -4
- package/src/DataPageVue/components/VDataPage.vue +3 -81
- package/src/DataPageVue/types/v-data-page.ts +82 -0
- package/src/DatatableVue/components/VColumn.vue +4 -1
- package/src/DatatableVue/components/VDataTable.vue +20 -82
- package/src/DatatableVue/types/v-data-table.ts +76 -0
- package/src/assets/v-required-style.css +76 -0
- package/src/core/plugin.ts +4 -2
|
@@ -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)}.rotate-180[data-v-df81be49] svg{transform:rotate(180deg)}.page-select[data-v-df81be49]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-df81be49]{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-df81be49]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-df81be49]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-df81be49] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-df81be49] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-df81be49]{margin:0!important;padding:0!important}.scroll-finish-style[data-v-
|
|
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}.rotate-180[data-v-df81be49] svg{transform:rotate(180deg)}.page-select[data-v-df81be49]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-df81be49]{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-df81be49]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-df81be49]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-df81be49] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-df81be49] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-df81be49]{margin:0!important;padding:0!important}.scroll-finish-style[data-v-08efb648]{color:#6c757d;display:block;text-align:center;margin-top:1rem;margin-bottom:1rem}.rotate-180[data-v-78d23729] svg{transform:rotate(180deg)}.page-select[data-v-78d23729]{background-color:var(--tblr-primary)!important;color:#fff!important;border:none!important}.page-estilo[data-v-78d23729]{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-78d23729]:hover{background:var(--cor-escurecida);color:#fff}.btn[data-v-78d23729]{padding:0!important;margin:0!important;background:transparent!important;border:none!important;box-shadow:none!important}[data-v-78d23729] .btn-estilo svg{padding:0!important;margin:0!important}[data-v-78d23729] .btn-estilo:hover svg{stroke:var(--tblr-primary)}.icon-tabler[data-v-78d23729]{margin:0!important;padding:0!important}.inputClose[data-v-dc655be7]{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-dc655be7]:hover{cursor:pointer}.selected[data-v-dc655be7]:hover{background-color:#b02a2a!important;color:#fff!important}.table-responsive[data-v-f75d7012]{overflow-x:auto}.state-feedback[data-v-f75d7012]{padding:1rem;text-align:center}.state-feedback.error[data-v-f75d7012]{color:red}.pagination-controls[data-v-f75d7012]{margin-top:1rem;display:flex;justify-content:space-between}.placeholder-img[data-v-f75d7012]{width:40px;height:40px;border-radius:4px}.container-img[data-v-f75d7012]{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-f75d7012]{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-f75d7012]{object-fit:contain;width:100%;height:100%;z-index:2}.container-img.container-img-preview[data-v-f75d7012]{cursor:pointer}.container-img.container-img-preview[data-v-f75d7012]: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-f75d7012]{opacity:.3}.erro-custom-container[data-v-f75d7012]{display:inline-block;padding:.2em .6em;border-radius:4px;background-color:#fff;font-weight:700;text-transform:uppercase}.erro-custom-text[data-v-f75d7012]{font-size:.8em;text-transform:uppercase;font-weight:700}.bg-img[data-v-f75d7012]{background-color:#0000004d;position:absolute;top:0;width:100%;height:100%;z-index:1}.image-preview-container[data-v-f75d7012]{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-f75d7012]{display:block;max-width:250px;max-height:250px;border-radius:4px}.form-check-input[data-v-f75d7012]{border-width:1px!important;border-color:#00000064!important;width:17px;height:17px}[data-bs-theme=dark] .form-check-input[data-v-f75d7012]{border-color:#ffffff5f!important}.ghost-item[data-v-f75d7012]{opacity:.5;background:var(--tblr-primary-lt, #e6f0ff);border-radius:8px}.dragging-item[data-v-f75d7012]{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-f75d7012]{cursor:grab}.column-move-move[data-v-f75d7012]{transition:transform .4s ease}.column-move-enter-active[data-v-f75d7012],.column-move-leave-active[data-v-f75d7012]{transition:all .4s ease}.header-ordering[data-v-f75d7012]{display:flex;justify-content:space-between}
|
package/dist/vDataPage.js
CHANGED
|
@@ -520,7 +520,7 @@ const Me = /* @__PURE__ */ ee(we, [["render", Pe], ["__scopeId", "data-v-d3e3763
|
|
|
520
520
|
], !0) : T("", !0)
|
|
521
521
|
]));
|
|
522
522
|
}
|
|
523
|
-
}), Je = /* @__PURE__ */ Z(qe, [["__scopeId", "data-v-
|
|
523
|
+
}), Je = /* @__PURE__ */ Z(qe, [["__scopeId", "data-v-08efb648"]]);
|
|
524
524
|
export {
|
|
525
525
|
Je as VDataPage
|
|
526
526
|
};
|
package/dist/vDataTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as X, useSlots as $e, inject as Se, onMounted as ze, computed as
|
|
1
|
+
import { defineComponent as X, useSlots as $e, inject as Se, onMounted as ze, computed as b, createElementBlock as s, createCommentVNode as y, openBlock as a, createElementVNode as t, toDisplayString as h, withModifiers as D, Fragment as C, renderList as B, normalizeClass as g, watch as U, resolveComponent as Pe, withDirectives as ie, withKeys as Be, vModelText as de, createBlock as Y, withCtx as q, createTextVNode as V, ref as P, provide as Te, readonly as Ve, nextTick as je, renderSlot as O, createVNode as Z, createStaticVNode as Ne, resolveDynamicComponent as le, unref as x, TransitionGroup as Ae, mergeProps as He, normalizeStyle as De } from "vue";
|
|
2
2
|
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import Ee from "vuedraggable";
|
|
4
|
-
const
|
|
4
|
+
const ue = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
5
5
|
__name: "VColumn",
|
|
6
6
|
props: {
|
|
7
7
|
field: { default: null },
|
|
@@ -22,43 +22,43 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
22
22
|
increasing_value: { default: "" }
|
|
23
23
|
},
|
|
24
24
|
setup($) {
|
|
25
|
-
const
|
|
25
|
+
const d = $, p = $e(), k = Se(ue);
|
|
26
26
|
if (!k)
|
|
27
27
|
throw new Error("VColumn deve ser usado dentro de um VDataTable.");
|
|
28
|
-
const
|
|
28
|
+
const w = ["text", "img", "date", "html"];
|
|
29
29
|
return ze(() => {
|
|
30
|
-
if (
|
|
30
|
+
if (d.field !== null && !d.field)
|
|
31
31
|
throw new Error('A propriedade "field" é obrigatória em VColumn.');
|
|
32
|
-
if (!
|
|
32
|
+
if (!d.header)
|
|
33
33
|
throw new Error('A propriedade "header" é obrigatória em VColumn.');
|
|
34
|
-
if (
|
|
35
|
-
throw new Error(`O tipo "${
|
|
36
|
-
if (
|
|
37
|
-
if (
|
|
34
|
+
if (d.field !== null && !w.includes(d.type))
|
|
35
|
+
throw new Error(`O tipo "${d.type}" não é suportado em VColumn. Tipos suportados: text, img, date, html.`);
|
|
36
|
+
if (d.limite_text) {
|
|
37
|
+
if (d.type !== "text")
|
|
38
38
|
throw new Error('A propriedade "limite_text" só pode ser usada quando o tipo for "text".');
|
|
39
|
-
if (typeof
|
|
39
|
+
if (typeof d.limite_text == "string" && isNaN(Number(d.limite_text)))
|
|
40
40
|
throw new Error('A propriedade "limite_text" deve ser um número quando for uma string.');
|
|
41
|
-
if (isNaN(Number(
|
|
41
|
+
if (isNaN(Number(d.limite_text)) || Number(d.limite_text) <= 0)
|
|
42
42
|
throw new Error('A propriedade "limite_text" deve ser um número maior que 0.');
|
|
43
43
|
}
|
|
44
44
|
k.addColumn({
|
|
45
|
-
field:
|
|
46
|
-
header:
|
|
47
|
-
type:
|
|
48
|
-
class_column:
|
|
49
|
-
class_row:
|
|
50
|
-
class_item:
|
|
51
|
-
click:
|
|
52
|
-
transform_function:
|
|
53
|
-
locked:
|
|
54
|
-
use_ordering:
|
|
55
|
-
param_ordering:
|
|
56
|
-
decreasing_value:
|
|
57
|
-
increasing_value:
|
|
45
|
+
field: d.field,
|
|
46
|
+
header: d.header,
|
|
47
|
+
type: d.type,
|
|
48
|
+
class_column: d.class_column,
|
|
49
|
+
class_row: d.class_row,
|
|
50
|
+
class_item: d.class_item,
|
|
51
|
+
click: d.click,
|
|
52
|
+
transform_function: d.transform_function,
|
|
53
|
+
locked: d.locked,
|
|
54
|
+
use_ordering: d.use_ordering,
|
|
55
|
+
param_ordering: d.param_ordering,
|
|
56
|
+
decreasing_value: d.decreasing_value,
|
|
57
|
+
increasing_value: d.increasing_value,
|
|
58
58
|
bodySlot: p.body,
|
|
59
|
-
...
|
|
60
|
-
...
|
|
61
|
-
...
|
|
59
|
+
...d.type === "text" && { limite_text: Number(d.limite_text) },
|
|
60
|
+
...d.type === "img" && { deactivate_img_preview: d.deactivate_img_preview },
|
|
61
|
+
...d.type === "date" && { format: d.format }
|
|
62
62
|
});
|
|
63
63
|
}), (S, j) => null;
|
|
64
64
|
}
|
|
@@ -94,21 +94,21 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
94
94
|
page_starts_at: { default: 0 }
|
|
95
95
|
},
|
|
96
96
|
emits: ["tradePage"],
|
|
97
|
-
setup($, { emit:
|
|
98
|
-
const p = $, k =
|
|
97
|
+
setup($, { emit: d }) {
|
|
98
|
+
const p = $, k = d, w = b(() => p.pagination.limit_per_page ? Math.ceil(p.pagination.count / p.pagination.limit_per_page) : 0), S = b(() => _.value < w.value ? _.value : null), j = () => {
|
|
99
99
|
p.pagination.current_page++, k("tradePage");
|
|
100
100
|
}, H = (m) => {
|
|
101
101
|
p.pagination.current_page = m + (p.page_starts_at - 1), k("tradePage");
|
|
102
102
|
}, o = () => {
|
|
103
|
-
p.pagination.current_page =
|
|
103
|
+
p.pagination.current_page = w.value + (p.page_starts_at - 1), k("tradePage");
|
|
104
104
|
}, i = () => {
|
|
105
105
|
p.pagination.current_page = p.page_starts_at, k("tradePage");
|
|
106
106
|
}, v = () => {
|
|
107
107
|
p.pagination.current_page > p.page_starts_at && (p.pagination.current_page--, k("tradePage"));
|
|
108
|
-
}, _ =
|
|
109
|
-
if (
|
|
110
|
-
return Array.from({ length:
|
|
111
|
-
const m =
|
|
108
|
+
}, _ = b(() => p.pagination.current_page - (p.page_starts_at - 1)), c = b(() => {
|
|
109
|
+
if (w.value <= 7)
|
|
110
|
+
return Array.from({ length: w.value }, (u, L) => L + 1);
|
|
111
|
+
const m = w.value, M = /* @__PURE__ */ new Set([
|
|
112
112
|
1,
|
|
113
113
|
2,
|
|
114
114
|
// Sempre mostra as 2 primeiras
|
|
@@ -121,13 +121,13 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
121
121
|
// Sempre mostra as 2 últimas
|
|
122
122
|
]), f = [];
|
|
123
123
|
let N = 0;
|
|
124
|
-
return Array.from(M).sort((
|
|
125
|
-
|
|
124
|
+
return Array.from(M).sort((u, L) => u - L).forEach((u) => {
|
|
125
|
+
u < 1 || u > m || (u > N + 1 && f.push("..."), f.push(u), N = u);
|
|
126
126
|
}), f;
|
|
127
127
|
});
|
|
128
128
|
return (m, M) => p.pagination.count > 0 ? (a(), s("div", Le, [
|
|
129
129
|
t("span", null, " Mostrando de " + h(p.pagination.count !== 0 ? p.pagination.limit_per_page * (_.value - 1) + 1 : 0) + " até " + h(p.pagination.limit_per_page * _.value < p.pagination.count ? p.pagination.limit_per_page * _.value : p.pagination.count) + " de " + h(p.pagination.count) + " registros ", 1),
|
|
130
|
-
|
|
130
|
+
w.value > 0 ? (a(), s("div", Ie, [
|
|
131
131
|
t("div", Oe, [
|
|
132
132
|
t("button", {
|
|
133
133
|
class: "btn btn-estilo",
|
|
@@ -147,7 +147,7 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
147
147
|
typeof f == "number" ? (a(), s("button", {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: g([_.value == f ? "page-select" : "", "page-estilo"]),
|
|
150
|
-
onClick: D((
|
|
150
|
+
onClick: D((u) => H(f), ["prevent"]),
|
|
151
151
|
disabled: _.value == f
|
|
152
152
|
}, h(f), 11, Ke)) : (a(), s("span", Ye, "..."))
|
|
153
153
|
], 64))), 128))
|
|
@@ -190,11 +190,11 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
190
190
|
item_use: { default: () => [1, 2] }
|
|
191
191
|
},
|
|
192
192
|
emits: ["update:search", "update:filter", "search"],
|
|
193
|
-
setup($, { emit:
|
|
194
|
-
const p = $, k =
|
|
193
|
+
setup($, { emit: d }) {
|
|
194
|
+
const p = $, k = d, w = b({
|
|
195
195
|
get: () => p.search,
|
|
196
196
|
set: (i) => k("update:search", i)
|
|
197
|
-
}), S =
|
|
197
|
+
}), S = b({
|
|
198
198
|
get: () => p.filter,
|
|
199
199
|
set: (i) => k("update:filter", i)
|
|
200
200
|
});
|
|
@@ -213,7 +213,7 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
213
213
|
S.value === i ? S.value = "" : S.value = i;
|
|
214
214
|
}
|
|
215
215
|
function H() {
|
|
216
|
-
|
|
216
|
+
w.value = "", k("search");
|
|
217
217
|
}
|
|
218
218
|
function o(i) {
|
|
219
219
|
i.click && typeof i.click == "function" ? i.click() : console.error("O filtro selecionado não possui uma função de clique válida.");
|
|
@@ -247,13 +247,13 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
247
247
|
type: "text",
|
|
248
248
|
class: "form-control ms-1",
|
|
249
249
|
id: "inputSearchLaudos",
|
|
250
|
-
"onUpdate:modelValue": v[0] || (v[0] = (c) =>
|
|
250
|
+
"onUpdate:modelValue": v[0] || (v[0] = (c) => w.value = c),
|
|
251
251
|
onKeyup: v[1] || (v[1] = Be((c) => i.$emit("search"), ["enter"])),
|
|
252
252
|
placeholder: "Buscar..."
|
|
253
253
|
}, null, 544), [
|
|
254
|
-
[
|
|
254
|
+
[de, w.value]
|
|
255
255
|
]),
|
|
256
|
-
|
|
256
|
+
w.value ? (a(), s("span", {
|
|
257
257
|
key: 0,
|
|
258
258
|
onClick: v[2] || (v[2] = (c) => H()),
|
|
259
259
|
class: "inputClose",
|
|
@@ -329,7 +329,7 @@ const de = Symbol("v-datatable-key"), la = /* @__PURE__ */ X({
|
|
|
329
329
|
}
|
|
330
330
|
}), rt = /* @__PURE__ */ ee(lt, [["__scopeId", "data-v-dc655be7"]]);
|
|
331
331
|
function ot() {
|
|
332
|
-
const $ = P(!1),
|
|
332
|
+
const $ = P(!1), d = P(""), p = P(0), k = P(0), w = b(() => ({
|
|
333
333
|
position: "fixed",
|
|
334
334
|
zIndex: 9999,
|
|
335
335
|
pointerEvents: "none",
|
|
@@ -342,7 +342,7 @@ function ot() {
|
|
|
342
342
|
f + M > c && (f = _ - M - m, f < 0 && (f = 0)), p.value = v, k.value = f;
|
|
343
343
|
}
|
|
344
344
|
function j(i, v) {
|
|
345
|
-
$.value = !0,
|
|
345
|
+
$.value = !0, d.value = v, S(i);
|
|
346
346
|
}
|
|
347
347
|
function H(i) {
|
|
348
348
|
$.value && S(i);
|
|
@@ -352,14 +352,14 @@ function ot() {
|
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
354
354
|
isHovering: $,
|
|
355
|
-
previewSrc:
|
|
356
|
-
previewStyle:
|
|
355
|
+
previewSrc: d,
|
|
356
|
+
previewStyle: w,
|
|
357
357
|
handleMouseOver: j,
|
|
358
358
|
handleMouseMove: H,
|
|
359
359
|
handleMouseLeave: o
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
|
-
const it = { class: "text-secondary" },
|
|
362
|
+
const it = { class: "text-secondary" }, dt = { class: "mx-2 d-inline-block" }, ut = {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "alert alert-cyan d-flex justify-content-center align-items-center py-2",
|
|
365
365
|
role: "alert"
|
|
@@ -369,7 +369,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
369
369
|
}, mt = { class: "badge bg-orange text-white erro-custom-text" }, ht = { key: 0 }, ft = { key: 2 }, kt = {
|
|
370
370
|
key: 5,
|
|
371
371
|
class: "text-danger erro-custom-container"
|
|
372
|
-
}, yt = { class: "badge bg-orange text-white erro-custom-text" },
|
|
372
|
+
}, yt = { class: "badge bg-orange text-white erro-custom-text" }, wt = ["colspan"], bt = {
|
|
373
373
|
key: 0,
|
|
374
374
|
class: "d-flex flex-column justify-content-center align-items-center",
|
|
375
375
|
style: { height: "6rem" }
|
|
@@ -502,15 +502,15 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
502
502
|
page_starts_at: { default: 0 },
|
|
503
503
|
deactivate_selected_info: { type: Boolean, default: !1 }
|
|
504
504
|
},
|
|
505
|
-
setup($, { expose:
|
|
505
|
+
setup($, { expose: d }) {
|
|
506
506
|
const {
|
|
507
507
|
isHovering: p,
|
|
508
508
|
previewSrc: k,
|
|
509
|
-
previewStyle:
|
|
509
|
+
previewStyle: w,
|
|
510
510
|
handleMouseOver: S,
|
|
511
511
|
handleMouseMove: j,
|
|
512
512
|
handleMouseLeave: H
|
|
513
|
-
} = ot(), o = $, i = P({}), v = P([]), _ = P([]), c = P(0), m = P([]), M = P(null), f = P(!1), N = P(null),
|
|
513
|
+
} = ot(), o = $, i = P({}), v = P([]), _ = P([]), c = P(0), m = P([]), M = P(null), f = P(!1), N = P(null), u = P({
|
|
514
514
|
current_page: o.page_starts_at,
|
|
515
515
|
// pagina atual
|
|
516
516
|
count: 0,
|
|
@@ -521,7 +521,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
521
521
|
// termo de busca
|
|
522
522
|
filter: ""
|
|
523
523
|
// filtro selecionado
|
|
524
|
-
}), L =
|
|
524
|
+
}), L = b(() => (u.value.current_page = o.page_starts_at, o.endpoint)), { data: pe, pending: ce, error: G, execute: ve, attempt: E } = o.fetch(L, {
|
|
525
525
|
params: () => o.deactivate_default_params ? o.add_params && typeof o.add_params == "function" ? {
|
|
526
526
|
...o.add_params(),
|
|
527
527
|
...F.value
|
|
@@ -541,9 +541,9 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
541
541
|
retryDelay: o.retry_delay,
|
|
542
542
|
paramsReactives: !1,
|
|
543
543
|
immediate: !1
|
|
544
|
-
}, o.fetch_name), W =
|
|
544
|
+
}, o.fetch_name), W = b(
|
|
545
545
|
() => v.value.filter((r) => r.locked)
|
|
546
|
-
), J =
|
|
546
|
+
), J = b({
|
|
547
547
|
get() {
|
|
548
548
|
return v.value.filter((r) => !r.locked);
|
|
549
549
|
},
|
|
@@ -551,10 +551,10 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
551
551
|
const e = W.value;
|
|
552
552
|
v.value = [...r, ...e];
|
|
553
553
|
}
|
|
554
|
-
}), _e =
|
|
554
|
+
}), _e = b(() => [...J.value, ...W.value]), ge = b(() => {
|
|
555
555
|
let r = [1];
|
|
556
556
|
return o.list_filter.length > 0 && r.push(2), r;
|
|
557
|
-
}), F =
|
|
557
|
+
}), F = b(() => {
|
|
558
558
|
const r = {};
|
|
559
559
|
for (const e of v.value)
|
|
560
560
|
if (e.use_ordering)
|
|
@@ -567,26 +567,26 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
567
567
|
else
|
|
568
568
|
continue;
|
|
569
569
|
return r;
|
|
570
|
-
}), Q =
|
|
571
|
-
[o.page_param_name]:
|
|
572
|
-
[o.page_size_param_name]:
|
|
573
|
-
[o.search_param_name]:
|
|
574
|
-
[o.filter_param_name]:
|
|
575
|
-
})), me =
|
|
570
|
+
}), Q = b(() => ({
|
|
571
|
+
[o.page_param_name]: u.value.current_page + 1,
|
|
572
|
+
[o.page_size_param_name]: u.value.limit_per_page,
|
|
573
|
+
[o.search_param_name]: u.value.search || "",
|
|
574
|
+
[o.filter_param_name]: u.value.filter || ""
|
|
575
|
+
})), me = b(() => ce.value || f.value), K = (r) => {
|
|
576
576
|
const e = o.item_key;
|
|
577
577
|
return m.value.some((n) => n[e] === r[e]);
|
|
578
|
-
}, te =
|
|
578
|
+
}, te = b(() => {
|
|
579
579
|
if (!_.value.length) return !1;
|
|
580
580
|
const r = _.value.filter((e) => K(e)).length;
|
|
581
581
|
return r === 0 ? !1 : r === _.value.length ? !0 : "indeterminate";
|
|
582
|
-
}), he =
|
|
582
|
+
}), he = b(() => m.value.length > 0);
|
|
583
583
|
U([te, M], ([r]) => {
|
|
584
584
|
M.value && (r === "indeterminate" ? (M.value.checked = !1, M.value.indeterminate = !0) : (M.value.checked = r, M.value.indeterminate = !1));
|
|
585
585
|
}, {
|
|
586
586
|
immediate: !0,
|
|
587
587
|
flush: "post"
|
|
588
588
|
}), U(pe, (r) => {
|
|
589
|
-
r ? (_.value = r[o.data_key] || [], c.value = r[o.total_key] || 0,
|
|
589
|
+
r ? (_.value = r[o.data_key] || [], c.value = r[o.total_key] || 0, u.value.count = c.value) : (_.value = [], c.value = 0);
|
|
590
590
|
}, { immediate: !0 });
|
|
591
591
|
function fe() {
|
|
592
592
|
const r = _.value;
|
|
@@ -609,18 +609,18 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
609
609
|
function ye(r) {
|
|
610
610
|
v.value.push(r);
|
|
611
611
|
}
|
|
612
|
-
Te(
|
|
612
|
+
Te(ue, { addColumn: ye });
|
|
613
613
|
function I() {
|
|
614
614
|
N.value && clearTimeout(N.value), f.value = !0, N.value = setTimeout(() => {
|
|
615
615
|
f.value = !1;
|
|
616
616
|
}, o.min_loading_delay), ve();
|
|
617
617
|
}
|
|
618
618
|
function T() {
|
|
619
|
-
|
|
619
|
+
u.value.current_page = o.page_starts_at, I();
|
|
620
620
|
}
|
|
621
621
|
const ae = (r) => {
|
|
622
622
|
const e = r.target, n = parseInt(e.value, 10);
|
|
623
|
-
n > 0 && (
|
|
623
|
+
n > 0 && (u.value.limit_per_page = n, u.value.limit_per_page = n, T());
|
|
624
624
|
};
|
|
625
625
|
function A(r, e, n = null) {
|
|
626
626
|
if (!r) return e;
|
|
@@ -630,7 +630,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
630
630
|
z && typeof z == "object" && R in z ? z = z[R] : console.error(`Caminho inválido ou valor nulo em: ${r} na parte ${R}`);
|
|
631
631
|
return n && (z = n(z)), z;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function we(r, e) {
|
|
634
634
|
return e && typeof e == "number" && e > 0 && typeof r == "string" && r.length > e ? r.substring(0, e) + "..." : r;
|
|
635
635
|
}
|
|
636
636
|
function ne(r) {
|
|
@@ -639,23 +639,23 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
639
639
|
const e = i.value[r] || "none";
|
|
640
640
|
e === "none" ? i.value[r] = "increasing" : e === "increasing" ? i.value[r] = "decreasing" : i.value[r] = "none", T();
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
r > 0 ? (
|
|
642
|
+
function be(r) {
|
|
643
|
+
r > 0 ? (u.value.limit_per_page = r, T()) : console.warn("O limite deve ser um número maior que zero.");
|
|
644
644
|
}
|
|
645
645
|
function xe(r) {
|
|
646
|
-
|
|
646
|
+
u.value.search = r, T();
|
|
647
647
|
}
|
|
648
648
|
function Me(r) {
|
|
649
|
-
|
|
649
|
+
u.value.filter = r, T();
|
|
650
650
|
}
|
|
651
651
|
function Ce(r) {
|
|
652
|
-
r >= 0 && r <= Math.ceil(
|
|
652
|
+
r >= 0 && r <= Math.ceil(u.value.count / u.value.limit_per_page) ? T() : console.warn("Número de página inválido.");
|
|
653
653
|
}
|
|
654
|
-
|
|
654
|
+
d({
|
|
655
655
|
execute: I,
|
|
656
656
|
reSearch: T,
|
|
657
|
-
pagination: Ve(
|
|
658
|
-
set_limit_per_page:
|
|
657
|
+
pagination: Ve(u),
|
|
658
|
+
set_limit_per_page: be,
|
|
659
659
|
set_search: xe,
|
|
660
660
|
set_filter: Me,
|
|
661
661
|
set_page: Ce,
|
|
@@ -685,23 +685,23 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
685
685
|
}, [
|
|
686
686
|
O(r.$slots, "pageSize", {
|
|
687
687
|
changePageSize: ae,
|
|
688
|
-
limit_per_page:
|
|
688
|
+
limit_per_page: u.value.limit_per_page
|
|
689
689
|
}, () => [
|
|
690
690
|
t("div", it, [
|
|
691
691
|
V(h(o.first_text_page_size) + " ", 1),
|
|
692
|
-
t("div",
|
|
692
|
+
t("div", dt, [
|
|
693
693
|
ie(t("input", {
|
|
694
694
|
class: "form-control form-control-sm",
|
|
695
695
|
onChange: ae,
|
|
696
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) =>
|
|
696
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => u.value.limit_per_page = n),
|
|
697
697
|
min: "1",
|
|
698
698
|
size: "3",
|
|
699
699
|
"aria-label": "Número de registros por página",
|
|
700
700
|
type: "number"
|
|
701
701
|
}, null, 544), [
|
|
702
702
|
[
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
de,
|
|
704
|
+
u.value.limit_per_page,
|
|
705
705
|
void 0,
|
|
706
706
|
{ lazy: !0 }
|
|
707
707
|
]
|
|
@@ -712,10 +712,10 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
712
712
|
], !0),
|
|
713
713
|
O(r.$slots, "fieldMiddle", {}, void 0, !0),
|
|
714
714
|
Z(rt, {
|
|
715
|
-
search:
|
|
716
|
-
"onUpdate:search": e[1] || (e[1] = (n) =>
|
|
717
|
-
filter:
|
|
718
|
-
"onUpdate:filter": e[2] || (e[2] = (n) =>
|
|
715
|
+
search: u.value.search,
|
|
716
|
+
"onUpdate:search": e[1] || (e[1] = (n) => u.value.search = n),
|
|
717
|
+
filter: u.value.filter,
|
|
718
|
+
"onUpdate:filter": e[2] || (e[2] = (n) => u.value.filter = n),
|
|
719
719
|
list_filter: o.list_filter,
|
|
720
720
|
item_use: ge.value,
|
|
721
721
|
onSearch: T
|
|
@@ -725,7 +725,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
725
725
|
selected_items: m.value,
|
|
726
726
|
clearSelection: () => m.value = []
|
|
727
727
|
}, () => [
|
|
728
|
-
o.use_checkbox && m.value.length > 0 && !o.deactivate_selected_info ? (a(), s("div",
|
|
728
|
+
o.use_checkbox && m.value.length > 0 && !o.deactivate_selected_info ? (a(), s("div", ut, [
|
|
729
729
|
t("h4", pt, [
|
|
730
730
|
e[5] || (e[5] = t("strong", null, "Itens Selecionados:", -1)),
|
|
731
731
|
e[6] || (e[6] = V()),
|
|
@@ -735,7 +735,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
735
735
|
class: "cursor-pointer",
|
|
736
736
|
onClick: e[3] || (e[3] = (n) => m.value = [])
|
|
737
737
|
}, [...e[7] || (e[7] = [
|
|
738
|
-
Ne('<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-
|
|
738
|
+
Ne('<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-f75d7012><path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f75d7012></path><path d="M4 7l16 0" data-v-f75d7012></path><path d="M10 11l0 6" data-v-f75d7012></path><path d="M14 11l0 6" data-v-f75d7012></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" data-v-f75d7012></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" data-v-f75d7012></path></svg> Limpar Seleção', 2)
|
|
739
739
|
])])
|
|
740
740
|
])) : y("", !0)
|
|
741
741
|
], !0),
|
|
@@ -753,7 +753,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
753
753
|
])
|
|
754
754
|
]),
|
|
755
755
|
t("tbody", null, [
|
|
756
|
-
o.type_loading === "placeholder" ? (a(!0), s(C, { key: 0 }, B(
|
|
756
|
+
o.type_loading === "placeholder" ? (a(!0), s(C, { key: 0 }, B(u.value.limit_per_page, (n) => (a(), s("tr", {
|
|
757
757
|
key: "placeholder-" + n,
|
|
758
758
|
class: "placeholder-glow"
|
|
759
759
|
}, [
|
|
@@ -786,7 +786,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
786
786
|
e[14] || (e[14] = V(" não suportado ", -1))
|
|
787
787
|
]))
|
|
788
788
|
], 2))), 128))
|
|
789
|
-
]))), 128)) : o.type_loading === "spiner-table" ? (a(!0), s(C, { key: 1 }, B(
|
|
789
|
+
]))), 128)) : o.type_loading === "spiner-table" ? (a(!0), s(C, { key: 1 }, B(u.value.limit_per_page, (n) => (a(), s("tr", {
|
|
790
790
|
key: "placeholder-" + n
|
|
791
791
|
}, [
|
|
792
792
|
(a(!0), s(C, null, B(v.value, (l) => (a(), s("td", {
|
|
@@ -840,13 +840,13 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
840
840
|
e[21] || (e[21] = V(" não suportado ", -1))
|
|
841
841
|
]))
|
|
842
842
|
], 2))), 128))
|
|
843
|
-
]))), 128)) : o.type_loading === "spiner" ? (a(!0), s(C, { key: 2 }, B(
|
|
843
|
+
]))), 128)) : o.type_loading === "spiner" ? (a(!0), s(C, { key: 2 }, B(u.value.limit_per_page, (n) => (a(), s("tr", { key: n }, [
|
|
844
844
|
t("td", {
|
|
845
845
|
colspan: v.value.length,
|
|
846
846
|
class: "text-center p-0",
|
|
847
847
|
style: { "border-bottom": "none" }
|
|
848
848
|
}, [
|
|
849
|
-
n === Math.floor(
|
|
849
|
+
n === Math.floor(u.value.limit_per_page / 2) + 1 ? (a(), s("div", bt, [...e[22] || (e[22] = [
|
|
850
850
|
t("div", {
|
|
851
851
|
class: "spinner-border",
|
|
852
852
|
style: { width: "3rem", height: "3rem" },
|
|
@@ -854,7 +854,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
854
854
|
}, null, -1),
|
|
855
855
|
t("span", { class: "mt-2" }, "Carregando...", -1)
|
|
856
856
|
])])) : (a(), s("div", xt))
|
|
857
|
-
], 8,
|
|
857
|
+
], 8, wt)
|
|
858
858
|
]))), 128)) : y("", !0)
|
|
859
859
|
])
|
|
860
860
|
], 2)),
|
|
@@ -1004,7 +1004,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
1004
1004
|
key: 1,
|
|
1005
1005
|
onClick: (z) => l.click ? l.click(n) : null,
|
|
1006
1006
|
class: g(l.class_item + (l.click ? " cursor-pointer" : ""))
|
|
1007
|
-
}, h(
|
|
1007
|
+
}, h(we(A(l.field, n, l.transform_function), l.limite_text ?? null)), 11, Ut)) : l.type === "date" ? (a(), s("span", {
|
|
1008
1008
|
key: 2,
|
|
1009
1009
|
onClick: (z) => l.click ? l.click(n) : null,
|
|
1010
1010
|
class: g(l.class_item + (l.click ? " cursor-pointer" : ""))
|
|
@@ -1063,18 +1063,18 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
1063
1063
|
], 2)
|
|
1064
1064
|
], 2),
|
|
1065
1065
|
O(r.$slots, "pagination", {
|
|
1066
|
-
pagination:
|
|
1066
|
+
pagination: u.value,
|
|
1067
1067
|
tradePage: I,
|
|
1068
1068
|
error: x(G)
|
|
1069
1069
|
}, () => [
|
|
1070
|
-
!x(G) &&
|
|
1070
|
+
!x(G) && u.value.count > 0 ? (a(), s("div", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: g(["px-3", o.class_pagination])
|
|
1073
1073
|
}, [
|
|
1074
1074
|
Z(Qe, {
|
|
1075
1075
|
page_starts_at: o.page_starts_at,
|
|
1076
1076
|
filtering: !0,
|
|
1077
|
-
pagination:
|
|
1077
|
+
pagination: u.value,
|
|
1078
1078
|
onTradePage: I
|
|
1079
1079
|
}, null, 8, ["page_starts_at", "pagination"])
|
|
1080
1080
|
], 2)) : y("", !0)
|
|
@@ -1082,7 +1082,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
1082
1082
|
x(p) ? (a(), s("div", {
|
|
1083
1083
|
key: 0,
|
|
1084
1084
|
class: "image-preview-container",
|
|
1085
|
-
style: De(x(
|
|
1085
|
+
style: De(x(w))
|
|
1086
1086
|
}, [
|
|
1087
1087
|
t("img", {
|
|
1088
1088
|
src: x(k),
|
|
@@ -1092,7 +1092,7 @@ const it = { class: "text-secondary" }, ut = { class: "mx-2 d-inline-block" }, d
|
|
|
1092
1092
|
], 4)) : y("", !0)
|
|
1093
1093
|
]));
|
|
1094
1094
|
}
|
|
1095
|
-
}), ra = /* @__PURE__ */ ee(ta, [["__scopeId", "data-v-
|
|
1095
|
+
}), ra = /* @__PURE__ */ ee(ta, [["__scopeId", "data-v-f75d7012"]]);
|
|
1096
1096
|
export {
|
|
1097
1097
|
la as VColumn,
|
|
1098
1098
|
ra as VDataTable
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-sistec-features",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.2",
|
|
5
5
|
"author": "Márlon Bento Azevedo (https://github.com/marlon-bento)",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -45,10 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@tabler/icons-vue": "^3.35.0",
|
|
48
|
-
"vue": "^3.2.0",
|
|
49
|
-
"vuedraggable": "^4.1.0",
|
|
50
48
|
"v-api-fetch": "^1.3.0",
|
|
51
|
-
"
|
|
49
|
+
"vue": "^3.2.0",
|
|
50
|
+
"vuedraggable": "^4.1.0"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
53
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -65,11 +64,13 @@
|
|
|
65
64
|
"semantic-release": "^24.2.9",
|
|
66
65
|
"typescript": "~5.9.3",
|
|
67
66
|
"vite": "^7.1.7",
|
|
67
|
+
"vite-plugin-dts": "^4.5.4",
|
|
68
68
|
"vue-tsc": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
72
72
|
"@tabler/core": "^1.4.0",
|
|
73
|
+
"v-required": "^2.0.3",
|
|
73
74
|
"v3-infinite-loading": "^1.3.2"
|
|
74
75
|
}
|
|
75
76
|
}
|