@ouestfrance/sipa-bms-ui 8.5.4 → 8.7.0
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/dist/components/form/BmsAutocomplete.vue.d.ts +2 -0
- package/dist/components/form/BmsInputBooleanCheckbox.vue.d.ts +1 -1
- package/dist/components/form/BmsInputCheckboxGroup.vue.d.ts +2 -2
- package/dist/components/form/BmsInputCode.vue.d.ts +2 -2
- package/dist/components/form/BmsInputNumber.vue.d.ts +2 -2
- package/dist/components/form/BmsInputRadio.vue.d.ts +2 -2
- package/dist/components/form/BmsInputText.vue.d.ts +24 -22
- package/dist/components/form/BmsMultiSelect.vue.d.ts +3 -4
- package/dist/components/form/BmsSearch.vue.d.ts +28 -24
- package/dist/components/form/BmsSelect.vue.d.ts +7 -17
- package/dist/components/form/RawAutocomplete.vue.d.ts +17 -21
- package/dist/components/form/RawInputText.vue.d.ts +9 -9
- package/dist/components/form/RawSelect.vue.d.ts +30 -0
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +28 -24
- package/dist/components/table/BmsServerTable.vue.d.ts +18 -0
- package/dist/components/table/BmsTable.vue.d.ts +18 -1
- package/dist/components/table/BmsTableFilters.vue.d.ts +47 -25
- package/dist/components/table/UiBmsTableCell.vue.d.ts +7 -0
- package/dist/composables/search.composable.d.ts +1 -0
- package/dist/models/table.model.d.ts +6 -0
- package/dist/plugins/field/FieldDatalist.vue.d.ts +2 -0
- package/dist/plugins/field/field-component.model.d.ts +2 -2
- package/dist/sipa-bms-ui.css +173 -126
- package/dist/sipa-bms-ui.es.js +4875 -4484
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +4882 -4490
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +11 -11
- package/src/components/form/BmsAutocomplete.vue +3 -0
- package/src/components/form/BmsInputNumber.spec.ts +26 -0
- package/src/components/form/BmsInputNumber.stories.js +20 -3
- package/src/components/form/BmsInputNumber.vue +36 -4
- package/src/components/form/BmsInputRadio.vue +1 -1
- package/src/components/form/BmsInputText.spec.ts +25 -0
- package/src/components/form/BmsInputText.stories.js +28 -3
- package/src/components/form/BmsInputText.vue +73 -12
- package/src/components/form/BmsMultiSelect.vue +67 -30
- package/src/components/form/BmsSelect.vue +60 -57
- package/src/components/form/RawAutocomplete.spec.ts +0 -8
- package/src/components/form/RawAutocomplete.vue +42 -24
- package/src/components/form/RawInputText.vue +14 -21
- package/src/components/form/RawSelect.vue +111 -0
- package/src/components/table/BmsServerTable.vue +18 -3
- package/src/components/table/BmsTable.vue +15 -2
- package/src/components/table/BmsTableFilters.vue +19 -7
- package/src/components/table/UiBmsTable.stories.js +37 -0
- package/src/components/table/UiBmsTableCell.vue +25 -0
- package/src/components/table/UiBmsTableRow.stories.js +30 -0
- package/src/components/table/UiBmsTableRow.vue +3 -2
- package/src/components/utils/BmsRelativeTime.vue +1 -1
- package/src/composables/search.composable.spec.ts +75 -0
- package/src/composables/search.composable.ts +54 -11
- package/src/models/table.model.ts +7 -0
- package/src/plugins/field/FieldComponent.vue +6 -4
- package/src/plugins/field/FieldDatalist.stories.js +0 -9
- package/src/plugins/field/FieldDatalist.vue +16 -13
- package/src/plugins/field/field-component.model.ts +2 -2
- package/src/showroom/pages/autocomplete.vue +22 -1
- package/src/showroom/pages/server-table.vue +53 -22
- package/src/showroom/pages/table.vue +46 -21
- package/dist/plugins/field/FieldDatalist.spec.d.ts +0 -1
- package/src/plugins/field/FieldDatalist.spec.ts +0 -35
|
@@ -13,10 +13,12 @@ type __VLS_PublicProps = {
|
|
|
13
13
|
} & __VLS_Props;
|
|
14
14
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
15
|
select: (option: InputOption) => any;
|
|
16
|
+
input: (e: InputEvent) => any;
|
|
16
17
|
addNewOption: (newOption: string) => any;
|
|
17
18
|
"update:modelValue": (value: string) => any;
|
|
18
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
20
|
onSelect?: ((option: InputOption) => any) | undefined;
|
|
21
|
+
onInput?: ((e: InputEvent) => any) | undefined;
|
|
20
22
|
onAddNewOption?: ((newOption: string) => any) | undefined;
|
|
21
23
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
22
24
|
}>, {
|
|
@@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
12
12
|
label: string;
|
|
13
13
|
required: boolean;
|
|
14
14
|
disabled: boolean;
|
|
15
|
-
errors: string
|
|
15
|
+
errors: (string | import('../..').Caption)[];
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
17
17
|
label?(_: {}): any;
|
|
18
18
|
}>;
|
|
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
10
10
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
errors: string
|
|
14
|
-
captions: string
|
|
13
|
+
errors: (string | import('../../models').Caption)[];
|
|
14
|
+
captions: (string | import('../../models').Caption)[];
|
|
15
15
|
align: "row" | "column";
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
modelValue: string;
|
|
17
|
-
errors: string
|
|
18
|
-
captions: string
|
|
17
|
+
errors: (string | import('../..').Caption)[];
|
|
18
|
+
captions: (string | import('../..').Caption)[];
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -7,8 +7,8 @@ export interface Props {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
helperText?: string;
|
|
9
9
|
placeholder?: string;
|
|
10
|
-
captions?: string
|
|
11
|
-
errors?: string
|
|
10
|
+
captions?: (string | Caption)[];
|
|
11
|
+
errors?: (string | Caption)[];
|
|
12
12
|
max?: number;
|
|
13
13
|
min?: number;
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@ export interface Props {
|
|
|
5
5
|
name: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
-
errors?: string
|
|
8
|
+
errors?: (string | Caption)[];
|
|
9
9
|
required?: boolean;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
16
16
|
label: string;
|
|
17
17
|
required: boolean;
|
|
18
18
|
disabled: boolean;
|
|
19
|
-
errors: string
|
|
19
|
+
errors: (string | Caption)[];
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
21
21
|
label?(_: {}): any;
|
|
22
22
|
}>;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import { InputType } from '../../models';
|
|
1
|
+
import { Caption, InputType } from '../../models';
|
|
2
2
|
import { FieldComponentProps } from '../../plugins/field/field-component.model';
|
|
3
3
|
export interface Props extends FieldComponentProps {
|
|
4
4
|
inputType?: InputType.TEXT | InputType.NUMBER | InputType.DATE | InputType.DATETIME;
|
|
5
5
|
modelValue: string | number;
|
|
6
6
|
placeholder?: string;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
minlength?: number;
|
|
10
|
+
maxlength?: number;
|
|
7
11
|
}
|
|
8
12
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {
|
|
9
13
|
setFocus: () => void;
|
|
10
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
15
|
blur: () => any;
|
|
16
|
+
focus: () => any;
|
|
12
17
|
"update:modelValue": (value: string) => any;
|
|
13
18
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
14
19
|
onBlur?: (() => any) | undefined;
|
|
20
|
+
onFocus?: (() => any) | undefined;
|
|
15
21
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
22
|
}>, {
|
|
17
23
|
label: string;
|
|
@@ -26,21 +32,23 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
26
32
|
readonly modelValue: string | number;
|
|
27
33
|
readonly placeholder?: string | undefined;
|
|
28
34
|
readonly focus?: boolean | undefined;
|
|
35
|
+
readonly min?: number | undefined;
|
|
36
|
+
readonly max?: number | undefined;
|
|
37
|
+
readonly minlength?: number | undefined;
|
|
38
|
+
readonly maxlength?: number | undefined;
|
|
29
39
|
readonly type?: InputType | undefined;
|
|
30
40
|
readonly label?: string | undefined;
|
|
31
41
|
readonly required?: boolean | undefined;
|
|
32
42
|
readonly optional?: boolean | undefined;
|
|
33
43
|
readonly helperText?: string | undefined;
|
|
34
|
-
readonly errors?: string
|
|
35
|
-
readonly captions?: string
|
|
44
|
+
readonly errors?: (string | Caption)[] | undefined;
|
|
45
|
+
readonly captions?: (string | Caption)[] | undefined;
|
|
36
46
|
readonly disabled?: boolean | undefined;
|
|
37
47
|
readonly small?: boolean | undefined;
|
|
38
48
|
readonly onBlur?: (() => any) | undefined;
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly onKeyEnter?: (() => any) | undefined;
|
|
49
|
+
readonly onClick?: (() => any) | undefined;
|
|
50
|
+
readonly onFocus?: (() => any) | undefined;
|
|
42
51
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
43
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
44
52
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
45
53
|
$attrs: {
|
|
46
54
|
[x: string]: unknown;
|
|
@@ -56,24 +64,20 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
56
64
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
57
65
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
58
66
|
$host: Element | null;
|
|
59
|
-
$emit: ((event: "blur") => void) & ((event: "
|
|
67
|
+
$emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
|
|
60
68
|
$el: HTMLSpanElement;
|
|
61
69
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
62
70
|
onBlur?: (() => any) | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
onKeyEnter?: (() => any) | undefined;
|
|
71
|
+
onClick?: (() => any) | undefined;
|
|
72
|
+
onFocus?: (() => any) | undefined;
|
|
66
73
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
67
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
68
74
|
}>, {
|
|
69
75
|
setFocus: () => void;
|
|
70
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
77
|
blur: () => any;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
keyEnter: () => any;
|
|
78
|
+
click: () => any;
|
|
79
|
+
focus: () => any;
|
|
75
80
|
"update:modelValue": (value: string) => any;
|
|
76
|
-
"update:focus": (value: boolean) => any;
|
|
77
81
|
}, string, {
|
|
78
82
|
focus: boolean;
|
|
79
83
|
type: InputType;
|
|
@@ -106,11 +110,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
106
110
|
disabled: boolean;
|
|
107
111
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
108
112
|
onBlur?: (() => any) | undefined;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
onKeyEnter?: (() => any) | undefined;
|
|
113
|
+
onClick?: (() => any) | undefined;
|
|
114
|
+
onFocus?: (() => any) | undefined;
|
|
112
115
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
113
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
114
116
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
115
117
|
setFocus: () => void;
|
|
116
118
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -7,17 +7,16 @@ export interface Props extends FieldComponentProps {
|
|
|
7
7
|
type __VLS_Props = Props;
|
|
8
8
|
type __VLS_PublicProps = {
|
|
9
9
|
'modelValue': InputOption[];
|
|
10
|
-
'open'?: boolean;
|
|
11
10
|
} & __VLS_Props;
|
|
12
11
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
12
|
"update:modelValue": (value: InputOption[]) => any;
|
|
14
|
-
"update:open": (value: boolean) => any;
|
|
15
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
14
|
"onUpdate:modelValue"?: ((value: InputOption[]) => any) | undefined;
|
|
17
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
18
15
|
}>, {
|
|
19
16
|
label: string;
|
|
20
17
|
required: boolean;
|
|
21
18
|
disabled: boolean;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
inputElement: HTMLInputElement;
|
|
21
|
+
}, any>;
|
|
23
22
|
export default _default;
|
|
@@ -21,15 +21,20 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
21
21
|
readonly inputType?: import('../..').InputType | undefined;
|
|
22
22
|
readonly modelValue: string | number;
|
|
23
23
|
readonly placeholder?: string | undefined;
|
|
24
|
+
readonly min?: number | undefined;
|
|
25
|
+
readonly max?: number | undefined;
|
|
26
|
+
readonly minlength?: number | undefined;
|
|
27
|
+
readonly maxlength?: number | undefined;
|
|
24
28
|
readonly label?: string | undefined;
|
|
25
29
|
readonly required?: boolean | undefined;
|
|
26
30
|
readonly optional?: boolean | undefined;
|
|
27
31
|
readonly helperText?: string | undefined;
|
|
28
|
-
readonly errors?: string
|
|
29
|
-
readonly captions?: string
|
|
32
|
+
readonly errors?: (string | Caption)[] | undefined;
|
|
33
|
+
readonly captions?: (string | Caption)[] | undefined;
|
|
30
34
|
readonly disabled?: boolean | undefined;
|
|
31
35
|
readonly small?: boolean | undefined;
|
|
32
36
|
readonly onBlur?: (() => any) | undefined;
|
|
37
|
+
readonly onFocus?: (() => any) | undefined;
|
|
33
38
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
39
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
35
40
|
$attrs: {
|
|
@@ -45,21 +50,23 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
45
50
|
readonly modelValue: string | number;
|
|
46
51
|
readonly placeholder?: string | undefined;
|
|
47
52
|
readonly focus?: boolean | undefined;
|
|
53
|
+
readonly min?: number | undefined;
|
|
54
|
+
readonly max?: number | undefined;
|
|
55
|
+
readonly minlength?: number | undefined;
|
|
56
|
+
readonly maxlength?: number | undefined;
|
|
48
57
|
readonly type?: import('../..').InputType | undefined;
|
|
49
58
|
readonly label?: string | undefined;
|
|
50
59
|
readonly required?: boolean | undefined;
|
|
51
60
|
readonly optional?: boolean | undefined;
|
|
52
61
|
readonly helperText?: string | undefined;
|
|
53
|
-
readonly errors?: string
|
|
54
|
-
readonly captions?: string
|
|
62
|
+
readonly errors?: (string | Caption)[] | undefined;
|
|
63
|
+
readonly captions?: (string | Caption)[] | undefined;
|
|
55
64
|
readonly disabled?: boolean | undefined;
|
|
56
65
|
readonly small?: boolean | undefined;
|
|
57
66
|
readonly onBlur?: (() => any) | undefined;
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly onKeyEnter?: (() => any) | undefined;
|
|
67
|
+
readonly onClick?: (() => any) | undefined;
|
|
68
|
+
readonly onFocus?: (() => any) | undefined;
|
|
61
69
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
62
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
63
70
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
64
71
|
$attrs: {
|
|
65
72
|
[x: string]: unknown;
|
|
@@ -75,24 +82,20 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
75
82
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
76
83
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
77
84
|
$host: Element | null;
|
|
78
|
-
$emit: ((event: "blur") => void) & ((event: "
|
|
85
|
+
$emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
|
|
79
86
|
$el: HTMLSpanElement;
|
|
80
87
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
81
88
|
onBlur?: (() => any) | undefined;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
onKeyEnter?: (() => any) | undefined;
|
|
89
|
+
onClick?: (() => any) | undefined;
|
|
90
|
+
onFocus?: (() => any) | undefined;
|
|
85
91
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
86
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
87
92
|
}>, {
|
|
88
93
|
setFocus: () => void;
|
|
89
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
94
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
95
|
blur: () => any;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
keyEnter: () => any;
|
|
96
|
+
click: () => any;
|
|
97
|
+
focus: () => any;
|
|
94
98
|
"update:modelValue": (value: string) => any;
|
|
95
|
-
"update:focus": (value: boolean) => any;
|
|
96
99
|
}, string, {
|
|
97
100
|
focus: boolean;
|
|
98
101
|
type: import('../..').InputType;
|
|
@@ -125,11 +128,9 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
125
128
|
disabled: boolean;
|
|
126
129
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
127
130
|
onBlur?: (() => any) | undefined;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
onKeyEnter?: (() => any) | undefined;
|
|
131
|
+
onClick?: (() => any) | undefined;
|
|
132
|
+
onFocus?: (() => any) | undefined;
|
|
131
133
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
132
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
133
134
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
134
135
|
setFocus: () => void;
|
|
135
136
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -146,15 +147,17 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
146
147
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
147
148
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
148
149
|
$host: Element | null;
|
|
149
|
-
$emit: ((event: "blur") => void) & ((event: "update:modelValue", value: string) => void);
|
|
150
|
+
$emit: ((event: "blur") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
|
|
150
151
|
$el: any;
|
|
151
152
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./BmsInputText.vue').Props> & Readonly<{
|
|
152
153
|
onBlur?: (() => any) | undefined;
|
|
154
|
+
onFocus?: (() => any) | undefined;
|
|
153
155
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
154
156
|
}>, {
|
|
155
157
|
setFocus: () => void;
|
|
156
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
158
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
157
159
|
blur: () => any;
|
|
160
|
+
focus: () => any;
|
|
158
161
|
"update:modelValue": (value: string) => any;
|
|
159
162
|
}, string, {
|
|
160
163
|
label: string;
|
|
@@ -188,6 +191,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
188
191
|
inputType: import('../..').InputType;
|
|
189
192
|
}> & Omit<Readonly<import('./BmsInputText.vue').Props> & Readonly<{
|
|
190
193
|
onBlur?: (() => any) | undefined;
|
|
194
|
+
onFocus?: (() => any) | undefined;
|
|
191
195
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
192
196
|
}>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
|
|
193
197
|
setFocus: () => void;
|
|
@@ -4,37 +4,27 @@ export interface Props extends FieldComponentProps {
|
|
|
4
4
|
options: InputOption[];
|
|
5
5
|
optional?: boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
|
+
open?: boolean;
|
|
7
8
|
}
|
|
8
9
|
type __VLS_Props = Props;
|
|
9
10
|
type __VLS_PublicProps = {
|
|
10
11
|
'modelValue': any;
|
|
11
|
-
'open'?: boolean;
|
|
12
12
|
} & __VLS_Props;
|
|
13
|
-
declare const _default:
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
14
14
|
setFocus: () => void;
|
|
15
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
select: (value: any) => any;
|
|
16
17
|
"update:modelValue": (value: any) => any;
|
|
17
|
-
"update:open": (value: boolean) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
onSelect?: ((value: any) => any) | undefined;
|
|
19
20
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
label: string;
|
|
23
23
|
small: boolean;
|
|
24
24
|
required: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
|
+
open: boolean;
|
|
26
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, any>, {
|
|
30
|
-
input?(_: {}): any;
|
|
31
|
-
option?(_: {
|
|
32
|
-
option: any;
|
|
33
|
-
}): any;
|
|
34
|
-
}>;
|
|
28
|
+
inputElement: HTMLInputElement;
|
|
29
|
+
}, any>;
|
|
35
30
|
export default _default;
|
|
36
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -26,28 +26,30 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
26
26
|
modelValue: string | null;
|
|
27
27
|
open: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
-
|
|
29
|
+
rawInput: ({
|
|
30
30
|
$: import('vue').ComponentInternalInstance;
|
|
31
31
|
$data: {};
|
|
32
32
|
$props: {
|
|
33
33
|
readonly modelValue: string | number;
|
|
34
34
|
readonly placeholder?: string | undefined;
|
|
35
35
|
readonly focus?: boolean | undefined;
|
|
36
|
+
readonly min?: number | undefined;
|
|
37
|
+
readonly max?: number | undefined;
|
|
38
|
+
readonly minlength?: number | undefined;
|
|
39
|
+
readonly maxlength?: number | undefined;
|
|
36
40
|
readonly type?: InputType | undefined;
|
|
37
41
|
readonly label?: string | undefined;
|
|
38
42
|
readonly required?: boolean | undefined;
|
|
39
43
|
readonly optional?: boolean | undefined;
|
|
40
44
|
readonly helperText?: string | undefined;
|
|
41
|
-
readonly errors?: string
|
|
42
|
-
readonly captions?: string
|
|
45
|
+
readonly errors?: (string | import('../../models').Caption)[] | undefined;
|
|
46
|
+
readonly captions?: (string | import('../../models').Caption)[] | undefined;
|
|
43
47
|
readonly disabled?: boolean | undefined;
|
|
44
48
|
readonly small?: boolean | undefined;
|
|
45
49
|
readonly onBlur?: (() => any) | undefined;
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly onKeyEnter?: (() => any) | undefined;
|
|
50
|
+
readonly onClick?: (() => any) | undefined;
|
|
51
|
+
readonly onFocus?: (() => any) | undefined;
|
|
49
52
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
50
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
51
53
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
52
54
|
$attrs: {
|
|
53
55
|
[x: string]: unknown;
|
|
@@ -63,24 +65,20 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
63
65
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
64
66
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
65
67
|
$host: Element | null;
|
|
66
|
-
$emit: ((event: "blur") => void) & ((event: "
|
|
68
|
+
$emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
|
|
67
69
|
$el: HTMLSpanElement;
|
|
68
70
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
69
71
|
onBlur?: (() => any) | undefined;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
onKeyEnter?: (() => any) | undefined;
|
|
72
|
+
onClick?: (() => any) | undefined;
|
|
73
|
+
onFocus?: (() => any) | undefined;
|
|
73
74
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
74
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
75
75
|
}>, {
|
|
76
76
|
setFocus: () => void;
|
|
77
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
78
78
|
blur: () => any;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
keyEnter: () => any;
|
|
79
|
+
click: () => any;
|
|
80
|
+
focus: () => any;
|
|
82
81
|
"update:modelValue": (value: string) => any;
|
|
83
|
-
"update:focus": (value: boolean) => any;
|
|
84
82
|
}, string, {
|
|
85
83
|
focus: boolean;
|
|
86
84
|
type: InputType;
|
|
@@ -113,11 +111,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
113
111
|
disabled: boolean;
|
|
114
112
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
115
113
|
onBlur?: (() => any) | undefined;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
onKeyEnter?: (() => any) | undefined;
|
|
114
|
+
onClick?: (() => any) | undefined;
|
|
115
|
+
onFocus?: (() => any) | undefined;
|
|
119
116
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
120
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
121
117
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
122
118
|
setFocus: () => void;
|
|
123
119
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -4,24 +4,24 @@ export interface Props extends FieldComponentProps {
|
|
|
4
4
|
modelValue: string | number;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
focus?: boolean;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
minlength?: number;
|
|
10
|
+
maxlength?: number;
|
|
7
11
|
type?: InputType.TEXT | InputType.NUMBER | InputType.DATE | InputType.DATETIME;
|
|
8
12
|
}
|
|
9
13
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {
|
|
10
14
|
setFocus: () => void;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
16
|
blur: () => any;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
keyEnter: () => any;
|
|
17
|
+
click: () => any;
|
|
18
|
+
focus: () => any;
|
|
16
19
|
"update:modelValue": (value: string) => any;
|
|
17
|
-
"update:focus": (value: boolean) => any;
|
|
18
20
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
19
21
|
onBlur?: (() => any) | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
onKeyEnter?: (() => any) | undefined;
|
|
22
|
+
onClick?: (() => any) | undefined;
|
|
23
|
+
onFocus?: (() => any) | undefined;
|
|
23
24
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
focus: boolean;
|
|
27
27
|
type: InputType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { InputOption } from '../../models';
|
|
2
|
+
import { FieldComponentProps } from '../../plugins/field/field-component.model';
|
|
3
|
+
export interface Props extends FieldComponentProps {
|
|
4
|
+
options: InputOption[];
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
open?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
select: (selectedItem: any) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
+
onSelect?: ((selectedItem: any) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
label: string;
|
|
15
|
+
small: boolean;
|
|
16
|
+
required: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
open: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
20
|
+
input?(_: {}): any;
|
|
21
|
+
option?(_: {
|
|
22
|
+
option: any;
|
|
23
|
+
}): any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|