v-sistec-features 1.6.0 → 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.
Files changed (34) hide show
  1. package/dist/DataPageVue/components/PaginationDatatable.vue.d.ts +17 -0
  2. package/dist/DataPageVue/components/VDataPage.vue.d.ts +45 -0
  3. package/dist/DataPageVue/index.d.ts +2 -0
  4. package/dist/DataPageVue/types/v-data-page.d.ts +50 -0
  5. package/dist/DatatableVue/components/PaginationDatatable.vue.d.ts +19 -0
  6. package/dist/DatatableVue/components/SearchDatatable.vue.d.ts +20 -0
  7. package/dist/DatatableVue/components/VColumn.vue.d.ts +53 -0
  8. package/dist/DatatableVue/components/VDataTable.vue.d.ts +36 -0
  9. package/dist/DatatableVue/composables/useImagePreview.d.ts +9 -0
  10. package/dist/DatatableVue/index.d.ts +3 -0
  11. package/dist/DatatableVue/keys.d.ts +31 -0
  12. package/dist/DatatableVue/types/v-data-table.d.ts +46 -0
  13. package/dist/core/index.d.ts +1 -0
  14. package/dist/core/plugin.d.ts +5 -0
  15. package/dist/core.js +2 -2083
  16. package/dist/iframeCommunicator/index.d.ts +2 -0
  17. package/dist/iframeCommunicator/useIframeCommunicator.d.ts +8 -0
  18. package/dist/iframeCommunicator/useThemeFromParent.d.ts +5 -0
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.js +1 -1
  21. package/dist/plugin-CS5DnmVr.js +2086 -0
  22. package/dist/v-sistec-features.css +1 -1
  23. package/dist/vDataPage.js +1 -1
  24. package/dist/vDataTable.js +476 -456
  25. package/package.json +4 -1
  26. package/src/DataPageVue/components/VDataPage.vue +3 -81
  27. package/src/DataPageVue/types/v-data-page.ts +82 -0
  28. package/src/DatatableVue/components/PaginationDatatable.vue +21 -17
  29. package/src/DatatableVue/components/SearchDatatable.vue +28 -6
  30. package/src/DatatableVue/components/VColumn.vue +4 -1
  31. package/src/DatatableVue/components/VDataTable.vue +42 -93
  32. package/src/DatatableVue/types/v-data-table.ts +76 -0
  33. package/src/assets/v-required-style.css +76 -0
  34. package/src/core/plugin.ts +4 -2
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,45 @@
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
+ } & {};
@@ -0,0 +1,2 @@
1
+ import { default as VDataPage } from './components/VDataPage.vue';
2
+ export { VDataPage };
@@ -0,0 +1,50 @@
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
+ }
@@ -0,0 +1,19 @@
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;
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,53 @@
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
+ };
@@ -0,0 +1,36 @@
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
+ } & {};
@@ -0,0 +1,9 @@
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
+ };
@@ -0,0 +1,3 @@
1
+ import { default as VColumn } from './components/VColumn.vue';
2
+ import { default as VDataTable } from './components/VDataTable.vue';
3
+ export { VDataTable, VColumn };
@@ -0,0 +1,31 @@
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
+ }
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1 @@
1
+ export { SistecPlugin } from './plugin';
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ declare const SistecPlugin: {
3
+ install: (app: App, _options?: any) => void;
4
+ };
5
+ export { SistecPlugin };