@ouestfrance/sipa-bms-ui 8.2.0 → 8.4.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 (39) hide show
  1. package/dist/components/layout/BmsCard.vue.d.ts +3 -0
  2. package/dist/components/navigation/BmsFixedMenu.vue.d.ts +17 -0
  3. package/dist/index.d.ts +2 -1
  4. package/dist/mockServiceWorker.js +1 -1
  5. package/dist/sipa-bms-ui.css +75 -45
  6. package/dist/sipa-bms-ui.es.js +4372 -3575
  7. package/dist/sipa-bms-ui.es.js.map +1 -1
  8. package/dist/sipa-bms-ui.umd.js +4378 -3580
  9. package/dist/sipa-bms-ui.umd.js.map +1 -1
  10. package/package.json +21 -25
  11. package/src/assets/scss/global-variables.scss +1 -1
  12. package/src/components/button/UiButton.stories.js +7 -0
  13. package/src/components/feedback/BmsBadge.stories.js +1 -2
  14. package/src/components/feedback/BmsTooltip.stories.js +1 -2
  15. package/src/components/feedback/UiTooltip.stories.js +6 -0
  16. package/src/components/form/BmsInputToggle.stories.js +1 -1
  17. package/src/components/form/RawAutocomplete.spec.ts +30 -10
  18. package/src/components/form/RawAutocomplete.vue +3 -0
  19. package/src/components/form/UiBmsInputCheckbox.stories.js +1 -1
  20. package/src/components/form/UiBmsSwitch.stories.js +6 -1
  21. package/src/components/layout/BmsCard.stories.js +14 -0
  22. package/src/components/layout/BmsCard.vue +14 -2
  23. package/src/components/layout/BmsForm.stories.js +1 -1
  24. package/src/components/layout/BmsHeaderTitle.stories.js +1 -1
  25. package/src/components/navigation/BmsFixedMenu.stories.js +113 -0
  26. package/src/components/navigation/BmsFixedMenu.vue +70 -0
  27. package/src/components/navigation/BmsMenuNav.vue +5 -1
  28. package/src/components/navigation/BmsShortLinkMenu.stories.js +1 -1
  29. package/src/components/navigation/UiMenuItem.stories.js +6 -0
  30. package/src/components/navigation/UiMenuItemStatus.stories.js +6 -0
  31. package/src/components/navigation/UiTab.stories.js +7 -0
  32. package/src/components/navigation/UiTenantSwitcher.stories.js +6 -0
  33. package/src/components/table/UiBmsTable.stories.js +8 -1
  34. package/src/components/table/UiBmsTableRow.vue +5 -5
  35. package/src/components/table/UiFilterButton.stories.js +6 -0
  36. package/src/components/utils/BmsProblem.stories.js +1 -1
  37. package/src/documentation/template_internal_component.mdx +19 -0
  38. package/src/index.ts +3 -0
  39. package/src/showroom/pages/autocomplete.vue +7 -4
@@ -28,9 +28,10 @@
28
28
  :key="cell.key"
29
29
  >
30
30
  <div v-if="isChildElement" class="bms-table__row__cell--child-element">
31
- <div class="bms-table__row__cell--child-element__icon">
32
- <CornerDownRight v-if="index === 0" />
33
- </div>
31
+ <CornerDownRight
32
+ v-if="index === 0"
33
+ class="bms-table__row__cell--child-element__icon"
34
+ />
34
35
  <slot
35
36
  :name="cell.key"
36
37
  :row="item.childElement"
@@ -112,7 +113,7 @@ const getAlignClass = (header: TableHeader) => {
112
113
  --table-cell-padding: 0.5em 1em;
113
114
  }
114
115
  &--selected {
115
- td {
116
+ :deep(td) {
116
117
  background-color: var(--bms-main-10);
117
118
  }
118
119
  }
@@ -141,7 +142,6 @@ const getAlignClass = (header: TableHeader) => {
141
142
  align-items: flex-end;
142
143
  &__icon {
143
144
  display: flex;
144
- min-width: 1em;
145
145
  margin-right: 1em;
146
146
  }
147
147
  }
@@ -1,6 +1,12 @@
1
1
  import UiFilterButton from '@/components/table/UiFilterButton.vue';
2
+ import template from '@/documentation/template_internal_component.mdx';
2
3
 
3
4
  export default {
5
+ parameters: {
6
+ docs: {
7
+ page: template,
8
+ },
9
+ },
4
10
  title: 'Composants/table/FilterButton',
5
11
  component: UiFilterButton,
6
12
  argTypes: {},
@@ -1,7 +1,7 @@
1
1
  import BmsProblem from '@/components/utils/BmsProblem.vue';
2
2
 
3
3
  export default {
4
- title: 'Composants/utils/BmsProblem',
4
+ title: 'Composants/utils/Problem',
5
5
  component: BmsProblem,
6
6
  };
7
7
 
@@ -0,0 +1,19 @@
1
+ import {
2
+ Meta,
3
+ Title,
4
+ Primary,
5
+ Controls,
6
+ Stories,
7
+ } from '@storybook/addon-docs/blocks';
8
+
9
+ <Meta isTemplate />
10
+
11
+ <Title />
12
+
13
+ Ce composant est un composant **interne** à la librairie qui n'est pas exposé.
14
+
15
+ <Primary />
16
+
17
+ <Controls />
18
+
19
+ <Stories />
package/src/index.ts CHANGED
@@ -47,6 +47,7 @@ import BmsStepper from './components/layout/BmsStepper.vue';
47
47
 
48
48
  import BmsBackButton from './components/navigation/BmsBackButton.vue';
49
49
  import BmsBreadcrumb from './components/navigation/BmsBreadcrumb.vue';
50
+ import BmsFixedMenu from './components/navigation/BmsFixedMenu.vue';
50
51
  import BmsLink from './components/navigation/BmsLink.vue';
51
52
  import BmsMenu from './components/navigation/BmsMenu.vue';
52
53
  import BmsMenuNav from './components/navigation/BmsMenuNav.vue';
@@ -115,6 +116,7 @@ export const createBmsUi = () => ({
115
116
 
116
117
  app.component('BmsBackButton', BmsBackButton);
117
118
  app.component('BmsBreadcrumb', BmsBreadcrumb);
119
+ app.component('BmsFixedMenu', BmsFixedMenu);
118
120
  app.component('BmsLink', BmsLink);
119
121
  app.component('BmsMenu', BmsMenu);
120
122
  app.component('BmsMenuNav', BmsMenuNav);
@@ -189,6 +191,7 @@ export {
189
191
  BmsStepper,
190
192
  BmsBackButton,
191
193
  BmsBreadcrumb,
194
+ BmsFixedMenu,
192
195
  BmsLink,
193
196
  BmsMenu,
194
197
  BmsMenuNav,
@@ -1,5 +1,9 @@
1
1
  <template>
2
2
  <BmsBackButton :fallback="{ path: '/' }" />
3
+ <br />
4
+ <BmsButton @click="inputLabelValue = '1'">Set value to '1'</BmsButton>
5
+ <br />
6
+ Valeur: {{ inputLabelValue }}
3
7
  <BmsAutocomplete
4
8
  label="Autocomplete avec label/value"
5
9
  :options="optionsLabelValue"
@@ -8,22 +12,20 @@
8
12
  @add-new-option="onAddNewOption"
9
13
  />
10
14
 
11
- Valeur: {{ inputLabelValue }}
12
-
15
+ Valeur: {{ inputValueIcon }}
13
16
  <BmsAutocomplete
14
17
  label="Autocomplete avec icones"
15
18
  :options="optionsIcon"
16
19
  v-model="inputValueIcon"
17
20
  @select="(o) => console.log('select', o.value)"
18
21
  />
19
- Valeur: {{ inputValueIcon }}
20
22
 
23
+ Valeur: {{ inputText }}
21
24
  <BmsAutocomplete
22
25
  label="Autocomplete avec tableau de strings"
23
26
  :options="optionsText"
24
27
  v-model="inputText"
25
28
  />
26
- Valeur: {{ inputText }}
27
29
  </template>
28
30
 
29
31
  <script setup lang="ts">
@@ -31,6 +33,7 @@ import { BmsAutocomplete, BmsBackButton } from '@/index';
31
33
  import { Heart, Cat } from 'lucide-vue-next';
32
34
  import { range } from 'lodash';
33
35
  import { ref } from 'vue';
36
+ import BmsButton from '@/components/button/BmsButton.vue';
34
37
 
35
38
  const optionsLabelValue = ref(
36
39
  range(0, 30).map((i) =>