@ouestfrance/sipa-bms-ui 7.14.1 → 7.14.2
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 +18 -12
- package/dist/mockServiceWorker.js +1 -1
- package/dist/sipa-bms-ui.css +44 -41
- package/dist/sipa-bms-ui.es.js +3435 -3412
- package/dist/sipa-bms-ui.es.js.map +1 -1
- package/dist/sipa-bms-ui.umd.js +3435 -3412
- package/dist/sipa-bms-ui.umd.js.map +1 -1
- package/package.json +9 -9
- package/src/components/layout/BmsForm.stories.js +1 -1
- package/src/components/layout/BmsForm.vue +9 -5
- package/src/components/layout/BmsForm_retrocompat.stories.js +32 -0
- package/src/components/table/UiBmsTable.vue +4 -1
- package/src/pages/Form.stories.js +37 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouestfrance/sipa-bms-ui",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.2",
|
|
4
4
|
"author": "Ouest-France BMS",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"scripts": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@mdx-js/react": "3.1.0",
|
|
39
39
|
"@storybook/addon-actions": "^8.6.14",
|
|
40
40
|
"@storybook/addon-docs": "^9.0.4",
|
|
41
|
-
"@storybook/addon-links": "9.0.
|
|
42
|
-
"@storybook/vue3-vite": "9.0.
|
|
41
|
+
"@storybook/addon-links": "9.0.8",
|
|
42
|
+
"@storybook/vue3-vite": "9.0.8",
|
|
43
43
|
"@types/lodash": "4.17.17",
|
|
44
44
|
"@types/uuid": "10.0.0",
|
|
45
45
|
"@vitejs/plugin-vue": "5.2.4",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vueuse/motion": "^3.0.0",
|
|
49
49
|
"axios": "1.9.0",
|
|
50
50
|
"blob-util": "^2.0.2",
|
|
51
|
-
"chromatic": "12.
|
|
51
|
+
"chromatic": "12.2.0",
|
|
52
52
|
"codemirror": "6.0.1",
|
|
53
53
|
"cors": "^2.8.5",
|
|
54
54
|
"cross-env": "^7.0.3",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"keycloak-js": "26.1.2",
|
|
61
61
|
"lint-staged": "16.1.0",
|
|
62
62
|
"lodash": "4.17.21",
|
|
63
|
-
"lucide-vue-next": "0.
|
|
63
|
+
"lucide-vue-next": "0.514.0",
|
|
64
64
|
"msw-storybook-addon": "^2.0.3",
|
|
65
65
|
"normalize.css": "8.0.1",
|
|
66
66
|
"path": "0.12.7",
|
|
67
67
|
"prettier": "3.5.3",
|
|
68
|
-
"sass": "1.89.
|
|
68
|
+
"sass": "1.89.2",
|
|
69
69
|
"semantic-release": "24.2.5",
|
|
70
70
|
"start-server-and-test": "2.0.12",
|
|
71
|
-
"storybook": "9.0.
|
|
72
|
-
"storybook-addon-pseudo-states": "9.0.
|
|
71
|
+
"storybook": "9.0.8",
|
|
72
|
+
"storybook-addon-pseudo-states": "9.0.8",
|
|
73
73
|
"storybook-vue3-router": "^5.0.0",
|
|
74
74
|
"typescript": "5.2.2",
|
|
75
75
|
"uuid": "11.1.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"vite-plugin-mkcert": "1.17.8",
|
|
79
79
|
"vite-plugin-pages": "0.33.0",
|
|
80
80
|
"vite-svg-loader": "5.1.0",
|
|
81
|
-
"vitest": "3.2.
|
|
81
|
+
"vitest": "3.2.3",
|
|
82
82
|
"vue": "3.5.16",
|
|
83
83
|
"vue-codemirror": "6.1.1",
|
|
84
84
|
"vue-loader": "17.4.2",
|
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
<slot :name="name" />
|
|
6
6
|
</section>
|
|
7
7
|
</template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
8
|
+
<div class="actions">
|
|
9
|
+
<slot name="actions" v-if="hasSlotActions" />
|
|
10
|
+
</div>
|
|
13
11
|
</div>
|
|
14
12
|
</template>
|
|
15
13
|
|
|
@@ -34,8 +32,14 @@
|
|
|
34
32
|
}
|
|
35
33
|
</style>
|
|
36
34
|
<script lang="ts" setup>
|
|
35
|
+
import { computed } from 'vue';
|
|
36
|
+
|
|
37
37
|
const slots = defineSlots();
|
|
38
38
|
|
|
39
|
+
const hasSlotActions = computed((): boolean => {
|
|
40
|
+
return Object.keys(slots).includes('actions');
|
|
41
|
+
});
|
|
42
|
+
|
|
39
43
|
const slotIsAction = (slotName: string): boolean => {
|
|
40
44
|
return slotName === 'actions';
|
|
41
45
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import BmsForm from '@/components/layout/BmsForm.vue';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Composants/layout/BmsForm/for_retrocompat',
|
|
5
|
+
component: BmsForm,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = (args) => ({
|
|
9
|
+
components: {
|
|
10
|
+
BmsForm,
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
return { args };
|
|
14
|
+
},
|
|
15
|
+
template: `
|
|
16
|
+
<BmsForm v-bind="args">
|
|
17
|
+
<template #organization>
|
|
18
|
+
<p>custom slot you can define whith any name(organization)</p>
|
|
19
|
+
</template>
|
|
20
|
+
</BmsForm>
|
|
21
|
+
<BmsForm>
|
|
22
|
+
<template #site>
|
|
23
|
+
<p>custom slot you can define whith any name (site)</p>
|
|
24
|
+
</template>
|
|
25
|
+
<template #actions>
|
|
26
|
+
<div>Slot for Actions components</div>
|
|
27
|
+
</template>
|
|
28
|
+
</BmsForm>
|
|
29
|
+
`,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const Default = Template.bind({});
|
|
@@ -347,7 +347,7 @@ onMounted(() => {
|
|
|
347
347
|
<template v-if="items.length">
|
|
348
348
|
<template v-for="item in items" :key="item">
|
|
349
349
|
<tr :class="{ selected: isItemSelected(item) }">
|
|
350
|
-
<td v-if="selectable">
|
|
350
|
+
<td v-if="selectable" class="bms-table__cell__checkbox">
|
|
351
351
|
<BmsTooltip
|
|
352
352
|
:direction="TooltipDirection.Right"
|
|
353
353
|
tooltip-text="Vous ne pouvez pas désélectionner un élément unitairement si vous avez choisi de sélectionner la totalité des éléments"
|
|
@@ -461,6 +461,9 @@ onMounted(() => {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
&__cell {
|
|
464
|
+
&__checkbox {
|
|
465
|
+
width: 4em;
|
|
466
|
+
}
|
|
464
467
|
&--action {
|
|
465
468
|
display: flex;
|
|
466
469
|
justify-content: end;
|
|
@@ -36,43 +36,43 @@ const Template = (args) => ({
|
|
|
36
36
|
return { args };
|
|
37
37
|
},
|
|
38
38
|
template: `
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
39
|
+
<BmsContentPageLayout>
|
|
40
|
+
<template #header>
|
|
41
|
+
<BmsHeaderTitle title="Le Titre de la page" />
|
|
42
|
+
</template>
|
|
43
|
+
<template #breadcrumb>
|
|
44
|
+
<BmsBreadcrumb :breadcrumbs="args.breadcrumb" />
|
|
45
|
+
</template>
|
|
46
|
+
<template #default>
|
|
47
|
+
<BmsForm>
|
|
48
|
+
<template #form_1>
|
|
49
|
+
Here the form slot for input
|
|
50
|
+
<br />
|
|
51
|
+
<BmsInputText v-model="args.inputValue"
|
|
52
|
+
label="Mon premier champ de formulaire"
|
|
53
|
+
helper-text="help me here !"
|
|
54
|
+
placeholder="ici votre placeholder"
|
|
55
|
+
/>
|
|
56
|
+
</template>
|
|
57
|
+
<template #form_2>
|
|
58
|
+
<BmsAutocomplete v-model="args.selectValue"
|
|
59
|
+
label="Mon second champ de formulaire"
|
|
60
|
+
placeholder="ici votre placeholder"
|
|
61
|
+
helper-text="help me here !"
|
|
62
|
+
:options="['option1','option2']" />
|
|
63
|
+
</template>
|
|
64
|
+
<template #actions>
|
|
65
|
+
<BmsButton :type="'secondary'">
|
|
66
|
+
Annuler
|
|
67
|
+
</BmsButton>
|
|
68
|
+
<BmsButton :type="'primary'">
|
|
69
|
+
Modifier
|
|
70
|
+
</BmsButton>
|
|
71
|
+
</template>
|
|
72
|
+
</BmsForm>
|
|
73
|
+
</template>
|
|
74
|
+
</BmsContentPageLayout>
|
|
75
|
+
`,
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
export const Default = Template.bind({});
|