@ouestfrance/sipa-bms-ui 8.6.0 → 8.8.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 (62) 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/mockServiceWorker.js +16 -12
  20. package/dist/plugins/field/FieldDatalist.vue.d.ts +2 -0
  21. package/dist/plugins/field/field-component.model.d.ts +2 -2
  22. package/dist/sipa-bms-ui.css +220 -168
  23. package/dist/sipa-bms-ui.es.js +729 -524
  24. package/dist/sipa-bms-ui.es.js.map +1 -1
  25. package/dist/sipa-bms-ui.umd.js +734 -529
  26. package/dist/sipa-bms-ui.umd.js.map +1 -1
  27. package/package.json +11 -11
  28. package/src/assets/scss/global-variables.scss +6 -0
  29. package/src/components/feedback/UiTooltip.vue +1 -1
  30. package/src/components/form/BmsAutocomplete.vue +3 -0
  31. package/src/components/form/BmsInputNumber.spec.ts +26 -0
  32. package/src/components/form/BmsInputNumber.stories.js +20 -3
  33. package/src/components/form/BmsInputNumber.vue +36 -4
  34. package/src/components/form/BmsInputRadio.vue +1 -1
  35. package/src/components/form/BmsInputText.spec.ts +25 -0
  36. package/src/components/form/BmsInputText.stories.js +28 -3
  37. package/src/components/form/BmsInputText.vue +73 -12
  38. package/src/components/form/BmsMultiSelect.vue +66 -28
  39. package/src/components/form/BmsSelect.vue +60 -57
  40. package/src/components/form/RawAutocomplete.spec.ts +0 -8
  41. package/src/components/form/RawAutocomplete.vue +42 -24
  42. package/src/components/form/RawInputText.vue +14 -21
  43. package/src/components/form/RawSelect.vue +111 -0
  44. package/src/components/layout/BmsOverlay.vue +2 -2
  45. package/src/components/layout/UiPopoverMenu.vue +1 -1
  46. package/src/components/navigation/BmsMenu.vue +1 -1
  47. package/src/components/table/BmsServerTable.vue +18 -3
  48. package/src/components/table/BmsTable.vue +15 -2
  49. package/src/components/table/BmsTableFilters.vue +19 -7
  50. package/src/composables/search.composable.spec.ts +75 -0
  51. package/src/composables/search.composable.ts +54 -11
  52. package/src/plugins/field/FieldComponent.vue +7 -5
  53. package/src/plugins/field/FieldDatalist.stories.js +0 -9
  54. package/src/plugins/field/FieldDatalist.vue +16 -13
  55. package/src/plugins/field/field-component.model.ts +2 -2
  56. package/src/plugins/notifications/NotificationWidget.vue +1 -1
  57. package/src/showroom/pages/autocomplete.vue +22 -1
  58. package/src/showroom/pages/server-table.vue +53 -22
  59. package/src/showroom/pages/table.vue +42 -3
  60. package/src/showroom/pages/zindex.vue +39 -0
  61. package/dist/plugins/field/FieldDatalist.spec.d.ts +0 -1
  62. package/src/plugins/field/FieldDatalist.spec.ts +0 -35
@@ -22,15 +22,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
22
22
  readonly inputType?: import('../../models').InputType | undefined;
23
23
  readonly modelValue: string | number;
24
24
  readonly placeholder?: string | undefined;
25
+ readonly min?: number | undefined;
26
+ readonly max?: number | undefined;
27
+ readonly minlength?: number | undefined;
28
+ readonly maxlength?: number | undefined;
25
29
  readonly label?: string | undefined;
26
30
  readonly required?: boolean | undefined;
27
31
  readonly optional?: boolean | undefined;
28
32
  readonly helperText?: string | undefined;
29
- readonly errors?: string[] | import('../../models').Caption[] | undefined;
30
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
33
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
34
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
31
35
  readonly disabled?: boolean | undefined;
32
36
  readonly small?: boolean | undefined;
33
37
  readonly onBlur?: (() => any) | undefined;
38
+ readonly onFocus?: (() => any) | undefined;
34
39
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
40
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
36
41
  $attrs: {
@@ -46,21 +51,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
46
51
  readonly modelValue: string | number;
47
52
  readonly placeholder?: string | undefined;
48
53
  readonly focus?: boolean | undefined;
54
+ readonly min?: number | undefined;
55
+ readonly max?: number | undefined;
56
+ readonly minlength?: number | undefined;
57
+ readonly maxlength?: number | undefined;
49
58
  readonly type?: import('../../models').InputType | undefined;
50
59
  readonly label?: string | undefined;
51
60
  readonly required?: boolean | undefined;
52
61
  readonly optional?: boolean | undefined;
53
62
  readonly helperText?: string | undefined;
54
- readonly errors?: string[] | import('../../models').Caption[] | undefined;
55
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
63
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
64
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
56
65
  readonly disabled?: boolean | undefined;
57
66
  readonly small?: boolean | undefined;
58
67
  readonly onBlur?: (() => any) | undefined;
59
- readonly onKeyDown?: (() => any) | undefined;
60
- readonly onKeyUp?: (() => any) | undefined;
61
- readonly onKeyEnter?: (() => any) | undefined;
68
+ readonly onClick?: (() => any) | undefined;
69
+ readonly onFocus?: (() => any) | undefined;
62
70
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
63
- readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
64
71
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
65
72
  $attrs: {
66
73
  [x: string]: unknown;
@@ -76,24 +83,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
76
83
  $root: 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
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
78
85
  $host: Element | null;
79
- $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);
86
+ $emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
80
87
  $el: HTMLSpanElement;
81
88
  $options: import('vue').ComponentOptionsBase<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
82
89
  onBlur?: (() => any) | undefined;
83
- onKeyDown?: (() => any) | undefined;
84
- onKeyUp?: (() => any) | undefined;
85
- onKeyEnter?: (() => any) | undefined;
90
+ onClick?: (() => any) | undefined;
91
+ onFocus?: (() => any) | undefined;
86
92
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
87
- "onUpdate:focus"?: ((value: boolean) => any) | undefined;
88
93
  }>, {
89
94
  setFocus: () => void;
90
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
95
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
91
96
  blur: () => any;
92
- keyDown: () => any;
93
- keyUp: () => any;
94
- keyEnter: () => any;
97
+ click: () => any;
98
+ focus: () => any;
95
99
  "update:modelValue": (value: string) => any;
96
- "update:focus": (value: boolean) => any;
97
100
  }, string, {
98
101
  focus: boolean;
99
102
  type: import('../../models').InputType;
@@ -126,11 +129,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
126
129
  disabled: boolean;
127
130
  }> & Omit<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
128
131
  onBlur?: (() => any) | undefined;
129
- onKeyDown?: (() => any) | undefined;
130
- onKeyUp?: (() => any) | undefined;
131
- onKeyEnter?: (() => any) | undefined;
132
+ onClick?: (() => any) | undefined;
133
+ onFocus?: (() => any) | undefined;
132
134
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
133
- "onUpdate:focus"?: ((value: boolean) => any) | undefined;
134
135
  }>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
135
136
  setFocus: () => void;
136
137
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -147,15 +148,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
147
148
  $root: 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
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
149
150
  $host: Element | null;
150
- $emit: ((event: "blur") => void) & ((event: "update:modelValue", value: string) => void);
151
+ $emit: ((event: "blur") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
151
152
  $el: any;
152
153
  $options: import('vue').ComponentOptionsBase<Readonly<import('../form/BmsInputText.vue').Props> & Readonly<{
153
154
  onBlur?: (() => any) | undefined;
155
+ onFocus?: (() => any) | undefined;
154
156
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
155
157
  }>, {
156
158
  setFocus: () => void;
157
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
159
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
158
160
  blur: () => any;
161
+ focus: () => any;
159
162
  "update:modelValue": (value: string) => any;
160
163
  }, string, {
161
164
  label: string;
@@ -189,6 +192,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
189
192
  inputType: import('../../models').InputType;
190
193
  }> & Omit<Readonly<import('../form/BmsInputText.vue').Props> & Readonly<{
191
194
  onBlur?: (() => any) | undefined;
195
+ onFocus?: (() => any) | undefined;
192
196
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
193
197
  }>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
194
198
  setFocus: () => void;
@@ -37,11 +37,29 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
37
37
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
38
  "update:selectedItems": (value: unknown[]) => any;
39
39
  saveFilter: (value: SavedFilter) => any;
40
+ filterInput: (args_0: {
41
+ filterKey: string;
42
+ value: any;
43
+ e: InputEvent;
44
+ }) => any;
45
+ filterChange: (args_0: {
46
+ filterKey: string;
47
+ value: any;
48
+ }) => any;
40
49
  deleteSavedFilter: (value: SavedFilter) => any;
41
50
  "update:selectMode": (selectMode: SelectMode) => any;
42
51
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
52
  "onUpdate:selectedItems"?: ((value: unknown[]) => any) | undefined;
44
53
  onSaveFilter?: ((value: SavedFilter) => any) | undefined;
54
+ onFilterInput?: ((args_0: {
55
+ filterKey: string;
56
+ value: any;
57
+ e: InputEvent;
58
+ }) => any) | undefined;
59
+ onFilterChange?: ((args_0: {
60
+ filterKey: string;
61
+ value: any;
62
+ }) => any) | undefined;
45
63
  onDeleteSavedFilter?: ((value: SavedFilter) => any) | undefined;
46
64
  "onUpdate:selectMode"?: ((selectMode: SelectMode) => any) | undefined;
47
65
  }>, {
@@ -25,12 +25,29 @@ type __VLS_PublicProps = {
25
25
  } & __VLS_Props;
26
26
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
27
  "update:selectedItems": (value: unknown[]) => any;
28
- } & {
29
28
  saveFilter: (value: SavedFilter) => any;
29
+ filterInput: (args_0: {
30
+ filterKey: string;
31
+ value: any;
32
+ e: InputEvent;
33
+ }) => any;
34
+ filterChange: (args_0: {
35
+ filterKey: string;
36
+ value: any;
37
+ }) => any;
30
38
  deleteSavedFilter: (value: SavedFilter) => any;
31
39
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
40
  "onUpdate:selectedItems"?: ((value: unknown[]) => any) | undefined;
33
41
  onSaveFilter?: ((value: SavedFilter) => any) | undefined;
42
+ onFilterInput?: ((args_0: {
43
+ filterKey: string;
44
+ value: any;
45
+ e: InputEvent;
46
+ }) => any) | undefined;
47
+ onFilterChange?: ((args_0: {
48
+ filterKey: string;
49
+ value: any;
50
+ }) => any) | undefined;
34
51
  onDeleteSavedFilter?: ((value: SavedFilter) => any) | undefined;
35
52
  }>, {
36
53
  mode: "normal" | "dense";
@@ -4,14 +4,32 @@ type __VLS_Props = {
4
4
  modelValue: Filter[];
5
5
  canSaveFilters?: boolean;
6
6
  };
7
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  "update:modelValue": (filters: Filter[]) => any;
9
9
  saveFilter: (value: SavedFilter) => any;
10
10
  resetFilters: () => any;
11
+ filterInput: (args_0: {
12
+ filterKey: string;
13
+ value: any;
14
+ e: InputEvent;
15
+ }) => any;
16
+ filterChange: (args_0: {
17
+ filterKey: string;
18
+ value: any;
19
+ }) => any;
11
20
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
21
  "onUpdate:modelValue"?: ((filters: Filter[]) => any) | undefined;
13
22
  onSaveFilter?: ((value: SavedFilter) => any) | undefined;
14
23
  onResetFilters?: (() => any) | undefined;
24
+ onFilterInput?: ((args_0: {
25
+ filterKey: string;
26
+ value: any;
27
+ e: InputEvent;
28
+ }) => any) | undefined;
29
+ onFilterChange?: ((args_0: {
30
+ filterKey: string;
31
+ value: any;
32
+ }) => any) | undefined;
15
33
  }>, {
16
34
  canSaveFilters: boolean;
17
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -22,15 +40,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
22
40
  readonly inputType?: import('../../models').InputType | undefined;
23
41
  readonly modelValue: string | number;
24
42
  readonly placeholder?: string | undefined;
43
+ readonly min?: number | undefined;
44
+ readonly max?: number | undefined;
45
+ readonly minlength?: number | undefined;
46
+ readonly maxlength?: number | undefined;
25
47
  readonly label?: string | undefined;
26
48
  readonly required?: boolean | undefined;
27
49
  readonly optional?: boolean | undefined;
28
50
  readonly helperText?: string | undefined;
29
- readonly errors?: string[] | import('../../models').Caption[] | undefined;
30
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
51
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
52
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
31
53
  readonly disabled?: boolean | undefined;
32
54
  readonly small?: boolean | undefined;
33
55
  readonly onBlur?: (() => any) | undefined;
56
+ readonly onFocus?: (() => any) | undefined;
34
57
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
58
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
36
59
  $attrs: {
@@ -46,21 +69,23 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
46
69
  readonly modelValue: string | number;
47
70
  readonly placeholder?: string | undefined;
48
71
  readonly focus?: boolean | undefined;
72
+ readonly min?: number | undefined;
73
+ readonly max?: number | undefined;
74
+ readonly minlength?: number | undefined;
75
+ readonly maxlength?: number | undefined;
49
76
  readonly type?: import('../../models').InputType | undefined;
50
77
  readonly label?: string | undefined;
51
78
  readonly required?: boolean | undefined;
52
79
  readonly optional?: boolean | undefined;
53
80
  readonly helperText?: string | undefined;
54
- readonly errors?: string[] | import('../../models').Caption[] | undefined;
55
- readonly captions?: string[] | import('../../models').Caption[] | undefined;
81
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
82
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
56
83
  readonly disabled?: boolean | undefined;
57
84
  readonly small?: boolean | undefined;
58
85
  readonly onBlur?: (() => any) | undefined;
59
- readonly onKeyDown?: (() => any) | undefined;
60
- readonly onKeyUp?: (() => any) | undefined;
61
- readonly onKeyEnter?: (() => any) | undefined;
86
+ readonly onClick?: (() => any) | undefined;
87
+ readonly onFocus?: (() => any) | undefined;
62
88
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
63
- readonly "onUpdate:focus"?: ((value: boolean) => any) | undefined;
64
89
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
65
90
  $attrs: {
66
91
  [x: string]: unknown;
@@ -76,24 +101,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
76
101
  $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
77
102
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
78
103
  $host: Element | null;
79
- $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);
104
+ $emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
80
105
  $el: HTMLSpanElement;
81
106
  $options: import('vue').ComponentOptionsBase<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
82
107
  onBlur?: (() => any) | undefined;
83
- onKeyDown?: (() => any) | undefined;
84
- onKeyUp?: (() => any) | undefined;
85
- onKeyEnter?: (() => any) | undefined;
108
+ onClick?: (() => any) | undefined;
109
+ onFocus?: (() => any) | undefined;
86
110
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
87
- "onUpdate:focus"?: ((value: boolean) => any) | undefined;
88
111
  }>, {
89
112
  setFocus: () => void;
90
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
113
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
91
114
  blur: () => any;
92
- keyDown: () => any;
93
- keyUp: () => any;
94
- keyEnter: () => any;
115
+ click: () => any;
116
+ focus: () => any;
95
117
  "update:modelValue": (value: string) => any;
96
- "update:focus": (value: boolean) => any;
97
118
  }, string, {
98
119
  focus: boolean;
99
120
  type: import('../../models').InputType;
@@ -126,11 +147,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
126
147
  disabled: boolean;
127
148
  }> & Omit<Readonly<import('../form/RawInputText.vue').Props> & Readonly<{
128
149
  onBlur?: (() => any) | undefined;
129
- onKeyDown?: (() => any) | undefined;
130
- onKeyUp?: (() => any) | undefined;
131
- onKeyEnter?: (() => any) | undefined;
150
+ onClick?: (() => any) | undefined;
151
+ onFocus?: (() => any) | undefined;
132
152
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
133
- "onUpdate:focus"?: ((value: boolean) => any) | undefined;
134
153
  }>, "setFocus" | ("focus" | "type" | "required" | "disabled")> & import('vue').ShallowUnwrapRef<{
135
154
  setFocus: () => void;
136
155
  }> & {} & import('vue').ComponentCustomProperties & {} & {
@@ -147,15 +166,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
147
166
  $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
148
167
  $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
149
168
  $host: Element | null;
150
- $emit: ((event: "blur") => void) & ((event: "update:modelValue", value: string) => void);
169
+ $emit: ((event: "blur") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
151
170
  $el: any;
152
171
  $options: import('vue').ComponentOptionsBase<Readonly<import('../form/BmsInputText.vue').Props> & Readonly<{
153
172
  onBlur?: (() => any) | undefined;
173
+ onFocus?: (() => any) | undefined;
154
174
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
155
175
  }>, {
156
176
  setFocus: () => void;
157
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
177
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
158
178
  blur: () => any;
179
+ focus: () => any;
159
180
  "update:modelValue": (value: string) => any;
160
181
  }, string, {
161
182
  label: string;
@@ -189,6 +210,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
189
210
  inputType: import('../../models').InputType;
190
211
  }> & Omit<Readonly<import('../form/BmsInputText.vue').Props> & Readonly<{
191
212
  onBlur?: (() => any) | undefined;
213
+ onFocus?: (() => any) | undefined;
192
214
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
193
215
  }>, "setFocus" | ("label" | "required" | "disabled" | "inputType")> & import('vue').ShallowUnwrapRef<{
194
216
  setFocus: () => void;
@@ -47,6 +47,7 @@ export declare const useSearch: (persistent?: boolean | Ref<boolean>, defaultFil
47
47
  resetFilters: () => void;
48
48
  selectSavedFilter: (savedFilter: SavedFilter) => void;
49
49
  resetAllFilters: () => void;
50
+ updateFiltersFromProps: (updatedFilters: Filter[]) => void;
50
51
  };
51
52
  export declare const reflectFiltersToPath: (filters: Filter[]) => void;
52
53
  export declare const reflectSearchToPath: (searchValue: string, key: string) => void;
@@ -7,8 +7,8 @@
7
7
  * - Please do NOT modify this file.
8
8
  */
9
9
 
10
- const PACKAGE_VERSION = '2.11.1'
11
- const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
10
+ const PACKAGE_VERSION = '2.11.3'
11
+ const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
12
12
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
13
13
  const activeClientIds = new Set()
14
14
 
@@ -71,11 +71,6 @@ addEventListener('message', async function (event) {
71
71
  break
72
72
  }
73
73
 
74
- case 'MOCK_DEACTIVATE': {
75
- activeClientIds.delete(clientId)
76
- break
77
- }
78
-
79
74
  case 'CLIENT_CLOSED': {
80
75
  activeClientIds.delete(clientId)
81
76
 
@@ -94,6 +89,8 @@ addEventListener('message', async function (event) {
94
89
  })
95
90
 
96
91
  addEventListener('fetch', function (event) {
92
+ const requestInterceptedAt = Date.now()
93
+
97
94
  // Bypass navigation requests.
98
95
  if (event.request.mode === 'navigate') {
99
96
  return
@@ -110,23 +107,29 @@ addEventListener('fetch', function (event) {
110
107
 
111
108
  // Bypass all requests when there are no active clients.
112
109
  // Prevents the self-unregistered worked from handling requests
113
- // after it's been deleted (still remains active until the next reload).
110
+ // after it's been terminated (still remains active until the next reload).
114
111
  if (activeClientIds.size === 0) {
115
112
  return
116
113
  }
117
114
 
118
115
  const requestId = crypto.randomUUID()
119
- event.respondWith(handleRequest(event, requestId))
116
+ event.respondWith(handleRequest(event, requestId, requestInterceptedAt))
120
117
  })
121
118
 
122
119
  /**
123
120
  * @param {FetchEvent} event
124
121
  * @param {string} requestId
122
+ * @param {number} requestInterceptedAt
125
123
  */
126
- async function handleRequest(event, requestId) {
124
+ async function handleRequest(event, requestId, requestInterceptedAt) {
127
125
  const client = await resolveMainClient(event)
128
126
  const requestCloneForEvents = event.request.clone()
129
- const response = await getResponse(event, client, requestId)
127
+ const response = await getResponse(
128
+ event,
129
+ client,
130
+ requestId,
131
+ requestInterceptedAt,
132
+ )
130
133
 
131
134
  // Send back the response clone for the "response:*" life-cycle events.
132
135
  // Ensure MSW is active and ready to handle the message, otherwise
@@ -204,7 +207,7 @@ async function resolveMainClient(event) {
204
207
  * @param {string} requestId
205
208
  * @returns {Promise<Response>}
206
209
  */
207
- async function getResponse(event, client, requestId) {
210
+ async function getResponse(event, client, requestId, requestInterceptedAt) {
208
211
  // Clone the request because it might've been already used
209
212
  // (i.e. its body has been read and sent to the client).
210
213
  const requestClone = event.request.clone()
@@ -255,6 +258,7 @@ async function getResponse(event, client, requestId) {
255
258
  type: 'REQUEST',
256
259
  payload: {
257
260
  id: requestId,
261
+ interceptedAt: requestInterceptedAt,
258
262
  ...serializedRequest,
259
263
  },
260
264
  },
@@ -8,9 +8,11 @@ export interface Props {
8
8
  }
9
9
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
10
  select: (option: any) => any;
11
+ blur: () => any;
11
12
  addNewOption: (option: string) => any;
12
13
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
14
  onSelect?: ((option: any) => any) | undefined;
15
+ onBlur?: (() => any) | undefined;
14
16
  onAddNewOption?: ((option: string) => any) | undefined;
15
17
  }>, {
16
18
  small: boolean;
@@ -4,8 +4,8 @@ export interface FieldComponentProps {
4
4
  required?: boolean;
5
5
  optional?: boolean;
6
6
  helperText?: string;
7
- errors?: string[] | Caption[];
8
- captions?: string[] | Caption[];
7
+ errors?: (string | Caption)[];
8
+ captions?: (string | Caption)[];
9
9
  disabled?: boolean;
10
10
  small?: boolean;
11
11
  }