@ouestfrance/sipa-bms-ui 7.14.2 → 8.0.1
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 +1 -1
- package/dist/components/form/BmsAutocomplete.vue.d.ts +8 -8
- package/dist/components/form/BmsInputText.vue.d.ts +13 -13
- package/dist/components/form/BmsSearch.vue.d.ts +13 -13
- package/dist/components/form/BmsSelect.vue.d.ts +9 -9
- package/dist/components/form/RawAutocomplete.vue.d.ts +30 -21
- package/dist/components/form/RawInputText.vue.d.ts +6 -6
- package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +13 -13
- package/dist/components/table/BmsTableFilters.vue.d.ts +13 -13
- package/dist/models/form.model.d.ts +6 -0
- package/dist/plugins/field/FieldDatalist.spec.d.ts +1 -0
- package/dist/plugins/field/FieldDatalist.vue.d.ts +13 -12
- package/dist/sipa-bms-ui.css +37 -32
- package/dist/sipa-bms-ui.es.js +3479 -3409
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +3478 -3408
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +11 -11
- package/src/components/form/BmsAutocomplete.vue +17 -8
- package/src/components/form/BmsSelect.spec.ts +5 -14
- package/src/components/form/BmsSelect.vue +8 -52
- package/src/components/form/RawAutocomplete.spec.ts +20 -17
- package/src/components/form/RawAutocomplete.vue +56 -53
- package/src/components/table/BmsTableFilters.vue +2 -2
- package/src/models/form.model.ts +7 -0
- package/src/plugins/field/FieldDatalist.spec.ts +35 -0
- package/src/plugins/field/FieldDatalist.stories.js +10 -0
- package/src/plugins/field/FieldDatalist.vue +85 -7
- package/src/showroom/pages/autocomplete.vue +7 -0
- package/src/showroom/pages/forms.vue +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npm i -D @ouestfrance/sipa-bms-ui
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
> [!NOTE]
|
|
14
|
-
> depuis la version
|
|
14
|
+
> depuis la version 8.0.0 nous avons migré dans l'organisation @ouestfrance. Le nom du package est passé de 'sipa-bms-ui' à @ouestfrance/sipa-bms-ui.
|
|
15
15
|
|
|
16
16
|
> Attention, cette librairie n'est pas compatible Vue 2 et n'embarque pas le runtime de Vue. Il faut que votre application importe elle-même Vue 3.
|
|
17
17
|
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Caption } from '../../models';
|
|
1
|
+
import { Caption, InputOption } from '../../models';
|
|
3
2
|
export interface Props {
|
|
4
|
-
options: string[] |
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
icon?: Component | string;
|
|
8
|
-
}[];
|
|
3
|
+
options: string[] | InputOption[];
|
|
9
4
|
modelValue?: string;
|
|
10
5
|
label?: string;
|
|
11
6
|
required?: boolean;
|
|
@@ -16,14 +11,19 @@ export interface Props {
|
|
|
16
11
|
captions?: string[] | Caption[];
|
|
17
12
|
errors?: string[] | Caption[];
|
|
18
13
|
open?: boolean;
|
|
14
|
+
canAddNewOption?: boolean;
|
|
19
15
|
}
|
|
20
16
|
type __VLS_Props = Props;
|
|
21
17
|
type __VLS_PublicProps = {
|
|
22
|
-
'modelValue'
|
|
18
|
+
'modelValue': string;
|
|
23
19
|
} & __VLS_Props;
|
|
24
20
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
select: (option: InputOption) => any;
|
|
22
|
+
addNewOption: (newOption: string) => any;
|
|
25
23
|
"update:modelValue": (value: string) => any;
|
|
26
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
|
+
onSelect?: ((option: InputOption) => any) | undefined;
|
|
26
|
+
onAddNewOption?: ((newOption: string) => any) | undefined;
|
|
27
27
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
open: boolean;
|
|
@@ -35,11 +35,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
35
35
|
readonly focus?: boolean | undefined;
|
|
36
36
|
readonly type?: InputType | undefined;
|
|
37
37
|
readonly errors?: string[] | Caption[] | undefined;
|
|
38
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
39
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
40
|
-
readonly onKeyUp?: (() => any) | undefined;
|
|
41
38
|
readonly onKeyDown?: (() => any) | undefined;
|
|
39
|
+
readonly onKeyUp?: (() => any) | undefined;
|
|
42
40
|
readonly onKeyEnter?: (() => any) | undefined;
|
|
41
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
42
|
+
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
43
43
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
44
44
|
$attrs: {
|
|
45
45
|
[x: string]: unknown;
|
|
@@ -55,22 +55,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
55
55
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
56
56
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
57
57
|
$host: Element | null;
|
|
58
|
-
$emit: ((event: "
|
|
58
|
+
$emit: ((event: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
|
|
59
59
|
$el: HTMLSpanElement;
|
|
60
60
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
61
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
62
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
63
|
-
onKeyUp?: (() => any) | undefined;
|
|
64
61
|
onKeyDown?: (() => any) | undefined;
|
|
62
|
+
onKeyUp?: (() => any) | undefined;
|
|
65
63
|
onKeyEnter?: (() => any) | undefined;
|
|
64
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
65
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
66
66
|
}>, {
|
|
67
67
|
setFocus: () => void;
|
|
68
68
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
69
|
-
"update:modelValue": (value: string) => any;
|
|
70
|
-
"update:focus": (value: boolean) => any;
|
|
71
|
-
keyUp: () => any;
|
|
72
69
|
keyDown: () => any;
|
|
70
|
+
keyUp: () => any;
|
|
73
71
|
keyEnter: () => any;
|
|
72
|
+
"update:modelValue": (value: string) => any;
|
|
73
|
+
"update:focus": (value: boolean) => any;
|
|
74
74
|
}, string, {
|
|
75
75
|
focus: boolean;
|
|
76
76
|
type: InputType;
|
|
@@ -102,11 +102,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
102
102
|
required: boolean;
|
|
103
103
|
disabled: boolean;
|
|
104
104
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
105
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
106
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
107
|
-
onKeyUp?: (() => any) | undefined;
|
|
108
105
|
onKeyDown?: (() => any) | undefined;
|
|
106
|
+
onKeyUp?: (() => any) | undefined;
|
|
109
107
|
onKeyEnter?: (() => any) | undefined;
|
|
108
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
109
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
110
110
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
111
111
|
setFocus: () => void;
|
|
112
112
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -47,11 +47,11 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
47
47
|
readonly focus?: boolean | undefined;
|
|
48
48
|
readonly type?: import('../..').InputType | undefined;
|
|
49
49
|
readonly errors?: string[] | Caption[] | undefined;
|
|
50
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
51
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
52
|
-
readonly onKeyUp?: (() => any) | undefined;
|
|
53
50
|
readonly onKeyDown?: (() => any) | undefined;
|
|
51
|
+
readonly onKeyUp?: (() => any) | undefined;
|
|
54
52
|
readonly onKeyEnter?: (() => any) | undefined;
|
|
53
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
54
|
+
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
55
55
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
56
56
|
$attrs: {
|
|
57
57
|
[x: string]: unknown;
|
|
@@ -67,22 +67,22 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
67
67
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
68
68
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
69
69
|
$host: Element | null;
|
|
70
|
-
$emit: ((event: "
|
|
70
|
+
$emit: ((event: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
|
|
71
71
|
$el: HTMLSpanElement;
|
|
72
72
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
73
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
74
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
75
|
-
onKeyUp?: (() => any) | undefined;
|
|
76
73
|
onKeyDown?: (() => any) | undefined;
|
|
74
|
+
onKeyUp?: (() => any) | undefined;
|
|
77
75
|
onKeyEnter?: (() => any) | undefined;
|
|
76
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
77
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
78
78
|
}>, {
|
|
79
79
|
setFocus: () => void;
|
|
80
80
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
81
|
-
"update:modelValue": (value: string) => any;
|
|
82
|
-
"update:focus": (value: boolean) => any;
|
|
83
|
-
keyUp: () => any;
|
|
84
81
|
keyDown: () => any;
|
|
82
|
+
keyUp: () => any;
|
|
85
83
|
keyEnter: () => any;
|
|
84
|
+
"update:modelValue": (value: string) => any;
|
|
85
|
+
"update:focus": (value: boolean) => any;
|
|
86
86
|
}, string, {
|
|
87
87
|
focus: boolean;
|
|
88
88
|
type: import('../..').InputType;
|
|
@@ -114,11 +114,11 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
114
114
|
required: boolean;
|
|
115
115
|
disabled: boolean;
|
|
116
116
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
117
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
118
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
119
|
-
onKeyUp?: (() => any) | undefined;
|
|
120
117
|
onKeyDown?: (() => any) | undefined;
|
|
118
|
+
onKeyUp?: (() => any) | undefined;
|
|
121
119
|
onKeyEnter?: (() => any) | undefined;
|
|
120
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
121
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
122
122
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
123
123
|
setFocus: () => void;
|
|
124
124
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Caption } from '../../models/caption.model';
|
|
2
|
+
import { InputOption } from '../../models';
|
|
2
3
|
export interface Props {
|
|
3
|
-
|
|
4
|
-
options: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: any;
|
|
7
|
-
}[];
|
|
4
|
+
options: InputOption[];
|
|
8
5
|
label?: string;
|
|
9
6
|
errors?: string[] | Caption[];
|
|
10
7
|
captions?: string[] | Caption[];
|
|
@@ -15,17 +12,20 @@ export interface Props {
|
|
|
15
12
|
placeholder?: string;
|
|
16
13
|
open?: boolean;
|
|
17
14
|
}
|
|
18
|
-
|
|
15
|
+
type __VLS_Props = Props;
|
|
16
|
+
type __VLS_PublicProps = {
|
|
17
|
+
'modelValue': any;
|
|
18
|
+
} & __VLS_Props;
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
19
20
|
setFocus: () => void;
|
|
20
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
22
|
"update:modelValue": (value: any) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
24
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
24
25
|
}>, {
|
|
25
26
|
label: string;
|
|
26
27
|
required: boolean;
|
|
27
28
|
disabled: boolean;
|
|
28
|
-
modelValue: any;
|
|
29
29
|
open: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
31
|
selectWrapper: HTMLSpanElement;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Caption } from '../../models/caption.model';
|
|
2
|
-
import { InputType } from '../../models';
|
|
2
|
+
import { InputOption, InputType } from '../../models';
|
|
3
3
|
export interface Props {
|
|
4
|
-
options:
|
|
5
|
-
modelValue?: string | null;
|
|
4
|
+
options: InputOption[];
|
|
6
5
|
label?: string;
|
|
7
6
|
required?: boolean;
|
|
8
7
|
optional?: boolean;
|
|
@@ -12,13 +11,23 @@ export interface Props {
|
|
|
12
11
|
captions?: string[] | Caption[];
|
|
13
12
|
errors?: string[] | Caption[];
|
|
14
13
|
open?: boolean;
|
|
14
|
+
canAddNewOption?: boolean;
|
|
15
|
+
newOption?: string;
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
+
type __VLS_Props = Props;
|
|
18
|
+
type __VLS_PublicProps = {
|
|
19
|
+
'modelValue': string | null;
|
|
20
|
+
} & __VLS_Props;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {
|
|
17
22
|
setFocus: () => void;
|
|
18
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
select: (option: InputOption) => any;
|
|
25
|
+
addNewOption: (newOption: string) => any;
|
|
26
|
+
"update:modelValue": (value: string | null) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
28
|
+
onSelect?: ((option: InputOption) => any) | undefined;
|
|
29
|
+
onAddNewOption?: ((newOption: string) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
22
31
|
}>, {
|
|
23
32
|
modelValue: string | null;
|
|
24
33
|
open: boolean;
|
|
@@ -34,11 +43,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
34
43
|
readonly focus?: boolean | undefined;
|
|
35
44
|
readonly type?: InputType | undefined;
|
|
36
45
|
readonly errors?: string[] | Caption[] | undefined;
|
|
37
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
39
|
-
readonly onKeyUp?: (() => any) | undefined;
|
|
40
46
|
readonly onKeyDown?: (() => any) | undefined;
|
|
47
|
+
readonly onKeyUp?: (() => any) | undefined;
|
|
41
48
|
readonly onKeyEnter?: (() => any) | undefined;
|
|
49
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
50
|
+
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
42
51
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
43
52
|
$attrs: {
|
|
44
53
|
[x: string]: unknown;
|
|
@@ -54,22 +63,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
54
63
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
55
64
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
56
65
|
$host: Element | null;
|
|
57
|
-
$emit: ((event: "
|
|
66
|
+
$emit: ((event: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
|
|
58
67
|
$el: HTMLSpanElement;
|
|
59
68
|
$options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
60
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
61
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
62
|
-
onKeyUp?: (() => any) | undefined;
|
|
63
69
|
onKeyDown?: (() => any) | undefined;
|
|
70
|
+
onKeyUp?: (() => any) | undefined;
|
|
64
71
|
onKeyEnter?: (() => any) | undefined;
|
|
72
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
73
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
65
74
|
}>, {
|
|
66
75
|
setFocus: () => void;
|
|
67
76
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
68
|
-
"update:modelValue": (value: string) => any;
|
|
69
|
-
"update:focus": (value: boolean) => any;
|
|
70
|
-
keyUp: () => any;
|
|
71
77
|
keyDown: () => any;
|
|
78
|
+
keyUp: () => any;
|
|
72
79
|
keyEnter: () => any;
|
|
80
|
+
"update:modelValue": (value: string) => any;
|
|
81
|
+
"update:focus": (value: boolean) => any;
|
|
73
82
|
}, string, {
|
|
74
83
|
focus: boolean;
|
|
75
84
|
type: InputType;
|
|
@@ -101,11 +110,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pr
|
|
|
101
110
|
required: boolean;
|
|
102
111
|
disabled: boolean;
|
|
103
112
|
}> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
|
|
104
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
105
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
106
|
-
onKeyUp?: (() => any) | undefined;
|
|
107
113
|
onKeyDown?: (() => any) | undefined;
|
|
114
|
+
onKeyUp?: (() => any) | undefined;
|
|
108
115
|
onKeyEnter?: (() => any) | undefined;
|
|
116
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
117
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
109
118
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
110
119
|
setFocus: () => void;
|
|
111
120
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -11,17 +11,17 @@ export interface Props {
|
|
|
11
11
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {
|
|
12
12
|
setFocus: () => void;
|
|
13
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
14
|
-
"update:modelValue": (value: string) => any;
|
|
15
|
-
"update:focus": (value: boolean) => any;
|
|
16
|
-
keyUp: () => any;
|
|
17
14
|
keyDown: () => any;
|
|
15
|
+
keyUp: () => any;
|
|
18
16
|
keyEnter: () => any;
|
|
17
|
+
"update:modelValue": (value: string) => any;
|
|
18
|
+
"update:focus": (value: boolean) => any;
|
|
19
19
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
22
|
-
onKeyUp?: (() => any) | undefined;
|
|
23
20
|
onKeyDown?: (() => any) | undefined;
|
|
21
|
+
onKeyUp?: (() => any) | undefined;
|
|
24
22
|
onKeyEnter?: (() => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
24
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
focus: boolean;
|
|
27
27
|
type: InputType;
|
|
@@ -48,11 +48,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
48
48
|
readonly focus?: boolean | undefined;
|
|
49
49
|
readonly type?: import('../../models').InputType | undefined;
|
|
50
50
|
readonly errors?: string[] | import('../../models').Caption[] | undefined;
|
|
51
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
53
|
-
readonly onKeyUp?: (() => any) | undefined;
|
|
54
51
|
readonly onKeyDown?: (() => any) | undefined;
|
|
52
|
+
readonly onKeyUp?: (() => any) | undefined;
|
|
55
53
|
readonly onKeyEnter?: (() => any) | undefined;
|
|
54
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
|
+
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
56
56
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
57
57
|
$attrs: {
|
|
58
58
|
[x: string]: unknown;
|
|
@@ -68,22 +68,22 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
68
68
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
69
69
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
70
70
|
$host: Element | null;
|
|
71
|
-
$emit: ((event: "
|
|
71
|
+
$emit: ((event: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
|
|
72
72
|
$el: HTMLSpanElement;
|
|
73
73
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
|
|
74
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
75
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
76
|
-
onKeyUp?: (() => any) | undefined;
|
|
77
74
|
onKeyDown?: (() => any) | undefined;
|
|
75
|
+
onKeyUp?: (() => any) | undefined;
|
|
78
76
|
onKeyEnter?: (() => any) | undefined;
|
|
77
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
78
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
80
|
setFocus: () => void;
|
|
81
81
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
82
|
-
"update:modelValue": (value: string) => any;
|
|
83
|
-
"update:focus": (value: boolean) => any;
|
|
84
|
-
keyUp: () => any;
|
|
85
82
|
keyDown: () => any;
|
|
83
|
+
keyUp: () => any;
|
|
86
84
|
keyEnter: () => any;
|
|
85
|
+
"update:modelValue": (value: string) => any;
|
|
86
|
+
"update:focus": (value: boolean) => any;
|
|
87
87
|
}, string, {
|
|
88
88
|
focus: boolean;
|
|
89
89
|
type: import('../../models').InputType;
|
|
@@ -115,11 +115,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
115
115
|
required: boolean;
|
|
116
116
|
disabled: boolean;
|
|
117
117
|
}> & Omit<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
|
|
118
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
119
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
120
|
-
onKeyUp?: (() => any) | undefined;
|
|
121
118
|
onKeyDown?: (() => any) | undefined;
|
|
119
|
+
onKeyUp?: (() => any) | undefined;
|
|
122
120
|
onKeyEnter?: (() => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
122
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
123
123
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
124
124
|
setFocus: () => void;
|
|
125
125
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -48,11 +48,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
48
48
|
readonly focus?: boolean | undefined;
|
|
49
49
|
readonly type?: import('../../models').InputType | undefined;
|
|
50
50
|
readonly errors?: string[] | import('../../models').Caption[] | undefined;
|
|
51
|
-
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
52
|
-
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
53
|
-
readonly onKeyUp?: (() => any) | undefined;
|
|
54
51
|
readonly onKeyDown?: (() => any) | undefined;
|
|
52
|
+
readonly onKeyUp?: (() => any) | undefined;
|
|
55
53
|
readonly onKeyEnter?: (() => any) | undefined;
|
|
54
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
55
|
+
readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
56
56
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
57
57
|
$attrs: {
|
|
58
58
|
[x: string]: unknown;
|
|
@@ -68,22 +68,22 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
68
68
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
69
69
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
70
70
|
$host: Element | null;
|
|
71
|
-
$emit: ((event: "
|
|
71
|
+
$emit: ((event: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
|
|
72
72
|
$el: HTMLSpanElement;
|
|
73
73
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
|
|
74
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
75
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
76
|
-
onKeyUp?: (() => any) | undefined;
|
|
77
74
|
onKeyDown?: (() => any) | undefined;
|
|
75
|
+
onKeyUp?: (() => any) | undefined;
|
|
78
76
|
onKeyEnter?: (() => any) | undefined;
|
|
77
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
78
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
}>, {
|
|
80
80
|
setFocus: () => void;
|
|
81
81
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
82
|
-
"update:modelValue": (value: string) => any;
|
|
83
|
-
"update:focus": (value: boolean) => any;
|
|
84
|
-
keyUp: () => any;
|
|
85
82
|
keyDown: () => any;
|
|
83
|
+
keyUp: () => any;
|
|
86
84
|
keyEnter: () => any;
|
|
85
|
+
"update:modelValue": (value: string) => any;
|
|
86
|
+
"update:focus": (value: boolean) => any;
|
|
87
87
|
}, string, {
|
|
88
88
|
focus: boolean;
|
|
89
89
|
type: import('../../models').InputType;
|
|
@@ -115,11 +115,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
115
115
|
required: boolean;
|
|
116
116
|
disabled: boolean;
|
|
117
117
|
}> & Omit<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
|
|
118
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
119
|
-
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
120
|
-
onKeyUp?: (() => any) | undefined;
|
|
121
118
|
onKeyDown?: (() => any) | undefined;
|
|
119
|
+
onKeyUp?: (() => any) | undefined;
|
|
122
120
|
onKeyEnter?: (() => any) | undefined;
|
|
121
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
122
|
+
"onUpdate:focus"?: ((value: boolean) => any) | undefined;
|
|
123
123
|
}>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
|
|
124
124
|
setFocus: () => void;
|
|
125
125
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Caption } from './caption.model';
|
|
2
|
+
import { Component } from 'vue';
|
|
2
3
|
export interface BmsInputRadioGroupOption {
|
|
3
4
|
value: any;
|
|
4
5
|
label?: string;
|
|
@@ -23,3 +24,8 @@ export declare enum InputType {
|
|
|
23
24
|
DATE = "date",
|
|
24
25
|
DATETIME = "datetime-local"
|
|
25
26
|
}
|
|
27
|
+
export interface InputOption {
|
|
28
|
+
label: string;
|
|
29
|
+
value: any;
|
|
30
|
+
icon?: Component;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { InputOption } from '../../models';
|
|
2
|
+
export interface Props {
|
|
3
|
+
options: InputOption[];
|
|
4
|
+
isInputFocused: boolean;
|
|
5
|
+
canAddNewOption?: boolean;
|
|
6
|
+
newOption?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
select: (option: any) => any;
|
|
10
|
+
addNewOption: (option: string) => any;
|
|
10
11
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
12
|
onSelect?: ((option: any) => any) | undefined;
|
|
13
|
+
onAddNewOption?: ((option: string) => any) | undefined;
|
|
12
14
|
}>, {
|
|
13
|
-
|
|
15
|
+
canAddNewOption: boolean;
|
|
16
|
+
newOption: string;
|
|
14
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLUListElement>, {
|
|
15
18
|
option?(_: {
|
|
16
|
-
option:
|
|
17
|
-
label: string;
|
|
18
|
-
value: any;
|
|
19
|
-
};
|
|
19
|
+
option: InputOption;
|
|
20
20
|
}): any;
|
|
21
|
+
'new-option'?(_: {}): any;
|
|
21
22
|
}>;
|
|
22
23
|
export default _default;
|
|
23
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|