vuiii 0.1.0-alpha

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.
Files changed (44) hide show
  1. package/README.md +16 -0
  2. package/dist/components/Breadcrumbs.vue.d.ts +17 -0
  3. package/dist/components/Button.vue.d.ts +76 -0
  4. package/dist/components/Checkbox.vue.d.ts +28 -0
  5. package/dist/components/CheckboxGroup.vue.d.ts +59 -0
  6. package/dist/components/Form.vue.d.ts +84 -0
  7. package/dist/components/FormFields.vue.d.ts +49 -0
  8. package/dist/components/FormGroup.vue.d.ts +47 -0
  9. package/dist/components/Icon.vue.d.ts +16 -0
  10. package/dist/components/Input.vue.d.ts +57 -0
  11. package/dist/components/Select.vue.d.ts +83 -0
  12. package/dist/components/Table.vue.d.ts +51 -0
  13. package/dist/components/Textarea.vue.d.ts +19 -0
  14. package/dist/components/modal/ModalLayout.vue.d.ts +32 -0
  15. package/dist/components/modal/ModalLayoutDialog.vue.d.ts +36 -0
  16. package/dist/components/modal/ModalStack.vue.d.ts +18 -0
  17. package/dist/components/snackbar/SnackbarStack.vue.d.ts +18 -0
  18. package/dist/favicon.ico +0 -0
  19. package/dist/hooks/useAction.d.ts +35 -0
  20. package/dist/icons/arrow-narrow-down.vue.d.ts +2 -0
  21. package/dist/icons/arrow-narrow-left.vue.d.ts +2 -0
  22. package/dist/icons/arrow-narrow-right.vue.d.ts +2 -0
  23. package/dist/icons/arrow-narrow-up.vue.d.ts +2 -0
  24. package/dist/icons/check-circle.vue.d.ts +2 -0
  25. package/dist/icons/check.vue.d.ts +2 -0
  26. package/dist/icons/chevron-left.vue.d.ts +2 -0
  27. package/dist/icons/chevron-right.vue.d.ts +2 -0
  28. package/dist/icons/exclamation-circle.vue.d.ts +2 -0
  29. package/dist/icons/exclamation.vue.d.ts +2 -0
  30. package/dist/icons/plus.vue.d.ts +2 -0
  31. package/dist/icons/search.vue.d.ts +2 -0
  32. package/dist/icons/spinner.vue.d.ts +2 -0
  33. package/dist/icons/trash.vue.d.ts +2 -0
  34. package/dist/icons/x.vue.d.ts +2 -0
  35. package/dist/index.d.ts +21 -0
  36. package/dist/modal.d.ts +69 -0
  37. package/dist/snackbar.d.ts +21 -0
  38. package/dist/style.css +1 -0
  39. package/dist/utils/normalizeOptions.d.ts +13 -0
  40. package/dist/utils/resolveGlobImport.d.ts +3 -0
  41. package/dist/utils/transformInputAttrs.d.ts +5 -0
  42. package/dist/vui.es.js +1751 -0
  43. package/dist/vui.umd.js +1 -0
  44. package/package.json +45 -0
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
+
9
+ ## Type Support For `.vue` Imports in TS
10
+
11
+ Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
12
+
13
+ 1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14
+ 2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
15
+
16
+ You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).
@@ -0,0 +1,17 @@
1
+ import { PropType } from 'vue';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ export declare type BreadcrumbItems = Record<string, RouteLocationRaw>;
4
+ declare const _default: import("vue").DefineComponent<{
5
+ breadcrumbs: {
6
+ type: PropType<BreadcrumbItems>;
7
+ default: () => {};
8
+ };
9
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
+ breadcrumbs: {
11
+ type: PropType<BreadcrumbItems>;
12
+ default: () => {};
13
+ };
14
+ }>>, {
15
+ breadcrumbs: BreadcrumbItems;
16
+ }>;
17
+ export default _default;
@@ -0,0 +1,76 @@
1
+ import '../assets/css/button.css';
2
+ import { PropType } from 'vue';
3
+ declare const sizes: readonly ["normal", "small"];
4
+ declare const variants: readonly ["default", "primary", "secondary", "danger"];
5
+ export declare type Size = typeof sizes[number];
6
+ export declare type Variant = typeof variants[number];
7
+ declare const _default: import("vue").DefineComponent<{
8
+ size: {
9
+ type: PropType<"small" | "normal">;
10
+ default: string;
11
+ validator: (value: Size) => boolean;
12
+ };
13
+ variant: {
14
+ type: PropType<"default" | "primary" | "secondary" | "danger">;
15
+ default: string;
16
+ validator: (value: Variant) => boolean;
17
+ };
18
+ prefixIcon: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ suffixIcon: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ label: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ active: BooleanConstructor;
31
+ loading: BooleanConstructor;
32
+ block: BooleanConstructor;
33
+ disabled: BooleanConstructor;
34
+ }, unknown, unknown, {
35
+ component(): string;
36
+ classModifiers(): string[];
37
+ normalizedAttrs(): object;
38
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
+ size: {
40
+ type: PropType<"small" | "normal">;
41
+ default: string;
42
+ validator: (value: Size) => boolean;
43
+ };
44
+ variant: {
45
+ type: PropType<"default" | "primary" | "secondary" | "danger">;
46
+ default: string;
47
+ validator: (value: Variant) => boolean;
48
+ };
49
+ prefixIcon: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ suffixIcon: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ label: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ active: BooleanConstructor;
62
+ loading: BooleanConstructor;
63
+ block: BooleanConstructor;
64
+ disabled: BooleanConstructor;
65
+ }>>, {
66
+ label: string;
67
+ size: "small" | "normal";
68
+ variant: "default" | "primary" | "secondary" | "danger";
69
+ prefixIcon: string;
70
+ suffixIcon: string;
71
+ active: boolean;
72
+ loading: boolean;
73
+ block: boolean;
74
+ disabled: boolean;
75
+ }>;
76
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import '../assets/css/input.css';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: BooleanConstructor;
4
+ required: BooleanConstructor;
5
+ switch: BooleanConstructor;
6
+ caption: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }, unknown, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {
11
+ normalizedAttrs(): any;
12
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
13
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
+ }, {}>, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: BooleanConstructor;
16
+ required: BooleanConstructor;
17
+ switch: BooleanConstructor;
18
+ caption: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }>>, {
23
+ required: boolean;
24
+ caption: string;
25
+ switch: boolean;
26
+ modelValue: boolean;
27
+ }>;
28
+ export default _default;
@@ -0,0 +1,59 @@
1
+ import { PropType } from 'vue';
2
+ import { Extractor, Option } from '../utils/normalizeOptions';
3
+ declare type CheckedValues = Record<Option['value'], boolean>;
4
+ declare const _default: import("vue").DefineComponent<{
5
+ modelValue: {
6
+ type: PropType<(string | number)[]>;
7
+ default: () => never[];
8
+ };
9
+ options: {
10
+ type: (ObjectConstructor | ArrayConstructor)[];
11
+ required: true;
12
+ };
13
+ optionLabelKey: {
14
+ type: PropType<Extractor>;
15
+ default: undefined;
16
+ };
17
+ optionValueKey: {
18
+ type: PropType<Extractor>;
19
+ default: undefined;
20
+ };
21
+ optionDisabledKey: {
22
+ type: PropType<Extractor>;
23
+ default: undefined;
24
+ };
25
+ }, unknown, unknown, {
26
+ normalizedOptions(): Option[];
27
+ checkedValues(): CheckedValues;
28
+ }, {
29
+ toggleCheckedValue(value: Option['value']): void;
30
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ modelValue: {
32
+ type: PropType<(string | number)[]>;
33
+ default: () => never[];
34
+ };
35
+ options: {
36
+ type: (ObjectConstructor | ArrayConstructor)[];
37
+ required: true;
38
+ };
39
+ optionLabelKey: {
40
+ type: PropType<Extractor>;
41
+ default: undefined;
42
+ };
43
+ optionValueKey: {
44
+ type: PropType<Extractor>;
45
+ default: undefined;
46
+ };
47
+ optionDisabledKey: {
48
+ type: PropType<Extractor>;
49
+ default: undefined;
50
+ };
51
+ }>> & {
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ }, {
54
+ modelValue: (string | number)[];
55
+ optionLabelKey: Extractor;
56
+ optionValueKey: Extractor;
57
+ optionDisabledKey: Extractor;
58
+ }>;
59
+ export default _default;
@@ -0,0 +1,84 @@
1
+ import { PropType } from 'vue';
2
+ import { RouteLocationRaw } from 'vue-router';
3
+ import { FormFieldsStructure } from './FormFields.vue';
4
+ export declare type FormStructure<T = any> = {
5
+ title?: string;
6
+ separator?: boolean;
7
+ fields: FormFieldsStructure<T>;
8
+ }[];
9
+ declare const _default: import("vue").DefineComponent<{
10
+ structure: {
11
+ type: PropType<FormStructure<any>>;
12
+ default: () => {};
13
+ };
14
+ modelValue: {
15
+ type: PropType<any>;
16
+ default: () => undefined;
17
+ };
18
+ errors: {
19
+ type: PropType<Record<string, string | boolean | string[]>>;
20
+ default: () => {};
21
+ };
22
+ submit: {
23
+ type: PropType<(modelValue: any) => void>;
24
+ default: undefined;
25
+ };
26
+ submitLabel: {
27
+ type: PropType<string>;
28
+ default: string;
29
+ };
30
+ cancel: {
31
+ type: PropType<RouteLocationRaw | (() => void)>;
32
+ default: undefined;
33
+ };
34
+ cancelLabel: {
35
+ type: PropType<string>;
36
+ default: string;
37
+ };
38
+ submitting: BooleanConstructor;
39
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "submit" | "cancel")[], "update:modelValue" | "change" | "submit" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
+ structure: {
41
+ type: PropType<FormStructure<any>>;
42
+ default: () => {};
43
+ };
44
+ modelValue: {
45
+ type: PropType<any>;
46
+ default: () => undefined;
47
+ };
48
+ errors: {
49
+ type: PropType<Record<string, string | boolean | string[]>>;
50
+ default: () => {};
51
+ };
52
+ submit: {
53
+ type: PropType<(modelValue: any) => void>;
54
+ default: undefined;
55
+ };
56
+ submitLabel: {
57
+ type: PropType<string>;
58
+ default: string;
59
+ };
60
+ cancel: {
61
+ type: PropType<RouteLocationRaw | (() => void)>;
62
+ default: undefined;
63
+ };
64
+ cancelLabel: {
65
+ type: PropType<string>;
66
+ default: string;
67
+ };
68
+ submitting: BooleanConstructor;
69
+ }>> & {
70
+ onChange?: ((...args: any[]) => any) | undefined;
71
+ onSubmit?: ((...args: any[]) => any) | undefined;
72
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
73
+ onCancel?: ((...args: any[]) => any) | undefined;
74
+ }, {
75
+ modelValue: any;
76
+ errors: Record<string, string | boolean | string[]>;
77
+ submit: (modelValue: any) => void;
78
+ cancel: RouteLocationRaw | (() => void);
79
+ structure: FormStructure<any>;
80
+ submitLabel: string;
81
+ cancelLabel: string;
82
+ submitting: boolean;
83
+ }>;
84
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { AsyncComponentLoader, Component, PropType } from 'vue';
2
+ export declare type FormFieldValue = {
3
+ getter: (modelValue: any) => unknown;
4
+ setter: (value: unknown, modelValue: any) => void;
5
+ };
6
+ export declare type FormField = {
7
+ label?: string;
8
+ description?: string;
9
+ hint?: string;
10
+ required?: boolean;
11
+ component: string | Component | AsyncComponentLoader;
12
+ props?: Record<string, unknown>;
13
+ value?: FormFieldValue;
14
+ };
15
+ export declare type FormFieldsStructure<T extends any = any> = Record<Partial<keyof T>, FormField>;
16
+ declare const _default: import("vue").DefineComponent<{
17
+ fields: {
18
+ type: PropType<FormFieldsStructure<any>>;
19
+ default: () => {};
20
+ };
21
+ modelValue: {
22
+ type: PropType<any>;
23
+ default: () => {};
24
+ };
25
+ errors: {
26
+ type: PropType<Record<string, string | boolean | string[]>>;
27
+ default: () => {};
28
+ };
29
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ fields: {
31
+ type: PropType<FormFieldsStructure<any>>;
32
+ default: () => {};
33
+ };
34
+ modelValue: {
35
+ type: PropType<any>;
36
+ default: () => {};
37
+ };
38
+ errors: {
39
+ type: PropType<Record<string, string | boolean | string[]>>;
40
+ default: () => {};
41
+ };
42
+ }>> & {
43
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
44
+ }, {
45
+ modelValue: any;
46
+ fields: FormFieldsStructure<any>;
47
+ errors: Record<string, string | boolean | string[]>;
48
+ }>;
49
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ label: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ error: {
8
+ type: PropType<string | boolean | string[]>;
9
+ default: string;
10
+ };
11
+ description: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ hint: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ required: BooleanConstructor;
20
+ }, unknown, unknown, {
21
+ errorMessage(): string;
22
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ label: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ error: {
28
+ type: PropType<string | boolean | string[]>;
29
+ default: string;
30
+ };
31
+ description: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ hint: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ required: BooleanConstructor;
40
+ }>>, {
41
+ description: string;
42
+ required: boolean;
43
+ label: string;
44
+ error: string | boolean | string[];
45
+ hint: string;
46
+ }>;
47
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare type IconResolver = (name: string) => string | undefined | void;
2
+ export declare function registerCustomIconResolver(resolver: IconResolver): void;
3
+ declare const _default: import("vue").DefineComponent<{
4
+ name: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ }, unknown, {
9
+ component: any;
10
+ }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ name: {
12
+ type: StringConstructor;
13
+ required: true;
14
+ };
15
+ }>>, {}>;
16
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import '../assets/css/input.css';
2
+ import { PropType } from 'vue';
3
+ declare const sizes: readonly ["normal", "small"];
4
+ declare type Size = typeof sizes[number];
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: string;
9
+ };
10
+ prefixIcon: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ suffixIcon: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ size: {
19
+ type: PropType<"small" | "normal">;
20
+ default: string;
21
+ validator: (value: Size) => boolean;
22
+ };
23
+ invalid: BooleanConstructor;
24
+ }, unknown, unknown, {
25
+ hasPrefix(): boolean;
26
+ hasSuffix(): boolean;
27
+ }, {}, import("vue").DefineComponent<{}, {}, {}, {
28
+ normalizedAttrs(): any;
29
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ }, {}>, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ modelValue: {
33
+ type: (StringConstructor | NumberConstructor)[];
34
+ default: string;
35
+ };
36
+ prefixIcon: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ suffixIcon: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ size: {
45
+ type: PropType<"small" | "normal">;
46
+ default: string;
47
+ validator: (value: Size) => boolean;
48
+ };
49
+ invalid: BooleanConstructor;
50
+ }>>, {
51
+ size: "small" | "normal";
52
+ prefixIcon: string;
53
+ suffixIcon: string;
54
+ modelValue: string | number;
55
+ invalid: boolean;
56
+ }>;
57
+ export default _default;
@@ -0,0 +1,83 @@
1
+ import '../assets/css/input.css';
2
+ import { PropType } from 'vue';
3
+ import { Extractor, Option } from '../utils/normalizeOptions';
4
+ declare const sizes: readonly ["normal", "small"];
5
+ declare type Size = typeof sizes[number];
6
+ declare const _default: import("vue").DefineComponent<{
7
+ value: {
8
+ type: (ObjectConstructor | StringConstructor | NumberConstructor)[];
9
+ default: string;
10
+ };
11
+ options: {
12
+ type: (ObjectConstructor | ArrayConstructor)[];
13
+ required: true;
14
+ };
15
+ optionLabelKey: {
16
+ type: PropType<Extractor>;
17
+ default: undefined;
18
+ };
19
+ optionValueKey: {
20
+ type: PropType<Extractor>;
21
+ default: undefined;
22
+ };
23
+ optionDisabledKey: {
24
+ type: PropType<Extractor>;
25
+ default: undefined;
26
+ };
27
+ placeholder: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: PropType<"small" | "normal">;
33
+ default: string;
34
+ validator: (value: Size) => boolean;
35
+ };
36
+ allowEmpty: BooleanConstructor;
37
+ }, unknown, unknown, {
38
+ normalizedOptions(): Option[];
39
+ }, {}, import("vue").DefineComponent<{}, {}, {}, {
40
+ normalizedAttrs(): any;
41
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
42
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
43
+ }, {}>, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ value: {
45
+ type: (ObjectConstructor | StringConstructor | NumberConstructor)[];
46
+ default: string;
47
+ };
48
+ options: {
49
+ type: (ObjectConstructor | ArrayConstructor)[];
50
+ required: true;
51
+ };
52
+ optionLabelKey: {
53
+ type: PropType<Extractor>;
54
+ default: undefined;
55
+ };
56
+ optionValueKey: {
57
+ type: PropType<Extractor>;
58
+ default: undefined;
59
+ };
60
+ optionDisabledKey: {
61
+ type: PropType<Extractor>;
62
+ default: undefined;
63
+ };
64
+ placeholder: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ size: {
69
+ type: PropType<"small" | "normal">;
70
+ default: string;
71
+ validator: (value: Size) => boolean;
72
+ };
73
+ allowEmpty: BooleanConstructor;
74
+ }>>, {
75
+ value: string | number | Record<string, any>;
76
+ size: "small" | "normal";
77
+ optionLabelKey: Extractor;
78
+ optionValueKey: Extractor;
79
+ optionDisabledKey: Extractor;
80
+ placeholder: string;
81
+ allowEmpty: boolean;
82
+ }>;
83
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import '../assets/css/table.css';
2
+ import '../assets/css/typography.css';
3
+ import { PropType } from 'vue';
4
+ import { RouteLocationRaw } from 'vue-router';
5
+ declare type ColumnOptions<T = any> = {
6
+ label?: string;
7
+ align?: 'left' | 'right' | 'center';
8
+ width?: string;
9
+ value?: (item: T) => unknown;
10
+ format?: (...params: any[]) => unknown;
11
+ href?: (item: T) => RouteLocationRaw;
12
+ };
13
+ declare type NormalizedTableColumns<T = any> = Record<keyof T | string, ColumnOptions<T>>;
14
+ export declare type TableColumns<T = any> = Record<keyof T | string, string | ColumnOptions<T>>;
15
+ declare const _default: import("vue").DefineComponent<{
16
+ items: {
17
+ type: ArrayConstructor;
18
+ default: () => never[];
19
+ };
20
+ columns: {
21
+ type: PropType<TableColumns<any>>;
22
+ default: null;
23
+ };
24
+ rowClass: {
25
+ type: (StringConstructor | FunctionConstructor)[];
26
+ default: null;
27
+ };
28
+ }, unknown, unknown, {
29
+ normalizedColumns(): NormalizedTableColumns;
30
+ }, {
31
+ formatValue(item: any, key: keyof NormalizedTableColumns): any;
32
+ resolveRowClass(item: any): any;
33
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ items: {
35
+ type: ArrayConstructor;
36
+ default: () => never[];
37
+ };
38
+ columns: {
39
+ type: PropType<TableColumns<any>>;
40
+ default: null;
41
+ };
42
+ rowClass: {
43
+ type: (StringConstructor | FunctionConstructor)[];
44
+ default: null;
45
+ };
46
+ }>>, {
47
+ items: unknown[];
48
+ columns: TableColumns<any>;
49
+ rowClass: string | Function;
50
+ }>;
51
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import '../assets/css/input.css';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ value: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ }, unknown, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {
8
+ normalizedAttrs(): any;
9
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
10
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
11
+ }, {}>, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ value: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ }>>, {
17
+ value: string;
18
+ }>;
19
+ export default _default;
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ width: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: number;
9
+ };
10
+ hideCloser: BooleanConstructor;
11
+ scroll: BooleanConstructor;
12
+ plain: BooleanConstructor;
13
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ title: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ width: {
19
+ type: (StringConstructor | NumberConstructor)[];
20
+ default: number;
21
+ };
22
+ hideCloser: BooleanConstructor;
23
+ scroll: BooleanConstructor;
24
+ plain: BooleanConstructor;
25
+ }>>, {
26
+ title: string;
27
+ width: string | number;
28
+ hideCloser: boolean;
29
+ scroll: boolean;
30
+ plain: boolean;
31
+ }>;
32
+ export default _default;