@ouestfrance/sipa-bms-ui 8.6.0 → 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.
Files changed (54) hide show
  1. package/dist/components/form/BmsAutocomplete.vue.d.ts +2 -0
  2. package/dist/components/form/BmsInputBooleanCheckbox.vue.d.ts +1 -1
  3. package/dist/components/form/BmsInputCheckboxGroup.vue.d.ts +2 -2
  4. package/dist/components/form/BmsInputCode.vue.d.ts +2 -2
  5. package/dist/components/form/BmsInputNumber.vue.d.ts +2 -2
  6. package/dist/components/form/BmsInputRadio.vue.d.ts +2 -2
  7. package/dist/components/form/BmsInputText.vue.d.ts +24 -22
  8. package/dist/components/form/BmsMultiSelect.vue.d.ts +3 -1
  9. package/dist/components/form/BmsSearch.vue.d.ts +28 -24
  10. package/dist/components/form/BmsSelect.vue.d.ts +7 -17
  11. package/dist/components/form/RawAutocomplete.vue.d.ts +17 -21
  12. package/dist/components/form/RawInputText.vue.d.ts +9 -9
  13. package/dist/components/form/RawSelect.vue.d.ts +30 -0
  14. package/dist/components/navigation/UiTenantSwitcher.vue.d.ts +28 -24
  15. package/dist/components/table/BmsServerTable.vue.d.ts +18 -0
  16. package/dist/components/table/BmsTable.vue.d.ts +18 -1
  17. package/dist/components/table/BmsTableFilters.vue.d.ts +47 -25
  18. package/dist/composables/search.composable.d.ts +1 -0
  19. package/dist/plugins/field/FieldDatalist.vue.d.ts +2 -0
  20. package/dist/plugins/field/field-component.model.d.ts +2 -2
  21. package/dist/sipa-bms-ui.css +163 -116
  22. package/dist/sipa-bms-ui.es.js +725 -520
  23. package/dist/sipa-bms-ui.es.js.map +1 -1
  24. package/dist/sipa-bms-ui.umd.js +730 -525
  25. package/dist/sipa-bms-ui.umd.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/components/form/BmsAutocomplete.vue +3 -0
  28. package/src/components/form/BmsInputNumber.spec.ts +26 -0
  29. package/src/components/form/BmsInputNumber.stories.js +20 -3
  30. package/src/components/form/BmsInputNumber.vue +36 -4
  31. package/src/components/form/BmsInputRadio.vue +1 -1
  32. package/src/components/form/BmsInputText.spec.ts +25 -0
  33. package/src/components/form/BmsInputText.stories.js +28 -3
  34. package/src/components/form/BmsInputText.vue +73 -12
  35. package/src/components/form/BmsMultiSelect.vue +66 -28
  36. package/src/components/form/BmsSelect.vue +60 -57
  37. package/src/components/form/RawAutocomplete.spec.ts +0 -8
  38. package/src/components/form/RawAutocomplete.vue +42 -24
  39. package/src/components/form/RawInputText.vue +14 -21
  40. package/src/components/form/RawSelect.vue +111 -0
  41. package/src/components/table/BmsServerTable.vue +18 -3
  42. package/src/components/table/BmsTable.vue +15 -2
  43. package/src/components/table/BmsTableFilters.vue +19 -7
  44. package/src/composables/search.composable.spec.ts +75 -0
  45. package/src/composables/search.composable.ts +54 -11
  46. package/src/plugins/field/FieldComponent.vue +6 -4
  47. package/src/plugins/field/FieldDatalist.stories.js +0 -9
  48. package/src/plugins/field/FieldDatalist.vue +16 -13
  49. package/src/plugins/field/field-component.model.ts +2 -2
  50. package/src/showroom/pages/autocomplete.vue +22 -1
  51. package/src/showroom/pages/server-table.vue +53 -22
  52. package/src/showroom/pages/table.vue +42 -3
  53. package/dist/plugins/field/FieldDatalist.spec.d.ts +0 -1
  54. 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[] | import('../..').Caption[];
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[] | import('../../models').Caption[];
14
- captions: string[] | import('../../models').Caption[];
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[] | import('../..').Caption[];
18
- captions: string[] | import('../..').Caption[];
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[] | Caption[];
11
- errors?: string[] | Caption[];
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[] | Caption[];
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[] | Caption[];
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[] | import('../../models').Caption[] | undefined;
35
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
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 onKeyDown?: (() => any) | undefined;
40
- readonly onKeyUp?: (() => any) | undefined;
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: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
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
- onKeyDown?: (() => any) | undefined;
64
- onKeyUp?: (() => any) | undefined;
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
- keyDown: () => any;
73
- keyUp: () => any;
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
- onKeyDown?: (() => any) | undefined;
110
- onKeyUp?: (() => any) | undefined;
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 & {} & {
@@ -16,5 +16,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
16
16
  label: string;
17
17
  required: boolean;
18
18
  disabled: boolean;
19
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ inputElement: HTMLInputElement;
21
+ }, any>;
20
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[] | Caption[] | undefined;
29
- readonly captions?: string[] | Caption[] | undefined;
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[] | Caption[] | undefined;
54
- readonly captions?: string[] | Caption[] | undefined;
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 onKeyDown?: (() => any) | undefined;
59
- readonly onKeyUp?: (() => any) | undefined;
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: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
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
- onKeyDown?: (() => any) | undefined;
83
- onKeyUp?: (() => any) | undefined;
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
- keyDown: () => any;
92
- keyUp: () => any;
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
- onKeyDown?: (() => any) | undefined;
129
- onKeyUp?: (() => any) | undefined;
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: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {
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
- selectWrapper: HTMLSpanElement;
28
- selectInput: HTMLInputElement;
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
- autocompleteInput: ({
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[] | import('../../models').Caption[] | undefined;
42
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
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 onKeyDown?: (() => any) | undefined;
47
- readonly onKeyUp?: (() => any) | undefined;
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: "keyDown") => void) & ((event: "keyUp") => void) & ((event: "keyEnter") => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:focus", value: boolean) => void);
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
- onKeyDown?: (() => any) | undefined;
71
- onKeyUp?: (() => any) | undefined;
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
- keyDown: () => any;
80
- keyUp: () => any;
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
- onKeyDown?: (() => any) | undefined;
117
- onKeyUp?: (() => any) | undefined;
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
- keyDown: () => any;
14
- keyUp: () => any;
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
- onKeyDown?: (() => any) | undefined;
21
- onKeyUp?: (() => any) | undefined;
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
+ };