v-sistec-features 1.7.1 → 1.8.1
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/Pagination-DtVDFQ07.js +118 -0
- package/dist/Pagination.d.ts +27 -0
- package/dist/Pagination.js +4 -0
- package/dist/{core/plugin.d.ts → core.d.ts} +7 -5
- package/dist/iframeCommunicator.d.ts +18 -0
- package/dist/iframeCommunicator.js +1 -1
- package/dist/index.d.ts +26 -3
- package/dist/index.js +1 -1
- package/dist/toast.d.ts +19 -0
- package/dist/{useThemeFromParent-CYvPb79h.js → useThemeFromParent-Bk-du0-V.js} +7 -7
- package/dist/v-sistec-features.css +1 -1
- package/dist/vDataPage.d.ts +109 -0
- package/dist/vDataPage.js +221 -322
- package/dist/vDataTable.d.ts +161 -0
- package/dist/vDataTable.js +381 -488
- package/package.json +5 -1
- package/src/DataPageVue/components/VDataPage.vue +15 -15
- package/src/DataPageVue/types/v-data-page.ts +2 -1
- package/src/DatatableVue/components/VDataTable.vue +3 -2
- package/src/Pagination/index.ts +4 -0
- package/src/iframeCommunicator/useIframeCommunicator.ts +7 -3
- package/dist/DataPageVue/components/PaginationDatatable.vue.d.ts +0 -17
- package/dist/DataPageVue/components/VDataPage.vue.d.ts +0 -45
- package/dist/DataPageVue/index.d.ts +0 -2
- package/dist/DataPageVue/types/v-data-page.d.ts +0 -50
- package/dist/DatatableVue/components/PaginationDatatable.vue.d.ts +0 -19
- package/dist/DatatableVue/components/SearchDatatable.vue.d.ts +0 -20
- package/dist/DatatableVue/components/VColumn.vue.d.ts +0 -53
- package/dist/DatatableVue/components/VDataTable.vue.d.ts +0 -36
- package/dist/DatatableVue/composables/useImagePreview.d.ts +0 -9
- package/dist/DatatableVue/index.d.ts +0 -3
- package/dist/DatatableVue/keys.d.ts +0 -31
- package/dist/DatatableVue/types/v-data-table.d.ts +0 -46
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/core/index.d.ts +0 -1
- package/dist/iframeCommunicator/index.d.ts +0 -2
- package/dist/iframeCommunicator/useIframeCommunicator.d.ts +0 -8
- package/dist/iframeCommunicator/useThemeFromParent.d.ts +0 -5
- package/dist/toast/components/ToastComponent.vue.d.ts +0 -6
- package/dist/toast/index.d.ts +0 -1
- package/dist/toast/useToastStore.d.ts +0 -15
- package/src/DataPageVue/components/PaginationDatatable.vue +0 -222
- /package/src/{DatatableVue/components/PaginationDatatable.vue → Pagination/Pagination.vue} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "v-sistec-features",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"author": "Márlon Bento Azevedo (https://github.com/marlon-bento)",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
"import": "./dist/vDataPage.js",
|
|
28
28
|
"types": "./dist/vDataPage.d.ts"
|
|
29
29
|
},
|
|
30
|
+
"./Pagination": {
|
|
31
|
+
"import": "./dist/Pagination.js",
|
|
32
|
+
"types": "./dist/Pagination.d.ts"
|
|
33
|
+
},
|
|
30
34
|
"./iframeCommunicator": {
|
|
31
35
|
"import": "./dist/iframeCommunicator.js",
|
|
32
36
|
"types": "./dist/iframeCommunicator.d.ts"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<slot v-if="type_fetch === 'pagination'" name="pagination" :pagination="pagination"
|
|
59
59
|
:tradePage="fetchDataWithDelay" :error="error">
|
|
60
60
|
<div v-if="!error && pagination.count > 0" class="px-3" :class="props.class_pagination">
|
|
61
|
-
<
|
|
61
|
+
<Pagination :filtering="true" :page_starts_at="props.page_starts_at" :pagination="pagination" @tradePage="tradePageEmit" />
|
|
62
62
|
</div>
|
|
63
63
|
</slot>
|
|
64
64
|
</div>
|
|
@@ -68,7 +68,8 @@
|
|
|
68
68
|
<script setup lang="ts" generic="T extends Record<string, any>">
|
|
69
69
|
import { readonly, ref, isRef, computed, watch, nextTick, type Ref, type WatchSource } from 'vue';
|
|
70
70
|
import InfiniteLoading from "v3-infinite-loading";
|
|
71
|
-
import
|
|
71
|
+
import Pagination from '@/Pagination/Pagination.vue';
|
|
72
|
+
|
|
72
73
|
import type { VDataPageProps, ExposedFunctions, PaginationObject } from '../types/v-data-page.ts';
|
|
73
74
|
// import Search from './SearchDatatable.vue';
|
|
74
75
|
|
|
@@ -206,7 +207,10 @@ watch(response, (newResponse: any) => {
|
|
|
206
207
|
}
|
|
207
208
|
}, { immediate: true });
|
|
208
209
|
|
|
209
|
-
|
|
210
|
+
function reSearch() {
|
|
211
|
+
pagination.value.current_page = props.page_starts_at;
|
|
212
|
+
fetchDataWithDelay();
|
|
213
|
+
}
|
|
210
214
|
// =======================================================
|
|
211
215
|
// 6. MÉTODOS
|
|
212
216
|
// =======================================================
|
|
@@ -279,25 +283,22 @@ async function initDataInfinite() {
|
|
|
279
283
|
function set_limit_per_page(newLimit: number): void {
|
|
280
284
|
if (newLimit > 0) {
|
|
281
285
|
pagination.value.limit_per_page = newLimit;
|
|
282
|
-
|
|
283
|
-
fetchDataWithDelay();
|
|
286
|
+
reSearch();
|
|
284
287
|
} else {
|
|
285
288
|
console.warn("O limite deve ser um número maior que zero.");
|
|
286
289
|
}
|
|
287
290
|
}
|
|
288
291
|
function set_search(newSearch: string): void {
|
|
289
292
|
pagination.value.search = newSearch;
|
|
290
|
-
|
|
291
|
-
fetchDataWithDelay();
|
|
293
|
+
reSearch();
|
|
292
294
|
}
|
|
293
295
|
function set_filter(newFilter: string): void {
|
|
294
296
|
pagination.value.filter = newFilter;
|
|
295
|
-
|
|
296
|
-
fetchDataWithDelay();
|
|
297
|
+
reSearch();
|
|
297
298
|
}
|
|
298
299
|
function set_page(newPage: number): void {
|
|
299
|
-
if (newPage >=
|
|
300
|
-
pagination.value.current_page = newPage
|
|
300
|
+
if (newPage >= 0 && newPage <= Math.ceil(pagination.value.count / pagination.value.limit_per_page)) {
|
|
301
|
+
pagination.value.current_page = newPage;
|
|
301
302
|
fetchDataWithDelay();
|
|
302
303
|
} else {
|
|
303
304
|
console.warn("Número de página inválido.");
|
|
@@ -313,6 +314,7 @@ defineExpose<
|
|
|
313
314
|
set_search: set_search,
|
|
314
315
|
set_filter: set_filter,
|
|
315
316
|
set_page: set_page,
|
|
317
|
+
reSearch: reSearch,
|
|
316
318
|
default_params
|
|
317
319
|
});
|
|
318
320
|
|
|
@@ -465,8 +467,7 @@ watch(() => pagination.value.current_page, () => {
|
|
|
465
467
|
if (watchSources.length > 0) {
|
|
466
468
|
if (props.type_fetch === 'pagination') {
|
|
467
469
|
watch(watchSources, () => {
|
|
468
|
-
|
|
469
|
-
fetchDataWithDelay();
|
|
470
|
+
reSearch();
|
|
470
471
|
}, { deep: true });
|
|
471
472
|
} else if (props.type_fetch === 'infinite-scroll') {
|
|
472
473
|
watch(watchSources, () => {
|
|
@@ -504,8 +505,7 @@ watch(
|
|
|
504
505
|
})
|
|
505
506
|
} else {
|
|
506
507
|
if (props.type_fetch === 'pagination') {
|
|
507
|
-
|
|
508
|
-
fetchDataWithDelay();
|
|
508
|
+
reSearch();
|
|
509
509
|
} else if (props.type_fetch === 'infinite-scroll') {
|
|
510
510
|
dadosInicializados.value = false;
|
|
511
511
|
initDataInfinite();
|
|
@@ -58,7 +58,7 @@ export interface VDataPageProps {
|
|
|
58
58
|
limit_per_page?: number;
|
|
59
59
|
|
|
60
60
|
next_page_response_name?: string;
|
|
61
|
-
page_starts_at
|
|
61
|
+
page_starts_at?: number;
|
|
62
62
|
element_id?: string;
|
|
63
63
|
watch?: WatchSource[];
|
|
64
64
|
}
|
|
@@ -77,6 +77,7 @@ export interface ExposedFunctions {
|
|
|
77
77
|
set_search: (newSearch: string) => void;
|
|
78
78
|
set_filter: (newFilter: string) => void;
|
|
79
79
|
set_page: (newPage: number) => void;
|
|
80
|
+
reSearch: () => void;
|
|
80
81
|
|
|
81
82
|
|
|
82
83
|
}
|
|
@@ -357,7 +357,7 @@ import type { VDataTableProps, ExposedFunctions, PaginationObject } from '../ty
|
|
|
357
357
|
import type { Ref } from 'vue';
|
|
358
358
|
import { readonly, ref, provide, computed, watch, nextTick} from 'vue';
|
|
359
359
|
|
|
360
|
-
import PaginationDatatable from '
|
|
360
|
+
import PaginationDatatable from '@/Pagination/Pagination.vue';
|
|
361
361
|
import Search from './SearchDatatable.vue';
|
|
362
362
|
import { useImagePreview } from '../composables/useImagePreview';
|
|
363
363
|
import { dataTableApiKey, type ColumnConfiguration } from '../keys';
|
|
@@ -731,7 +731,8 @@ function set_filter(newFilter: string): void {
|
|
|
731
731
|
}
|
|
732
732
|
function set_page(newPage: number): void {
|
|
733
733
|
if (newPage >= 0 && newPage <= Math.ceil(pagination.value.count / pagination.value.limit_per_page)) {
|
|
734
|
-
|
|
734
|
+
pagination.value.current_page = newPage;
|
|
735
|
+
fetchDataWithDelay();
|
|
735
736
|
} else {
|
|
736
737
|
console.warn("Número de página inválido.");
|
|
737
738
|
}
|
|
@@ -4,7 +4,7 @@ import { onMounted, onUnmounted, readonly, ref } from 'vue';
|
|
|
4
4
|
* Um Composable para gerenciar a comunicação entre um iframe e sua janela pai.
|
|
5
5
|
* @param onMessageReceived - Uma função de callback que será executada quando uma mensagem for recebida do pai.
|
|
6
6
|
*/
|
|
7
|
-
export function useIframeCommunicator(onMessageReceived
|
|
7
|
+
export function useIframeCommunicator(onMessageReceived?: (event: MessageEvent) => void) {
|
|
8
8
|
|
|
9
9
|
// Uma ref reativa para saber se o app está rodando dentro de um iframe
|
|
10
10
|
const isInIframe = ref(window.parent !== window);
|
|
@@ -22,12 +22,16 @@ export function useIframeCommunicator(onMessageReceived: (event: MessageEvent) =
|
|
|
22
22
|
|
|
23
23
|
// Configura o ouvinte de eventos quando o componente é montado
|
|
24
24
|
onMounted(() => {
|
|
25
|
-
|
|
25
|
+
if (onMessageReceived){
|
|
26
|
+
window.addEventListener('message', onMessageReceived);
|
|
27
|
+
}
|
|
26
28
|
});
|
|
27
29
|
|
|
28
30
|
// Remove o ouvinte de eventos quando o componente é desmontado
|
|
29
31
|
onUnmounted(() => {
|
|
30
|
-
|
|
32
|
+
if (onMessageReceived){
|
|
33
|
+
window.removeEventListener('message', onMessageReceived);
|
|
34
|
+
}
|
|
31
35
|
});
|
|
32
36
|
|
|
33
37
|
// Retorna os valores e funções que o componente poderá usar
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface PaginationObject {
|
|
2
|
-
current_page: number;
|
|
3
|
-
count: number;
|
|
4
|
-
limit_per_page: number;
|
|
5
|
-
}
|
|
6
|
-
interface PaginationProps {
|
|
7
|
-
pagination: PaginationObject;
|
|
8
|
-
filtering?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: import('vue').DefineComponent<PaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
-
tradePage: () => any;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
13
|
-
onTradePage?: (() => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
filtering: boolean;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { VDataPageProps, ExposedFunctions } from '../types/v-data-page.ts';
|
|
2
|
-
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly onTradePage?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
readonly onBeforeFetch?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
readonly onAfterFetch?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onTradePage" | "onBeforeFetch" | "onAfterFetch"> & VDataPageProps & Partial<{}>> & import('vue').PublicProps;
|
|
8
|
-
expose(exposed: import('vue').ShallowUnwrapRef<ExposedFunctions>): void;
|
|
9
|
-
attrs: any;
|
|
10
|
-
slots: {
|
|
11
|
-
loading?(_: {
|
|
12
|
-
n: number;
|
|
13
|
-
}): any;
|
|
14
|
-
loading?(_: {}): any;
|
|
15
|
-
error?(_: {
|
|
16
|
-
error: any;
|
|
17
|
-
}): any;
|
|
18
|
-
empty?(_: {}): any;
|
|
19
|
-
body?(_: {
|
|
20
|
-
item: T;
|
|
21
|
-
}): any;
|
|
22
|
-
body?(_: {
|
|
23
|
-
item: T;
|
|
24
|
-
}): any;
|
|
25
|
-
'scroll-finish'?(_: {}): any;
|
|
26
|
-
pagination?(_: {
|
|
27
|
-
pagination: {
|
|
28
|
-
current_page: number;
|
|
29
|
-
count: number;
|
|
30
|
-
limit_per_page: number;
|
|
31
|
-
search: string;
|
|
32
|
-
filter: string;
|
|
33
|
-
};
|
|
34
|
-
tradePage: () => Promise<void>;
|
|
35
|
-
error: any;
|
|
36
|
-
}): any;
|
|
37
|
-
};
|
|
38
|
-
emit: (event: "tradePage" | "beforeFetch" | "afterFetch", ...args: any[]) => void;
|
|
39
|
-
}>) => import('vue').VNode & {
|
|
40
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
|
-
};
|
|
42
|
-
export default _default;
|
|
43
|
-
type __VLS_PrettifyLocal<T> = {
|
|
44
|
-
[K in keyof T]: T[K];
|
|
45
|
-
} & {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Ref, Component, WatchSource } from 'vue';
|
|
2
|
-
export interface VDataPageProps {
|
|
3
|
-
fetch: Function;
|
|
4
|
-
fetch_name?: string;
|
|
5
|
-
endpoint: string;
|
|
6
|
-
type_loading?: 'placeholder' | 'spiner-table' | 'spiner';
|
|
7
|
-
type_fetch?: 'pagination' | 'infinite-scroll' | 'none';
|
|
8
|
-
custom_loading?: Component | null;
|
|
9
|
-
deactivate_default_params?: boolean;
|
|
10
|
-
filter_param_name?: string;
|
|
11
|
-
search_param_name?: string;
|
|
12
|
-
page_param_name?: string;
|
|
13
|
-
page_size_param_name?: string;
|
|
14
|
-
add_params?: Object | Function;
|
|
15
|
-
data_key?: string;
|
|
16
|
-
total_key?: string;
|
|
17
|
-
list_filter?: any[];
|
|
18
|
-
first_text_page_size?: string;
|
|
19
|
-
second_text_page_size?: string;
|
|
20
|
-
class_container?: string;
|
|
21
|
-
class_loading_container?: string;
|
|
22
|
-
class_pagination?: string;
|
|
23
|
-
class_filters?: string;
|
|
24
|
-
min_loading_delay?: number;
|
|
25
|
-
retry_attempts?: number;
|
|
26
|
-
retry_delay?: number;
|
|
27
|
-
use_checkbox?: boolean;
|
|
28
|
-
item_key?: string;
|
|
29
|
-
limit_per_page?: number;
|
|
30
|
-
next_page_response_name?: string;
|
|
31
|
-
page_starts_at: number;
|
|
32
|
-
element_id?: string;
|
|
33
|
-
watch?: WatchSource[];
|
|
34
|
-
}
|
|
35
|
-
export interface PaginationObject {
|
|
36
|
-
current_page: number;
|
|
37
|
-
count: number;
|
|
38
|
-
limit_per_page: number;
|
|
39
|
-
search: string;
|
|
40
|
-
filter: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ExposedFunctions {
|
|
43
|
-
execute: () => void;
|
|
44
|
-
pagination: Ref<PaginationObject>;
|
|
45
|
-
default_params: Record<string, any>;
|
|
46
|
-
set_limit_per_page: (newLimit: number) => void;
|
|
47
|
-
set_search: (newSearch: string) => void;
|
|
48
|
-
set_filter: (newFilter: string) => void;
|
|
49
|
-
set_page: (newPage: number) => void;
|
|
50
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface PaginationObject {
|
|
2
|
-
current_page: number;
|
|
3
|
-
count: number;
|
|
4
|
-
limit_per_page: number;
|
|
5
|
-
}
|
|
6
|
-
interface PaginationProps {
|
|
7
|
-
pagination: PaginationObject;
|
|
8
|
-
filtering?: boolean;
|
|
9
|
-
page_starts_at?: number;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: import('vue').DefineComponent<PaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
|
-
tradePage: () => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
14
|
-
onTradePage?: (() => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
filtering: boolean;
|
|
17
|
-
page_starts_at: number;
|
|
18
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface SearchProps {
|
|
2
|
-
search: string;
|
|
3
|
-
filter?: string;
|
|
4
|
-
list_filter?: any[];
|
|
5
|
-
item_use?: number[];
|
|
6
|
-
}
|
|
7
|
-
declare const _default: import('vue').DefineComponent<SearchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
search: (...args: any[]) => void;
|
|
9
|
-
"update:search": (...args: any[]) => void;
|
|
10
|
-
"update:filter": (...args: any[]) => void;
|
|
11
|
-
}, string, import('vue').PublicProps, Readonly<SearchProps> & Readonly<{
|
|
12
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
13
|
-
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
|
|
14
|
-
"onUpdate:filter"?: ((...args: any[]) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
filter: string;
|
|
17
|
-
list_filter: any[];
|
|
18
|
-
item_use: number[];
|
|
19
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
-
export default _default;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
interface VColumnProps {
|
|
2
|
-
field?: string | null;
|
|
3
|
-
header: string;
|
|
4
|
-
type?: 'text' | 'img' | 'date' | 'html';
|
|
5
|
-
class_column?: string;
|
|
6
|
-
class_row?: string;
|
|
7
|
-
class_item?: string;
|
|
8
|
-
format?: 'complete' | 'simple';
|
|
9
|
-
deactivate_img_preview?: boolean;
|
|
10
|
-
limite_text?: number | string | null;
|
|
11
|
-
transform_function?: ((value: any) => any) | null;
|
|
12
|
-
click?: Function | null;
|
|
13
|
-
locked?: boolean;
|
|
14
|
-
use_ordering?: boolean;
|
|
15
|
-
param_ordering?: string;
|
|
16
|
-
decreasing_value?: string;
|
|
17
|
-
increasing_value?: string;
|
|
18
|
-
}
|
|
19
|
-
declare function __VLS_template(): {
|
|
20
|
-
attrs: Partial<{}>;
|
|
21
|
-
slots: Readonly<{
|
|
22
|
-
body?: () => any;
|
|
23
|
-
}> & {
|
|
24
|
-
body?: () => any;
|
|
25
|
-
};
|
|
26
|
-
refs: {};
|
|
27
|
-
rootEl: any;
|
|
28
|
-
};
|
|
29
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
-
declare const __VLS_component: import('vue').DefineComponent<VColumnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VColumnProps> & Readonly<{}>, {
|
|
31
|
-
click: Function | null;
|
|
32
|
-
field: string | null;
|
|
33
|
-
type: "text" | "img" | "date" | "html";
|
|
34
|
-
class_column: string;
|
|
35
|
-
class_row: string;
|
|
36
|
-
class_item: string;
|
|
37
|
-
format: "complete" | "simple";
|
|
38
|
-
deactivate_img_preview: boolean;
|
|
39
|
-
limite_text: number | string | null;
|
|
40
|
-
transform_function: ((value: any) => any) | null;
|
|
41
|
-
locked: boolean;
|
|
42
|
-
use_ordering: boolean;
|
|
43
|
-
param_ordering: string;
|
|
44
|
-
decreasing_value: string;
|
|
45
|
-
increasing_value: string;
|
|
46
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
47
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
-
export default _default;
|
|
49
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
-
new (): {
|
|
51
|
-
$slots: S;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VDataTableProps, ExposedFunctions } from '../types/v-data-table.ts';
|
|
2
|
-
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & VDataTableProps & Partial<{}>> & import('vue').PublicProps;
|
|
4
|
-
expose(exposed: import('vue').ShallowUnwrapRef<ExposedFunctions<T>>): void;
|
|
5
|
-
attrs: any;
|
|
6
|
-
slots: {
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
pageSize?(_: {
|
|
9
|
-
changePageSize: (event: Event) => void;
|
|
10
|
-
limit_per_page: number;
|
|
11
|
-
}): any;
|
|
12
|
-
fieldMiddle?(_: {}): any;
|
|
13
|
-
'item-selected-info'?(_: {
|
|
14
|
-
selected_items: T[];
|
|
15
|
-
clearSelection: () => never[];
|
|
16
|
-
}): any;
|
|
17
|
-
pagination?(_: {
|
|
18
|
-
pagination: {
|
|
19
|
-
current_page: number;
|
|
20
|
-
count: number;
|
|
21
|
-
limit_per_page: number;
|
|
22
|
-
search: string;
|
|
23
|
-
filter: string;
|
|
24
|
-
};
|
|
25
|
-
tradePage: () => void;
|
|
26
|
-
error: any;
|
|
27
|
-
}): any;
|
|
28
|
-
};
|
|
29
|
-
emit: {};
|
|
30
|
-
}>) => import('vue').VNode & {
|
|
31
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_PrettifyLocal<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'vue';
|
|
2
|
-
export declare function useImagePreview(): {
|
|
3
|
-
isHovering: import('vue').Ref<boolean, boolean>;
|
|
4
|
-
previewSrc: import('vue').Ref<string, string>;
|
|
5
|
-
previewStyle: import('vue').ComputedRef<CSSProperties>;
|
|
6
|
-
handleMouseOver: (event: MouseEvent, src: string) => void;
|
|
7
|
-
handleMouseMove: (event: MouseEvent) => void;
|
|
8
|
-
handleMouseLeave: () => void;
|
|
9
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { InjectionKey, Slot } from 'vue';
|
|
2
|
-
export interface ColumnConfiguration {
|
|
3
|
-
field: string | null;
|
|
4
|
-
header: string;
|
|
5
|
-
type: 'text' | 'img' | 'date' | 'html';
|
|
6
|
-
class_column: string;
|
|
7
|
-
class_row: string;
|
|
8
|
-
class_item: string;
|
|
9
|
-
transform_function: ((value: any) => any) | null;
|
|
10
|
-
bodySlot?: Slot;
|
|
11
|
-
limite_text?: number;
|
|
12
|
-
deactivate_img_preview?: boolean;
|
|
13
|
-
format?: 'complete' | 'simple';
|
|
14
|
-
click: Function | null;
|
|
15
|
-
locked: boolean;
|
|
16
|
-
use_ordering: boolean;
|
|
17
|
-
param_ordering: string;
|
|
18
|
-
decreasing_value: string;
|
|
19
|
-
increasing_value: string;
|
|
20
|
-
}
|
|
21
|
-
export interface DataTableApi {
|
|
22
|
-
addColumn: (config: ColumnConfiguration) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const dataTableApiKey: InjectionKey<DataTableApi>;
|
|
25
|
-
export interface PaginationObject {
|
|
26
|
-
current_page: number;
|
|
27
|
-
count: number;
|
|
28
|
-
limit_per_page: number;
|
|
29
|
-
search: string;
|
|
30
|
-
filter: string;
|
|
31
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Ref, ComputedRef, Component } from 'vue';
|
|
2
|
-
import { PaginationObject } from '../keys';
|
|
3
|
-
export type { PaginationObject } from '../keys';
|
|
4
|
-
export interface VDataTableProps {
|
|
5
|
-
fetch: Function;
|
|
6
|
-
fetch_name?: string;
|
|
7
|
-
endpoint: string;
|
|
8
|
-
type_loading?: 'placeholder' | 'spiner-table' | 'spiner';
|
|
9
|
-
custom_loading?: Component | null;
|
|
10
|
-
deactivate_default_params?: boolean;
|
|
11
|
-
filter_param_name?: string;
|
|
12
|
-
search_param_name?: string;
|
|
13
|
-
page_param_name?: string;
|
|
14
|
-
page_size_param_name?: string;
|
|
15
|
-
add_params?: Object | Function;
|
|
16
|
-
data_key?: string;
|
|
17
|
-
total_key?: string;
|
|
18
|
-
list_filter?: any[];
|
|
19
|
-
first_text_page_size?: string;
|
|
20
|
-
second_text_page_size?: string;
|
|
21
|
-
class_table?: string;
|
|
22
|
-
class_content?: string;
|
|
23
|
-
class_container?: string;
|
|
24
|
-
class_pagination?: string;
|
|
25
|
-
class_filters?: string;
|
|
26
|
-
min_loading_delay?: number;
|
|
27
|
-
retry_attempts?: number;
|
|
28
|
-
retry_delay?: number;
|
|
29
|
-
use_checkbox?: boolean;
|
|
30
|
-
item_key?: string;
|
|
31
|
-
limit_per_page?: number;
|
|
32
|
-
page_starts_at?: number;
|
|
33
|
-
deactivate_selected_info?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface ExposedFunctions<T extends Record<string, any>> {
|
|
36
|
-
execute: () => void;
|
|
37
|
-
reSearch: () => void;
|
|
38
|
-
pagination: Ref<PaginationObject>;
|
|
39
|
-
default_params: Record<string, any>;
|
|
40
|
-
selected_items: Ref<T[]>;
|
|
41
|
-
atLeastOneSelected: ComputedRef<boolean>;
|
|
42
|
-
set_limit_per_page: (newLimit: number) => void;
|
|
43
|
-
set_search: (newSearch: string) => void;
|
|
44
|
-
set_filter: (newFilter: string) => void;
|
|
45
|
-
set_page: (newPage: number) => void;
|
|
46
|
-
}
|
package/dist/core/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { SistecPlugin } from './plugin';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Um Composable para gerenciar a comunicação entre um iframe e sua janela pai.
|
|
3
|
-
* @param onMessageReceived - Uma função de callback que será executada quando uma mensagem for recebida do pai.
|
|
4
|
-
*/
|
|
5
|
-
export declare function useIframeCommunicator(onMessageReceived: (event: MessageEvent) => void): {
|
|
6
|
-
isInIframe: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
7
|
-
sendMessage: (message: any, targetOrigin?: string) => void;
|
|
8
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
content?: any;
|
|
3
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
content?: any;
|
|
5
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
6
|
-
export default _default;
|
package/dist/toast/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useToastStore } from './useToastStore';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define os tipos de toast aceitos.
|
|
3
|
-
* 1 = success
|
|
4
|
-
* 2 = error
|
|
5
|
-
* 3 = info
|
|
6
|
-
*/
|
|
7
|
-
type ToastStoreType = 1 | 2 | 3;
|
|
8
|
-
export declare const useToastStore: import('pinia').StoreDefinition<"toastStore", Pick<{
|
|
9
|
-
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
10
|
-
}, never>, Pick<{
|
|
11
|
-
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
12
|
-
}, never>, Pick<{
|
|
13
|
-
showToast: (title: string, body: string, type: ToastStoreType) => void;
|
|
14
|
-
}, "showToast">>;
|
|
15
|
-
export {};
|