@amirjalili1374/ui-kit 1.10.7 → 1.10.9

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.
@@ -1,6 +1,8 @@
1
1
  declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ "suggest-language-change": (language: "fa" | "en") => any;
2
3
  save: (payload: string) => any;
3
4
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
+ "onSuggest-language-change"?: (language: "fa" | "en") => any;
4
6
  onSave?: (payload: string) => any;
5
7
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
8
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,5 @@
1
1
  import { type TextFieldHeight, type TextFieldVariant } from './AppCustomizerControls.vue';
2
+ import { type AppDirection, type AppLanguage } from '../../utils/customizerPreferences';
2
3
  export interface CustomizerThemeOption {
3
4
  themeName: string;
4
5
  primary: string;
@@ -21,6 +22,8 @@ type __VLS_Props = {
21
22
  menuOrientation: MenuOrientation;
22
23
  surfaceStyle?: SurfaceStyle;
23
24
  contentWidth?: ContentWidth;
25
+ language?: AppLanguage;
26
+ direction?: AppDirection;
24
27
  inputBg?: boolean;
25
28
  layoutType?: string;
26
29
  width?: number;
@@ -40,6 +43,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
40
43
  "update:menuOrientation": (value: MenuOrientation) => any;
41
44
  "update:surfaceStyle": (value: SurfaceStyle) => any;
42
45
  "update:contentWidth": (value: ContentWidth) => any;
46
+ "update:direction": (value: AppDirection) => any;
47
+ "suggest-language-change": (language: AppLanguage) => any;
43
48
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
44
49
  onReset?: () => any;
45
50
  "onUpdate:modelValue"?: (value: boolean) => any;
@@ -54,12 +59,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
54
59
  "onUpdate:menuOrientation"?: (value: MenuOrientation) => any;
55
60
  "onUpdate:surfaceStyle"?: (value: SurfaceStyle) => any;
56
61
  "onUpdate:contentWidth"?: (value: ContentWidth) => any;
62
+ "onUpdate:direction"?: (value: AppDirection) => any;
63
+ "onSuggest-language-change"?: (language: AppLanguage) => any;
57
64
  }>, {
58
65
  width: number;
66
+ direction: AppDirection;
59
67
  inputBg: boolean;
60
68
  layoutType: string;
61
69
  surfaceStyle: SurfaceStyle;
62
70
  contentWidth: ContentWidth;
71
+ language: AppLanguage;
63
72
  fontLabel: (font: string) => string;
64
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
74
  declare const _default: typeof __VLS_export;
@@ -11,6 +11,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
11
11
  type: PropType<"bar" | "menu">;
12
12
  default: string;
13
13
  };
14
+ /** Maximum number of top-level navigation items shown directly in the desktop bar. */
15
+ maxVisible: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
14
19
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
20
  /** Already-filtered navigation items supplied by the consuming application. */
16
21
  items: {
@@ -22,9 +27,15 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
22
27
  type: PropType<"bar" | "menu">;
23
28
  default: string;
24
29
  };
30
+ /** Maximum number of top-level navigation items shown directly in the desktop bar. */
31
+ maxVisible: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
25
35
  }>> & Readonly<{}>, {
26
36
  items: MenuItem[];
27
37
  display: "menu" | "bar";
38
+ maxVisible: number;
28
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
40
  declare const _default: typeof __VLS_export;
30
41
  export default _default;
@@ -9,15 +9,19 @@ interface Props extends Omit<DataTableProps, 'routes' | 'filters'> {
9
9
  filters?: Record<string, any>;
10
10
  /** Load next page when scrolling near the bottom (requires showPagination) */
11
11
  enableInfiniteScroll?: boolean;
12
+ /** Shows a settings menu that lets the user toggle data columns. */
13
+ settings?: boolean;
14
+ /** Controlled list of visible data-column keys. Omit to keep all columns visible. */
15
+ visibleColumns?: string[];
12
16
  }
13
- declare var __VLS_156: {
17
+ declare var __VLS_261: {
14
18
  applyFilter: () => void;
15
19
  resetFilter: () => void;
16
20
  hasActiveFilters: boolean;
17
21
  filterModel: Record<string, any>;
18
22
  };
19
23
  type __VLS_Slots = {} & {
20
- 'inline-filter-actions'?: (props: typeof __VLS_156) => any;
24
+ 'inline-filter-actions'?: (props: typeof __VLS_261) => any;
21
25
  };
22
26
  declare const __VLS_base: import("vue").DefineComponent<Props, {
23
27
  fetchData: (queryParams?: Record<string, unknown>) => Promise<void>;
@@ -49,9 +53,15 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
49
53
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
50
54
  "update:selectedItems": (items: TableItem[]) => any;
51
55
  "selection-change": (items: TableItem[]) => any;
56
+ "update:visibleColumns": (keys: string[]) => any;
57
+ "column-visibility-change": (keys: string[]) => any;
58
+ "page-size-change": (size: number) => any;
52
59
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
53
60
  "onUpdate:selectedItems"?: (items: TableItem[]) => any;
54
61
  "onSelection-change"?: (items: TableItem[]) => any;
62
+ "onUpdate:visibleColumns"?: (keys: string[]) => any;
63
+ "onColumn-visibility-change"?: (keys: string[]) => any;
64
+ "onPage-size-change"?: (size: number) => any;
55
65
  }>, {
56
66
  items: TableItem[];
57
67
  selectable: boolean;
@@ -73,6 +83,7 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
73
83
  exportUrl: string;
74
84
  exportFileName: string;
75
85
  enableInfiniteScroll: boolean;
86
+ settings: boolean;
76
87
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
77
88
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
78
89
  declare const _default: typeof __VLS_export;
@@ -17,6 +17,10 @@ export interface DataTableV2Props extends Omit<DataTableProps, 'routes' | 'filte
17
17
  filters?: Record<string, any>;
18
18
  /** Enable infinite scroll when paginating (loads next page near bottom) */
19
19
  enableInfiniteScroll?: boolean;
20
+ /** Show the end-user column visibility settings menu. */
21
+ settings?: boolean;
22
+ /** Controlled list of visible data-column keys. */
23
+ visibleColumns?: string[];
20
24
  axiosInstance?: AxiosInstance;
21
25
  }
22
26
  export interface DataTableV2Context {
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export type { CustomizerThemeOption } from './components/layout/AppCustomizerPan
42
42
  export { default as AppCustomizerSubmit } from './components/layout/AppCustomizerSubmit.vue';
43
43
  export type { TextFieldHeight, TextFieldVariant } from './components/layout/AppCustomizerControls.vue';
44
44
  export { parseCustomizerPreferences, serializeCustomizerPreferences, customizerPreferenceDefaults } from './utils/customizerPreferences';
45
- export type { ContentWidth, CustomizerPreferences, MenuOrientation, SurfaceStyle } from './utils/customizerPreferences';
45
+ export type { AppDirection, AppLanguage, ContentWidth, CustomizerPreferences, MenuOrientation, SurfaceStyle } from './utils/customizerPreferences';
46
46
  export { default as AppLayout } from './components/layout/AppLayout.vue';
47
47
  export type { MenuItem, HeaderAction } from './types/components/layout/menu';
48
48
  export { useDataTable } from './composables/useDataTable';
@@ -1,4 +1,4 @@
1
- import { type ContentWidth, type CustomizerPreferences, type MenuOrientation, type SurfaceStyle } from '../utils/customizerPreferences';
1
+ import { type AppDirection, type AppLanguage, type ContentWidth, type CustomizerPreferences, type MenuOrientation, type SurfaceStyle } from '../utils/customizerPreferences';
2
2
  export declare const useCustomizerStore: import("pinia").StoreDefinition<"customizer", {
3
3
  Sidebar_drawer: boolean;
4
4
  Customizer_drawer: boolean;
@@ -16,6 +16,8 @@ export declare const useCustomizerStore: import("pinia").StoreDefinition<"custom
16
16
  loading: boolean;
17
17
  themeMode: string;
18
18
  menuOrientation: MenuOrientation;
19
+ language: AppLanguage;
20
+ direction: AppDirection;
19
21
  }, {
20
22
  getActTheme: (state: {
21
23
  Sidebar_drawer: boolean;
@@ -34,6 +36,8 @@ export declare const useCustomizerStore: import("pinia").StoreDefinition<"custom
34
36
  loading: boolean;
35
37
  themeMode: string;
36
38
  menuOrientation: MenuOrientation;
39
+ language: AppLanguage;
40
+ direction: AppDirection;
37
41
  } & import("pinia").PiniaCustomStateProperties<{
38
42
  Sidebar_drawer: boolean;
39
43
  Customizer_drawer: boolean;
@@ -51,6 +55,8 @@ export declare const useCustomizerStore: import("pinia").StoreDefinition<"custom
51
55
  loading: boolean;
52
56
  themeMode: string;
53
57
  menuOrientation: MenuOrientation;
58
+ language: AppLanguage;
59
+ direction: AppDirection;
54
60
  }>) => string;
55
61
  }, {
56
62
  SET_SIDEBAR_DRAWER(payload?: boolean): void;
@@ -70,4 +76,6 @@ export declare const useCustomizerStore: import("pinia").StoreDefinition<"custom
70
76
  SET_LAYOUT_TYPE(payload: string): void;
71
77
  SET_THEME_MODE(payload: string): void;
72
78
  SET_MENU_ORIENTATION(payload: string): void;
79
+ SET_LANGUAGE(payload: string): void;
80
+ SET_DIRECTION(payload: string): void;
73
81
  }>;