@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 CHANGED
@@ -7,9 +7,12 @@ Librairie de composants et plugins VueJS pour les projets de l'équipe BMS du gr
7
7
  Installer d'abord la librairie avec votre package manager préféré :
8
8
 
9
9
  ```
10
- npm i -D sipa-bms-ui
10
+ npm i -D @ouestfrance/sipa-bms-ui
11
11
  ```
12
12
 
13
+ > [!NOTE]
14
+ > depuis la version 7.14.1 nous avons migré dans l'organisation @ouestfrance. Le nom du package est passé de 'sipa-bms-ui' à @ouestfrance/sipa-bms-ui.
15
+
13
16
  > Attention, cette librairie n'est pas compatible Vue 2 et n'embarque pas le runtime de Vue. Il faut que votre application importe elle-même Vue 3.
14
17
 
15
18
  > Autre pré-requis: Utiliser vue-router comme router par défaut
@@ -40,17 +43,17 @@ Dans le backoffice
40
43
 
41
44
  ```
42
45
  "devDependencies": {
43
- "sipa-bms-ui": "file:../platform-library-vuejs-bms",
46
+ "@ouestfrance/sipa-bms-ui": "file:../platform-library-vuejs-bms",
44
47
  }
45
48
  ```
46
49
 
47
50
  ### Méthode _on-demand_ tree-shakeable
48
51
 
49
- À l'intérieur de votre composant, importer ce que vous souhaitez depuis le paquet `sipa-bms-ui` :
52
+ À l'intérieur de votre composant, importer ce que vous souhaitez depuis le paquet `@ouestfrance/sipa-bms-ui` :
50
53
 
51
54
  ```vue
52
55
  <script setup lang="ts">
53
- import { BmsButton } from 'sipa-bms-ui';
56
+ import { BmsButton } from '@ouestfrance/sipa-bms-ui';
54
57
  </script>
55
58
 
56
59
  <template>
@@ -66,7 +69,7 @@ Pour la méthode globale, dans votre fichier de montage, il faut importer et uti
66
69
 
67
70
  ```typescript
68
71
  import { createApp } from 'vue';
69
- import { createBmsUi } from 'sipa-bms-ui';
72
+ import { createBmsUi } from '@ouestfrance/sipa-bms-ui';
70
73
  import App from './App.vue';
71
74
 
72
75
  createApp(App).use(createBmsUi()).mount('#app');
@@ -96,7 +99,7 @@ import {
96
99
  confirmPlugin,
97
100
  routerHistoryPlugin,
98
101
  featureFlipperPlugin,
99
- } from 'sipa-bms-ui';
102
+ } from '@ouestfrance/sipa-bms-ui';
100
103
  import App from './App.vue';
101
104
 
102
105
  createApp(App)
@@ -132,7 +135,7 @@ Dans le composant racine, tel que App.vue ou autre
132
135
  ```
133
136
 
134
137
  ```typescript
135
- import { useNotifications } from 'sipa-bms-ui';
138
+ import { useNotifications } from '@ouestfrance/sipa-bms-ui';
136
139
 
137
140
  const { success, error } = useNotifications();
138
141
 
@@ -158,7 +161,7 @@ Dans le composant racine, tel que App.vue ou autre
158
161
  ```
159
162
 
160
163
  ```typescript
161
- import { useConfirm } from 'sipa-bms-ui';
164
+ import { useConfirm } from '@ouestfrance/sipa-bms-ui';
162
165
 
163
166
  const { confirm } = useConfirm();
164
167
 
@@ -217,7 +220,7 @@ main.ts
217
220
 
218
221
  ```typescript
219
222
  import { createApp } from 'vue';
220
- import { createRuntimeEnv, fetchRuntimeEnv } from 'sipa-bms-ui';
223
+ import { createRuntimeEnv, fetchRuntimeEnv } from '@ouestfrance/sipa-bms-ui';
221
224
  import App from './App.vue';
222
225
 
223
226
  const app = createApp(App);
@@ -232,7 +235,7 @@ fetchRuntimeEnv<{ MY_URL: string }>().then((env) => {
232
235
  MyComponent.vue
233
236
 
234
237
  ```typescript
235
- import { useRuntimeEnv } from 'sipa-bms-ui';
238
+ import { useRuntimeEnv } from '@ouestfrance/sipa-bms-ui';
236
239
 
237
240
  const env = useRuntimeEnv();
238
241
  console.log(env.MY_URL);
@@ -247,7 +250,10 @@ Voici un exemple d'initialisation d'une authentification Keycloak.
247
250
  main.ts
248
251
 
249
252
  ```typescript
250
- import { keycloakAuthAdapter, keycloakAuthAdapterInit } from 'sipa-bms-ui';
253
+ import {
254
+ keycloakAuthAdapter,
255
+ keycloakAuthAdapterInit,
256
+ } from '@ouestfrance/sipa-bms-ui';
251
257
 
252
258
  keycloakAuthAdapterInit({
253
259
  keycloakOptions: {
@@ -271,7 +277,7 @@ keycloakAuthAdapterInit({
271
277
  MyComponent.vue
272
278
 
273
279
  ```typescript
274
- import { useKeycloakAuthAdapter } from 'sipa-bms-ui';
280
+ import { useKeycloakAuthAdapter } from '@ouestfrance/sipa-bms-ui';
275
281
 
276
282
  const { auth } = useKeycloakAuthAdapter();
277
283
  const onClick = () => auth?.value?.logout();
@@ -7,7 +7,7 @@
7
7
  * - Please do NOT modify this file.
8
8
  */
9
9
 
10
- const PACKAGE_VERSION = '2.10.1'
10
+ const PACKAGE_VERSION = '2.10.2'
11
11
  const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
12
12
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
13
13
  const activeClientIds = new Set()
@@ -1348,17 +1348,17 @@ input[type=radio][data-v-cb26402d]:checked::before {
1348
1348
  position: absolute;
1349
1349
  border-radius: 50%;
1350
1350
  filter: blur(10px);
1351
- }.form-section[data-v-bc297639] {
1351
+ }.form-section[data-v-b5bab57e] {
1352
1352
  display: flex;
1353
1353
  flex-direction: column;
1354
1354
  gap: 1em;
1355
1355
  }
1356
- .form-section section[data-v-bc297639] {
1356
+ .form-section section[data-v-b5bab57e] {
1357
1357
  display: flex;
1358
1358
  flex-direction: column;
1359
1359
  gap: 0.5em;
1360
1360
  }
1361
- .form-section .actions[data-v-bc297639] {
1361
+ .form-section .actions[data-v-b5bab57e] {
1362
1362
  display: flex;
1363
1363
  align-items: center;
1364
1364
  justify-content: flex-end;
@@ -2062,13 +2062,13 @@ nav .additional[data-v-f1abaa99] {
2062
2062
  .bms-pagination__select[data-v-e10f3b80] .field__wrapper {
2063
2063
  min-width: 10em;
2064
2064
  width: 10em;
2065
- }.bms-table[data-v-9ea22d5f] {
2065
+ }.bms-table[data-v-54404d98] {
2066
2066
  --table-cell-padding: 1em;
2067
2067
  --table-cell-radius: var(--bms-border-radius-large);
2068
2068
  --dynamic-border-height: 2px;
2069
2069
  --table-border: 1px solid var(--bms-grey-10);
2070
2070
  }
2071
- .bms-table__loader[data-v-9ea22d5f] {
2071
+ .bms-table__loader[data-v-54404d98] {
2072
2072
  position: absolute;
2073
2073
  background: rgba(255, 255, 255, 0.72);
2074
2074
  inset: 0;
@@ -2078,100 +2078,103 @@ nav .additional[data-v-f1abaa99] {
2078
2078
  font-size: 3em;
2079
2079
  z-index: 10;
2080
2080
  }
2081
- .bms-table__actions[data-v-9ea22d5f] {
2081
+ .bms-table__actions[data-v-54404d98] {
2082
2082
  display: flex;
2083
2083
  align-items: center;
2084
2084
  justify-content: space-between;
2085
2085
  margin-bottom: 16px;
2086
2086
  }
2087
- .bms-table__actions__saved-filters[data-v-9ea22d5f] {
2087
+ .bms-table__actions__saved-filters[data-v-54404d98] {
2088
2088
  display: flex;
2089
2089
  align-items: center;
2090
2090
  flex-wrap: wrap;
2091
2091
  gap: 1em;
2092
2092
  }
2093
- .bms-table__actions__search[data-v-9ea22d5f] {
2093
+ .bms-table__actions__search[data-v-54404d98] {
2094
2094
  display: flex;
2095
2095
  align-items: center;
2096
2096
  gap: 1em;
2097
2097
  }
2098
- .bms-table__actions__custom[data-v-9ea22d5f] {
2098
+ .bms-table__actions__custom[data-v-54404d98] {
2099
2099
  display: flex;
2100
2100
  gap: 1em;
2101
2101
  }
2102
- .bms-table__actions__custom[data-v-9ea22d5f]:empty {
2102
+ .bms-table__actions__custom[data-v-54404d98]:empty {
2103
2103
  display: none;
2104
2104
  }
2105
- .bms-table__selected[data-v-9ea22d5f] {
2105
+ .bms-table__selected[data-v-54404d98] {
2106
2106
  margin-bottom: 1em;
2107
2107
  }
2108
- .bms-table__selected .select-mode-all[data-v-9ea22d5f] {
2108
+ .bms-table__selected .select-mode-all[data-v-54404d98] {
2109
2109
  cursor: pointer;
2110
2110
  color: var(--bms-main-100);
2111
2111
  }
2112
- .bms-table__cell--action[data-v-9ea22d5f] {
2112
+ .bms-table__cell__checkbox[data-v-54404d98] {
2113
+ width: 4em;
2114
+ }
2115
+ .bms-table__cell--action[data-v-54404d98] {
2113
2116
  display: flex;
2114
2117
  justify-content: end;
2115
2118
  }
2116
- .bms-table__cell--empty[data-v-9ea22d5f] {
2119
+ .bms-table__cell--empty[data-v-54404d98] {
2117
2120
  height: 360px;
2118
2121
  }
2119
- .bms-table__table[data-v-9ea22d5f] {
2122
+ .bms-table__table[data-v-54404d98] {
2120
2123
  width: 100%;
2121
2124
  border-spacing: 0 var(--dynamic-border-height);
2122
2125
  border-radius: var(--bms-border-radius-large);
2123
2126
  border: var(--table-border);
2124
2127
  position: relative;
2125
2128
  }
2126
- .bms-table__table-wrapper[data-v-9ea22d5f] {
2129
+ .bms-table__table-wrapper[data-v-54404d98] {
2127
2130
  position: relative;
2128
2131
  }
2129
- .bms-table__table thead[data-v-9ea22d5f] {
2132
+ .bms-table__table thead[data-v-54404d98] {
2130
2133
  position: sticky;
2131
2134
  z-index: 2;
2132
2135
  top: var(--header-height, 0);
2133
2136
  }
2134
- .bms-table__table--dense[data-v-9ea22d5f] {
2137
+ .bms-table__table--dense[data-v-54404d98] {
2135
2138
  --table-cell-padding: 0.5em 1em;
2136
2139
  }
2137
- .bms-table__table[data-v-9ea22d5f] tr td {
2140
+ .bms-table__table[data-v-54404d98] tr td {
2138
2141
  padding: var(--table-cell-padding);
2139
2142
  }
2140
- .bms-table__table[data-v-9ea22d5f] tr th {
2143
+ .bms-table__table[data-v-54404d98] tr th {
2141
2144
  --header-content-sort-icon-color: var(--bms-grey-25);
2142
2145
  --header-content-justify: start;
2143
2146
  width: var(--table-cell-width, auto);
2144
2147
  padding: var(--table-cell-padding);
2145
2148
  }
2146
- .bms-table__table[data-v-9ea22d5f] tr th.sortable:hover {
2149
+ .bms-table__table[data-v-54404d98] tr th.sortable:hover {
2147
2150
  --header-content-sort-icon-color: var(--bms-grey-100);
2148
2151
  cursor: pointer;
2149
2152
  }
2150
- .bms-table__table[data-v-9ea22d5f] tr th.u-text-align-start {
2153
+ .bms-table__table[data-v-54404d98] tr th.u-text-align-start {
2151
2154
  --header-content-justify: start;
2152
2155
  }
2153
- .bms-table__table[data-v-9ea22d5f] tr th.u-text-align-center {
2156
+ .bms-table__table[data-v-54404d98] tr th.u-text-align-center {
2154
2157
  --header-content-justify: center;
2155
2158
  }
2156
- .bms-table__table[data-v-9ea22d5f] tr th.u-text-align-end {
2159
+ .bms-table__table[data-v-54404d98] tr th.u-text-align-end {
2157
2160
  --header-content-justify: end;
2158
2161
  }
2159
- .bms-table__table[data-v-9ea22d5f] tr th.sorted {
2162
+ .bms-table__table[data-v-54404d98] tr th.sorted {
2160
2163
  --header-content-sort-icon-color: var(--bms-grey-100);
2161
2164
  }
2162
- .bms-table__table[data-v-9ea22d5f] tr th .header-content {
2165
+ .bms-table__table[data-v-54404d98] tr th .header-content {
2163
2166
  display: flex;
2164
2167
  align-items: center;
2165
2168
  justify-content: var(--header-content-justify);
2166
2169
  gap: 0.5em;
2167
2170
  }
2168
- .bms-table__table[data-v-9ea22d5f] tr th .header-content-sort {
2171
+ .bms-table__table[data-v-54404d98] tr th .header-content-sort {
2169
2172
  color: var(--header-content-sort-icon-color);
2170
2173
  }
2171
- .bms-table__footer[data-v-9ea22d5f] {
2174
+ .bms-table__footer[data-v-54404d98] {
2172
2175
  padding-top: 16px;
2173
2176
  }
2174
- .bms-table .blob[data-v-9ea22d5f] {
2177
+ .bms-table .blob[data-v-54404d98] {
2175
2178
  visibility: hidden;
2176
2179
  --table-blob-height: 80px;
2177
2180
  width: 200px;
@@ -2182,40 +2185,40 @@ nav .additional[data-v-f1abaa99] {
2182
2185
  z-index: -5;
2183
2186
  filter: blur(20px);
2184
2187
  }
2185
- .bms-table .blob.dense[data-v-9ea22d5f] {
2188
+ .bms-table .blob.dense[data-v-54404d98] {
2186
2189
  --table-blob-height: 50px;
2187
2190
  }
2188
- [data-v-9ea22d5f] table {
2191
+ [data-v-54404d98] table {
2189
2192
  padding: 0 var(--dynamic-border-height);
2190
2193
  }
2191
- [data-v-9ea22d5f] table th:first-child {
2194
+ [data-v-54404d98] table th:first-child {
2192
2195
  border-top-left-radius: var(--table-cell-radius);
2193
2196
  }
2194
- [data-v-9ea22d5f] table .stuck th:first-child {
2197
+ [data-v-54404d98] table .stuck th:first-child {
2195
2198
  border-top-left-radius: 0;
2196
2199
  }
2197
- [data-v-9ea22d5f] table .stuck th:last-child {
2200
+ [data-v-54404d98] table .stuck th:last-child {
2198
2201
  border-top-right-radius: 0;
2199
2202
  }
2200
- [data-v-9ea22d5f] table th:last-child {
2203
+ [data-v-54404d98] table th:last-child {
2201
2204
  border-top-right-radius: var(--table-cell-radius);
2202
2205
  }
2203
- [data-v-9ea22d5f] table tr:last-child td:first-child {
2206
+ [data-v-54404d98] table tr:last-child td:first-child {
2204
2207
  border-bottom-left-radius: var(--table-cell-radius);
2205
2208
  }
2206
- [data-v-9ea22d5f] table tr:last-child td:last-child {
2209
+ [data-v-54404d98] table tr:last-child td:last-child {
2207
2210
  border-bottom-right-radius: var(--table-cell-radius);
2208
2211
  }
2209
- [data-v-9ea22d5f] table td,[data-v-9ea22d5f] table th {
2212
+ [data-v-54404d98] table td,[data-v-54404d98] table th {
2210
2213
  background-color: rgb(255, 255, 255);
2211
2214
  }
2212
- [data-v-9ea22d5f] table tbody {
2215
+ [data-v-54404d98] table tbody {
2213
2216
  overflow: hidden;
2214
2217
  }
2215
- [data-v-9ea22d5f] table tbody tr {
2218
+ [data-v-54404d98] table tbody tr {
2216
2219
  position: relative;
2217
2220
  }
2218
- [data-v-9ea22d5f] table tbody tr.selected td {
2221
+ [data-v-54404d98] table tbody tr.selected td {
2219
2222
  background-color: var(--bms-main-10);
2220
2223
  }.filter-button-container[data-v-6047ada7] {
2221
2224
  position: relative;