@ouestfrance/sipa-bms-ui 8.33.0 → 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.
@@ -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;
@@ -2520,13 +2520,13 @@ nav .additional[data-v-8b4752b4] {
2520
2520
  .bms-table__row__cell--child-element__icon[data-v-2ab3888f] {
2521
2521
  display: flex;
2522
2522
  margin-right: 1em;
2523
- }.bms-table[data-v-f6b2c936] {
2523
+ }.bms-table[data-v-627a3fc5] {
2524
2524
  --table-cell-padding: 1em;
2525
2525
  --table-cell-radius: var(--bms-border-radius-large);
2526
2526
  --dynamic-border-height: 2px;
2527
2527
  --table-border: 1px solid var(--bms-grey-10);
2528
2528
  }
2529
- .bms-table__loader[data-v-f6b2c936] {
2529
+ .bms-table__loader[data-v-627a3fc5] {
2530
2530
  position: absolute;
2531
2531
  background: rgba(255, 255, 255, 0.72);
2532
2532
  inset: 0;
@@ -2536,113 +2536,119 @@ nav .additional[data-v-8b4752b4] {
2536
2536
  font-size: 3em;
2537
2537
  z-index: 10;
2538
2538
  }
2539
- .bms-table__actions[data-v-f6b2c936] {
2539
+ .bms-table__actions[data-v-627a3fc5] {
2540
2540
  display: flex;
2541
2541
  align-items: center;
2542
2542
  justify-content: space-between;
2543
2543
  margin-bottom: 1em;
2544
2544
  }
2545
- .bms-table__actions--small[data-v-f6b2c936] {
2545
+ .bms-table__actions--small[data-v-627a3fc5] {
2546
2546
  margin-bottom: 0.5em;
2547
2547
  }
2548
- .bms-table__actions__saved-filters[data-v-f6b2c936] {
2548
+ .bms-table__actions__saved-filters[data-v-627a3fc5] {
2549
2549
  display: flex;
2550
2550
  align-items: center;
2551
2551
  flex-wrap: wrap;
2552
2552
  gap: 1em;
2553
2553
  }
2554
- .bms-table__actions__search[data-v-f6b2c936] {
2554
+ .bms-table__actions__search[data-v-627a3fc5] {
2555
2555
  display: flex;
2556
2556
  align-items: center;
2557
2557
  gap: 1em;
2558
2558
  }
2559
- .bms-table__actions__custom[data-v-f6b2c936] {
2559
+ .bms-table__actions__custom[data-v-627a3fc5] {
2560
2560
  display: flex;
2561
2561
  gap: 1em;
2562
2562
  }
2563
- .bms-table__actions__custom[data-v-f6b2c936]:empty {
2563
+ .bms-table__actions__custom[data-v-627a3fc5]:empty {
2564
2564
  display: none;
2565
2565
  }
2566
- .bms-table__selected[data-v-f6b2c936] {
2566
+ .bms-table__selected[data-v-627a3fc5] {
2567
2567
  margin-bottom: 1em;
2568
2568
  }
2569
- .bms-table__selected .select-mode-all[data-v-f6b2c936] {
2569
+ .bms-table__selected .select-mode-all[data-v-627a3fc5] {
2570
2570
  cursor: pointer;
2571
2571
  color: var(--bms-main-100);
2572
2572
  }
2573
- .bms-table__cell__checkbox[data-v-f6b2c936] {
2573
+ .bms-table__cell__checkbox[data-v-627a3fc5] {
2574
2574
  width: 4em;
2575
2575
  }
2576
- .bms-table__cell--action[data-v-f6b2c936] {
2576
+ .bms-table__cell--action[data-v-627a3fc5] {
2577
2577
  display: flex;
2578
2578
  justify-content: end;
2579
2579
  }
2580
- .bms-table__cell--empty[data-v-f6b2c936] {
2580
+ .bms-table__cell--empty[data-v-627a3fc5] {
2581
2581
  height: 360px;
2582
2582
  }
2583
- .bms-table__table[data-v-f6b2c936] {
2583
+ .bms-table__table[data-v-627a3fc5] {
2584
2584
  width: 100%;
2585
2585
  border-spacing: 0 var(--dynamic-border-height);
2586
2586
  border-radius: var(--bms-border-radius-large);
2587
2587
  border: var(--table-border);
2588
2588
  position: relative;
2589
2589
  }
2590
- .bms-table__table-wrapper[data-v-f6b2c936] {
2590
+ .bms-table__table-wrapper[data-v-627a3fc5] {
2591
2591
  position: relative;
2592
2592
  }
2593
- .bms-table__table thead[data-v-f6b2c936] {
2593
+ .bms-table__table thead[data-v-627a3fc5] {
2594
2594
  position: sticky;
2595
2595
  z-index: 2;
2596
2596
  top: var(--header-height, 0);
2597
2597
  }
2598
- .bms-table__table--dense[data-v-f6b2c936] {
2598
+ .bms-table__table--dense[data-v-627a3fc5] {
2599
2599
  --table-cell-padding: 0.5em 1em;
2600
2600
  }
2601
- .bms-table__table[data-v-f6b2c936] tr td {
2601
+ .bms-table__table[data-v-627a3fc5] tr td {
2602
2602
  padding: var(--table-cell-padding);
2603
2603
  }
2604
- .bms-table__table th[data-v-f6b2c936] {
2604
+ .bms-table__table th[data-v-627a3fc5] {
2605
2605
  --header-content-sort-icon-color: var(--bms-grey-25);
2606
2606
  --header-content-justify: start;
2607
2607
  width: var(--table-cell-width, auto);
2608
2608
  padding: var(--table-cell-padding);
2609
2609
  }
2610
- .bms-table__table th.sortable[data-v-f6b2c936]:hover {
2610
+ .bms-table__table th.sortable[data-v-627a3fc5]:hover {
2611
2611
  --header-content-sort-icon-color: var(--bms-grey-100);
2612
2612
  cursor: pointer;
2613
2613
  }
2614
- .bms-table__table th.u-text-align-start[data-v-f6b2c936] {
2614
+ .bms-table__table th.u-text-align-start[data-v-627a3fc5] {
2615
2615
  --header-content-justify: start;
2616
2616
  }
2617
- .bms-table__table th.u-text-align-center[data-v-f6b2c936] {
2617
+ .bms-table__table th.u-text-align-center[data-v-627a3fc5] {
2618
2618
  --header-content-justify: center;
2619
2619
  }
2620
- .bms-table__table th.u-text-align-end[data-v-f6b2c936] {
2620
+ .bms-table__table th.u-text-align-end[data-v-627a3fc5] {
2621
2621
  --header-content-justify: end;
2622
2622
  }
2623
- .bms-table__table th.sorted[data-v-f6b2c936] {
2623
+ .bms-table__table th.sorted[data-v-627a3fc5] {
2624
2624
  --header-content-sort-icon-color: var(--bms-grey-100);
2625
2625
  }
2626
- .bms-table__table th .header-content[data-v-f6b2c936] {
2626
+ .bms-table__table th .header-content[data-v-627a3fc5] {
2627
2627
  display: flex;
2628
2628
  align-items: center;
2629
2629
  justify-content: var(--header-content-justify);
2630
2630
  gap: 0.5em;
2631
2631
  }
2632
- .bms-table__table th .header-content-sort[data-v-f6b2c936] {
2632
+ .bms-table__table th .header-content-sort[data-v-627a3fc5] {
2633
2633
  color: var(--header-content-sort-icon-color);
2634
2634
  }
2635
- .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] {
2636
2642
  padding-top: 16px;
2637
2643
  }
2638
- .bms-table .blob[data-v-f6b2c936] {
2644
+ .bms-table .blob[data-v-627a3fc5] {
2639
2645
  visibility: hidden;
2640
2646
  --table-blob-height: 80px;
2641
2647
  }
2642
- .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] {
2643
2649
  --table-blob-height: 50px;
2644
2650
  }
2645
- .bms-table .blob[data-v-f6b2c936] {
2651
+ .bms-table .blob[data-v-627a3fc5] {
2646
2652
  width: 200px;
2647
2653
  height: var(--table-blob-height);
2648
2654
  background-color: var(--bms-main-50);
@@ -2651,29 +2657,29 @@ nav .additional[data-v-8b4752b4] {
2651
2657
  z-index: -5;
2652
2658
  filter: blur(20px);
2653
2659
  }
2654
- [data-v-f6b2c936] table {
2660
+ [data-v-627a3fc5] table {
2655
2661
  padding: 0 var(--dynamic-border-height);
2656
2662
  }
2657
- [data-v-f6b2c936] table th:first-child {
2663
+ [data-v-627a3fc5] table th:first-child {
2658
2664
  border-top-left-radius: var(--table-cell-radius);
2659
2665
  }
2660
- [data-v-f6b2c936] table th:last-child {
2666
+ [data-v-627a3fc5] table th:last-child {
2661
2667
  border-top-right-radius: var(--table-cell-radius);
2662
2668
  }
2663
- [data-v-f6b2c936] table tr:last-child td:first-child {
2669
+ [data-v-627a3fc5] table tr:last-child td:first-child {
2664
2670
  border-bottom-left-radius: var(--table-cell-radius);
2665
2671
  }
2666
- [data-v-f6b2c936] table tr:last-child td:last-child {
2672
+ [data-v-627a3fc5] table tr:last-child td:last-child {
2667
2673
  border-bottom-right-radius: var(--table-cell-radius);
2668
2674
  }
2669
- [data-v-f6b2c936] table th {
2675
+ [data-v-627a3fc5] table th {
2670
2676
  background-color: rgb(255, 255, 255);
2671
2677
  }
2672
- [data-v-f6b2c936] table tbody {
2678
+ [data-v-627a3fc5] table tbody {
2673
2679
  overflow: hidden;
2674
2680
  background: white;
2675
2681
  }
2676
- [data-v-f6b2c936] table tbody tr {
2682
+ [data-v-627a3fc5] table tbody tr {
2677
2683
  position: relative;
2678
2684
  }.filter-button-container[data-v-36a9eb9a] {
2679
2685
  position: relative;
@@ -98355,8 +98355,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98355
98355
  createTextVNode(" Vous avez sélectionné la totalité des " + toDisplayString(__props.totalSize) + " éléments. ", 1)
98356
98356
  ], 64)) : (openBlock(), createElementBlock("span", _hoisted_6$2, [
98357
98357
  selectedItems.value.length === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
98358
- _cache[1] || (_cache[1] = createElementVNode("strong", null, "1", -1)),
98359
- _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))
98360
98360
  ], 64)) : (openBlock(), createElementBlock("strong", _hoisted_7$2, toDisplayString(selectedItems.value.length) + " éléments du tableau sont sélectionnés. ", 1)),
98361
98361
  __props.totalSize < __props.maxSelectedSize ? (openBlock(), createElementBlock("span", {
98362
98362
  key: 2,
@@ -98370,7 +98370,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98370
98370
  ]),
98371
98371
  _: 3
98372
98372
  }, 8, ["type"])) : createCommentVNode("", true),
98373
- _cache[4] || (_cache[4] = createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
98373
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "selected-wrapper" }, null, -1)),
98374
98374
  createElementVNode("div", _hoisted_8$2, [
98375
98375
  createVNode(Transition, { name: "fade" }, {
98376
98376
  default: withCtx(() => [
@@ -98417,8 +98417,25 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98417
98417
  }, [
98418
98418
  createElementVNode("span", _hoisted_14$1, [
98419
98419
  createTextVNode(toDisplayString(header.label) + " ", 1),
98420
- header.sortable ? (openBlock(), createBlock(resolveDynamicComponent(getSortComponent(header)), {
98420
+ header.helperText ? (openBlock(), createBlock(unref(BmsTooltip), {
98421
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,
98422
98439
  size: 18,
98423
98440
  class: "header-content-sort"
98424
98441
  })) : createCommentVNode("", true)
@@ -98482,7 +98499,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98482
98499
  class: "bms-table__cell bms-table__cell--empty"
98483
98500
  }, [
98484
98501
  !props.loading ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
98485
- _cache[3] || (_cache[3] = createTextVNode("Aucune donnée", -1))
98502
+ _cache[5] || (_cache[5] = createTextVNode("Aucune donnée", -1))
98486
98503
  ], true) : createCommentVNode("", true)
98487
98504
  ], 8, _hoisted_17)
98488
98505
  ]))
@@ -98502,7 +98519,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
98502
98519
  }
98503
98520
  });
98504
98521
 
98505
- 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"]]);
98506
98523
 
98507
98524
  const _hoisted_1$a = { class: "filter-button-container" };
98508
98525
  const _hoisted_2$8 = {