@amirjalili1374/ui-kit 1.10.8 → 1.10.10
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 -0
- package/dist/components/layout/AppCustomizerControls.vue.d.ts +2 -2
- package/dist/components/layout/AppCustomizerPanel.vue.d.ts +13 -4
- package/dist/components/layout/AppHeaderMenu.vue.d.ts +12 -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/ShamsiDatePicker.vue.d.ts +2 -2
- package/dist/components/shared/data-table-v2/CustomDataTableV2.vue.d.ts +13 -2
- package/dist/components/shared/data-table-v2/types.d.ts +4 -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 +23 -2
- 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/stores/customizer.d.ts +9 -1
- package/dist/style.css +1 -1
- package/dist/ui-kit.cjs +2 -2
- package/dist/ui-kit.es.js +2 -2
- package/dist/utils/customizerPreferences.d.ts +4 -0
- package/package.json +2 -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,7 +1,9 @@
|
|
|
1
1
|
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
2
|
save: (payload: string) => any;
|
|
3
|
+
"suggest-language-change": (language: "fa" | "en") => any;
|
|
3
4
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
5
|
onSave?: (payload: string) => any;
|
|
6
|
+
"onSuggest-language-change"?: (language: "fa" | "en") => any;
|
|
5
7
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
8
|
declare const _default: typeof __VLS_export;
|
|
7
9
|
export default _default;
|
|
@@ -9,15 +9,15 @@ type __VLS_Props = {
|
|
|
9
9
|
showActions?: boolean;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
reset: () => any;
|
|
13
12
|
apply: () => any;
|
|
13
|
+
reset: () => any;
|
|
14
14
|
"update:textFieldBorderRadius": (value: number) => any;
|
|
15
15
|
"update:textFieldVariant": (value: TextFieldVariant) => any;
|
|
16
16
|
"update:textFieldHeight": (value: TextFieldHeight) => any;
|
|
17
17
|
"update:textScale": (value: number) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onReset?: () => any;
|
|
20
19
|
onApply?: () => any;
|
|
20
|
+
onReset?: () => any;
|
|
21
21
|
"onUpdate:textFieldBorderRadius"?: (value: number) => any;
|
|
22
22
|
"onUpdate:textFieldVariant"?: (value: TextFieldVariant) => any;
|
|
23
23
|
"onUpdate:textFieldHeight"?: (value: TextFieldHeight) => any;
|
|
@@ -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,45 +22,53 @@ 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;
|
|
27
30
|
fontLabel?: (font: string) => string;
|
|
28
31
|
};
|
|
29
32
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
apply: (payload: string) => any;
|
|
30
34
|
reset: () => any;
|
|
31
35
|
"update:modelValue": (value: boolean) => any;
|
|
32
|
-
apply: (payload: string) => any;
|
|
33
36
|
"update:textFieldBorderRadius": (value: number) => any;
|
|
34
37
|
"update:textFieldVariant": (value: TextFieldVariant) => any;
|
|
35
38
|
"update:textFieldHeight": (value: TextFieldHeight) => any;
|
|
36
39
|
"update:textScale": (value: number) => any;
|
|
37
|
-
"update:themeMode": (value: "
|
|
40
|
+
"update:themeMode": (value: "dark" | "light") => any;
|
|
38
41
|
"update:activeTheme": (value: string) => any;
|
|
39
42
|
"update:fontTheme": (value: string) => any;
|
|
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<{
|
|
49
|
+
onApply?: (payload: string) => any;
|
|
44
50
|
onReset?: () => any;
|
|
45
51
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
46
|
-
onApply?: (payload: string) => any;
|
|
47
52
|
"onUpdate:textFieldBorderRadius"?: (value: number) => any;
|
|
48
53
|
"onUpdate:textFieldVariant"?: (value: TextFieldVariant) => any;
|
|
49
54
|
"onUpdate:textFieldHeight"?: (value: TextFieldHeight) => any;
|
|
50
55
|
"onUpdate:textScale"?: (value: number) => any;
|
|
51
|
-
"onUpdate:themeMode"?: (value: "
|
|
56
|
+
"onUpdate:themeMode"?: (value: "dark" | "light") => any;
|
|
52
57
|
"onUpdate:activeTheme"?: (value: string) => any;
|
|
53
58
|
"onUpdate:fontTheme"?: (value: string) => any;
|
|
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
|
}>, {
|
|
65
|
+
direction: AppDirection;
|
|
58
66
|
width: number;
|
|
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
|
-
items: MenuItem[];
|
|
27
36
|
display: "menu" | "bar";
|
|
37
|
+
items: MenuItem[];
|
|
38
|
+
maxVisible: number;
|
|
28
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
40
|
declare const _default: typeof __VLS_export;
|
|
30
41
|
export default _default;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
|
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
|
|
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 {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type UiAsyncStatus } from '../../platform/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
status: UiAsyncStatus;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_15: {
|
|
6
|
+
retry: () => void;
|
|
7
|
+
}, __VLS_24: {}, __VLS_31: {
|
|
8
|
+
status: "idle" | "loading" | "error" | "success";
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
loading?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
empty?: (props: typeof __VLS_8) => any;
|
|
14
|
+
} & {
|
|
15
|
+
error?: (props: typeof __VLS_15) => any;
|
|
16
|
+
} & {
|
|
17
|
+
'permission-denied'?: (props: typeof __VLS_24) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_31) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
retry: () => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onRetry?: () => any;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
variant?: 'compact' | 'full';
|
|
5
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
primaryLabel?: string;
|
|
7
|
+
secondaryLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {}, __VLS_8: {}, __VLS_16: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_8) => any;
|
|
14
|
+
} & {
|
|
15
|
+
actions?: (props: typeof __VLS_16) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
primary: () => any;
|
|
19
|
+
secondary: () => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onPrimary?: () => any;
|
|
22
|
+
onSecondary?: () => any;
|
|
23
|
+
}>, {
|
|
24
|
+
variant: "compact" | "full";
|
|
25
|
+
headingLevel: 2 | 3 | 4 | 5 | 6;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|