@amirjalili1374/ui-kit 1.10.4 → 1.10.6

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.
@@ -0,0 +1,7 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ save: (payload: string) => any;
3
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
+ onSave?: (payload: string) => any;
5
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -5,6 +5,8 @@ export interface CustomizerThemeOption {
5
5
  secondary: string;
6
6
  }
7
7
  export type MenuOrientation = 'vertical' | 'horizontal';
8
+ export type SurfaceStyle = 'elevated' | 'rounded' | 'tonal' | 'premium-executive';
9
+ export type ContentWidth = 'wide' | 'compact';
8
10
  type __VLS_Props = {
9
11
  modelValue: boolean;
10
12
  themeMode: 'light' | 'dark';
@@ -17,13 +19,17 @@ type __VLS_Props = {
17
19
  textFieldHeight: TextFieldHeight;
18
20
  textScale: number;
19
21
  menuOrientation: MenuOrientation;
22
+ surfaceStyle?: SurfaceStyle;
23
+ contentWidth?: ContentWidth;
24
+ inputBg?: boolean;
25
+ layoutType?: string;
20
26
  width?: number;
21
27
  fontLabel?: (font: string) => string;
22
28
  };
23
29
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
30
  reset: () => any;
25
31
  "update:modelValue": (value: boolean) => any;
26
- apply: () => any;
32
+ apply: (payload: string) => any;
27
33
  "update:textFieldBorderRadius": (value: number) => any;
28
34
  "update:textFieldVariant": (value: TextFieldVariant) => any;
29
35
  "update:textFieldHeight": (value: TextFieldHeight) => any;
@@ -32,10 +38,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
32
38
  "update:activeTheme": (value: string) => any;
33
39
  "update:fontTheme": (value: string) => any;
34
40
  "update:menuOrientation": (value: MenuOrientation) => any;
41
+ "update:surfaceStyle": (value: SurfaceStyle) => any;
42
+ "update:contentWidth": (value: ContentWidth) => any;
35
43
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
44
  onReset?: () => any;
37
45
  "onUpdate:modelValue"?: (value: boolean) => any;
38
- onApply?: () => any;
46
+ onApply?: (payload: string) => any;
39
47
  "onUpdate:textFieldBorderRadius"?: (value: number) => any;
40
48
  "onUpdate:textFieldVariant"?: (value: TextFieldVariant) => any;
41
49
  "onUpdate:textFieldHeight"?: (value: TextFieldHeight) => any;
@@ -44,8 +52,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
44
52
  "onUpdate:activeTheme"?: (value: string) => any;
45
53
  "onUpdate:fontTheme"?: (value: string) => any;
46
54
  "onUpdate:menuOrientation"?: (value: MenuOrientation) => any;
55
+ "onUpdate:surfaceStyle"?: (value: SurfaceStyle) => any;
56
+ "onUpdate:contentWidth"?: (value: ContentWidth) => any;
47
57
  }>, {
48
58
  width: number;
59
+ inputBg: boolean;
60
+ layoutType: string;
61
+ surfaceStyle: SurfaceStyle;
62
+ contentWidth: ContentWidth;
49
63
  fontLabel: (font: string) => string;
50
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
65
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ title?: string;
4
+ description?: string;
5
+ confirmText?: string;
6
+ cancelText?: string;
7
+ color?: string;
8
+ loading?: boolean;
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: boolean) => any;
12
+ confirm: () => any;
13
+ cancel: () => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:modelValue"?: (value: boolean) => any;
16
+ onConfirm?: () => any;
17
+ onCancel?: () => any;
18
+ }>, {
19
+ title: string;
20
+ color: string;
21
+ loading: boolean;
22
+ confirmText: string;
23
+ cancelText: string;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
@@ -0,0 +1,25 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description?: string;
4
+ icon?: string;
5
+ actionText?: string;
6
+ };
7
+ declare var __VLS_6: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_6) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ action: () => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onAction?: () => any;
15
+ }>, {
16
+ icon: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,31 @@
1
+ export interface PreviewFile {
2
+ id: string | number;
3
+ name: string;
4
+ size?: string;
5
+ type?: string;
6
+ url?: string;
7
+ }
8
+ type __VLS_Props = {
9
+ files: PreviewFile[];
10
+ removable?: boolean;
11
+ downloadable?: boolean;
12
+ };
13
+ declare var __VLS_53: {};
14
+ type __VLS_Slots = {} & {
15
+ default?: (props: typeof __VLS_53) => any;
16
+ };
17
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ remove: (file: PreviewFile) => any;
19
+ download: (file: PreviewFile) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onRemove?: (file: PreviewFile) => any;
22
+ onDownload?: (file: PreviewFile) => any;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ modelValue?: boolean;
4
+ showToggle?: boolean;
5
+ };
6
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_18: {}, __VLS_20: {};
7
+ type __VLS_Slots = {} & {
8
+ title?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ 'head-actions'?: (props: typeof __VLS_3) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_18) => any;
13
+ } & {
14
+ actions?: (props: typeof __VLS_20) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ submit: () => any;
18
+ reset: () => any;
19
+ "update:modelValue": (value: boolean) => any;
20
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ onSubmit?: () => any;
22
+ onReset?: () => any;
23
+ "onUpdate:modelValue"?: (value: boolean) => any;
24
+ }>, {
25
+ modelValue: boolean;
26
+ showToggle: boolean;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
29
+ declare const _default: typeof __VLS_export;
30
+ export default _default;
31
+ type __VLS_WithSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description?: string;
4
+ columns?: number;
5
+ };
6
+ declare var __VLS_1: {}, __VLS_3: {};
7
+ type __VLS_Slots = {} & {
8
+ actions?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_3) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ columns: number;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_WithSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,40 @@
1
+ export interface AppNotification {
2
+ id: string | number;
3
+ title: string;
4
+ description?: string;
5
+ time?: string;
6
+ read?: boolean;
7
+ icon?: string;
8
+ }
9
+ type __VLS_Props = {
10
+ modelValue: boolean;
11
+ notifications: AppNotification[];
12
+ title?: string;
13
+ };
14
+ declare var __VLS_11: {
15
+ props: Record<string, any>;
16
+ }, __VLS_71: {};
17
+ type __VLS_Slots = {} & {
18
+ activator?: (props: typeof __VLS_11) => any;
19
+ } & {
20
+ empty?: (props: typeof __VLS_71) => any;
21
+ };
22
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ select: (notification: AppNotification) => any;
24
+ "update:modelValue": (value: boolean) => any;
25
+ readAll: () => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onSelect?: (notification: AppNotification) => any;
28
+ "onUpdate:modelValue"?: (value: boolean) => any;
29
+ onReadAll?: () => any;
30
+ }>, {
31
+ title: string;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
35
+ export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,26 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ subtitle?: string;
4
+ backTo?: string;
5
+ };
6
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
7
+ type __VLS_Slots = {} & {
8
+ back?: (props: typeof __VLS_9) => any;
9
+ } & {
10
+ breadcrumb?: (props: typeof __VLS_11) => any;
11
+ } & {
12
+ actions?: (props: typeof __VLS_13) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ back: () => any;
16
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onBack?: () => any;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ color?: string;
4
+ icon?: string;
5
+ dot?: boolean;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ color: string;
9
+ dot: boolean;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,16 @@ export { default as UiChildCard } from './components/shared/UiChildCard.vue';
20
20
  export { default as UiParentCard } from './components/shared/UiParentCard.vue';
21
21
  export { default as VPriceTextField } from './components/shared/VPriceTextField.vue';
22
22
  export { default as ToggleSwitch } from './components/shared/ToggleSwitch.vue';
23
+ export { default as AppPageHeader } from './components/shared/AppPageHeader.vue';
24
+ export { default as AppFilterBar } from './components/shared/AppFilterBar.vue';
25
+ export { default as AppEmptyState } from './components/shared/AppEmptyState.vue';
26
+ export { default as AppStatusBadge } from './components/shared/AppStatusBadge.vue';
27
+ export { default as AppConfirmAction } from './components/shared/AppConfirmAction.vue';
28
+ export { default as AppFilePreview } from './components/shared/AppFilePreview.vue';
29
+ export type { PreviewFile } from './components/shared/AppFilePreview.vue';
30
+ export { default as AppFormSection } from './components/shared/AppFormSection.vue';
31
+ export { default as AppNotificationCenter } from './components/shared/AppNotificationCenter.vue';
32
+ export type { AppNotification } from './components/shared/AppNotificationCenter.vue';
23
33
  export { default as AppStepper } from './components/common/AppStepper.vue';
24
34
  export { default as Loading } from './components/Loading.vue';
25
35
  export { default as AppSidebar } from './components/layout/AppSidebar.vue';
@@ -27,9 +37,12 @@ export { default as AppHeader } from './components/layout/AppHeader.vue';
27
37
  export { default as AppHeaderMenu } from './components/layout/AppHeaderMenu.vue';
28
38
  export { default as AppCustomizerControls } from './components/layout/AppCustomizerControls.vue';
29
39
  export { default as AppCustomizerPanel } from './components/layout/AppCustomizerPanel.vue';
30
- export type { CustomizerThemeOption, MenuOrientation } from './components/layout/AppCustomizerPanel.vue';
40
+ export { default as AppCustomizer } from './components/layout/AppCustomizer.vue';
41
+ export type { CustomizerThemeOption } from './components/layout/AppCustomizerPanel.vue';
31
42
  export { default as AppCustomizerSubmit } from './components/layout/AppCustomizerSubmit.vue';
32
43
  export type { TextFieldHeight, TextFieldVariant } from './components/layout/AppCustomizerControls.vue';
44
+ export { parseCustomizerPreferences, serializeCustomizerPreferences, customizerPreferenceDefaults } from './utils/customizerPreferences';
45
+ export type { ContentWidth, CustomizerPreferences, MenuOrientation, SurfaceStyle } from './utils/customizerPreferences';
33
46
  export { default as AppLayout } from './components/layout/AppLayout.vue';
34
47
  export type { MenuItem, HeaderAction } from './types/components/layout/menu';
35
48
  export { useDataTable } from './composables/useDataTable';
@@ -1,43 +1,70 @@
1
+ import { type ContentWidth, type CustomizerPreferences, type MenuOrientation, type SurfaceStyle } from '../utils/customizerPreferences';
1
2
  export declare const useCustomizerStore: import("pinia").StoreDefinition<"customizer", {
2
3
  Sidebar_drawer: boolean;
3
4
  Customizer_drawer: boolean;
4
5
  mini_sidebar: boolean;
5
6
  fontTheme: string;
6
- inputBg: string;
7
+ inputBg: boolean;
8
+ textFieldBorderRadius: number;
9
+ textFieldVariant: "outlined";
10
+ uiDensity: "default";
11
+ textScale: number;
12
+ surfaceStyle: SurfaceStyle;
13
+ contentWidth: ContentWidth;
7
14
  layoutType: string;
8
15
  actTheme: string;
9
16
  loading: boolean;
10
17
  themeMode: string;
11
- menuOrientation: string;
18
+ menuOrientation: MenuOrientation;
12
19
  }, {
13
20
  getActTheme: (state: {
14
21
  Sidebar_drawer: boolean;
15
22
  Customizer_drawer: boolean;
16
23
  mini_sidebar: boolean;
17
24
  fontTheme: string;
18
- inputBg: string;
25
+ inputBg: boolean;
26
+ textFieldBorderRadius: number;
27
+ textFieldVariant: "outlined";
28
+ uiDensity: "default";
29
+ textScale: number;
30
+ surfaceStyle: SurfaceStyle;
31
+ contentWidth: ContentWidth;
19
32
  layoutType: string;
20
33
  actTheme: string;
21
34
  loading: boolean;
22
35
  themeMode: string;
23
- menuOrientation: string;
36
+ menuOrientation: MenuOrientation;
24
37
  } & import("pinia").PiniaCustomStateProperties<{
25
38
  Sidebar_drawer: boolean;
26
39
  Customizer_drawer: boolean;
27
40
  mini_sidebar: boolean;
28
41
  fontTheme: string;
29
- inputBg: string;
42
+ inputBg: boolean;
43
+ textFieldBorderRadius: number;
44
+ textFieldVariant: "outlined";
45
+ uiDensity: "default";
46
+ textScale: number;
47
+ surfaceStyle: SurfaceStyle;
48
+ contentWidth: ContentWidth;
30
49
  layoutType: string;
31
50
  actTheme: string;
32
51
  loading: boolean;
33
52
  themeMode: string;
34
- menuOrientation: string;
53
+ menuOrientation: MenuOrientation;
35
54
  }>) => string;
36
55
  }, {
37
56
  SET_SIDEBAR_DRAWER(payload?: boolean): void;
38
57
  SET_MINI_SIDEBAR(payload: boolean): void;
39
58
  SET_CUSTOMIZER_DRAWER(payload: boolean): void;
40
59
  SET_FONT(payload: string): void;
60
+ SET_TEXT_FIELD_BORDER_RADIUS(payload: number): void;
61
+ SET_TEXT_FIELD_VARIANT(payload: string): void;
62
+ SET_UI_DENSITY(payload: string): void;
63
+ SET_TEXT_SCALE(payload: number): void;
64
+ SET_SURFACE_STYLE(payload: string): void;
65
+ SET_CONTENT_WIDTH(payload: string): void;
66
+ LOAD_PREFERENCES(serialized: unknown): void;
67
+ APPLY_PREFERENCES(preferences: CustomizerPreferences): void;
41
68
  SET_THEME(payload: string): void;
42
69
  SET_LOADING(payload: boolean): void;
43
70
  SET_LAYOUT_TYPE(payload: string): void;