v-sistec-features 1.18.0-beta.1 → 1.18.0-beta.3

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.
@@ -8,8 +8,8 @@ tradePage: () => any;
8
8
  }, string, PublicProps, Readonly<PaginationProps> & Readonly<{
9
9
  onTradePage?: (() => any) | undefined;
10
10
  }>, {
11
- filtering: boolean;
12
11
  page_starts_at: number;
12
+ filtering: boolean;
13
13
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
14
 
15
15
  declare interface PaginationObject {
package/dist/core.d.ts CHANGED
@@ -1,7 +1,61 @@
1
1
  import { App } from 'vue';
2
+ import { Component } from 'vue';
3
+ import { MaybeRefOrGetter } from 'vue';
4
+ import { PluginOptions } from 'vue-toastification';
5
+
6
+ declare type DataTableGlobalConfig = Partial<VDataTableProps>;
7
+
8
+ declare interface SistecOptions {
9
+ dataTable?: DataTableGlobalConfig;
10
+ toast?: PluginOptions;
11
+ }
2
12
 
3
13
  export declare const SistecPlugin: {
4
- install: (app: App, _options?: any) => void;
14
+ install: (app: App, options?: SistecOptions) => void;
5
15
  };
6
16
 
17
+ declare interface VDataTableProps {
18
+ fetch: Function;
19
+ fetch_name?: string;
20
+ endpoint: string;
21
+ type_loading?: 'placeholder' | 'spiner-table' | 'spiner';
22
+ custom_loading?: Component | null;
23
+ deactivate_default_params?: boolean;
24
+ filter_param_name?: string;
25
+ search_param_name?: string;
26
+ page_param_name?: string;
27
+ page_size_param_name?: string;
28
+ add_params?: Object | Function;
29
+ data_key?: string;
30
+ total_key?: string;
31
+ list_filter?: any[];
32
+ first_text_page_size?: string;
33
+ second_text_page_size?: string;
34
+ class_table?: string;
35
+ class_content?: string;
36
+ class_container?: string;
37
+ class_pagination?: string;
38
+ class_filters?: string;
39
+ class_page_size?: string;
40
+ min_loading_delay?: number;
41
+ retry_attempts?: number;
42
+ retry_delay?: number;
43
+ use_checkbox?: boolean;
44
+ use_expandable_items?: boolean;
45
+ close_expanded_item_on_expand_new?: boolean;
46
+ scroll_to_expanded_item?: boolean;
47
+ type_animation_expand?: 'fade' | 'expand' | 'none';
48
+ deactivate_animation_expand?: boolean;
49
+ type_button_expand?: 'arrow' | 'plus';
50
+ deactivate_search_empty?: boolean;
51
+ item_key?: string;
52
+ limit_per_page?: number;
53
+ page_starts_at?: number;
54
+ deactivate_selected_info?: boolean;
55
+ immediate?: boolean;
56
+ placeholder_search?: string;
57
+ deactivate_search_on_clear?: boolean;
58
+ disable_request?: MaybeRefOrGetter<boolean>;
59
+ }
60
+
7
61
  export { }
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as o } from "./plugin-C0f4EPnK.js";
1
+ import { S as o } from "./plugin-BwqrOSD_.js";
2
2
  export {
3
3
  o as SistecPlugin
4
4
  };
@@ -0,0 +1,4 @@
1
+ const a = Symbol("DataTableConfig");
2
+ export {
3
+ a as D
4
+ };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,18 @@
1
1
  import { App } from 'vue';
2
+ import { Component } from 'vue';
3
+ import { MaybeRefOrGetter } from 'vue';
4
+ import { PluginOptions } from 'vue-toastification';
2
5
  import { Ref } from 'vue';
3
6
 
7
+ declare type DataTableGlobalConfig = Partial<VDataTableProps>;
8
+
9
+ declare interface SistecOptions {
10
+ dataTable?: DataTableGlobalConfig;
11
+ toast?: PluginOptions;
12
+ }
13
+
4
14
  export declare const SistecPlugin: {
5
- install: (app: App, _options?: any) => void;
15
+ install: (app: App, options?: SistecOptions) => void;
6
16
  };
7
17
 
8
18
  /**
@@ -24,6 +34,50 @@ export declare function useTheme(): {
24
34
  themePrimary: Readonly<Ref<string, string>>;
25
35
  };
26
36
 
37
+ declare interface VDataTableProps {
38
+ fetch: Function;
39
+ fetch_name?: string;
40
+ endpoint: string;
41
+ type_loading?: 'placeholder' | 'spiner-table' | 'spiner';
42
+ custom_loading?: Component | null;
43
+ deactivate_default_params?: boolean;
44
+ filter_param_name?: string;
45
+ search_param_name?: string;
46
+ page_param_name?: string;
47
+ page_size_param_name?: string;
48
+ add_params?: Object | Function;
49
+ data_key?: string;
50
+ total_key?: string;
51
+ list_filter?: any[];
52
+ first_text_page_size?: string;
53
+ second_text_page_size?: string;
54
+ class_table?: string;
55
+ class_content?: string;
56
+ class_container?: string;
57
+ class_pagination?: string;
58
+ class_filters?: string;
59
+ class_page_size?: string;
60
+ min_loading_delay?: number;
61
+ retry_attempts?: number;
62
+ retry_delay?: number;
63
+ use_checkbox?: boolean;
64
+ use_expandable_items?: boolean;
65
+ close_expanded_item_on_expand_new?: boolean;
66
+ scroll_to_expanded_item?: boolean;
67
+ type_animation_expand?: 'fade' | 'expand' | 'none';
68
+ deactivate_animation_expand?: boolean;
69
+ type_button_expand?: 'arrow' | 'plus';
70
+ deactivate_search_empty?: boolean;
71
+ item_key?: string;
72
+ limit_per_page?: number;
73
+ page_starts_at?: number;
74
+ deactivate_selected_info?: boolean;
75
+ immediate?: boolean;
76
+ placeholder_search?: string;
77
+ deactivate_search_on_clear?: boolean;
78
+ disable_request?: MaybeRefOrGetter<boolean>;
79
+ }
80
+
27
81
 
28
82
  export * from "@tabler/icons-vue";
29
83
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "./plugin-C0f4EPnK.js";
1
+ import { S as r } from "./plugin-BwqrOSD_.js";
2
2
  import { u as a, a as s } from "./useThemeFromParent-D38ZZSdw.js";
3
3
  export * from "@tabler/icons-vue";
4
4
  export {