v-sistec-features 1.7.0 → 1.8.0
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/useIframeCommunicator.d.ts → iframeCommunicator.d.ts} +18 -8
- package/dist/index.d.ts +26 -3
- package/dist/toast.d.ts +19 -0
- package/dist/v-sistec-features.css +1 -1
- package/dist/vDataPage.d.ts +109 -0
- package/dist/vDataPage.js +262 -360
- package/dist/vDataTable.d.ts +161 -0
- package/dist/vDataTable.js +381 -488
- package/package.json +6 -2
- package/src/DataPageVue/components/VDataPage.vue +17 -16
- package/src/DataPageVue/types/v-data-page.ts +1 -0
- package/src/DatatableVue/components/VDataTable.vue +3 -2
- package/src/Pagination/index.ts +4 -0
- 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/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.0",
|
|
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"
|
|
@@ -74,7 +78,7 @@
|
|
|
74
78
|
"dependencies": {
|
|
75
79
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
76
80
|
"@tabler/core": "^1.4.0",
|
|
77
|
-
"v-required": "^2.0
|
|
81
|
+
"v-required": "^2.1.0",
|
|
78
82
|
"vue-toastification": "^2.0.0-rc.5",
|
|
79
83
|
"v3-infinite-loading": "^1.3.2",
|
|
80
84
|
"pinia": "^2.1.0 || ^3.0.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<template>
|
|
1
|
+
<template>{{ props.limit_per_page }}
|
|
2
|
+
{{ pagination.limit_per_page }}
|
|
2
3
|
<div>
|
|
3
4
|
<template v-if="type_fetch === 'pagination'" class="">
|
|
4
5
|
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
<slot v-if="type_fetch === 'pagination'" name="pagination" :pagination="pagination"
|
|
59
60
|
:tradePage="fetchDataWithDelay" :error="error">
|
|
60
61
|
<div v-if="!error && pagination.count > 0" class="px-3" :class="props.class_pagination">
|
|
61
|
-
<
|
|
62
|
+
<Pagination :filtering="true" :page_starts_at="props.page_starts_at" :pagination="pagination" @tradePage="tradePageEmit" />
|
|
62
63
|
</div>
|
|
63
64
|
</slot>
|
|
64
65
|
</div>
|
|
@@ -68,7 +69,8 @@
|
|
|
68
69
|
<script setup lang="ts" generic="T extends Record<string, any>">
|
|
69
70
|
import { readonly, ref, isRef, computed, watch, nextTick, type Ref, type WatchSource } from 'vue';
|
|
70
71
|
import InfiniteLoading from "v3-infinite-loading";
|
|
71
|
-
import
|
|
72
|
+
import Pagination from '@/Pagination/Pagination.vue';
|
|
73
|
+
|
|
72
74
|
import type { VDataPageProps, ExposedFunctions, PaginationObject } from '../types/v-data-page.ts';
|
|
73
75
|
// import Search from './SearchDatatable.vue';
|
|
74
76
|
|
|
@@ -206,7 +208,10 @@ watch(response, (newResponse: any) => {
|
|
|
206
208
|
}
|
|
207
209
|
}, { immediate: true });
|
|
208
210
|
|
|
209
|
-
|
|
211
|
+
function reSearch() {
|
|
212
|
+
pagination.value.current_page = props.page_starts_at;
|
|
213
|
+
fetchDataWithDelay();
|
|
214
|
+
}
|
|
210
215
|
// =======================================================
|
|
211
216
|
// 6. MÉTODOS
|
|
212
217
|
// =======================================================
|
|
@@ -279,25 +284,22 @@ async function initDataInfinite() {
|
|
|
279
284
|
function set_limit_per_page(newLimit: number): void {
|
|
280
285
|
if (newLimit > 0) {
|
|
281
286
|
pagination.value.limit_per_page = newLimit;
|
|
282
|
-
|
|
283
|
-
fetchDataWithDelay();
|
|
287
|
+
reSearch();
|
|
284
288
|
} else {
|
|
285
289
|
console.warn("O limite deve ser um número maior que zero.");
|
|
286
290
|
}
|
|
287
291
|
}
|
|
288
292
|
function set_search(newSearch: string): void {
|
|
289
293
|
pagination.value.search = newSearch;
|
|
290
|
-
|
|
291
|
-
fetchDataWithDelay();
|
|
294
|
+
reSearch();
|
|
292
295
|
}
|
|
293
296
|
function set_filter(newFilter: string): void {
|
|
294
297
|
pagination.value.filter = newFilter;
|
|
295
|
-
|
|
296
|
-
fetchDataWithDelay();
|
|
298
|
+
reSearch();
|
|
297
299
|
}
|
|
298
300
|
function set_page(newPage: number): void {
|
|
299
|
-
if (newPage >=
|
|
300
|
-
pagination.value.current_page = newPage
|
|
301
|
+
if (newPage >= 0 && newPage <= Math.ceil(pagination.value.count / pagination.value.limit_per_page)) {
|
|
302
|
+
pagination.value.current_page = newPage;
|
|
301
303
|
fetchDataWithDelay();
|
|
302
304
|
} else {
|
|
303
305
|
console.warn("Número de página inválido.");
|
|
@@ -313,6 +315,7 @@ defineExpose<
|
|
|
313
315
|
set_search: set_search,
|
|
314
316
|
set_filter: set_filter,
|
|
315
317
|
set_page: set_page,
|
|
318
|
+
reSearch: reSearch,
|
|
316
319
|
default_params
|
|
317
320
|
});
|
|
318
321
|
|
|
@@ -465,8 +468,7 @@ watch(() => pagination.value.current_page, () => {
|
|
|
465
468
|
if (watchSources.length > 0) {
|
|
466
469
|
if (props.type_fetch === 'pagination') {
|
|
467
470
|
watch(watchSources, () => {
|
|
468
|
-
|
|
469
|
-
fetchDataWithDelay();
|
|
471
|
+
reSearch();
|
|
470
472
|
}, { deep: true });
|
|
471
473
|
} else if (props.type_fetch === 'infinite-scroll') {
|
|
472
474
|
watch(watchSources, () => {
|
|
@@ -504,8 +506,7 @@ watch(
|
|
|
504
506
|
})
|
|
505
507
|
} else {
|
|
506
508
|
if (props.type_fetch === 'pagination') {
|
|
507
|
-
|
|
508
|
-
fetchDataWithDelay();
|
|
509
|
+
reSearch();
|
|
509
510
|
} else if (props.type_fetch === 'infinite-scroll') {
|
|
510
511
|
dadosInicializados.value = false;
|
|
511
512
|
initDataInfinite();
|
|
@@ -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
|
}
|
|
@@ -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,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 {};
|