@ouestfrance/sipa-bms-ui 8.48.2 → 8.49.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.
@@ -17,6 +17,7 @@ interface UiTableProps {
17
17
  selectableDisabled?: boolean;
18
18
  selectMode?: SelectMode.DEFAULT | SelectMode.SINGLE;
19
19
  customSearch?: (item: unknown, searchValue: string) => boolean;
20
+ draggable?: boolean;
20
21
  }
21
22
  type __VLS_Props = UiTableProps;
22
23
  declare const __VLS_defaults: {
@@ -26,6 +27,7 @@ type __VLS_PublicProps = __VLS_Props & {
26
27
  'selectedItems'?: typeof __VLS_defaults['selectedItems'];
27
28
  };
28
29
  declare const _default: __VLS_WithSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
+ reorder: (items: unknown[]) => any;
29
31
  "update:selectedItems": (value: unknown[]) => any;
30
32
  saveFilter: (value: SavedFilter) => any;
31
33
  filterInput: (args_0: {
@@ -39,6 +41,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<__VLS_Publ
39
41
  }) => any;
40
42
  deleteSavedFilter: (value: SavedFilter) => any;
41
43
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
44
+ onReorder?: ((items: unknown[]) => any) | undefined;
42
45
  "onUpdate:selectedItems"?: ((value: unknown[]) => any) | undefined;
43
46
  onSaveFilter?: ((value: SavedFilter) => any) | undefined;
44
47
  onFilterInput?: ((args_0: {
@@ -12,6 +12,7 @@ interface UiBmsTableProps {
12
12
  totalSize: number;
13
13
  maxSelectedSize?: number;
14
14
  selectMode?: SelectMode;
15
+ draggable?: boolean;
15
16
  }
16
17
  type __VLS_Props = UiBmsTableProps;
17
18
  declare const __VLS_defaults: {
@@ -20,19 +21,19 @@ declare const __VLS_defaults: {
20
21
  type __VLS_PublicProps = __VLS_Props & {
21
22
  'selectedItems'?: typeof __VLS_defaults['selectedItems'];
22
23
  };
23
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_12: {}, __VLS_48: string, __VLS_49: {
24
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_12: {}, __VLS_52: string, __VLS_53: {
24
25
  row: any;
25
26
  isChildElement: false | undefined;
26
- }, __VLS_51: {
27
+ }, __VLS_55: {
27
28
  row: any;
28
- }, __VLS_53: {}, __VLS_63: string, __VLS_64: {
29
+ }, __VLS_57: {}, __VLS_67: string, __VLS_68: {
29
30
  row: any;
30
31
  isChildElement: false | undefined;
31
- }, __VLS_66: {}, __VLS_68: {};
32
+ }, __VLS_70: {}, __VLS_72: {};
32
33
  type __VLS_Slots = {} & {
33
- [K in NonNullable<typeof __VLS_48>]?: (props: typeof __VLS_49) => any;
34
+ [K in NonNullable<typeof __VLS_52>]?: (props: typeof __VLS_53) => any;
34
35
  } & {
35
- [K in NonNullable<typeof __VLS_63>]?: (props: typeof __VLS_64) => any;
36
+ [K in NonNullable<typeof __VLS_67>]?: (props: typeof __VLS_68) => any;
36
37
  } & {
37
38
  'custom-actions'?: (props: typeof __VLS_1) => any;
38
39
  } & {
@@ -44,23 +45,27 @@ type __VLS_Slots = {} & {
44
45
  } & {
45
46
  'alert-action'?: (props: typeof __VLS_12) => any;
46
47
  } & {
47
- default?: (props: typeof __VLS_51) => any;
48
+ default?: (props: typeof __VLS_55) => any;
48
49
  } & {
49
- 'child-element'?: (props: typeof __VLS_53) => any;
50
+ 'child-element'?: (props: typeof __VLS_57) => any;
50
51
  } & {
51
- empty?: (props: typeof __VLS_66) => any;
52
+ empty?: (props: typeof __VLS_70) => any;
52
53
  } & {
53
- pagination?: (props: typeof __VLS_68) => any;
54
+ pagination?: (props: typeof __VLS_72) => any;
54
55
  };
55
56
  declare const _default: __VLS_WithSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
57
  selectAll: () => any;
57
58
  clickHeader: (header: TableHeader) => any;
58
59
  clearSelection: () => any;
60
+ reorder: (items: unknown[]) => any;
61
+ selectionIndicesUpdate: (indices: number[]) => any;
59
62
  "update:selectedItems": (value: unknown[]) => any;
60
63
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
61
64
  onSelectAll?: (() => any) | undefined;
62
65
  onClickHeader?: ((header: TableHeader) => any) | undefined;
63
66
  onClearSelection?: (() => any) | undefined;
67
+ onReorder?: ((items: unknown[]) => any) | undefined;
68
+ onSelectionIndicesUpdate?: ((indices: number[]) => any) | undefined;
64
69
  "onUpdate:selectedItems"?: ((value: unknown[]) => any) | undefined;
65
70
  }>, {
66
71
  sort: Sort;
@@ -8,34 +8,44 @@ interface Props {
8
8
  selectableDisabled?: boolean;
9
9
  dense?: boolean;
10
10
  isChildElement?: boolean;
11
+ draggable?: boolean;
11
12
  }
12
- declare var __VLS_18: {
13
+ declare var __VLS_22: {
13
14
  row: any;
14
- }, __VLS_25: string, __VLS_26: {
15
+ }, __VLS_29: string, __VLS_30: {
15
16
  row: any;
16
17
  isChildElement: true;
17
- }, __VLS_32: string, __VLS_33: {
18
+ }, __VLS_36: string, __VLS_37: {
18
19
  row: any;
19
20
  isChildElement: false | undefined;
20
- }, __VLS_36: string, __VLS_37: {
21
+ }, __VLS_40: string, __VLS_41: {
21
22
  row: any;
22
23
  isChildElement: false | undefined;
23
24
  };
24
25
  type __VLS_Slots = {} & {
25
- [K in NonNullable<typeof __VLS_25>]?: (props: typeof __VLS_26) => any;
26
- } & {
27
- [K in NonNullable<typeof __VLS_32>]?: (props: typeof __VLS_33) => any;
26
+ [K in NonNullable<typeof __VLS_29>]?: (props: typeof __VLS_30) => any;
28
27
  } & {
29
28
  [K in NonNullable<typeof __VLS_36>]?: (props: typeof __VLS_37) => any;
30
29
  } & {
31
- default?: (props: typeof __VLS_18) => any;
30
+ [K in NonNullable<typeof __VLS_40>]?: (props: typeof __VLS_41) => any;
31
+ } & {
32
+ default?: (props: typeof __VLS_22) => any;
32
33
  };
33
34
  declare const _default: __VLS_WithSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
35
  select: (item: any) => any;
36
+ drop: () => any;
37
+ dragStart: () => any;
38
+ dragOver: () => any;
39
+ dragEnd: () => any;
35
40
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
36
41
  onSelect?: ((item: any) => any) | undefined;
42
+ onDrop?: (() => any) | undefined;
43
+ onDragStart?: (() => any) | undefined;
44
+ onDragOver?: (() => any) | undefined;
45
+ onDragEnd?: (() => any) | undefined;
37
46
  }>, {
38
47
  dense: boolean;
48
+ draggable: boolean;
39
49
  selectableDisabled: boolean;
40
50
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
41
51
  export default _default;
@@ -2835,47 +2835,59 @@ nav .additional[data-v-43dce565] {
2835
2835
  .bms-pagination__select[data-v-86561b3b] .field__wrapper {
2836
2836
  min-width: 10em;
2837
2837
  width: 10em;
2838
- }.bms-table__row[data-v-a290e24c] {
2838
+ }.bms-table__row[data-v-13885778] {
2839
2839
  --table-cell-padding: 1em;
2840
2840
  background-color: var(--bms-white);
2841
2841
  }
2842
- .bms-table__row td[data-v-a290e24c] {
2842
+ .bms-table__row td[data-v-13885778] {
2843
2843
  padding: var(--table-cell-padding);
2844
2844
  background-color: var(--bms-white);
2845
2845
  }
2846
- .bms-table__row--dense[data-v-a290e24c] {
2846
+ .bms-table__row--dense[data-v-13885778] {
2847
2847
  --table-cell-padding: 0.5em 1em;
2848
2848
  }
2849
- .bms-table__row--selected[data-v-a290e24c] td {
2849
+ .bms-table__row--selected[data-v-13885778] td {
2850
2850
  background-color: light-dark(var(--bms-main-10), color-mix(in srgb, var(--bms-main-100) 32%, var(--bms-white)));
2851
2851
  }
2852
- .bms-table__row--disabled td[data-v-a290e24c] {
2852
+ .bms-table__row--disabled td[data-v-13885778] {
2853
2853
  color: var(--bms-grey-50);
2854
2854
  }
2855
- .bms-table__row__cell__checkbox[data-v-a290e24c] {
2855
+ .bms-table__row__cell__checkbox[data-v-13885778] {
2856
2856
  width: 4em;
2857
2857
  }
2858
- .bms-table__row__cell--action[data-v-a290e24c] {
2858
+ .bms-table__row__cell--action[data-v-13885778] {
2859
2859
  display: flex;
2860
2860
  justify-content: end;
2861
2861
  }
2862
- .bms-table__row__cell--empty[data-v-a290e24c] {
2862
+ .bms-table__row__cell--empty[data-v-13885778] {
2863
2863
  height: 360px;
2864
2864
  }
2865
- .bms-table__row__cell--child-element[data-v-a290e24c] {
2865
+ .bms-table__row__cell--child-element[data-v-13885778] {
2866
2866
  display: inline-flex;
2867
2867
  align-items: flex-end;
2868
2868
  }
2869
- .bms-table__row__cell--child-element__icon[data-v-a290e24c] {
2869
+ .bms-table__row__cell--child-element__icon[data-v-13885778] {
2870
2870
  display: flex;
2871
2871
  margin-right: 1em;
2872
- }.bms-table[data-v-2b029949] {
2872
+ }
2873
+ .bms-table__row__cell--drag-handle[data-v-13885778] {
2874
+ width: 2em;
2875
+ cursor: default;
2876
+ }
2877
+ .bms-table__row__cell--drag-handle .drag-handle-icon[data-v-13885778] {
2878
+ display: block;
2879
+ cursor: grab;
2880
+ color: var(--bms-grey-50);
2881
+ }
2882
+ .bms-table__row__cell--drag-handle .drag-handle-icon[data-v-13885778]:active {
2883
+ cursor: grabbing;
2884
+ }.bms-table[data-v-c883a5f1] {
2873
2885
  --table-cell-padding: 1em;
2874
2886
  --table-cell-radius: var(--bms-border-radius-large);
2875
2887
  --dynamic-border-height: 2px;
2876
2888
  --table-border: 1px solid var(--bms-border-color);
2877
2889
  }
2878
- .bms-table__loader[data-v-2b029949] {
2890
+ .bms-table__loader[data-v-c883a5f1] {
2879
2891
  position: absolute;
2880
2892
  background: color-mix(in srgb, var(--bms-white) 72%, transparent);
2881
2893
  inset: 0;
@@ -2885,126 +2897,135 @@ nav .additional[data-v-43dce565] {
2885
2897
  font-size: 3em;
2886
2898
  z-index: 10;
2887
2899
  }
2888
- .bms-table__actions[data-v-2b029949] {
2900
+ .bms-table__actions[data-v-c883a5f1] {
2889
2901
  display: flex;
2890
2902
  align-items: center;
2891
2903
  justify-content: space-between;
2892
2904
  margin-bottom: 1em;
2893
2905
  }
2894
- .bms-table__actions--small[data-v-2b029949] {
2906
+ .bms-table__actions--small[data-v-c883a5f1] {
2895
2907
  margin-bottom: 0.5em;
2896
2908
  }
2897
- .bms-table__actions__saved-filters[data-v-2b029949] {
2909
+ .bms-table__actions__saved-filters[data-v-c883a5f1] {
2898
2910
  display: flex;
2899
2911
  align-items: center;
2900
2912
  flex-wrap: wrap;
2901
2913
  gap: 1em;
2902
2914
  }
2903
- .bms-table__actions__search[data-v-2b029949] {
2915
+ .bms-table__actions__search[data-v-c883a5f1] {
2904
2916
  display: flex;
2905
2917
  align-items: center;
2906
2918
  gap: 1em;
2907
2919
  }
2908
- .bms-table__actions__custom[data-v-2b029949] {
2920
+ .bms-table__actions__custom[data-v-c883a5f1] {
2909
2921
  display: flex;
2910
2922
  gap: 1em;
2911
2923
  }
2912
- .bms-table__actions__custom[data-v-2b029949]:empty {
2924
+ .bms-table__actions__custom[data-v-c883a5f1]:empty {
2913
2925
  display: none;
2914
2926
  }
2915
- .bms-table__selected[data-v-2b029949] {
2927
+ .bms-table__selected[data-v-c883a5f1] {
2916
2928
  margin-bottom: 1em;
2917
2929
  }
2918
- .bms-table__selected .select-mode-all[data-v-2b029949] {
2930
+ .bms-table__selected .select-mode-all[data-v-c883a5f1] {
2919
2931
  cursor: pointer;
2920
2932
  color: var(--bms-main-100);
2921
2933
  }
2922
- .bms-table__cell__checkbox[data-v-2b029949] {
2934
+ .bms-table__cell__checkbox[data-v-c883a5f1] {
2923
2935
  width: 4em;
2924
2936
  }
2925
- .bms-table__cell--action[data-v-2b029949] {
2937
+ .bms-table__cell--action[data-v-c883a5f1] {
2926
2938
  display: flex;
2927
2939
  justify-content: end;
2928
2940
  }
2929
- .bms-table__cell--empty[data-v-2b029949] {
2941
+ .bms-table__cell--empty[data-v-c883a5f1] {
2930
2942
  height: 360px;
2931
2943
  }
2932
- .bms-table__table[data-v-2b029949] {
2944
+ .bms-table__table[data-v-c883a5f1] {
2933
2945
  width: 100%;
2934
2946
  border-spacing: 0 var(--dynamic-border-height);
2935
2947
  border-radius: var(--bms-border-radius-large);
2936
2948
  border: var(--table-border);
2937
2949
  position: relative;
2938
2950
  }
2939
- .bms-table__table-wrapper[data-v-2b029949] {
2951
+ .bms-table__table-wrapper[data-v-c883a5f1] {
2940
2952
  position: relative;
2941
2953
  }
2942
- .bms-table__table thead[data-v-2b029949] {
2954
+ .bms-table__table thead[data-v-c883a5f1] {
2943
2955
  position: sticky;
2944
2956
  z-index: 2;
2945
2957
  top: var(--header-height, 0);
2946
2958
  }
2947
- .bms-table__table--dense[data-v-2b029949] {
2959
+ .bms-table__table--dense[data-v-c883a5f1] {
2948
2960
  --table-cell-padding: 0.5em 1em;
2949
2961
  }
2950
- .bms-table__table[data-v-2b029949] tr td {
2962
+ .bms-table__table[data-v-c883a5f1] tr td {
2951
2963
  padding: var(--table-cell-padding);
2952
2964
  }
2953
- .bms-table__table th[data-v-2b029949] {
2965
+ .bms-table__table th[data-v-c883a5f1] {
2954
2966
  --header-content-sort-icon-color: var(--bms-grey-25);
2955
2967
  --header-content-justify: start;
2956
2968
  width: var(--table-cell-width, auto);
2957
2969
  padding: var(--table-cell-padding);
2958
2970
  }
2959
- .bms-table__table th.sortable[data-v-2b029949]:hover {
2971
+ .bms-table__table th.sortable[data-v-c883a5f1]:hover {
2960
2972
  --header-content-sort-icon-color: light-dark(
2961
2973
  var(--bms-grey-100),
2962
2974
  var(--bms-font-color)
2963
2975
  );
2964
2976
  cursor: pointer;
2965
2977
  }
2966
- .bms-table__table th.u-text-align-start[data-v-2b029949] {
2978
+ .bms-table__table th.u-text-align-start[data-v-c883a5f1] {
2967
2979
  --header-content-justify: start;
2968
2980
  }
2969
- .bms-table__table th.u-text-align-center[data-v-2b029949] {
2981
+ .bms-table__table th.u-text-align-center[data-v-c883a5f1] {
2970
2982
  --header-content-justify: center;
2971
2983
  }
2972
- .bms-table__table th.u-text-align-end[data-v-2b029949] {
2984
+ .bms-table__table th.u-text-align-end[data-v-c883a5f1] {
2973
2985
  --header-content-justify: end;
2974
2986
  }
2975
- .bms-table__table th.sorted[data-v-2b029949] {
2987
+ .bms-table__table th.sorted[data-v-c883a5f1] {
2976
2988
  --header-content-sort-icon-color: light-dark(
2977
2989
  var(--bms-grey-100),
2978
2990
  var(--bms-font-color)
2979
2991
  );
2980
2992
  }
2981
- .bms-table__table th .header-content[data-v-2b029949] {
2993
+ .bms-table__table th .header-content[data-v-c883a5f1] {
2982
2994
  display: flex;
2983
2995
  align-items: center;
2984
2996
  justify-content: var(--header-content-justify);
2985
2997
  gap: 0.5em;
2986
2998
  }
2987
- .bms-table__table th .header-content-sort[data-v-2b029949] {
2999
+ .bms-table__table th .header-content-sort[data-v-c883a5f1] {
2988
3000
  flex-shrink: 0;
2989
3001
  color: var(--header-content-sort-icon-color);
2990
3002
  }
2991
- .bms-table__table th .header-content-helper[data-v-2b029949] {
3003
+ .bms-table__table th .header-content-helper[data-v-c883a5f1] {
2992
3004
  display: flex;
2993
3005
  align-items: center;
2994
3006
  flex-shrink: 0;
2995
3007
  color: light-dark(var(--bms-grey-100), var(--bms-font-color));
2996
3008
  }
2997
- .bms-table__footer[data-v-2b029949] {
3009
+ .bms-table__footer[data-v-c883a5f1] {
2998
3010
  padding-top: 16px;
2999
3011
  }
3000
- .bms-table .blob[data-v-2b029949] {
3012
+ .bms-table .drag-handle-header[data-v-c883a5f1] {
3013
+ width: 2em;
3014
+ }
3015
+ .bms-table[data-v-c883a5f1] .bms-table__row--drag-insert-before td {
3016
+ border-top: 2px solid var(--bms-main-100);
3017
+ }
3018
+ .bms-table[data-v-c883a5f1] .bms-table__row--drag-insert-after td {
3019
+ border-bottom: 2px solid var(--bms-main-100);
3020
+ }
3021
+ .bms-table .blob[data-v-c883a5f1] {
3001
3022
  visibility: hidden;
3002
3023
  --table-blob-height: 80px;
3003
3024
  }
3004
- .bms-table .blob.small[data-v-2b029949], .bms-table .blob.dense[data-v-2b029949] {
3025
+ .bms-table .blob.small[data-v-c883a5f1], .bms-table .blob.dense[data-v-c883a5f1] {
3005
3026
  --table-blob-height: 50px;
3006
3027
  }
3007
- .bms-table .blob[data-v-2b029949] {
3028
+ .bms-table .blob[data-v-c883a5f1] {
3008
3029
  width: 200px;
3009
3030
  height: var(--table-blob-height);
3010
3031
  background-color: var(--bms-main-50);
@@ -3013,29 +3034,29 @@ nav .additional[data-v-43dce565] {
3013
3034
  z-index: -5;
3014
3035
  filter: blur(20px);
3015
3036
  }
3016
- [data-v-2b029949] table {
3037
+ [data-v-c883a5f1] table {
3017
3038
  padding: 0 var(--dynamic-border-height);
3018
3039
  }
3019
- [data-v-2b029949] table th:first-child {
3040
+ [data-v-c883a5f1] table th:first-child {
3020
3041
  border-top-left-radius: var(--table-cell-radius);
3021
3042
  }
3022
- [data-v-2b029949] table th:last-child {
3043
+ [data-v-c883a5f1] table th:last-child {
3023
3044
  border-top-right-radius: var(--table-cell-radius);
3024
3045
  }
3025
- [data-v-2b029949] table tr:last-child td:first-child {
3046
+ [data-v-c883a5f1] table tr:last-child td:first-child {
3026
3047
  border-bottom-left-radius: var(--table-cell-radius);
3027
3048
  }
3028
- [data-v-2b029949] table tr:last-child td:last-child {
3049
+ [data-v-c883a5f1] table tr:last-child td:last-child {
3029
3050
  border-bottom-right-radius: var(--table-cell-radius);
3030
3051
  }
3031
- [data-v-2b029949] table th {
3052
+ [data-v-c883a5f1] table th {
3032
3053
  background-color: var(--bms-white);
3033
3054
  }
3034
- [data-v-2b029949] table tbody {
3055
+ [data-v-c883a5f1] table tbody {
3035
3056
  overflow: hidden;
3036
3057
  background: var(--bms-white);
3037
3058
  }
3038
- [data-v-2b029949] table tbody tr {
3059
+ [data-v-c883a5f1] table tbody tr {
3039
3060
  position: relative;
3040
3061
  }.filter-button-container[data-v-36a9eb9a] {
3041
3062
  position: relative;
@@ -3119,7 +3140,7 @@ nav .additional[data-v-43dce565] {
3119
3140
  padding-right: 32px;
3120
3141
  }.table-search[data-v-c674a0d1] {
3121
3142
  width: 260px;
3122
- }.table-search[data-v-fd6979a1] {
3143
+ }.table-search[data-v-9ae7d971] {
3123
3144
  width: 260px;
3124
3145
  }.cocarde[data-v-f48ea977] {
3125
3146
  display: flex;