@amirjalili1374/ui-kit 1.10.10 → 1.10.12

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,3 +1,4 @@
1
+ import type { AppLanguage } from '../../utils/customizerPreferences';
1
2
  export type TextFieldVariant = 'outlined' | 'filled' | 'solo' | 'plain' | 'underlined';
2
3
  export type TextFieldHeight = 'compact' | 'default' | 'comfortable';
3
4
  type __VLS_Props = {
@@ -5,6 +6,7 @@ type __VLS_Props = {
5
6
  textFieldVariant?: TextFieldVariant;
6
7
  textFieldHeight?: TextFieldHeight;
7
8
  textScale?: number;
9
+ language?: AppLanguage;
8
10
  applyPreview?: boolean;
9
11
  showActions?: boolean;
10
12
  };
@@ -27,6 +29,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
27
29
  textFieldBorderRadius: number;
28
30
  textFieldHeight: TextFieldHeight;
29
31
  textScale: number;
32
+ language: AppLanguage;
30
33
  applyPreview: boolean;
31
34
  showActions: boolean;
32
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -64,11 +64,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
64
64
  }>, {
65
65
  direction: AppDirection;
66
66
  width: number;
67
+ language: AppLanguage;
67
68
  inputBg: boolean;
68
69
  layoutType: string;
69
70
  surfaceStyle: SurfaceStyle;
70
71
  contentWidth: ContentWidth;
71
- language: AppLanguage;
72
72
  fontLabel: (font: string) => string;
73
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
74
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,8 @@
1
+ import type { AppLanguage } from '../../utils/customizerPreferences';
1
2
  type __VLS_Props = {
2
3
  label?: string;
3
4
  hint?: string;
5
+ language?: AppLanguage;
4
6
  };
5
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
8
  apply: () => any;
@@ -9,6 +11,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
9
11
  }>, {
10
12
  label: string;
11
13
  hint: string;
14
+ language: AppLanguage;
12
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
16
  declare const _default: typeof __VLS_export;
14
17
  export default _default;
@@ -0,0 +1,57 @@
1
+ export interface RemoteAutocompleteResult<T = Record<string, unknown>> {
2
+ items: T[];
3
+ total?: number;
4
+ }
5
+ export type RemoteAutocompleteLoader<T = Record<string, unknown>> = (context: {
6
+ search: string;
7
+ page: number;
8
+ pageSize: number;
9
+ }) => Promise<T[] | RemoteAutocompleteResult<T>>;
10
+ type __VLS_Props = {
11
+ loader: RemoteAutocompleteLoader<any>;
12
+ label?: string;
13
+ itemTitle?: any;
14
+ itemValue?: any;
15
+ multiple?: boolean;
16
+ clearable?: boolean;
17
+ disabled?: boolean;
18
+ pageSize?: number;
19
+ debounce?: number;
20
+ loadOnFocus?: boolean;
21
+ cache?: boolean;
22
+ noDataText?: string;
23
+ errorText?: string;
24
+ };
25
+ type __VLS_ModelProps = {
26
+ modelValue?: any;
27
+ };
28
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
29
+ declare var __VLS_12: string, __VLS_13: any;
30
+ type __VLS_Slots = {} & {
31
+ [K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
32
+ };
33
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
34
+ reload: () => Promise<void>;
35
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:modelValue": (value: any) => any;
37
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
38
+ "onUpdate:modelValue"?: (value: any) => any;
39
+ }>, {
40
+ itemTitle: any;
41
+ itemValue: any;
42
+ clearable: boolean;
43
+ noDataText: string;
44
+ pageSize: number;
45
+ debounce: number;
46
+ loadOnFocus: boolean;
47
+ cache: boolean;
48
+ errorText: string;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
51
+ declare const _default: typeof __VLS_export;
52
+ export default _default;
53
+ type __VLS_WithSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,37 @@
1
+ export interface UiAction {
2
+ key: string;
3
+ label: string;
4
+ color?: string;
5
+ variant?: 'flat' | 'text' | 'outlined' | 'tonal' | 'plain' | 'elevated';
6
+ icon?: string;
7
+ disabled?: boolean;
8
+ hidden?: boolean;
9
+ confirm?: boolean;
10
+ }
11
+ type __VLS_Props = {
12
+ actions: UiAction[];
13
+ title?: string;
14
+ loading?: string | null;
15
+ sticky?: boolean;
16
+ };
17
+ declare var __VLS_14: {}, __VLS_29: {};
18
+ type __VLS_Slots = {} & {
19
+ prepend?: (props: typeof __VLS_14) => any;
20
+ } & {
21
+ default?: (props: typeof __VLS_29) => any;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ action: (action: UiAction) => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onAction?: (action: UiAction) => any;
27
+ }>, {
28
+ loading: string | null;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_WithSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,43 @@
1
+ export interface UiObjectField {
2
+ key: string;
3
+ label?: string;
4
+ secondaryLabel?: string;
5
+ hidden?: boolean;
6
+ format?: (value: unknown, data: Record<string, unknown>) => unknown;
7
+ }
8
+ type __VLS_Props = {
9
+ data?: Record<string, unknown> | null;
10
+ fields?: UiObjectField[];
11
+ columns?: number;
12
+ emptyText?: string;
13
+ hideEmpty?: boolean;
14
+ };
15
+ declare var __VLS_1: {
16
+ key: string;
17
+ field: {
18
+ label: string;
19
+ value: unknown;
20
+ key: string;
21
+ secondaryLabel?: string;
22
+ hidden?: boolean;
23
+ format?: (value: unknown, data: Record<string, unknown>) => unknown;
24
+ };
25
+ data: Record<string, unknown>;
26
+ }, __VLS_8: {};
27
+ type __VLS_Slots = {} & {
28
+ field?: (props: typeof __VLS_1) => any;
29
+ } & {
30
+ empty?: (props: typeof __VLS_8) => any;
31
+ };
32
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
33
+ columns: number;
34
+ emptyText: string;
35
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ secondaryLabel?: string;
4
+ value?: unknown;
5
+ emptyText?: string;
6
+ copyable?: boolean;
7
+ direction?: 'rtl' | 'ltr' | 'auto';
8
+ };
9
+ declare var __VLS_1: {
10
+ value: unknown;
11
+ text: string;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ default?: (props: typeof __VLS_1) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ direction: "rtl" | "ltr" | "auto";
18
+ emptyText: string;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
package/dist/index.d.ts CHANGED
@@ -30,6 +30,13 @@ export type { PreviewFile } from './components/shared/AppFilePreview.vue';
30
30
  export { default as AppFormSection } from './components/shared/AppFormSection.vue';
31
31
  export { default as AppNotificationCenter } from './components/shared/AppNotificationCenter.vue';
32
32
  export type { AppNotification } from './components/shared/AppNotificationCenter.vue';
33
+ export { default as RemoteAutocomplete } from './components/shared/RemoteAutocomplete.vue';
34
+ export type { RemoteAutocompleteLoader, RemoteAutocompleteResult } from './components/shared/RemoteAutocomplete.vue';
35
+ export { default as UiReadonlyField } from './components/shared/UiReadonlyField.vue';
36
+ export { default as UiObjectDetails } from './components/shared/UiObjectDetails.vue';
37
+ export type { UiObjectField } from './components/shared/UiObjectDetails.vue';
38
+ export { default as UiActionBar } from './components/shared/UiActionBar.vue';
39
+ export type { UiAction } from './components/shared/UiActionBar.vue';
33
40
  export { default as AppStepper } from './components/common/AppStepper.vue';
34
41
  export { default as Loading } from './components/Loading.vue';
35
42
  export { default as UiLoadingState } from './components/state/UiLoadingState.vue';