@amirjalili1374/ui-kit 1.10.9 → 1.10.11
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.
- package/README.md +9 -0
- package/dist/components/common/AppStepper.vue.d.ts +1 -1
- package/dist/components/form/UiField.vue.d.ts +57 -0
- package/dist/components/form/UiFieldMessage.vue.d.ts +29 -0
- package/dist/components/form/UiFormActions.vue.d.ts +45 -0
- package/dist/components/form/types.d.ts +2 -0
- package/dist/components/layout/AppCustomizer.vue.d.ts +2 -2
- package/dist/components/layout/AppCustomizerControls.vue.d.ts +5 -2
- package/dist/components/layout/AppCustomizerPanel.vue.d.ts +6 -6
- package/dist/components/layout/AppCustomizerSubmit.vue.d.ts +3 -0
- package/dist/components/layout/AppHeaderMenu.vue.d.ts +1 -1
- package/dist/components/permissions/PermissionGuard.vue.d.ts +30 -0
- package/dist/components/shared/AppConfirmAction.vue.d.ts +4 -4
- package/dist/components/shared/AppFilePreview.vue.d.ts +2 -2
- package/dist/components/shared/BaseBreadcrumb.vue.d.ts +2 -1
- package/dist/components/shared/BaseIcon.vue.d.ts +3 -0
- package/dist/components/shared/ConfirmDialog.vue.d.ts +4 -4
- package/dist/components/shared/DownloadButton.vue.d.ts +3 -3
- package/dist/components/shared/MoneyInput.vue.d.ts +2 -2
- package/dist/components/shared/PdfViewer.vue.d.ts +7 -7
- package/dist/components/shared/RemoteAutocomplete.vue.d.ts +57 -0
- package/dist/components/shared/ShamsiDatePicker.vue.d.ts +2 -2
- package/dist/components/shared/UiActionBar.vue.d.ts +37 -0
- package/dist/components/shared/UiObjectDetails.vue.d.ts +43 -0
- package/dist/components/shared/UiReadonlyField.vue.d.ts +27 -0
- package/dist/components/state/UiAsyncState.vue.d.ts +33 -0
- package/dist/components/state/UiEmptyState.vue.d.ts +34 -0
- package/dist/components/state/UiErrorState.vue.d.ts +34 -0
- package/dist/components/state/UiLoadingState.vue.d.ts +28 -0
- package/dist/components/state/UiPermissionDenied.vue.d.ts +29 -0
- package/dist/index.d.ts +29 -1
- package/dist/platform/defaults.d.ts +7 -0
- package/dist/platform/themes.d.ts +8 -0
- package/dist/platform/types/actions.d.ts +23 -0
- package/dist/platform/types/async.d.ts +12 -0
- package/dist/platform/types/core.d.ts +19 -0
- package/dist/platform/types/icons.d.ts +32 -0
- package/dist/platform/types/index.d.ts +8 -0
- package/dist/platform/types/locale.d.ts +4 -0
- package/dist/platform/types/messages.d.ts +41 -0
- package/dist/platform/types/permissions.d.ts +12 -0
- package/dist/platform/types/themes.d.ts +8 -0
- package/dist/platform/types.d.ts +1 -0
- package/dist/platform/uiKit.d.ts +33 -0
- package/dist/style.css +1 -1
- package/dist/ui-kit.cjs +2 -2
- package/dist/ui-kit.es.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A reusable UI component library built with Vue 3, Vuetify 3, and TypeScript. This library provides a comprehensive set of components, composables, utilities, and directives for building modern web applications.
|
|
4
4
|
|
|
5
|
+
Provider configuration, localization, themes, semantic icons, permissions, async state, RTL/LTR behavior, public exports, consumer setup, and testing are covered in [UI platform foundations](docs/PLATFORM_FOUNDATIONS.md).
|
|
6
|
+
|
|
5
7
|
## Features
|
|
6
8
|
|
|
7
9
|
- 🎨 Built with Vue 3 Composition API
|
|
@@ -272,6 +274,13 @@ const formatted = formatNumberWithCommas(1234567); // "1,234,567"
|
|
|
272
274
|
- `AppStepper` - Step-by-step wizard component
|
|
273
275
|
- `Loading` - Loading overlay component
|
|
274
276
|
|
|
277
|
+
### Form Presentation Components
|
|
278
|
+
- `UiField` - Accessible label, hint, error, and success structure for consumer-owned controls
|
|
279
|
+
- `UiFieldMessage` - Semantic hint, error, success, and warning feedback
|
|
280
|
+
- `UiFormActions` - Localized submit, cancel, and secondary action presentation
|
|
281
|
+
|
|
282
|
+
See [Form presentation components](docs/components/FORM_PRESENTATION.md) for contracts and adoption guidance.
|
|
283
|
+
|
|
275
284
|
### Layout Components
|
|
276
285
|
- `AppSidebar` - Navigation sidebar with menu items, logo, and mini sidebar support
|
|
277
286
|
- `AppHeader` - Top header bar with search, notifications, profile menu, and custom actions
|
|
@@ -73,7 +73,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
73
73
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
74
74
|
"onStep-click"?: (...args: any[]) => any;
|
|
75
75
|
}>, {
|
|
76
|
-
direction: "
|
|
76
|
+
direction: "rtl" | "ltr";
|
|
77
77
|
contentMinHeight: string;
|
|
78
78
|
disableClick: boolean;
|
|
79
79
|
stepProps: Record<string, any>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
errors?: string | readonly string[];
|
|
6
|
+
success?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
direction?: 'rtl' | 'ltr';
|
|
11
|
+
};
|
|
12
|
+
declare var __VLS_1: {
|
|
13
|
+
id: string;
|
|
14
|
+
required: boolean;
|
|
15
|
+
}, __VLS_3: {
|
|
16
|
+
id: string;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
readonly: boolean;
|
|
19
|
+
required: boolean;
|
|
20
|
+
'aria-invalid': boolean;
|
|
21
|
+
'aria-describedby': string;
|
|
22
|
+
}, __VLS_5: {
|
|
23
|
+
id: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
readonly: boolean;
|
|
26
|
+
required: boolean;
|
|
27
|
+
'aria-invalid': boolean;
|
|
28
|
+
'aria-describedby': string;
|
|
29
|
+
}, __VLS_13: {}, __VLS_21: {
|
|
30
|
+
errors: string[];
|
|
31
|
+
}, __VLS_29: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
label?: (props: typeof __VLS_1) => any;
|
|
34
|
+
} & {
|
|
35
|
+
action?: (props: typeof __VLS_3) => any;
|
|
36
|
+
} & {
|
|
37
|
+
default?: (props: typeof __VLS_5) => any;
|
|
38
|
+
} & {
|
|
39
|
+
hint?: (props: typeof __VLS_13) => any;
|
|
40
|
+
} & {
|
|
41
|
+
error?: (props: typeof __VLS_21) => any;
|
|
42
|
+
} & {
|
|
43
|
+
success?: (props: typeof __VLS_29) => any;
|
|
44
|
+
};
|
|
45
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
46
|
+
required: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, 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,29 @@
|
|
|
1
|
+
import type { UiIconSource } from '../../platform/types';
|
|
2
|
+
import type { UiFieldMessageVariant } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
id?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
variant?: UiFieldMessageVariant;
|
|
7
|
+
icon?: UiIconSource;
|
|
8
|
+
hideIcon?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_1: {
|
|
11
|
+
icon: UiIconSource;
|
|
12
|
+
}, __VLS_8: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
default?: (props: typeof __VLS_8) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
variant: UiFieldMessageVariant;
|
|
20
|
+
hideIcon: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { UiFormActionsAlign } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
submitLabel?: string;
|
|
4
|
+
cancelLabel?: string;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
cancelDisabled?: boolean;
|
|
8
|
+
showCancel?: boolean;
|
|
9
|
+
align?: UiFormActionsAlign;
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
direction?: 'rtl' | 'ltr';
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
14
|
+
submit: () => void;
|
|
15
|
+
cancel: () => void;
|
|
16
|
+
loading: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
secondary?: (props: typeof __VLS_1) => any;
|
|
21
|
+
} & {
|
|
22
|
+
default?: (props: typeof __VLS_3) => any;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
cancel: () => any;
|
|
26
|
+
submit: () => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onCancel?: () => any;
|
|
29
|
+
onSubmit?: () => any;
|
|
30
|
+
}>, {
|
|
31
|
+
loading: boolean;
|
|
32
|
+
sticky: boolean;
|
|
33
|
+
align: UiFormActionsAlign;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
cancelDisabled: boolean;
|
|
36
|
+
showCancel: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
-
"suggest-language-change": (language: "fa" | "en") => any;
|
|
3
2
|
save: (payload: string) => any;
|
|
3
|
+
"suggest-language-change": (language: "fa" | "en") => any;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
-
"onSuggest-language-change"?: (language: "fa" | "en") => any;
|
|
6
5
|
onSave?: (payload: string) => any;
|
|
6
|
+
"onSuggest-language-change"?: (language: "fa" | "en") => any;
|
|
7
7
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
export default _default;
|
|
@@ -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,19 +6,20 @@ 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
|
};
|
|
11
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
reset: () => any;
|
|
13
14
|
apply: () => any;
|
|
15
|
+
reset: () => any;
|
|
14
16
|
"update:textFieldBorderRadius": (value: number) => any;
|
|
15
17
|
"update:textFieldVariant": (value: TextFieldVariant) => any;
|
|
16
18
|
"update:textFieldHeight": (value: TextFieldHeight) => any;
|
|
17
19
|
"update:textScale": (value: number) => any;
|
|
18
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onReset?: () => any;
|
|
20
21
|
onApply?: () => any;
|
|
22
|
+
onReset?: () => any;
|
|
21
23
|
"onUpdate:textFieldBorderRadius"?: (value: number) => any;
|
|
22
24
|
"onUpdate:textFieldVariant"?: (value: TextFieldVariant) => any;
|
|
23
25
|
"onUpdate:textFieldHeight"?: (value: TextFieldHeight) => any;
|
|
@@ -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>;
|
|
@@ -30,14 +30,14 @@ type __VLS_Props = {
|
|
|
30
30
|
fontLabel?: (font: string) => string;
|
|
31
31
|
};
|
|
32
32
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
apply: (payload: string) => any;
|
|
33
34
|
reset: () => any;
|
|
34
35
|
"update:modelValue": (value: boolean) => any;
|
|
35
|
-
apply: (payload: string) => any;
|
|
36
36
|
"update:textFieldBorderRadius": (value: number) => any;
|
|
37
37
|
"update:textFieldVariant": (value: TextFieldVariant) => any;
|
|
38
38
|
"update:textFieldHeight": (value: TextFieldHeight) => any;
|
|
39
39
|
"update:textScale": (value: number) => any;
|
|
40
|
-
"update:themeMode": (value: "
|
|
40
|
+
"update:themeMode": (value: "dark" | "light") => any;
|
|
41
41
|
"update:activeTheme": (value: string) => any;
|
|
42
42
|
"update:fontTheme": (value: string) => any;
|
|
43
43
|
"update:menuOrientation": (value: MenuOrientation) => any;
|
|
@@ -46,14 +46,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
46
46
|
"update:direction": (value: AppDirection) => any;
|
|
47
47
|
"suggest-language-change": (language: AppLanguage) => any;
|
|
48
48
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
49
|
+
onApply?: (payload: string) => any;
|
|
49
50
|
onReset?: () => any;
|
|
50
51
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
51
|
-
onApply?: (payload: string) => any;
|
|
52
52
|
"onUpdate:textFieldBorderRadius"?: (value: number) => any;
|
|
53
53
|
"onUpdate:textFieldVariant"?: (value: TextFieldVariant) => any;
|
|
54
54
|
"onUpdate:textFieldHeight"?: (value: TextFieldHeight) => any;
|
|
55
55
|
"onUpdate:textScale"?: (value: number) => any;
|
|
56
|
-
"onUpdate:themeMode"?: (value: "
|
|
56
|
+
"onUpdate:themeMode"?: (value: "dark" | "light") => any;
|
|
57
57
|
"onUpdate:activeTheme"?: (value: string) => any;
|
|
58
58
|
"onUpdate:fontTheme"?: (value: string) => any;
|
|
59
59
|
"onUpdate:menuOrientation"?: (value: MenuOrientation) => any;
|
|
@@ -62,13 +62,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
62
62
|
"onUpdate:direction"?: (value: AppDirection) => any;
|
|
63
63
|
"onSuggest-language-change"?: (language: AppLanguage) => any;
|
|
64
64
|
}>, {
|
|
65
|
-
width: number;
|
|
66
65
|
direction: AppDirection;
|
|
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;
|
|
@@ -33,8 +33,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
33
33
|
default: number;
|
|
34
34
|
};
|
|
35
35
|
}>> & Readonly<{}>, {
|
|
36
|
-
items: MenuItem[];
|
|
37
36
|
display: "menu" | "bar";
|
|
37
|
+
items: MenuItem[];
|
|
38
38
|
maxVisible: number;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { UiPermissionInput } from '../../platform/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
permission?: UiPermissionInput;
|
|
4
|
+
any?: string[];
|
|
5
|
+
all?: string[];
|
|
6
|
+
mode?: 'hide' | 'disable';
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
allowed: boolean;
|
|
10
|
+
}, __VLS_3: {
|
|
11
|
+
allowed: boolean;
|
|
12
|
+
}, __VLS_5: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
} & {
|
|
16
|
+
default?: (props: typeof __VLS_3) => any;
|
|
17
|
+
} & {
|
|
18
|
+
fallback?: (props: typeof __VLS_5) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
mode: "hide" | "disable";
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -8,17 +8,17 @@ type __VLS_Props = {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: boolean) => any;
|
|
12
11
|
confirm: () => any;
|
|
13
12
|
cancel: () => any;
|
|
13
|
+
"update:modelValue": (value: boolean) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
16
15
|
onConfirm?: () => any;
|
|
17
16
|
onCancel?: () => any;
|
|
17
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
18
18
|
}>, {
|
|
19
|
-
title: string;
|
|
20
|
-
color: string;
|
|
21
19
|
loading: boolean;
|
|
20
|
+
color: string;
|
|
21
|
+
title: string;
|
|
22
22
|
confirmText: string;
|
|
23
23
|
cancelText: string;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,11 +15,11 @@ type __VLS_Slots = {} & {
|
|
|
15
15
|
default?: (props: typeof __VLS_53) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
-
remove: (file: PreviewFile) => any;
|
|
19
18
|
download: (file: PreviewFile) => any;
|
|
19
|
+
remove: (file: PreviewFile) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onRemove?: (file: PreviewFile) => any;
|
|
22
21
|
onDownload?: (file: PreviewFile) => any;
|
|
22
|
+
onRemove?: (file: PreviewFile) => any;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
3
|
type Breadcrumb = {
|
|
3
4
|
title: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
href?: string;
|
|
6
|
-
to?:
|
|
7
|
+
to?: RouteLocationRaw;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
10
|
title: StringConstructor;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Component, type PropType } from 'vue';
|
|
2
|
+
import type { UiSemanticIconName } from '../../platform/types';
|
|
2
3
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
4
|
icon: {
|
|
4
5
|
type: PropType<string | Component>;
|
|
@@ -12,6 +13,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
12
13
|
type: FunctionConstructor;
|
|
13
14
|
required: false;
|
|
14
15
|
};
|
|
16
|
+
semantic: PropType<UiSemanticIconName>;
|
|
15
17
|
rowData: ObjectConstructor;
|
|
16
18
|
ariaLabel: StringConstructor;
|
|
17
19
|
interactive: {
|
|
@@ -34,6 +36,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
34
36
|
type: FunctionConstructor;
|
|
35
37
|
required: false;
|
|
36
38
|
};
|
|
39
|
+
semantic: PropType<UiSemanticIconName>;
|
|
37
40
|
rowData: ObjectConstructor;
|
|
38
41
|
ariaLabel: StringConstructor;
|
|
39
42
|
interactive: {
|
|
@@ -14,19 +14,19 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
default?: (props: typeof __VLS_26) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
-
"update:modelValue": (value: boolean) => any;
|
|
18
17
|
confirm: () => any;
|
|
19
18
|
cancel: () => any;
|
|
19
|
+
"update:modelValue": (value: boolean) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
22
21
|
onConfirm?: () => any;
|
|
23
22
|
onCancel?: () => any;
|
|
23
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
24
24
|
}>, {
|
|
25
|
-
|
|
25
|
+
loading: boolean;
|
|
26
26
|
color: string;
|
|
27
27
|
width: string | number;
|
|
28
|
-
loading: boolean;
|
|
29
28
|
message: string;
|
|
29
|
+
title: string;
|
|
30
30
|
confirmText: string;
|
|
31
31
|
cancelText: string;
|
|
32
32
|
persistent: boolean;
|
|
@@ -9,15 +9,15 @@ interface Props {
|
|
|
9
9
|
}
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
error: (error: Error) => any;
|
|
12
|
-
download: (url: string) => any;
|
|
13
12
|
success: (filename: string) => any;
|
|
13
|
+
download: (url: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
15
15
|
onError?: (error: Error) => any;
|
|
16
|
-
onDownload?: (url: string) => any;
|
|
17
16
|
onSuccess?: (filename: string) => any;
|
|
17
|
+
onDownload?: (url: string) => any;
|
|
18
18
|
}>, {
|
|
19
|
-
title: string;
|
|
20
19
|
method: "anchor" | "fetch";
|
|
20
|
+
title: string;
|
|
21
21
|
iconStart: boolean;
|
|
22
22
|
iconEnd: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -109,11 +109,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
109
109
|
}>> & Readonly<{
|
|
110
110
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
111
111
|
}>, {
|
|
112
|
+
max: number;
|
|
113
|
+
min: number;
|
|
112
114
|
variant: string;
|
|
113
115
|
disabled: boolean;
|
|
114
116
|
label: string;
|
|
115
|
-
max: number;
|
|
116
|
-
min: number;
|
|
117
117
|
modelValue: number;
|
|
118
118
|
readonly: boolean;
|
|
119
119
|
clearable: boolean;
|
|
@@ -31,22 +31,23 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
|
31
31
|
printPdf: () => void;
|
|
32
32
|
toggleFullscreen: () => void;
|
|
33
33
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
-
close: () => any;
|
|
35
34
|
error: (error: string) => any;
|
|
36
|
-
|
|
35
|
+
close: () => any;
|
|
37
36
|
download: (url: string) => any;
|
|
37
|
+
print: (url: string) => any;
|
|
38
|
+
load: (pdf: any) => any;
|
|
38
39
|
pageChange: (page: number) => any;
|
|
39
40
|
zoomChange: (zoom: number) => any;
|
|
40
|
-
print: (url: string) => any;
|
|
41
41
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
42
|
-
onClose?: () => any;
|
|
43
42
|
onError?: (error: string) => any;
|
|
44
|
-
|
|
43
|
+
onClose?: () => any;
|
|
45
44
|
onDownload?: (url: string) => any;
|
|
45
|
+
onPrint?: (url: string) => any;
|
|
46
|
+
onLoad?: (pdf: any) => any;
|
|
46
47
|
onPageChange?: (page: number) => any;
|
|
47
48
|
onZoomChange?: (zoom: number) => any;
|
|
48
|
-
onPrint?: (url: string) => any;
|
|
49
49
|
}>, {
|
|
50
|
+
errorTitle: string;
|
|
50
51
|
loadingText: string;
|
|
51
52
|
showHeader: boolean;
|
|
52
53
|
showFooter: boolean;
|
|
@@ -56,7 +57,6 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
|
56
57
|
showPrint: boolean;
|
|
57
58
|
showFullscreen: boolean;
|
|
58
59
|
showClose: boolean;
|
|
59
|
-
errorTitle: string;
|
|
60
60
|
initialZoom: number;
|
|
61
61
|
minZoom: number;
|
|
62
62
|
maxZoom: number;
|
|
@@ -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
|
+
};
|
|
@@ -27,11 +27,11 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
28
28
|
"onUpdate:modelValue"?: (value: string | [string, string]) => any;
|
|
29
29
|
}>, {
|
|
30
|
-
type: PickerType;
|
|
31
30
|
color: string;
|
|
31
|
+
type: PickerType;
|
|
32
|
+
mode: "single" | "range";
|
|
32
33
|
disabled: boolean;
|
|
33
34
|
label: string;
|
|
34
|
-
mode: "single" | "range";
|
|
35
35
|
modelValue: string | [string, string] | null;
|
|
36
36
|
clearable: boolean;
|
|
37
37
|
placeholder: string;
|
|
@@ -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
|
+
};
|