@ouestfrance/sipa-bms-ui 8.14.1 → 8.14.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.
- package/dist/components/navigation/BmsMenuNav.vue.d.ts +1 -1
- package/dist/sipa-bms-ui.css +66 -65
- package/dist/sipa-bms-ui.es.js +18 -14
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +18 -14
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/BmsAutocomplete.stories.js +12 -0
- package/src/components/form/BmsInputCode.stories.js +9 -1
- package/src/components/form/BmsInputCode.vue +1 -0
- package/src/components/form/BmsInputFile.vue +1 -0
- package/src/components/form/BmsSelect.stories.js +2 -2
- package/src/components/form/BmsSelect.vue +1 -1
- package/src/components/form/BmsTextArea.stories.js +2 -1
- package/src/components/form/BmsTextArea.vue +1 -0
- package/src/components/form/RawAutocomplete.vue +6 -4
- package/src/components/form/RawInputText.vue +1 -2
- package/src/components/navigation/BmsMenuNav.vue +1 -1
package/package.json
CHANGED
|
@@ -40,6 +40,18 @@ Default.args = {
|
|
|
40
40
|
modelValue: '',
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
export const Disabled = Template.bind({});
|
|
44
|
+
Disabled.args = {
|
|
45
|
+
label: 'My autocomplete field',
|
|
46
|
+
options: [
|
|
47
|
+
{ label: 'titi', value: 'i' },
|
|
48
|
+
{ label: 'toto', value: 'o' },
|
|
49
|
+
{ label: 'tutu', value: 'u' },
|
|
50
|
+
],
|
|
51
|
+
modelValue: 'u',
|
|
52
|
+
disabled: true,
|
|
53
|
+
};
|
|
54
|
+
|
|
43
55
|
export const Loading = Template.bind({});
|
|
44
56
|
Loading.args = {
|
|
45
57
|
label: 'My autocomplete field',
|
|
@@ -36,10 +36,18 @@ Default.args = {
|
|
|
36
36
|
|
|
37
37
|
export const WithValue = Template.bind({});
|
|
38
38
|
WithValue.args = {
|
|
39
|
-
modelValue: 'Une valeur',
|
|
40
39
|
label: 'Label',
|
|
41
40
|
type: 'html',
|
|
42
41
|
modelValue: `
|
|
43
42
|
<div></div>
|
|
44
43
|
<div></div>`,
|
|
45
44
|
};
|
|
45
|
+
export const Disabled = Template.bind({});
|
|
46
|
+
Disabled.args = {
|
|
47
|
+
label: 'Label',
|
|
48
|
+
type: 'html',
|
|
49
|
+
disabled: true,
|
|
50
|
+
modelValue: `
|
|
51
|
+
<div></div>
|
|
52
|
+
<div></div>`,
|
|
53
|
+
};
|
|
@@ -34,7 +34,7 @@ Default.args = {
|
|
|
34
34
|
captions: ['Helping text'],
|
|
35
35
|
modelValue: '',
|
|
36
36
|
options: [
|
|
37
|
-
{ label: '
|
|
37
|
+
{ label: 'azerty', value: 'a' },
|
|
38
38
|
{ label: 'b', value: 'b' },
|
|
39
39
|
],
|
|
40
40
|
};
|
|
@@ -75,7 +75,7 @@ Disabled.args = {
|
|
|
75
75
|
label: 'My label',
|
|
76
76
|
modelValue: 'a',
|
|
77
77
|
options: [
|
|
78
|
-
{ label: '
|
|
78
|
+
{ label: 'azerty', value: 'a' },
|
|
79
79
|
{ label: 'b', value: 'b' },
|
|
80
80
|
],
|
|
81
81
|
disabled: true,
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:value="displayValue"
|
|
15
15
|
:placeholder="placeholder"
|
|
16
16
|
:required="required"
|
|
17
|
+
:disabled="disabled"
|
|
17
18
|
@focus="openDatalist"
|
|
18
19
|
@click="openDatalist"
|
|
19
20
|
@keyup.down="openDatalist"
|
|
@@ -134,7 +135,6 @@ defineExpose({
|
|
|
134
135
|
padding: 0;
|
|
135
136
|
font: inherit;
|
|
136
137
|
color: inherit;
|
|
137
|
-
height: 24px;
|
|
138
138
|
line-height: 1;
|
|
139
139
|
width: 100%;
|
|
140
140
|
height: 100%;
|
|
@@ -43,7 +43,8 @@ WithValue.args = {
|
|
|
43
43
|
export const Disabled = Template.bind({});
|
|
44
44
|
Disabled.args = {
|
|
45
45
|
label: 'My label',
|
|
46
|
-
modelValue:
|
|
46
|
+
modelValue:
|
|
47
|
+
'At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.',
|
|
47
48
|
disabled: true,
|
|
48
49
|
};
|
|
49
50
|
|
|
@@ -166,10 +166,12 @@ const setFocus = () => {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
const clearInput = () => {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
if (!props.disabled) {
|
|
170
|
+
inputText.value = '';
|
|
171
|
+
modelValue.value = null;
|
|
172
|
+
setFocus();
|
|
173
|
+
closeDatalist();
|
|
174
|
+
}
|
|
173
175
|
};
|
|
174
176
|
|
|
175
177
|
defineExpose({
|