@ouestfrance/sipa-bms-ui 8.24.1 → 8.24.3

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.
@@ -11,7 +11,9 @@ type __VLS_Props = Props;
11
11
  type __VLS_PublicProps = {
12
12
  'modelValue'?: string;
13
13
  } & __VLS_Props;
14
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
15
+ setFocus: () => void | undefined;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
17
  select: (option: InputOption) => any;
16
18
  input: (e: InputEvent) => any;
17
19
  "update:modelValue": (value: string) => any;
@@ -23,5 +25,220 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
23
25
  onAddNewOption?: ((newOption: string) => any) | undefined;
24
26
  }>, {
25
27
  open: boolean;
26
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ autocompleteElement: ({
30
+ $: import('vue').ComponentInternalInstance;
31
+ $data: {};
32
+ $props: {
33
+ readonly modelValue: string | null;
34
+ readonly options: InputOption[];
35
+ readonly label?: string | undefined;
36
+ readonly placeholder?: string | undefined;
37
+ readonly open?: boolean | undefined;
38
+ readonly canAddNewOption?: boolean | undefined;
39
+ readonly newOption?: string | undefined;
40
+ readonly loading?: boolean | undefined;
41
+ readonly required?: boolean | undefined;
42
+ readonly optional?: boolean | undefined;
43
+ readonly helperText?: string | undefined;
44
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
45
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
46
+ readonly disabled?: boolean | undefined;
47
+ readonly small?: boolean | undefined;
48
+ readonly ellipsisLabel?: boolean | undefined;
49
+ readonly onSelect?: ((option: InputOption) => any) | undefined;
50
+ readonly onInput?: ((e: InputEvent) => any) | undefined;
51
+ readonly onBlur?: (() => any) | undefined;
52
+ readonly onClick?: (() => any) | undefined;
53
+ readonly onFocus?: (() => any) | undefined;
54
+ readonly "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
55
+ readonly onAddNewOption?: ((newOption: string) => any) | undefined;
56
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
57
+ $attrs: {
58
+ [x: string]: unknown;
59
+ };
60
+ $refs: {
61
+ [x: string]: unknown;
62
+ } & {
63
+ rawInput: ({
64
+ $: import('vue').ComponentInternalInstance;
65
+ $data: {};
66
+ $props: {
67
+ readonly modelValue: string | number;
68
+ readonly placeholder?: string | undefined;
69
+ readonly focus?: boolean | undefined;
70
+ readonly min?: number | undefined;
71
+ readonly max?: number | undefined;
72
+ readonly minlength?: number | undefined;
73
+ readonly maxlength?: number | undefined;
74
+ readonly step?: number | undefined;
75
+ readonly type?: import('../../models').InputType | undefined;
76
+ readonly label?: string | undefined;
77
+ readonly loading?: boolean | undefined;
78
+ readonly required?: boolean | undefined;
79
+ readonly optional?: boolean | undefined;
80
+ readonly helperText?: string | undefined;
81
+ readonly errors?: (string | import('../../models').Caption)[] | undefined;
82
+ readonly captions?: (string | import('../../models').Caption)[] | undefined;
83
+ readonly disabled?: boolean | undefined;
84
+ readonly small?: boolean | undefined;
85
+ readonly ellipsisLabel?: boolean | undefined;
86
+ readonly onBlur?: (() => any) | undefined;
87
+ readonly onClick?: (() => any) | undefined;
88
+ readonly onFocus?: (() => any) | undefined;
89
+ readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
90
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
91
+ $attrs: {
92
+ [x: string]: unknown;
93
+ };
94
+ $refs: {
95
+ [x: string]: unknown;
96
+ } & {
97
+ input: HTMLInputElement;
98
+ };
99
+ $slots: Readonly<{
100
+ [name: string]: import('vue').Slot<any> | undefined;
101
+ }>;
102
+ $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
103
+ $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
104
+ $host: Element | null;
105
+ $emit: ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string) => void);
106
+ $el: HTMLSpanElement;
107
+ $options: import('vue').ComponentOptionsBase<Readonly<import('./RawInputText.vue').Props> & Readonly<{
108
+ onBlur?: (() => any) | undefined;
109
+ onClick?: (() => any) | undefined;
110
+ onFocus?: (() => any) | undefined;
111
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
112
+ }>, {
113
+ setFocus: () => void;
114
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
115
+ blur: () => any;
116
+ click: () => any;
117
+ focus: () => any;
118
+ "update:modelValue": (value: string) => any;
119
+ }, string, {
120
+ focus: boolean;
121
+ type: import('../../models').InputType;
122
+ required: boolean;
123
+ step: number;
124
+ disabled: boolean;
125
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
126
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
127
+ created?: ((() => void) | (() => void)[]) | undefined;
128
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
129
+ mounted?: ((() => void) | (() => void)[]) | undefined;
130
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
131
+ updated?: ((() => void) | (() => void)[]) | undefined;
132
+ activated?: ((() => void) | (() => void)[]) | undefined;
133
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
134
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
135
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
136
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
137
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
138
+ renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
139
+ renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
140
+ errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
141
+ };
142
+ $forceUpdate: () => void;
143
+ $nextTick: typeof import('vue').nextTick;
144
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
145
+ } & Readonly<{
146
+ focus: boolean;
147
+ type: import('../../models').InputType;
148
+ required: boolean;
149
+ step: number;
150
+ disabled: boolean;
151
+ }> & Omit<Readonly<import('./RawInputText.vue').Props> & Readonly<{
152
+ onBlur?: (() => any) | undefined;
153
+ onClick?: (() => any) | undefined;
154
+ onFocus?: (() => any) | undefined;
155
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
156
+ }>, "setFocus" | ("focus" | "type" | "required" | "step" | "disabled")> & import('vue').ShallowUnwrapRef<{
157
+ setFocus: () => void;
158
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
159
+ $slots: {
160
+ label?(_: {}): any;
161
+ 'icon-start'?(_: {}): any;
162
+ 'icon-end'?(_: {}): any;
163
+ };
164
+ }) | null;
165
+ };
166
+ $slots: Readonly<{
167
+ [name: string]: import('vue').Slot<any> | undefined;
168
+ }>;
169
+ $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
170
+ $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
171
+ $host: Element | null;
172
+ $emit: ((event: "select", option: InputOption) => void) & ((event: "input", e: InputEvent) => void) & ((event: "blur") => void) & ((event: "click") => void) & ((event: "focus") => void) & ((event: "update:modelValue", value: string | null) => void) & ((event: "addNewOption", newOption: string) => void);
173
+ $el: any;
174
+ $options: import('vue').ComponentOptionsBase<Readonly<{
175
+ modelValue: string | null;
176
+ } & import('./RawAutocomplete.vue').Props> & Readonly<{
177
+ onSelect?: ((option: InputOption) => any) | undefined;
178
+ onInput?: ((e: InputEvent) => any) | undefined;
179
+ onBlur?: (() => any) | undefined;
180
+ onClick?: (() => any) | undefined;
181
+ onFocus?: (() => any) | undefined;
182
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
183
+ onAddNewOption?: ((newOption: string) => any) | undefined;
184
+ }>, {
185
+ setFocus: () => void;
186
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
187
+ select: (option: InputOption) => any;
188
+ input: (e: InputEvent) => any;
189
+ blur: () => any;
190
+ click: () => any;
191
+ focus: () => any;
192
+ "update:modelValue": (value: string | null) => any;
193
+ addNewOption: (newOption: string) => any;
194
+ }, string, {
195
+ modelValue: string | null;
196
+ canAddNewOption: boolean;
197
+ open: boolean;
198
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
199
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
200
+ created?: ((() => void) | (() => void)[]) | undefined;
201
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
202
+ mounted?: ((() => void) | (() => void)[]) | undefined;
203
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
204
+ updated?: ((() => void) | (() => void)[]) | undefined;
205
+ activated?: ((() => void) | (() => void)[]) | undefined;
206
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
207
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
208
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
209
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
210
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
211
+ renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
212
+ renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
213
+ errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
214
+ };
215
+ $forceUpdate: () => void;
216
+ $nextTick: typeof import('vue').nextTick;
217
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
218
+ } & Readonly<{
219
+ modelValue: string | null;
220
+ canAddNewOption: boolean;
221
+ open: boolean;
222
+ }> & Omit<Readonly<{
223
+ modelValue: string | null;
224
+ } & import('./RawAutocomplete.vue').Props> & Readonly<{
225
+ onSelect?: ((option: InputOption) => any) | undefined;
226
+ onInput?: ((e: InputEvent) => any) | undefined;
227
+ onBlur?: (() => any) | undefined;
228
+ onClick?: (() => any) | undefined;
229
+ onFocus?: (() => any) | undefined;
230
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
231
+ onAddNewOption?: ((newOption: string) => any) | undefined;
232
+ }>, "setFocus" | ("modelValue" | "canAddNewOption" | "open")> & import('vue').ShallowUnwrapRef<{
233
+ setFocus: () => void;
234
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
235
+ $slots: {
236
+ 'icon-start'?(_: {}): any;
237
+ 'icon-end'?(_: {}): any;
238
+ option?(_: {
239
+ option: any;
240
+ }): any;
241
+ };
242
+ }) | null;
243
+ }, any>;
27
244
  export default _default;
@@ -3,7 +3,11 @@ type __VLS_Props = {
3
3
  selectedTabId: string | null;
4
4
  tab: Tab;
5
5
  };
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>, {
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
+ click: (event: MouseEvent) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onClick?: ((event: MouseEvent) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
7
11
  router?(_: {
8
12
  tab: Tab;
9
13
  }): any;
@@ -2,7 +2,7 @@ import { Tab } from '../../models/tab.model';
2
2
  type __VLS_Props = {
3
3
  title: string;
4
4
  tabs: Tab[];
5
- initialTabId?: string | null;
5
+ selectedTabId: string | null;
6
6
  };
7
7
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
8
  click: (value: any) => any;
@@ -1,2 +1,5 @@
1
1
  import { Tab } from '../models';
2
+ import { RouteLocation } from 'vue-router';
2
3
  export declare const getTabId: (tab: Tab) => string;
4
+ export declare const isTabSelectedByRoute: (tab: Tab, currentRoute: RouteLocation) => boolean;
5
+ export declare const isTabSelected: (tab: Tab, selectedTabId: string | null) => boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  export interface Tab {
2
2
  routePath?: string;
3
3
  routeName?: string;
4
- id?: string;
4
+ id: string;
5
5
  name: string;
6
6
  disabled?: boolean;
7
7
  error?: boolean;
@@ -709,18 +709,18 @@ ul li[data-v-ba5302fc]:hover, ul li.selected[data-v-ba5302fc] {
709
709
  height: 1em;
710
710
  width: 1em;
711
711
  cursor: pointer;
712
- }.icon[data-v-43ad5137] {
712
+ }.icon[data-v-5c2d3502] {
713
713
  height: 1em;
714
714
  width: 1em;
715
715
  }
716
- .icon.datalist-icon[data-v-43ad5137] {
716
+ .icon.datalist-icon[data-v-5c2d3502] {
717
717
  margin: 0 0.5em;
718
718
  }
719
- .icon[data-v-43ad5137] svg {
719
+ .icon[data-v-5c2d3502] svg {
720
720
  height: 100%;
721
721
  width: 100%;
722
722
  }
723
- .icon[data-v-43ad5137] svg * {
723
+ .icon[data-v-5c2d3502] svg * {
724
724
  fill: currentColor !important;
725
725
  }.icon[data-v-d94effd6] {
726
726
  height: 1em;
@@ -2127,7 +2127,7 @@ nav .additional[data-v-8b4752b4] {
2127
2127
  .menu-slide-left-fade-enter-from .menu__container[data-v-02719cac],
2128
2128
  .menu-slide-left-fade-leave-to .menu__container[data-v-02719cac] {
2129
2129
  transform: translate3d(-10%, 0, 0);
2130
- }.tab[data-v-b6feec3b] {
2130
+ }.tab {
2131
2131
  --tab-border-color: transparent;
2132
2132
  --tab-color: var(--bms-font-color);
2133
2133
  color: var(--tab-color);
@@ -2136,39 +2136,35 @@ nav .additional[data-v-8b4752b4] {
2136
2136
  padding: 0 8px 16px 8px;
2137
2137
  cursor: pointer;
2138
2138
  }
2139
- .tab[data-v-b6feec3b] a {
2140
- color: var(--tab-color);
2141
- text-decoration: none;
2142
- }
2143
- .tab[data-v-b6feec3b]:hover, .tab__hover[data-v-b6feec3b] {
2139
+ .tab:hover, .tab__hover {
2144
2140
  --tab-border-color: var(--bms-main-50);
2145
2141
  text-decoration: none;
2146
2142
  }
2147
- .tab.active[data-v-b6feec3b] {
2143
+ .tab.active {
2148
2144
  --tab-border-color: var(--bms-main-100);
2149
2145
  }
2150
- .tab.disabled[data-v-b6feec3b] {
2146
+ .tab.disabled {
2151
2147
  --tab-border-color: var(transparent);
2152
2148
  --tab-color: var(--bms-grey-50);
2153
2149
  pointer-events: none;
2154
2150
  }
2155
- .tab.error[data-v-b6feec3b] {
2151
+ .tab.error {
2156
2152
  --tab-border-color: var(--bms-danger-color);
2157
2153
  --tab-color: var(--bms-danger-color);
2158
- }.tabs-header[data-v-9f2a5368] {
2154
+ }.tabs-header[data-v-ad59d6ab] {
2159
2155
  display: flex;
2160
2156
  align-items: center;
2161
2157
  border-bottom: 1px solid var(--bms-grey-25);
2162
2158
  box-sizing: border-box;
2163
2159
  }
2164
- .tabs-header .tabs-title[data-v-9f2a5368] {
2160
+ .tabs-header .tabs-title[data-v-ad59d6ab] {
2165
2161
  margin-right: auto;
2166
2162
  margin-bottom: 16px;
2167
2163
  }
2168
- .tabs-header .tabs-title h3[data-v-9f2a5368] {
2164
+ .tabs-header .tabs-title h3[data-v-ad59d6ab] {
2169
2165
  margin: 0;
2170
2166
  }
2171
- .tabs-header span[data-v-9f2a5368] {
2167
+ .tabs-header span[data-v-ad59d6ab] {
2172
2168
  position: relative;
2173
2169
  top: 1px;
2174
2170
  }.ui-menu[data-v-a5b2b7f5] {