@feedmepos/ui-library 0.0.1-alpha.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.
- package/README.md +32 -0
- package/dist/components/breadcrumb/FmBreadcrumb.vue.d.ts +20 -0
- package/dist/components/button/FmButton.vue.d.ts +61 -0
- package/dist/components/card/FmCard.vue.d.ts +48 -0
- package/dist/components/card/FmCardActions.vue.d.ts +22 -0
- package/dist/components/card/FmCardSection.vue.d.ts +21 -0
- package/dist/components/card/FmCardTitle.vue.d.ts +10 -0
- package/dist/components/chart/line/FmLine.vue.d.ts +42 -0
- package/dist/components/date-picker/FmDatePicker.vue.d.ts +35 -0
- package/dist/components/date-range-picker/FmDateRangePicker.vue.d.ts +35 -0
- package/dist/components/form/checkbox/FmCheckbox.vue.d.ts +66 -0
- package/dist/components/form/input/base-input/FmField.vue.d.ts +64 -0
- package/dist/components/form/radio/FmRadio.vue.d.ts +66 -0
- package/dist/components/form/select/FmSelect.vue.d.ts +90 -0
- package/dist/components/form/stepper-field/FmStepperField.vue.d.ts +168 -0
- package/dist/components/form/switch/FmSwitch.vue.d.ts +86 -0
- package/dist/components/form/text-field/FmTextField.vue.d.ts +210 -0
- package/dist/components/form/textarea/FmTextarea.vue.d.ts +131 -0
- package/dist/components/icon/FmIcon.vue.d.ts +41 -0
- package/dist/components/list/FmList.vue.d.ts +41 -0
- package/dist/components/list/FmListItem.vue.d.ts +54 -0
- package/dist/components/menu/dropdown/FmDropdown.vue.d.ts +49 -0
- package/dist/components/menu/menu-container/FmMenu.vue.d.ts +9 -0
- package/dist/components/menu/menu-item/FmMenuItem.vue.d.ts +99 -0
- package/dist/components/progress-indicator/FmProgressIndicator.vue.d.ts +46 -0
- package/dist/components/progress-indicator/FmProgressIndicatorGroup.vue.d.ts +72 -0
- package/dist/components/snackbar/FmSnackbar.vue.d.ts +83 -0
- package/dist/components/tooltip/FmTooltip.vue.d.ts +65 -0
- package/dist/composables/validation.d.ts +6 -0
- package/dist/favicon.ico +0 -0
- package/dist/federation/FmBreadcrumb-7a206e9b.css +1 -0
- package/dist/federation/FmBreadcrumb.vue_vue_type_style_index_0_lang-4abc649e.js +1 -0
- package/dist/federation/FmButton-bd6d2e4b.css +1 -0
- package/dist/federation/FmCheckbox-53f405a9.css +1 -0
- package/dist/federation/FmCheckbox.vue_vue_type_style_index_0_lang-fcb61ef1.js +1 -0
- package/dist/federation/FmDatePicker-750315ee.css +1 -0
- package/dist/federation/FmDateRangePicker-fbfec16c.css +1 -0
- package/dist/federation/FmDropdown-7ce00217.css +1 -0
- package/dist/federation/FmIcon-99d8fba2.css +1 -0
- package/dist/federation/FmLine.vue_vue_type_script_setup_true_lang-2809cd69.js +3 -0
- package/dist/federation/FmMenu-a00148e7.css +1 -0
- package/dist/federation/FmMenuItem-e8678045.css +1 -0
- package/dist/federation/FmProgressIndicator-298ef84b.css +1 -0
- package/dist/federation/FmProgressIndicatorGroup-58d5cb90.css +1 -0
- package/dist/federation/FmProgressIndicatorGroup.vue_vue_type_style_index_0_lang-243ecd13.js +1 -0
- package/dist/federation/FmRadio-b168530f.css +1 -0
- package/dist/federation/FmSelect-a6d7df4f.css +1 -0
- package/dist/federation/FmSnackbar-1bbe14e3.css +1 -0
- package/dist/federation/FmSwitch-7605f854.css +1 -0
- package/dist/federation/FmTextField-fc9b77ba.css +1 -0
- package/dist/federation/FmTextField.vue_vue_type_style_index_0_lang-473d3f81.js +1 -0
- package/dist/federation/FmTextarea-57fcf19a.css +1 -0
- package/dist/federation/FmTextarea.vue_vue_type_style_index_0_lang-5db78d57.js +1 -0
- package/dist/federation/FmTooltip.vue_vue_type_script_setup_true_lang-7b39efc3.js +1 -0
- package/dist/federation/__federation_expose_FmBreadcrumb-3527b347.js +1 -0
- package/dist/federation/__federation_expose_FmButton-71bb9d18.js +8 -0
- package/dist/federation/__federation_expose_FmCheckbox-08a0fd35.js +1 -0
- package/dist/federation/__federation_expose_FmDatePicker-d996afce.js +1 -0
- package/dist/federation/__federation_expose_FmDateRangePicker-1d6f07d7.js +1 -0
- package/dist/federation/__federation_expose_FmDropdown-604d6b6a.js +1 -0
- package/dist/federation/__federation_expose_FmIcon-e5ab92a8.js +1 -0
- package/dist/federation/__federation_expose_FmLineChart-443455d3.js +1 -0
- package/dist/federation/__federation_expose_FmMenu-ed4b43e0.js +1 -0
- package/dist/federation/__federation_expose_FmMenuItem-bcffecb3.js +1 -0
- package/dist/federation/__federation_expose_FmProgressIndicator-07af3c15.js +1 -0
- package/dist/federation/__federation_expose_FmProgressIndicatorGroup-c3359ab1.js +1 -0
- package/dist/federation/__federation_expose_FmRadio-b90999bf.js +1 -0
- package/dist/federation/__federation_expose_FmSelect-1855f320.js +1 -0
- package/dist/federation/__federation_expose_FmSnackbar-7af29a69.js +1 -0
- package/dist/federation/__federation_expose_FmSwitch-f75dd36e.js +1 -0
- package/dist/federation/__federation_expose_FmTextField-48c256e7.js +1 -0
- package/dist/federation/__federation_expose_FmTextarea-901d18eb.js +1 -0
- package/dist/federation/__federation_expose_FmTooltip-61035ccf.js +1 -0
- package/dist/federation/__federation_fn_import.js +1 -0
- package/dist/federation/__federation_shared_vue-7b8990b1.js +1 -0
- package/dist/federation/_plugin-vue_export-helper-c27b6911.js +1 -0
- package/dist/federation/dayjs.min-5433e12a.js +1 -0
- package/dist/federation/feedmepos-ui-components.js +1 -0
- package/dist/federation/index-0fb0d627.css +1 -0
- package/dist/federation/index-13778968.js +11 -0
- package/dist/federation/preload-helper-cf010ec4.js +1 -0
- package/dist/feedmepos-ui-library.es.js +11225 -0
- package/dist/feedmepos-ui-library.umd.js +29 -0
- package/dist/index.d.ts +23 -0
- package/dist/style.css +1 -0
- package/dist/tailwind-plugin.js +230 -0
- package/dist/utils/util-color.d.ts +4 -0
- package/package.json +74 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# FeedMe UI Library
|
|
2
|
+
|
|
3
|
+
This repo included ui components from design system. Built for FeedMe internal projects.
|
|
4
|
+
|
|
5
|
+
# Getting started
|
|
6
|
+
|
|
7
|
+
Vite is used for [module federation](https://github.com/originjs/vite-plugin-federation).
|
|
8
|
+
```
|
|
9
|
+
> npm install -D @vitejs/plugin-vue vite
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Vue3 required to utilize ui components.
|
|
13
|
+
```
|
|
14
|
+
> npm install vue
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This project is heavily depends on [tailwindcss](https://tailwindcss.com) to achieve style sharing.
|
|
18
|
+
|
|
19
|
+
Install tailwindcss, view more info [here](https://tailwindcss.com/docs/guides/vite)
|
|
20
|
+
```powershell
|
|
21
|
+
> npm install -D tailwindcss postcss autoprefixer
|
|
22
|
+
> npx tailwindcss init -p
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Install ui-library
|
|
26
|
+
```powershell
|
|
27
|
+
> npm install @feedmepos/ui-library
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Maintainer
|
|
31
|
+
|
|
32
|
+
Thanks for contribution of **[FeedMe Team](https://github.com/feedmepos)**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
items: {
|
|
3
|
+
type: import("vue").PropType<{
|
|
4
|
+
label: string;
|
|
5
|
+
route: string;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
}[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
items: {
|
|
12
|
+
type: import("vue").PropType<{
|
|
13
|
+
label: string;
|
|
14
|
+
route: string;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
}[]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}>>, {}, {}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'destructive' | 'fab';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
variant: {
|
|
5
|
+
type: PropType<ButtonVariant>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
label: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<"md" | "lg">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
autofocus: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
variant: {
|
|
30
|
+
type: PropType<ButtonVariant>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
label: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
icon: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
type: PropType<"md" | "lg">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
autofocus: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
label: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
size: "md" | "lg";
|
|
57
|
+
variant: ButtonVariant;
|
|
58
|
+
icon: string;
|
|
59
|
+
autofocus: boolean;
|
|
60
|
+
}, {}>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
variant: {
|
|
8
|
+
type: PropType<"outlined" | "elevated">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
horizontal: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
title: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
variant: {
|
|
21
|
+
type: PropType<"outlined" | "elevated">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
horizontal: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
title: string;
|
|
30
|
+
variant: "outlined" | "elevated";
|
|
31
|
+
horizontal: boolean;
|
|
32
|
+
}, {}>, {
|
|
33
|
+
header?(_: {
|
|
34
|
+
title: string | undefined;
|
|
35
|
+
}): any;
|
|
36
|
+
"header-title"?(_: {
|
|
37
|
+
title: string | undefined;
|
|
38
|
+
}): any;
|
|
39
|
+
"header-actions"?(_: {}): any;
|
|
40
|
+
default?(_: {}): any;
|
|
41
|
+
actions?(_: {}): any;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
alignment: {
|
|
4
|
+
type: PropType<"left" | "center" | "right">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
alignment: {
|
|
9
|
+
type: PropType<"left" | "center" | "right">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>>, {
|
|
13
|
+
alignment: "left" | "center" | "right";
|
|
14
|
+
}, {}>, {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
padding: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
padding: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
padding: string;
|
|
13
|
+
}, {}>, {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
actions?(_: {}): any;
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface Dataset {
|
|
2
|
+
label: string;
|
|
3
|
+
data: number[];
|
|
4
|
+
fill?: boolean;
|
|
5
|
+
dash?: boolean;
|
|
6
|
+
color: string;
|
|
7
|
+
}
|
|
8
|
+
export interface XAxis {
|
|
9
|
+
categories: string[];
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
|
12
|
+
name: {
|
|
13
|
+
type: import("vue").PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
paragraph: {
|
|
16
|
+
type: import("vue").PropType<string>;
|
|
17
|
+
};
|
|
18
|
+
datasets: {
|
|
19
|
+
type: import("vue").PropType<Dataset[]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
xAxis: {
|
|
23
|
+
type: import("vue").PropType<XAxis>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
name: {
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
29
|
+
};
|
|
30
|
+
paragraph: {
|
|
31
|
+
type: import("vue").PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
datasets: {
|
|
34
|
+
type: import("vue").PropType<Dataset[]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
xAxis: {
|
|
38
|
+
type: import("vue").PropType<XAxis>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
}>>, {}, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FmDatePickerProps {
|
|
2
|
+
label: string;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
label: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
required: true;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
label: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
required: true;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
label: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface FmDateRangePickerProps {
|
|
2
|
+
label: string;
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
label: {
|
|
7
|
+
type: import("vue").PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
required: true;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
label: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
required: true;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
label: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
}, {}>;
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface FmCheckbox {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
label: string;
|
|
4
|
+
sublabel?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
|
+
label: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
sublabel: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
indeterminate: {
|
|
26
|
+
type: import("vue").PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: boolean) => void;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
label: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
type: import("vue").PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: import("vue").PropType<boolean>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
sublabel: {
|
|
45
|
+
type: import("vue").PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
indeterminate: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
sublabel: string;
|
|
57
|
+
indeterminate: boolean;
|
|
58
|
+
}, {}>, {
|
|
59
|
+
label?(_: {}): any;
|
|
60
|
+
}>;
|
|
61
|
+
export default _default;
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface FmFieldProps {
|
|
2
|
+
leadingIcon?: string;
|
|
3
|
+
trailingIcon?: string;
|
|
4
|
+
activeClass?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
iconColor?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
|
+
disabled: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
leadingIcon: {
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
trailingIcon: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
activeClass: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
iconColor: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
disabled: {
|
|
31
|
+
type: import("vue").PropType<boolean>;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
leadingIcon: {
|
|
35
|
+
type: import("vue").PropType<string>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
trailingIcon: {
|
|
39
|
+
type: import("vue").PropType<string>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
activeClass: {
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
iconColor: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}>>, {
|
|
51
|
+
disabled: boolean;
|
|
52
|
+
leadingIcon: string;
|
|
53
|
+
trailingIcon: string;
|
|
54
|
+
activeClass: string;
|
|
55
|
+
iconColor: string;
|
|
56
|
+
}, {}>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface FmRadio {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
value: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
sublabel?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
|
+
label: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: import("vue").PropType<boolean>;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
sublabel: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
value: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: string) => void;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
label: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
disabled: {
|
|
37
|
+
type: import("vue").PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
sublabel: {
|
|
45
|
+
type: import("vue").PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
value: {
|
|
49
|
+
type: import("vue").PropType<string>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
}>> & {
|
|
53
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
label: string;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
sublabel: string;
|
|
58
|
+
}, {}>, {
|
|
59
|
+
label?(_: {}): any;
|
|
60
|
+
}>;
|
|
61
|
+
export default _default;
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
interface ISelectItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value: any;
|
|
4
|
+
}
|
|
5
|
+
export interface FmSelectProps {
|
|
6
|
+
/** Will return array if multiselect is enabled, else string */
|
|
7
|
+
modelValue: any;
|
|
8
|
+
label: string;
|
|
9
|
+
items: ISelectItem[];
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
multiselect?: boolean;
|
|
12
|
+
placement?: 'bottom-left' | 'bottom-center' | 'bottom-right' | 'top-left' | 'top-center' | 'top-right';
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
16
|
+
items: {
|
|
17
|
+
type: import("vue").PropType<ISelectItem[]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: import("vue").PropType<any>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
placement: {
|
|
33
|
+
type: import("vue").PropType<"bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
multiselect: {
|
|
37
|
+
type: import("vue").PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
"update:modelValue": (value: string | string[]) => void;
|
|
46
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
items: {
|
|
48
|
+
type: import("vue").PropType<ISelectItem[]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
label: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
disabled: {
|
|
56
|
+
type: import("vue").PropType<boolean>;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
modelValue: {
|
|
60
|
+
type: import("vue").PropType<any>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
placement: {
|
|
64
|
+
type: import("vue").PropType<"bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right">;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
multiselect: {
|
|
68
|
+
type: import("vue").PropType<boolean>;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
placeholder: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
}>> & {
|
|
76
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
placement: "bottom-left" | "bottom-center" | "bottom-right" | "top-left" | "top-center" | "top-right";
|
|
80
|
+
multiselect: boolean;
|
|
81
|
+
placeholder: string;
|
|
82
|
+
}, {}>, {
|
|
83
|
+
label?(_: {}): any;
|
|
84
|
+
}>;
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|