@ouestfrance/sipa-bms-ui 8.32.2 → 8.34.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.
@@ -3,12 +3,14 @@ type __VLS_Props = {
3
3
  message?: string;
4
4
  dismissable?: boolean;
5
5
  type?: StatusType;
6
+ small?: boolean;
6
7
  };
7
8
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
9
  dismiss: () => any;
9
10
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
11
  onDismiss?: (() => any) | undefined;
11
12
  }>, {
13
+ small: boolean;
12
14
  type: StatusType;
13
15
  dismissable: boolean;
14
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
@@ -15,6 +15,7 @@ export interface TableHeader {
15
15
  sortFunction?: SortFunction;
16
16
  action?: boolean;
17
17
  columnType?: ColumnType;
18
+ helperText?: string;
18
19
  }
19
20
  export interface ServerTableRequestParams {
20
21
  size: number;
@@ -336,7 +336,7 @@
336
336
  left: 50%;
337
337
  transform: translateX(-50%);
338
338
  width: 1em;
339
- }.alert[data-v-26caccdd] {
339
+ }.alert[data-v-a7263d5e] {
340
340
  --alert-main-color: var(--bms-main-100);
341
341
  --alert-secondary-color: var(--bms-main-10);
342
342
  background-color: var(--alert-secondary-color);
@@ -344,29 +344,32 @@
344
344
  border: 1px solid var(--alert-main-color);
345
345
  padding: 16px;
346
346
  }
347
- .alert-information[data-v-26caccdd] {
347
+ .alert-information[data-v-a7263d5e] {
348
348
  --alert-main-color: var(--bms-main-100);
349
349
  --alert-secondary-color: var(--bms-main-10);
350
350
  }
351
- .alert-danger[data-v-26caccdd] {
351
+ .alert-danger[data-v-a7263d5e] {
352
352
  --alert-main-color: var(--bms-red-100);
353
353
  --alert-secondary-color: var(--bms-red-10);
354
354
  }
355
- .alert-warning[data-v-26caccdd] {
355
+ .alert-warning[data-v-a7263d5e] {
356
356
  --alert-main-color: var(--bms-orange-100);
357
357
  --alert-secondary-color: var(--bms-orange-10);
358
358
  }
359
- .alert .info-line[data-v-26caccdd] {
359
+ .alert--small[data-v-a7263d5e] {
360
+ padding: 0 16px;
361
+ }
362
+ .alert .info-line[data-v-a7263d5e] {
360
363
  display: flex;
361
364
  flex-wrap: nowrap;
362
365
  gap: 16px;
363
366
  align-items: baseline;
364
367
  }
365
- .alert .info-line .icon[data-v-26caccdd] {
368
+ .alert .info-line .icon[data-v-a7263d5e] {
366
369
  color: var(--alert-main-color);
367
370
  display: flex;
368
371
  }
369
- .alert .info-line .message[data-v-26caccdd] {
372
+ .alert .info-line .message[data-v-a7263d5e] {
370
373
  flex-grow: 1;
371
374
  align-self: center;
372
375
  }.ui-badge__container[data-v-8a6297ca] {
@@ -2517,13 +2520,13 @@ nav .additional[data-v-8b4752b4] {
2517
2520
  .bms-table__row__cell--child-element__icon[data-v-2ab3888f] {
2518
2521
  display: flex;
2519
2522
  margin-right: 1em;
2520
- }.bms-table[data-v-f6b2c936] {
2523
+ }.bms-table[data-v-627a3fc5] {
2521
2524
  --table-cell-padding: 1em;
2522
2525
  --table-cell-radius: var(--bms-border-radius-large);
2523
2526
  --dynamic-border-height: 2px;
2524
2527
  --table-border: 1px solid var(--bms-grey-10);
2525
2528
  }
2526
- .bms-table__loader[data-v-f6b2c936] {
2529
+ .bms-table__loader[data-v-627a3fc5] {
2527
2530
  position: absolute;
2528
2531
  background: rgba(255, 255, 255, 0.72);
2529
2532
  inset: 0;
@@ -2533,113 +2536,119 @@ nav .additional[data-v-8b4752b4] {
2533
2536
  font-size: 3em;
2534
2537
  z-index: 10;
2535
2538
  }
2536
- .bms-table__actions[data-v-f6b2c936] {
2539
+ .bms-table__actions[data-v-627a3fc5] {
2537
2540
  display: flex;
2538
2541
  align-items: center;
2539
2542
  justify-content: space-between;
2540
2543
  margin-bottom: 1em;
2541
2544
  }
2542
- .bms-table__actions--small[data-v-f6b2c936] {
2545
+ .bms-table__actions--small[data-v-627a3fc5] {
2543
2546
  margin-bottom: 0.5em;
2544
2547
  }
2545
- .bms-table__actions__saved-filters[data-v-f6b2c936] {
2548
+ .bms-table__actions__saved-filters[data-v-627a3fc5] {
2546
2549
  display: flex;
2547
2550
  align-items: center;
2548
2551
  flex-wrap: wrap;
2549
2552
  gap: 1em;
2550
2553
  }
2551
- .bms-table__actions__search[data-v-f6b2c936] {
2554
+ .bms-table__actions__search[data-v-627a3fc5] {
2552
2555
  display: flex;
2553
2556
  align-items: center;
2554
2557
  gap: 1em;
2555
2558
  }
2556
- .bms-table__actions__custom[data-v-f6b2c936] {
2559
+ .bms-table__actions__custom[data-v-627a3fc5] {
2557
2560
  display: flex;
2558
2561
  gap: 1em;
2559
2562
  }
2560
- .bms-table__actions__custom[data-v-f6b2c936]:empty {
2563
+ .bms-table__actions__custom[data-v-627a3fc5]:empty {
2561
2564
  display: none;
2562
2565
  }
2563
- .bms-table__selected[data-v-f6b2c936] {
2566
+ .bms-table__selected[data-v-627a3fc5] {
2564
2567
  margin-bottom: 1em;
2565
2568
  }
2566
- .bms-table__selected .select-mode-all[data-v-f6b2c936] {
2569
+ .bms-table__selected .select-mode-all[data-v-627a3fc5] {
2567
2570
  cursor: pointer;
2568
2571
  color: var(--bms-main-100);
2569
2572
  }
2570
- .bms-table__cell__checkbox[data-v-f6b2c936] {
2573
+ .bms-table__cell__checkbox[data-v-627a3fc5] {
2571
2574
  width: 4em;
2572
2575
  }
2573
- .bms-table__cell--action[data-v-f6b2c936] {
2576
+ .bms-table__cell--action[data-v-627a3fc5] {
2574
2577
  display: flex;
2575
2578
  justify-content: end;
2576
2579
  }
2577
- .bms-table__cell--empty[data-v-f6b2c936] {
2580
+ .bms-table__cell--empty[data-v-627a3fc5] {
2578
2581
  height: 360px;
2579
2582
  }
2580
- .bms-table__table[data-v-f6b2c936] {
2583
+ .bms-table__table[data-v-627a3fc5] {
2581
2584
  width: 100%;
2582
2585
  border-spacing: 0 var(--dynamic-border-height);
2583
2586
  border-radius: var(--bms-border-radius-large);
2584
2587
  border: var(--table-border);
2585
2588
  position: relative;
2586
2589
  }
2587
- .bms-table__table-wrapper[data-v-f6b2c936] {
2590
+ .bms-table__table-wrapper[data-v-627a3fc5] {
2588
2591
  position: relative;
2589
2592
  }
2590
- .bms-table__table thead[data-v-f6b2c936] {
2593
+ .bms-table__table thead[data-v-627a3fc5] {
2591
2594
  position: sticky;
2592
2595
  z-index: 2;
2593
2596
  top: var(--header-height, 0);
2594
2597
  }
2595
- .bms-table__table--dense[data-v-f6b2c936] {
2598
+ .bms-table__table--dense[data-v-627a3fc5] {
2596
2599
  --table-cell-padding: 0.5em 1em;
2597
2600
  }
2598
- .bms-table__table[data-v-f6b2c936] tr td {
2601
+ .bms-table__table[data-v-627a3fc5] tr td {
2599
2602
  padding: var(--table-cell-padding);
2600
2603
  }
2601
- .bms-table__table th[data-v-f6b2c936] {
2604
+ .bms-table__table th[data-v-627a3fc5] {
2602
2605
  --header-content-sort-icon-color: var(--bms-grey-25);
2603
2606
  --header-content-justify: start;
2604
2607
  width: var(--table-cell-width, auto);
2605
2608
  padding: var(--table-cell-padding);
2606
2609
  }
2607
- .bms-table__table th.sortable[data-v-f6b2c936]:hover {
2610
+ .bms-table__table th.sortable[data-v-627a3fc5]:hover {
2608
2611
  --header-content-sort-icon-color: var(--bms-grey-100);
2609
2612
  cursor: pointer;
2610
2613
  }
2611
- .bms-table__table th.u-text-align-start[data-v-f6b2c936] {
2614
+ .bms-table__table th.u-text-align-start[data-v-627a3fc5] {
2612
2615
  --header-content-justify: start;
2613
2616
  }
2614
- .bms-table__table th.u-text-align-center[data-v-f6b2c936] {
2617
+ .bms-table__table th.u-text-align-center[data-v-627a3fc5] {
2615
2618
  --header-content-justify: center;
2616
2619
  }
2617
- .bms-table__table th.u-text-align-end[data-v-f6b2c936] {
2620
+ .bms-table__table th.u-text-align-end[data-v-627a3fc5] {
2618
2621
  --header-content-justify: end;
2619
2622
  }
2620
- .bms-table__table th.sorted[data-v-f6b2c936] {
2623
+ .bms-table__table th.sorted[data-v-627a3fc5] {
2621
2624
  --header-content-sort-icon-color: var(--bms-grey-100);
2622
2625
  }
2623
- .bms-table__table th .header-content[data-v-f6b2c936] {
2626
+ .bms-table__table th .header-content[data-v-627a3fc5] {
2624
2627
  display: flex;
2625
2628
  align-items: center;
2626
2629
  justify-content: var(--header-content-justify);
2627
2630
  gap: 0.5em;
2628
2631
  }
2629
- .bms-table__table th .header-content-sort[data-v-f6b2c936] {
2632
+ .bms-table__table th .header-content-sort[data-v-627a3fc5] {
2630
2633
  color: var(--header-content-sort-icon-color);
2631
2634
  }
2632
- .bms-table__footer[data-v-f6b2c936] {
2635
+ .bms-table__table th .header-content-helper[data-v-627a3fc5] {
2636
+ display: flex;
2637
+ align-items: center;
2638
+ flex-shrink: 0;
2639
+ color: var(--bms-grey-100);
2640
+ }
2641
+ .bms-table__footer[data-v-627a3fc5] {
2633
2642
  padding-top: 16px;
2634
2643
  }
2635
- .bms-table .blob[data-v-f6b2c936] {
2644
+ .bms-table .blob[data-v-627a3fc5] {
2636
2645
  visibility: hidden;
2637
2646
  --table-blob-height: 80px;
2638
2647
  }
2639
- .bms-table .blob.small[data-v-f6b2c936], .bms-table .blob.dense[data-v-f6b2c936] {
2648
+ .bms-table .blob.small[data-v-627a3fc5], .bms-table .blob.dense[data-v-627a3fc5] {
2640
2649
  --table-blob-height: 50px;
2641
2650
  }
2642
- .bms-table .blob[data-v-f6b2c936] {
2651
+ .bms-table .blob[data-v-627a3fc5] {
2643
2652
  width: 200px;
2644
2653
  height: var(--table-blob-height);
2645
2654
  background-color: var(--bms-main-50);
@@ -2648,29 +2657,29 @@ nav .additional[data-v-8b4752b4] {
2648
2657
  z-index: -5;
2649
2658
  filter: blur(20px);
2650
2659
  }
2651
- [data-v-f6b2c936] table {
2660
+ [data-v-627a3fc5] table {
2652
2661
  padding: 0 var(--dynamic-border-height);
2653
2662
  }
2654
- [data-v-f6b2c936] table th:first-child {
2663
+ [data-v-627a3fc5] table th:first-child {
2655
2664
  border-top-left-radius: var(--table-cell-radius);
2656
2665
  }
2657
- [data-v-f6b2c936] table th:last-child {
2666
+ [data-v-627a3fc5] table th:last-child {
2658
2667
  border-top-right-radius: var(--table-cell-radius);
2659
2668
  }
2660
- [data-v-f6b2c936] table tr:last-child td:first-child {
2669
+ [data-v-627a3fc5] table tr:last-child td:first-child {
2661
2670
  border-bottom-left-radius: var(--table-cell-radius);
2662
2671
  }
2663
- [data-v-f6b2c936] table tr:last-child td:last-child {
2672
+ [data-v-627a3fc5] table tr:last-child td:last-child {
2664
2673
  border-bottom-right-radius: var(--table-cell-radius);
2665
2674
  }
2666
- [data-v-f6b2c936] table th {
2675
+ [data-v-627a3fc5] table th {
2667
2676
  background-color: rgb(255, 255, 255);
2668
2677
  }
2669
- [data-v-f6b2c936] table tbody {
2678
+ [data-v-627a3fc5] table tbody {
2670
2679
  overflow: hidden;
2671
2680
  background: white;
2672
2681
  }
2673
- [data-v-f6b2c936] table tbody tr {
2682
+ [data-v-627a3fc5] table tbody tr {
2674
2683
  position: relative;
2675
2684
  }.filter-button-container[data-v-36a9eb9a] {
2676
2685
  position: relative;
@@ -38833,7 +38833,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
38833
38833
  props: {
38834
38834
  message: {},
38835
38835
  dismissable: { type: Boolean, default: true },
38836
- type: { default: StatusType.Information }
38836
+ type: { default: StatusType.Information },
38837
+ small: { type: Boolean, default: false }
38837
38838
  },
38838
38839
  emits: ["dismiss"],
38839
38840
  setup(__props, { emit: __emit }) {
@@ -38851,7 +38852,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
38851
38852
  });
38852
38853
  return (_ctx, _cache) => {
38853
38854
  return openBlock(), createElementBlock("div", {
38854
- class: normalizeClass(["alert", `alert-${props.type}`])
38855
+ class: normalizeClass(["alert", `alert-${props.type} ${props.small ? "alert--small" : ""}`])
38855
38856
  }, [
38856
38857
  createElementVNode("div", _hoisted_1$_, [
38857
38858
  createElementVNode("span", _hoisted_2$F, [
@@ -38879,7 +38880,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
38879
38880
  }
38880
38881
  });
38881
38882
 
38882
- const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-26caccdd"]]);
38883
+ const BmsAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1q, [["__scopeId", "data-v-a7263d5e"]]);
38883
38884
 
38884
38885
  const _hoisted_1$Z = {
38885
38886
  key: 0,
@@ -98354,8 +98355,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98354
98355
  createTextVNode(" Vous avez sélectionné la totalité des " + toDisplayString(__props.totalSize) + " éléments. ", 1)
98355
98356
  ], 64)) : (openBlock(), createElementBlock("span", _hoisted_6$2, [
98356
98357
  selectedItems.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
98357
- _cache[1] || (_cache[1] = createElementVNode("strong", null, "1", -1)),
98358
- _cache[2] || (_cache[2] = createTextVNode(" élément du tableau est sélectionné. ", -1))
98358
+ _cache[3] || (_cache[3] = createElementVNode("strong", null, "1", -1)),
98359
+ _cache[4] || (_cache[4] = createTextVNode(" élément du tableau est sélectionné. ", -1))
98359
98360
  ], 64)) : (openBlock(), createElementBlock("strong", _hoisted_7$2, toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
98360
98361
  __props.totalSize < __props.maxSelectedSize ? (openBlock(), createElementBlock("span", {
98361
98362
  key: 2,
@@ -98369,7 +98370,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98369
98370
  ]),
98370
98371
  _: 3
98371
98372
  }, 8, ["type"])) : createCommentVNode("", true),
98372
- _cache[4] || (_cache[4] = createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
98373
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
98373
98374
  createElementVNode("div", _hoisted_8$2, [
98374
98375
  createVNode(Transition, { name: "fade" }, {
98375
98376
  default: withCtx(() => [
@@ -98416,8 +98417,25 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98416
98417
  }, [
98417
98418
  createElementVNode("span", _hoisted_14$1, [
98418
98419
  createTextVNode(toDisplayString(header.label) + " ", 1),
98419
- header.sortable ? (openBlock(), createBlock(resolveDynamicComponent(getSortComponent(header)), {
98420
+ header.helperText ? (openBlock(), createBlock(unref(BmsTooltip), {
98420
98421
  key: 0,
98422
+ tooltipText: header.helperText
98423
+ }, {
98424
+ default: withCtx(() => [
98425
+ createElementVNode("span", {
98426
+ class: "header-content-helper",
98427
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
98428
+ }, ["stop"])),
98429
+ onPointerdown: _cache[2] || (_cache[2] = withModifiers(() => {
98430
+ }, ["stop"]))
98431
+ }, [
98432
+ createVNode(unref(CircleQuestionMark), { size: 18 })
98433
+ ], 32)
98434
+ ]),
98435
+ _: 1
98436
+ }, 8, ["tooltipText"])) : createCommentVNode("", true),
98437
+ header.sortable ? (openBlock(), createBlock(resolveDynamicComponent(getSortComponent(header)), {
98438
+ key: 1,
98421
98439
  size: 18,
98422
98440
  class: "header-content-sort"
98423
98441
  })) : createCommentVNode("", true)
@@ -98481,7 +98499,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98481
98499
  class: "bms-table__cell bms-table__cell--empty"
98482
98500
  }, [
98483
98501
  !props.loading ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
98484
- _cache[3] || (_cache[3] = createTextVNode("Aucune donnée", -1))
98502
+ _cache[5] || (_cache[5] = createTextVNode("Aucune donnée", -1))
98485
98503
  ], true) : createCommentVNode("", true)
98486
98504
  ], 8, _hoisted_17)
98487
98505
  ]))
@@ -98501,7 +98519,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98501
98519
  }
98502
98520
  });
98503
98521
 
98504
- const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f6b2c936"]]);
98522
+ const UiBmsTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-627a3fc5"]]);
98505
98523
 
98506
98524
  const _hoisted_1$a = { class: "filter-button-container" };
98507
98525
  const _hoisted_2$8 = {