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.
Files changed (38) hide show
  1. package/dist/Pagination-DtVDFQ07.js +118 -0
  2. package/dist/Pagination.d.ts +27 -0
  3. package/dist/Pagination.js +4 -0
  4. package/dist/{core/plugin.d.ts → core.d.ts} +7 -5
  5. package/dist/{iframeCommunicator/useIframeCommunicator.d.ts → iframeCommunicator.d.ts} +18 -8
  6. package/dist/index.d.ts +26 -3
  7. package/dist/toast.d.ts +19 -0
  8. package/dist/v-sistec-features.css +1 -1
  9. package/dist/vDataPage.d.ts +109 -0
  10. package/dist/vDataPage.js +262 -360
  11. package/dist/vDataTable.d.ts +161 -0
  12. package/dist/vDataTable.js +381 -488
  13. package/package.json +6 -2
  14. package/src/DataPageVue/components/VDataPage.vue +17 -16
  15. package/src/DataPageVue/types/v-data-page.ts +1 -0
  16. package/src/DatatableVue/components/VDataTable.vue +3 -2
  17. package/src/Pagination/index.ts +4 -0
  18. package/dist/DataPageVue/components/PaginationDatatable.vue.d.ts +0 -17
  19. package/dist/DataPageVue/components/VDataPage.vue.d.ts +0 -45
  20. package/dist/DataPageVue/index.d.ts +0 -2
  21. package/dist/DataPageVue/types/v-data-page.d.ts +0 -50
  22. package/dist/DatatableVue/components/PaginationDatatable.vue.d.ts +0 -19
  23. package/dist/DatatableVue/components/SearchDatatable.vue.d.ts +0 -20
  24. package/dist/DatatableVue/components/VColumn.vue.d.ts +0 -53
  25. package/dist/DatatableVue/components/VDataTable.vue.d.ts +0 -36
  26. package/dist/DatatableVue/composables/useImagePreview.d.ts +0 -9
  27. package/dist/DatatableVue/index.d.ts +0 -3
  28. package/dist/DatatableVue/keys.d.ts +0 -31
  29. package/dist/DatatableVue/types/v-data-table.d.ts +0 -46
  30. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  31. package/dist/core/index.d.ts +0 -1
  32. package/dist/iframeCommunicator/index.d.ts +0 -2
  33. package/dist/iframeCommunicator/useThemeFromParent.d.ts +0 -5
  34. package/dist/toast/components/ToastComponent.vue.d.ts +0 -6
  35. package/dist/toast/index.d.ts +0 -1
  36. package/dist/toast/useToastStore.d.ts +0 -15
  37. package/src/DataPageVue/components/PaginationDatatable.vue +0 -222
  38. /package/src/{DatatableVue/components/PaginationDatatable.vue → Pagination/Pagination.vue} +0 -0
@@ -0,0 +1,161 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { Component } from 'vue';
3
+ import { ComponentCustomProps } from 'vue';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { ComputedRef } from 'vue';
7
+ import { DefineComponent } from 'vue';
8
+ import { PublicProps } from 'vue';
9
+ import { Ref } from 'vue';
10
+ import { ShallowUnwrapRef } from 'vue';
11
+ import { VNode } from 'vue';
12
+ import { VNodeProps } from 'vue';
13
+
14
+ declare const __VLS_component: DefineComponent<VColumnProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<VColumnProps> & Readonly<{}>, {
15
+ click: Function | null;
16
+ field: string | null;
17
+ type: "text" | "img" | "date" | "html";
18
+ class_column: string;
19
+ class_row: string;
20
+ class_item: string;
21
+ format: "complete" | "simple";
22
+ deactivate_img_preview: boolean;
23
+ limite_text: number | string | null;
24
+ transform_function: ((value: any) => any) | null;
25
+ locked: boolean;
26
+ use_ordering: boolean;
27
+ param_ordering: string;
28
+ decreasing_value: string;
29
+ increasing_value: string;
30
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
31
+
32
+ declare type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+
36
+ declare function __VLS_template(): {
37
+ attrs: Partial<{}>;
38
+ slots: Readonly<{
39
+ body?: () => any;
40
+ }> & {
41
+ body?: () => any;
42
+ };
43
+ refs: {};
44
+ rootEl: any;
45
+ };
46
+
47
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
48
+
49
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
54
+
55
+ declare interface ExposedFunctions<T extends Record<string, any>> {
56
+ execute: () => void;
57
+ reSearch: () => void;
58
+ pagination: Ref<PaginationObject>;
59
+ default_params: Record<string, any>;
60
+ selected_items: Ref<T[]>;
61
+ atLeastOneSelected: ComputedRef<boolean>;
62
+ set_limit_per_page: (newLimit: number) => void;
63
+ set_search: (newSearch: string) => void;
64
+ set_filter: (newFilter: string) => void;
65
+ set_page: (newPage: number) => void;
66
+ }
67
+
68
+ declare interface PaginationObject {
69
+ current_page: number;
70
+ count: number;
71
+ limit_per_page: number;
72
+ search: string;
73
+ filter: string;
74
+ }
75
+
76
+ export declare const VColumn: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
77
+
78
+ declare interface VColumnProps {
79
+ field?: string | null;
80
+ header: string;
81
+ type?: 'text' | 'img' | 'date' | 'html';
82
+ class_column?: string;
83
+ class_row?: string;
84
+ class_item?: string;
85
+ format?: 'complete' | 'simple';
86
+ deactivate_img_preview?: boolean;
87
+ limite_text?: number | string | null;
88
+ transform_function?: ((value: any) => any) | null;
89
+ click?: Function | null;
90
+ locked?: boolean;
91
+ use_ordering?: boolean;
92
+ param_ordering?: string;
93
+ decreasing_value?: string;
94
+ increasing_value?: string;
95
+ }
96
+
97
+ export declare const VDataTable: <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<{
98
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & VDataTableProps & Partial<{}>> & PublicProps;
99
+ expose(exposed: ShallowUnwrapRef<ExposedFunctions<T>>): void;
100
+ attrs: any;
101
+ slots: {
102
+ default?(_: {}): any;
103
+ pageSize?(_: {
104
+ changePageSize: (event: Event) => void;
105
+ limit_per_page: number;
106
+ }): any;
107
+ fieldMiddle?(_: {}): any;
108
+ 'item-selected-info'?(_: {
109
+ selected_items: T[];
110
+ clearSelection: () => never[];
111
+ }): any;
112
+ pagination?(_: {
113
+ pagination: {
114
+ current_page: number;
115
+ count: number;
116
+ limit_per_page: number;
117
+ search: string;
118
+ filter: string;
119
+ };
120
+ tradePage: () => void;
121
+ error: any;
122
+ }): any;
123
+ };
124
+ emit: {};
125
+ }>) => VNode & {
126
+ __ctx?: Awaited<typeof __VLS_setup>;
127
+ };
128
+
129
+ declare interface VDataTableProps {
130
+ fetch: Function;
131
+ fetch_name?: string;
132
+ endpoint: string;
133
+ type_loading?: 'placeholder' | 'spiner-table' | 'spiner';
134
+ custom_loading?: Component | null;
135
+ deactivate_default_params?: boolean;
136
+ filter_param_name?: string;
137
+ search_param_name?: string;
138
+ page_param_name?: string;
139
+ page_size_param_name?: string;
140
+ add_params?: Object | Function;
141
+ data_key?: string;
142
+ total_key?: string;
143
+ list_filter?: any[];
144
+ first_text_page_size?: string;
145
+ second_text_page_size?: string;
146
+ class_table?: string;
147
+ class_content?: string;
148
+ class_container?: string;
149
+ class_pagination?: string;
150
+ class_filters?: string;
151
+ min_loading_delay?: number;
152
+ retry_attempts?: number;
153
+ retry_delay?: number;
154
+ use_checkbox?: boolean;
155
+ item_key?: string;
156
+ limit_per_page?: number;
157
+ page_starts_at?: number;
158
+ deactivate_selected_info?: boolean;
159
+ }
160
+
161
+ export { }