@terraware/web-components 5.2.6-rc.6 → 5.2.7-rc.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.
- package/components/EditableTable/CustomCellEditor.d.ts +11 -0
- package/components/EditableTable/CustomCellEditor.d.ts.map +1 -0
- package/components/EditableTable/CustomCellEditor.js +45 -0
- package/components/EditableTable/contexts.d.ts +17 -0
- package/components/EditableTable/contexts.d.ts.map +1 -0
- package/components/EditableTable/contexts.js +0 -0
- package/components/EditableTable/index.d.ts +25 -9
- package/components/EditableTable/index.d.ts.map +1 -1
- package/components/EditableTable/index.js +17 -4
- package/components/EditableTable/tableSettings.d.ts +24 -0
- package/components/EditableTable/tableSettings.d.ts.map +1 -0
- package/components/EditableTable/tableSettings.js +41 -0
- package/components/table/density.d.ts +1 -1
- package/index.d.ts +4 -6
- package/index.d.ts.map +1 -1
- package/index.js +1 -3
- package/license-report.html +1 -1
- package/package.json +1 -2
- package/strings/csv/en.csv +0 -37
- package/strings/csv/es.csv +0 -37
- package/strings/csv/fr.csv +0 -37
- package/strings/strings-en.d.ts +0 -37
- package/strings/strings-en.d.ts.map +1 -1
- package/strings/strings-en.js +1 -38
- package/strings/strings-es.d.ts +0 -37
- package/strings/strings-es.d.ts.map +1 -1
- package/strings/strings-es.js +1 -38
- package/strings/strings-fr.d.ts +0 -37
- package/strings/strings-fr.d.ts.map +1 -1
- package/strings/strings-fr.js +1 -38
- package/strings/strings-gx.d.ts +0 -37
- package/strings/strings-gx.d.ts.map +1 -1
- package/strings/strings-gx.js +1 -38
- package/components/EditableTableV2/ColumnDragging.d.ts +0 -23
- package/components/EditableTableV2/ColumnDragging.d.ts.map +0 -1
- package/components/EditableTableV2/ColumnDragging.js +0 -226
- package/components/EditableTableV2/EditableCellV2.d.ts +0 -10
- package/components/EditableTableV2/EditableCellV2.d.ts.map +0 -1
- package/components/EditableTableV2/EditableCellV2.js +0 -80
- package/components/EditableTableV2/ToolbarButtons.d.ts +0 -29
- package/components/EditableTableV2/ToolbarButtons.d.ts.map +0 -1
- package/components/EditableTableV2/ToolbarButtons.js +0 -84
- package/components/EditableTableV2/index.d.ts +0 -60
- package/components/EditableTableV2/index.d.ts.map +0 -1
- package/components/EditableTableV2/index.js +0 -938
- package/components/EditableTableV2/pinning.d.ts +0 -8
- package/components/EditableTableV2/pinning.d.ts.map +0 -1
- package/components/EditableTableV2/pinning.js +0 -16
- package/components/EditableTableV2/types.d.ts +0 -96
- package/components/EditableTableV2/types.d.ts.map +0 -1
- package/components/EditableTableV2/types.js +0 -18
package/strings/csv/fr.csv
CHANGED
|
@@ -43,43 +43,6 @@ RIGHT_MOUSE,Bouton droit de la souris,d551c809
|
|
|
43
43
|
SAVE,Sauvegarder,526a3e42
|
|
44
44
|
SHIFT,Maj,4d173d2a
|
|
45
45
|
SWIPE,Glisser,bc0962fa
|
|
46
|
-
TABLE_ALL,Tout,832a8cf5
|
|
47
|
-
TABLE_CLEAR_FILTER,Effacer le filtre,5da35d2b
|
|
48
|
-
TABLE_CLEAR_SEARCH,Effacer la recherche,34aba902
|
|
49
|
-
TABLE_CLEAR_SORTING,Effacer le tri,9879810b
|
|
50
|
-
TABLE_COLUMN_ACTIONS,Actions de colonne,119371ac
|
|
51
|
-
TABLE_COLUMNS,Colonnes,ee2f54ee
|
|
52
|
-
TABLE_FILTER,Filtrer,51b390ee
|
|
53
|
-
TABLE_FILTER_BY,Filtrer par {column},0e2b5966
|
|
54
|
-
TABLE_FILTERED,Filtré,5ce35c5c
|
|
55
|
-
TABLE_FIRST_PAGE,Première page,2ba1de3f
|
|
56
|
-
TABLE_HIDE_ALL,Tout masquer,b0d973e4
|
|
57
|
-
TABLE_HIDE_COLUMN,Masquer la colonne {column},b4a87c14
|
|
58
|
-
TABLE_LAST_PAGE,Dernière page,6eafe34a
|
|
59
|
-
TABLE_MAX,Maximum,96f88e1f
|
|
60
|
-
TABLE_MIN,Minimum,f2a882fd
|
|
61
|
-
TABLE_DRAG_COLUMN,Déplacer la colonne,
|
|
62
|
-
TABLE_MOVE,Déplacer,
|
|
63
|
-
TABLE_MOVE_BACK,Déplacer la colonne vers l’arrière,ccaba4fb
|
|
64
|
-
TABLE_MOVE_FORWARD,Déplacer la colonne vers l’avant,a7cfa4d3
|
|
65
|
-
TABLE_NEXT_PAGE,Page suivante,be0bb188
|
|
66
|
-
TABLE_NO_ROWS,Aucun enregistrement à afficher,eb47076d
|
|
67
|
-
TABLE_PIN,Épingler la colonne,f25241a0
|
|
68
|
-
TABLE_PIN_RIGHT,Épingler à droite,
|
|
69
|
-
TABLE_PIN_LEFT,Épingler à gauche,
|
|
70
|
-
TABLE_PREVIOUS_PAGE,Page précédente,d87b58b7
|
|
71
|
-
TABLE_ROWS_PER_PAGE,Lignes par page,ff461aa5
|
|
72
|
-
TABLE_SAVE_ERROR,Impossible d’enregistrer les modifications. Veuillez réessayer.,85668916
|
|
73
|
-
TABLE_SEARCH,Rechercher,9f30c236
|
|
74
|
-
TABLE_SHOW_ALL,Tout afficher,3208186f
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS,Afficher toutes les colonnes,2a5e28e5
|
|
76
|
-
TABLE_SORT_ASCENDING,Trier par {column} croissant,a9a8f74e
|
|
77
|
-
TABLE_SORT_DESCENDING,Trier par {column} décroissant,48cf7e0a
|
|
78
|
-
TABLE_TOGGLE_DENSITY,Changer la densité,8f835a40
|
|
79
|
-
TABLE_TOGGLE_FILTERS,Afficher/Masquer les filtres,312baea2
|
|
80
|
-
TABLE_TOGGLE_FULLSCREEN,Basculer en plein écran,6bc79fb8
|
|
81
|
-
TABLE_TOGGLE_SEARCH,Afficher/Masquer la recherche,6f191035
|
|
82
|
-
TABLE_UNPIN,Désépinglée,acf61315
|
|
83
46
|
TITLE,Titre,a5f8fc0b
|
|
84
47
|
TOUCH_DRAG,Toucher + Glisser,ff6d48d2
|
|
85
48
|
UPLOAD_FILES,Téléverser des fichiers,b98547be
|
package/strings/strings-en.d.ts
CHANGED
|
@@ -49,42 +49,5 @@ export declare const strings: {
|
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: string;
|
|
50
50
|
VR: string;
|
|
51
51
|
ZOOM: string;
|
|
52
|
-
TABLE_SAVE_ERROR: string;
|
|
53
|
-
TABLE_FILTER: string;
|
|
54
|
-
TABLE_FILTER_BY: string;
|
|
55
|
-
TABLE_MIN: string;
|
|
56
|
-
TABLE_MAX: string;
|
|
57
|
-
TABLE_ALL: string;
|
|
58
|
-
TABLE_SEARCH: string;
|
|
59
|
-
TABLE_COLUMNS: string;
|
|
60
|
-
TABLE_DRAG_COLUMN: string;
|
|
61
|
-
TABLE_MOVE: string;
|
|
62
|
-
TABLE_MOVE_BACK: string;
|
|
63
|
-
TABLE_MOVE_FORWARD: string;
|
|
64
|
-
TABLE_PIN: string;
|
|
65
|
-
TABLE_UNPIN: string;
|
|
66
|
-
TABLE_PIN_LEFT: string;
|
|
67
|
-
TABLE_PIN_RIGHT: string;
|
|
68
|
-
TABLE_NO_ROWS: string;
|
|
69
|
-
TABLE_ROWS_PER_PAGE: string;
|
|
70
|
-
TABLE_NEXT_PAGE: string;
|
|
71
|
-
TABLE_PREVIOUS_PAGE: string;
|
|
72
|
-
TABLE_FIRST_PAGE: string;
|
|
73
|
-
TABLE_LAST_PAGE: string;
|
|
74
|
-
TABLE_HIDE_COLUMN: string;
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: string;
|
|
76
|
-
TABLE_COLUMN_ACTIONS: string;
|
|
77
|
-
TABLE_SORT_ASCENDING: string;
|
|
78
|
-
TABLE_SORT_DESCENDING: string;
|
|
79
|
-
TABLE_CLEAR_SORTING: string;
|
|
80
|
-
TABLE_CLEAR_FILTER: string;
|
|
81
|
-
TABLE_FILTERED: string;
|
|
82
|
-
TABLE_CLEAR_SEARCH: string;
|
|
83
|
-
TABLE_HIDE_ALL: string;
|
|
84
|
-
TABLE_SHOW_ALL: string;
|
|
85
|
-
TABLE_TOGGLE_SEARCH: string;
|
|
86
|
-
TABLE_TOGGLE_FILTERS: string;
|
|
87
|
-
TABLE_TOGGLE_DENSITY: string;
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: string;
|
|
89
52
|
};
|
|
90
53
|
//# sourceMappingURL=strings-en.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings-en.d.ts","sourceRoot":"","sources":["../../src/strings/strings-en.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"strings-en.d.ts","sourceRoot":"","sources":["../../src/strings/strings-en.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnB,CAAC"}
|
package/strings/strings-en.js
CHANGED
|
@@ -48,43 +48,6 @@ const strings = {
|
|
|
48
48
|
UPLOAD_FILES: 'Upload Files',
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: 'Browse or drag and drop files.',
|
|
50
50
|
VR: 'VR',
|
|
51
|
-
ZOOM: 'Zoom'
|
|
52
|
-
TABLE_SAVE_ERROR: 'Unable to save changes. Please try again.',
|
|
53
|
-
TABLE_FILTER: 'Filter',
|
|
54
|
-
TABLE_FILTER_BY: 'Filter by {column}',
|
|
55
|
-
TABLE_MIN: 'Minimum',
|
|
56
|
-
TABLE_MAX: 'Maximum',
|
|
57
|
-
TABLE_ALL: 'All',
|
|
58
|
-
TABLE_SEARCH: 'Search',
|
|
59
|
-
TABLE_COLUMNS: 'Columns',
|
|
60
|
-
TABLE_DRAG_COLUMN: 'Drag column',
|
|
61
|
-
TABLE_MOVE: 'Move',
|
|
62
|
-
TABLE_MOVE_BACK: 'Move column backward',
|
|
63
|
-
TABLE_MOVE_FORWARD: 'Move column forward',
|
|
64
|
-
TABLE_PIN: 'Pin column',
|
|
65
|
-
TABLE_UNPIN: 'Unpinned',
|
|
66
|
-
TABLE_PIN_LEFT: 'Pin to left',
|
|
67
|
-
TABLE_PIN_RIGHT: 'Pin to right',
|
|
68
|
-
TABLE_NO_ROWS: 'No records to display',
|
|
69
|
-
TABLE_ROWS_PER_PAGE: 'Rows per page',
|
|
70
|
-
TABLE_NEXT_PAGE: 'Next page',
|
|
71
|
-
TABLE_PREVIOUS_PAGE: 'Previous page',
|
|
72
|
-
TABLE_FIRST_PAGE: 'First page',
|
|
73
|
-
TABLE_LAST_PAGE: 'Last page',
|
|
74
|
-
TABLE_HIDE_COLUMN: 'Hide {column} column',
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: 'Show all columns',
|
|
76
|
-
TABLE_COLUMN_ACTIONS: 'Column actions',
|
|
77
|
-
TABLE_SORT_ASCENDING: 'Sort by {column} ascending',
|
|
78
|
-
TABLE_SORT_DESCENDING: 'Sort by {column} descending',
|
|
79
|
-
TABLE_CLEAR_SORTING: 'Clear sorting',
|
|
80
|
-
TABLE_CLEAR_FILTER: 'Clear filter',
|
|
81
|
-
TABLE_FILTERED: 'Filtered',
|
|
82
|
-
TABLE_CLEAR_SEARCH: 'Clear search',
|
|
83
|
-
TABLE_HIDE_ALL: 'Hide all',
|
|
84
|
-
TABLE_SHOW_ALL: 'Show all',
|
|
85
|
-
TABLE_TOGGLE_SEARCH: 'Show/Hide search',
|
|
86
|
-
TABLE_TOGGLE_FILTERS: 'Show/Hide filters',
|
|
87
|
-
TABLE_TOGGLE_DENSITY: 'Toggle density',
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: 'Toggle full screen'
|
|
51
|
+
ZOOM: 'Zoom'
|
|
89
52
|
};
|
|
90
53
|
export { strings };
|
package/strings/strings-es.d.ts
CHANGED
|
@@ -49,42 +49,5 @@ export declare const strings: {
|
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: string;
|
|
50
50
|
VR: string;
|
|
51
51
|
ZOOM: string;
|
|
52
|
-
TABLE_SAVE_ERROR: string;
|
|
53
|
-
TABLE_FILTER: string;
|
|
54
|
-
TABLE_FILTER_BY: string;
|
|
55
|
-
TABLE_MIN: string;
|
|
56
|
-
TABLE_MAX: string;
|
|
57
|
-
TABLE_ALL: string;
|
|
58
|
-
TABLE_SEARCH: string;
|
|
59
|
-
TABLE_COLUMNS: string;
|
|
60
|
-
TABLE_DRAG_COLUMN: string;
|
|
61
|
-
TABLE_MOVE: string;
|
|
62
|
-
TABLE_MOVE_BACK: string;
|
|
63
|
-
TABLE_MOVE_FORWARD: string;
|
|
64
|
-
TABLE_PIN: string;
|
|
65
|
-
TABLE_UNPIN: string;
|
|
66
|
-
TABLE_PIN_LEFT: string;
|
|
67
|
-
TABLE_PIN_RIGHT: string;
|
|
68
|
-
TABLE_NO_ROWS: string;
|
|
69
|
-
TABLE_ROWS_PER_PAGE: string;
|
|
70
|
-
TABLE_NEXT_PAGE: string;
|
|
71
|
-
TABLE_PREVIOUS_PAGE: string;
|
|
72
|
-
TABLE_FIRST_PAGE: string;
|
|
73
|
-
TABLE_LAST_PAGE: string;
|
|
74
|
-
TABLE_HIDE_COLUMN: string;
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: string;
|
|
76
|
-
TABLE_COLUMN_ACTIONS: string;
|
|
77
|
-
TABLE_SORT_ASCENDING: string;
|
|
78
|
-
TABLE_SORT_DESCENDING: string;
|
|
79
|
-
TABLE_CLEAR_SORTING: string;
|
|
80
|
-
TABLE_CLEAR_FILTER: string;
|
|
81
|
-
TABLE_FILTERED: string;
|
|
82
|
-
TABLE_CLEAR_SEARCH: string;
|
|
83
|
-
TABLE_HIDE_ALL: string;
|
|
84
|
-
TABLE_SHOW_ALL: string;
|
|
85
|
-
TABLE_TOGGLE_SEARCH: string;
|
|
86
|
-
TABLE_TOGGLE_FILTERS: string;
|
|
87
|
-
TABLE_TOGGLE_DENSITY: string;
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: string;
|
|
89
52
|
};
|
|
90
53
|
//# sourceMappingURL=strings-es.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings-es.d.ts","sourceRoot":"","sources":["../../src/strings/strings-es.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"strings-es.d.ts","sourceRoot":"","sources":["../../src/strings/strings-es.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnB,CAAC"}
|
package/strings/strings-es.js
CHANGED
|
@@ -48,43 +48,6 @@ const strings = {
|
|
|
48
48
|
UPLOAD_FILES: 'Subir archivos',
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: 'Buscar o arrastrar y soltar archivos.',
|
|
50
50
|
VR: 'RV',
|
|
51
|
-
ZOOM: 'Acercar/alejar'
|
|
52
|
-
TABLE_SAVE_ERROR: 'No se pudieron guardar los cambios. Por favor, inténtelo de nuevo.',
|
|
53
|
-
TABLE_FILTER: 'Filtrar',
|
|
54
|
-
TABLE_FILTER_BY: 'Filtrar por {column}',
|
|
55
|
-
TABLE_MIN: 'Mínimo',
|
|
56
|
-
TABLE_MAX: 'Máximo',
|
|
57
|
-
TABLE_ALL: 'Todos',
|
|
58
|
-
TABLE_SEARCH: 'Buscar',
|
|
59
|
-
TABLE_COLUMNS: 'Columnas',
|
|
60
|
-
TABLE_DRAG_COLUMN: 'Arrastrar columna',
|
|
61
|
-
TABLE_MOVE: 'Mover',
|
|
62
|
-
TABLE_MOVE_BACK: 'Mover columna hacia atrás',
|
|
63
|
-
TABLE_MOVE_FORWARD: 'Mover columna hacia adelante',
|
|
64
|
-
TABLE_PIN: 'Fijar columna',
|
|
65
|
-
TABLE_UNPIN: 'Sin fijar',
|
|
66
|
-
TABLE_PIN_LEFT: 'Anclar a la izquierda',
|
|
67
|
-
TABLE_PIN_RIGHT: 'Anclar a la derecha',
|
|
68
|
-
TABLE_NO_ROWS: 'No hay registros para mostrar',
|
|
69
|
-
TABLE_ROWS_PER_PAGE: 'Filas por página',
|
|
70
|
-
TABLE_NEXT_PAGE: 'Página siguiente',
|
|
71
|
-
TABLE_PREVIOUS_PAGE: 'Página anterior',
|
|
72
|
-
TABLE_FIRST_PAGE: 'Primera página',
|
|
73
|
-
TABLE_LAST_PAGE: 'Última página',
|
|
74
|
-
TABLE_HIDE_COLUMN: 'Ocultar columna {column}',
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: 'Mostrar todas las columnas',
|
|
76
|
-
TABLE_COLUMN_ACTIONS: 'Acciones de columna',
|
|
77
|
-
TABLE_SORT_ASCENDING: 'Ordenar por {column} ascendente',
|
|
78
|
-
TABLE_SORT_DESCENDING: 'Ordenar por {column} descendente',
|
|
79
|
-
TABLE_CLEAR_SORTING: 'Borrar orden',
|
|
80
|
-
TABLE_CLEAR_FILTER: 'Borrar filtro',
|
|
81
|
-
TABLE_FILTERED: 'Filtrado',
|
|
82
|
-
TABLE_CLEAR_SEARCH: 'Borrar búsqueda',
|
|
83
|
-
TABLE_HIDE_ALL: 'Ocultar todo',
|
|
84
|
-
TABLE_SHOW_ALL: 'Mostrar todo',
|
|
85
|
-
TABLE_TOGGLE_SEARCH: 'Mostrar/Ocultar búsqueda',
|
|
86
|
-
TABLE_TOGGLE_FILTERS: 'Mostrar/Ocultar filtros',
|
|
87
|
-
TABLE_TOGGLE_DENSITY: 'Cambiar densidad',
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: 'Cambiar a pantalla completa'
|
|
51
|
+
ZOOM: 'Acercar/alejar'
|
|
89
52
|
};
|
|
90
53
|
export { strings };
|
package/strings/strings-fr.d.ts
CHANGED
|
@@ -49,42 +49,5 @@ export declare const strings: {
|
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: string;
|
|
50
50
|
VR: string;
|
|
51
51
|
ZOOM: string;
|
|
52
|
-
TABLE_SAVE_ERROR: string;
|
|
53
|
-
TABLE_FILTER: string;
|
|
54
|
-
TABLE_FILTER_BY: string;
|
|
55
|
-
TABLE_MIN: string;
|
|
56
|
-
TABLE_MAX: string;
|
|
57
|
-
TABLE_ALL: string;
|
|
58
|
-
TABLE_SEARCH: string;
|
|
59
|
-
TABLE_COLUMNS: string;
|
|
60
|
-
TABLE_DRAG_COLUMN: string;
|
|
61
|
-
TABLE_MOVE: string;
|
|
62
|
-
TABLE_MOVE_BACK: string;
|
|
63
|
-
TABLE_MOVE_FORWARD: string;
|
|
64
|
-
TABLE_PIN: string;
|
|
65
|
-
TABLE_UNPIN: string;
|
|
66
|
-
TABLE_PIN_LEFT: string;
|
|
67
|
-
TABLE_PIN_RIGHT: string;
|
|
68
|
-
TABLE_NO_ROWS: string;
|
|
69
|
-
TABLE_ROWS_PER_PAGE: string;
|
|
70
|
-
TABLE_NEXT_PAGE: string;
|
|
71
|
-
TABLE_PREVIOUS_PAGE: string;
|
|
72
|
-
TABLE_FIRST_PAGE: string;
|
|
73
|
-
TABLE_LAST_PAGE: string;
|
|
74
|
-
TABLE_HIDE_COLUMN: string;
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: string;
|
|
76
|
-
TABLE_COLUMN_ACTIONS: string;
|
|
77
|
-
TABLE_SORT_ASCENDING: string;
|
|
78
|
-
TABLE_SORT_DESCENDING: string;
|
|
79
|
-
TABLE_CLEAR_SORTING: string;
|
|
80
|
-
TABLE_CLEAR_FILTER: string;
|
|
81
|
-
TABLE_FILTERED: string;
|
|
82
|
-
TABLE_CLEAR_SEARCH: string;
|
|
83
|
-
TABLE_HIDE_ALL: string;
|
|
84
|
-
TABLE_SHOW_ALL: string;
|
|
85
|
-
TABLE_TOGGLE_SEARCH: string;
|
|
86
|
-
TABLE_TOGGLE_FILTERS: string;
|
|
87
|
-
TABLE_TOGGLE_DENSITY: string;
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: string;
|
|
89
52
|
};
|
|
90
53
|
//# sourceMappingURL=strings-fr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings-fr.d.ts","sourceRoot":"","sources":["../../src/strings/strings-fr.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"strings-fr.d.ts","sourceRoot":"","sources":["../../src/strings/strings-fr.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnB,CAAC"}
|
package/strings/strings-fr.js
CHANGED
|
@@ -48,43 +48,6 @@ const strings = {
|
|
|
48
48
|
UPLOAD_FILES: 'Téléverser des fichiers',
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: 'Parcourir ou glisser-déposer des fichiers.',
|
|
50
50
|
VR: 'RV',
|
|
51
|
-
ZOOM: 'Zoom'
|
|
52
|
-
TABLE_SAVE_ERROR: 'Impossible d’enregistrer les modifications. Veuillez réessayer.',
|
|
53
|
-
TABLE_FILTER: 'Filtrer',
|
|
54
|
-
TABLE_FILTER_BY: 'Filtrer par {column}',
|
|
55
|
-
TABLE_MIN: 'Minimum',
|
|
56
|
-
TABLE_MAX: 'Maximum',
|
|
57
|
-
TABLE_ALL: 'Tout',
|
|
58
|
-
TABLE_SEARCH: 'Rechercher',
|
|
59
|
-
TABLE_COLUMNS: 'Colonnes',
|
|
60
|
-
TABLE_DRAG_COLUMN: 'Déplacer la colonne',
|
|
61
|
-
TABLE_MOVE: 'Déplacer',
|
|
62
|
-
TABLE_MOVE_BACK: 'Déplacer la colonne vers l’arrière',
|
|
63
|
-
TABLE_MOVE_FORWARD: 'Déplacer la colonne vers l’avant',
|
|
64
|
-
TABLE_PIN: 'Épingler la colonne',
|
|
65
|
-
TABLE_UNPIN: 'Désépinglée',
|
|
66
|
-
TABLE_PIN_LEFT: 'Épingler à gauche',
|
|
67
|
-
TABLE_PIN_RIGHT: 'Épingler à droite',
|
|
68
|
-
TABLE_NO_ROWS: 'Aucun enregistrement à afficher',
|
|
69
|
-
TABLE_ROWS_PER_PAGE: 'Lignes par page',
|
|
70
|
-
TABLE_NEXT_PAGE: 'Page suivante',
|
|
71
|
-
TABLE_PREVIOUS_PAGE: 'Page précédente',
|
|
72
|
-
TABLE_FIRST_PAGE: 'Première page',
|
|
73
|
-
TABLE_LAST_PAGE: 'Dernière page',
|
|
74
|
-
TABLE_HIDE_COLUMN: 'Masquer la colonne {column}',
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: 'Afficher toutes les colonnes',
|
|
76
|
-
TABLE_COLUMN_ACTIONS: 'Actions de colonne',
|
|
77
|
-
TABLE_SORT_ASCENDING: 'Trier par {column} croissant',
|
|
78
|
-
TABLE_SORT_DESCENDING: 'Trier par {column} décroissant',
|
|
79
|
-
TABLE_CLEAR_SORTING: 'Effacer le tri',
|
|
80
|
-
TABLE_CLEAR_FILTER: 'Effacer le filtre',
|
|
81
|
-
TABLE_FILTERED: 'Filtré',
|
|
82
|
-
TABLE_CLEAR_SEARCH: 'Effacer la recherche',
|
|
83
|
-
TABLE_HIDE_ALL: 'Tout masquer',
|
|
84
|
-
TABLE_SHOW_ALL: 'Tout afficher',
|
|
85
|
-
TABLE_TOGGLE_SEARCH: 'Afficher/Masquer la recherche',
|
|
86
|
-
TABLE_TOGGLE_FILTERS: 'Afficher/Masquer les filtres',
|
|
87
|
-
TABLE_TOGGLE_DENSITY: 'Changer la densité',
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: 'Basculer en plein écran'
|
|
51
|
+
ZOOM: 'Zoom'
|
|
89
52
|
};
|
|
90
53
|
export { strings };
|
package/strings/strings-gx.d.ts
CHANGED
|
@@ -49,42 +49,5 @@ export declare const strings: {
|
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: string;
|
|
50
50
|
VR: string;
|
|
51
51
|
ZOOM: string;
|
|
52
|
-
TABLE_SAVE_ERROR: string;
|
|
53
|
-
TABLE_FILTER: string;
|
|
54
|
-
TABLE_FILTER_BY: string;
|
|
55
|
-
TABLE_MIN: string;
|
|
56
|
-
TABLE_MAX: string;
|
|
57
|
-
TABLE_ALL: string;
|
|
58
|
-
TABLE_SEARCH: string;
|
|
59
|
-
TABLE_COLUMNS: string;
|
|
60
|
-
TABLE_DRAG_COLUMN: string;
|
|
61
|
-
TABLE_MOVE: string;
|
|
62
|
-
TABLE_MOVE_BACK: string;
|
|
63
|
-
TABLE_MOVE_FORWARD: string;
|
|
64
|
-
TABLE_PIN: string;
|
|
65
|
-
TABLE_UNPIN: string;
|
|
66
|
-
TABLE_PIN_LEFT: string;
|
|
67
|
-
TABLE_PIN_RIGHT: string;
|
|
68
|
-
TABLE_NO_ROWS: string;
|
|
69
|
-
TABLE_ROWS_PER_PAGE: string;
|
|
70
|
-
TABLE_NEXT_PAGE: string;
|
|
71
|
-
TABLE_PREVIOUS_PAGE: string;
|
|
72
|
-
TABLE_FIRST_PAGE: string;
|
|
73
|
-
TABLE_LAST_PAGE: string;
|
|
74
|
-
TABLE_HIDE_COLUMN: string;
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: string;
|
|
76
|
-
TABLE_COLUMN_ACTIONS: string;
|
|
77
|
-
TABLE_SORT_ASCENDING: string;
|
|
78
|
-
TABLE_SORT_DESCENDING: string;
|
|
79
|
-
TABLE_CLEAR_SORTING: string;
|
|
80
|
-
TABLE_CLEAR_FILTER: string;
|
|
81
|
-
TABLE_FILTERED: string;
|
|
82
|
-
TABLE_CLEAR_SEARCH: string;
|
|
83
|
-
TABLE_HIDE_ALL: string;
|
|
84
|
-
TABLE_SHOW_ALL: string;
|
|
85
|
-
TABLE_TOGGLE_SEARCH: string;
|
|
86
|
-
TABLE_TOGGLE_FILTERS: string;
|
|
87
|
-
TABLE_TOGGLE_DENSITY: string;
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: string;
|
|
89
52
|
};
|
|
90
53
|
//# sourceMappingURL=strings-gx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strings-gx.d.ts","sourceRoot":"","sources":["../../src/strings/strings-gx.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"strings-gx.d.ts","sourceRoot":"","sources":["../../src/strings/strings-gx.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDnB,CAAC"}
|
package/strings/strings-gx.js
CHANGED
|
@@ -48,43 +48,6 @@ const strings = {
|
|
|
48
48
|
UPLOAD_FILES: 'RmlsZXM VXBsb2Fk',
|
|
49
49
|
UPLOAD_FILES_DESCRIPTION: 'ZmlsZXMu ZHJvcA YW5k ZHJhZw b3I QnJvd3Nl',
|
|
50
50
|
VR: 'VlI',
|
|
51
|
-
ZOOM: 'Wm9vbQ'
|
|
52
|
-
TABLE_SAVE_ERROR: 'YWdhaW4u dHJ5 UGxlYXNl Y2hhbmdlcy4 c2F2ZQ dG8 VW5hYmxl',
|
|
53
|
-
TABLE_FILTER: 'RmlsdGVy',
|
|
54
|
-
TABLE_FILTER_BY: '{column} Ynk RmlsdGVy',
|
|
55
|
-
TABLE_MIN: 'TWluaW11bQ',
|
|
56
|
-
TABLE_MAX: 'TWF4aW11bQ',
|
|
57
|
-
TABLE_ALL: 'QWxs',
|
|
58
|
-
TABLE_SEARCH: 'U2VhcmNo',
|
|
59
|
-
TABLE_COLUMNS: 'Q29sdW1ucw',
|
|
60
|
-
TABLE_DRAG_COLUMN: 'Y29sdW1u RHJhZw',
|
|
61
|
-
TABLE_MOVE: 'TW92ZQ',
|
|
62
|
-
TABLE_MOVE_BACK: 'YmFja3dhcmQ Y29sdW1u TW92ZQ',
|
|
63
|
-
TABLE_MOVE_FORWARD: 'Zm9yd2FyZA Y29sdW1u TW92ZQ',
|
|
64
|
-
TABLE_PIN: 'Y29sdW1u UGlu',
|
|
65
|
-
TABLE_UNPIN: 'VW5waW5uZWQ',
|
|
66
|
-
TABLE_PIN_LEFT: 'bGVmdA dG8 UGlu',
|
|
67
|
-
TABLE_PIN_RIGHT: 'cmlnaHQ dG8 UGlu',
|
|
68
|
-
TABLE_NO_ROWS: 'ZGlzcGxheQ dG8 cmVjb3Jkcw Tm8',
|
|
69
|
-
TABLE_ROWS_PER_PAGE: 'cGFnZQ cGVy Um93cw',
|
|
70
|
-
TABLE_NEXT_PAGE: 'cGFnZQ TmV4dA',
|
|
71
|
-
TABLE_PREVIOUS_PAGE: 'cGFnZQ UHJldmlvdXM',
|
|
72
|
-
TABLE_FIRST_PAGE: 'cGFnZQ Rmlyc3Q',
|
|
73
|
-
TABLE_LAST_PAGE: 'cGFnZQ TGFzdA',
|
|
74
|
-
TABLE_HIDE_COLUMN: 'Y29sdW1u {column} SGlkZQ',
|
|
75
|
-
TABLE_SHOW_ALL_COLUMNS: 'Y29sdW1ucw YWxs U2hvdw',
|
|
76
|
-
TABLE_COLUMN_ACTIONS: 'YWN0aW9ucw Q29sdW1u',
|
|
77
|
-
TABLE_SORT_ASCENDING: 'YXNjZW5kaW5n {column} Ynk U29ydA',
|
|
78
|
-
TABLE_SORT_DESCENDING: 'ZGVzY2VuZGluZw {column} Ynk U29ydA',
|
|
79
|
-
TABLE_CLEAR_SORTING: 'c29ydGluZw Q2xlYXI',
|
|
80
|
-
TABLE_CLEAR_FILTER: 'ZmlsdGVy Q2xlYXI',
|
|
81
|
-
TABLE_FILTERED: 'RmlsdGVyZWQ',
|
|
82
|
-
TABLE_CLEAR_SEARCH: 'c2VhcmNo Q2xlYXI',
|
|
83
|
-
TABLE_HIDE_ALL: 'YWxs SGlkZQ',
|
|
84
|
-
TABLE_SHOW_ALL: 'YWxs U2hvdw',
|
|
85
|
-
TABLE_TOGGLE_SEARCH: 'c2VhcmNo U2hvdy9IaWRl',
|
|
86
|
-
TABLE_TOGGLE_FILTERS: 'ZmlsdGVycw U2hvdy9IaWRl',
|
|
87
|
-
TABLE_TOGGLE_DENSITY: 'ZGVuc2l0eQ VG9nZ2xl',
|
|
88
|
-
TABLE_TOGGLE_FULLSCREEN: 'c2NyZWVu ZnVsbA VG9nZ2xl'
|
|
51
|
+
ZOOM: 'Wm9vbQ'
|
|
89
52
|
};
|
|
90
53
|
export { strings };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DragEndEvent } from '@dnd-kit/core';
|
|
3
|
-
import { MenuItemProps, MenuProps, TableCellProps, TableContainerProps } from '@mui/material';
|
|
4
|
-
type DragContextProps = {
|
|
5
|
-
ids: string[];
|
|
6
|
-
onDragEnd: (event: DragEndEvent) => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const ColumnDragMenu: ({ ids, onDragEnd, ...props }: DragContextProps & Omit<MenuProps, "onDragEnd">) => React.JSX.Element;
|
|
9
|
-
export declare const ColumnDragTableContainer: ({ ids, onDragEnd, ...props }: DragContextProps & Omit<TableContainerProps, "onDragEnd">) => React.JSX.Element;
|
|
10
|
-
export declare const ColumnDragHandle: () => React.ReactNode;
|
|
11
|
-
type ColumnDragProps = {
|
|
12
|
-
id: string;
|
|
13
|
-
label: string;
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const DraggableColumnHeader: ({ id, label, enabled, ...props }: ColumnDragProps & TableCellProps) => React.JSX.Element;
|
|
17
|
-
export declare const ColumnDragBodyCell: ({ columnId, lastRow, ...props }: TableCellProps & {
|
|
18
|
-
columnId: string;
|
|
19
|
-
lastRow: boolean;
|
|
20
|
-
}) => React.JSX.Element;
|
|
21
|
-
export declare const DraggableColumnItem: ({ id, label, enabled, ...props }: ColumnDragProps & MenuItemProps) => React.JSX.Element;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=ColumnDragging.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnDragging.d.ts","sourceRoot":"","sources":["../../../src/components/EditableTableV2/ColumnDragging.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8E,MAAM,OAAO,CAAC;AAEnG,OAAO,EAGL,YAAY,EAQb,MAAM,eAAe,CAAC;AAGvB,OAAO,EAKL,aAAa,EACb,SAAS,EAET,cAAc,EAEd,mBAAmB,EAGpB,MAAM,eAAe,CAAC;AAIvB,KAAK,gBAAgB,GAAG;IAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;CAAE,CAAC;AAoDpF,eAAO,MAAM,cAAc,GAAI,8BAA8B,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,sBAI3G,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,8BAItC,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,sBAI3D,CAAC;AAGF,eAAO,MAAM,gBAAgB,uBAAsC,CAAC;AAqBpE,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAsDF,eAAO,MAAM,qBAAqB,GAAI,kCAAkC,eAAe,GAAG,cAAc,sBAQvG,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,iCAIhC,cAAc,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,sBAGzD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,kCAAkC,eAAe,GAAG,aAAa,sBAWpG,CAAC"}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useCallback, useContext, useRef, useState } from "react";
|
|
3
|
-
import { DndContext, DragOverlay, KeyboardSensor, PointerSensor, closestCenter, useDndContext, useSensor, useSensors } from "@dnd-kit/core";
|
|
4
|
-
import { SortableContext, sortableKeyboardCoordinates, useSortable } from "@dnd-kit/sortable";
|
|
5
|
-
import { DragHandle } from "@mui/icons-material";
|
|
6
|
-
import { Box, IconButton, Menu, MenuItem, TableCell, TableContainer, Tooltip, useTheme } from "@mui/material";
|
|
7
|
-
import { useStrings } from "../../strings/index.js";
|
|
8
|
-
const ColumnDragContext = ({ ids, onDragEnd, children })=>{
|
|
9
|
-
const [overlay, setOverlay] = useState(null);
|
|
10
|
-
const sensors = useSensors(useSensor(PointerSensor, {
|
|
11
|
-
activationConstraint: {
|
|
12
|
-
distance: 5
|
|
13
|
-
}
|
|
14
|
-
}), useSensor(KeyboardSensor, {
|
|
15
|
-
coordinateGetter: sortableKeyboardCoordinates
|
|
16
|
-
}));
|
|
17
|
-
return /*#__PURE__*/ jsxs(DndContext, {
|
|
18
|
-
sensors: sensors,
|
|
19
|
-
collisionDetection: closestCenter,
|
|
20
|
-
measuring: {
|
|
21
|
-
dragOverlay: {
|
|
22
|
-
measure: (node)=>overlay?.rect ?? node.getBoundingClientRect()
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
onDragStart: ({ active })=>{
|
|
26
|
-
const element = active.data.current?.getDragElement();
|
|
27
|
-
if (element) {
|
|
28
|
-
const { width, height, top, left, right, bottom } = element.getBoundingClientRect();
|
|
29
|
-
const rect = {
|
|
30
|
-
width,
|
|
31
|
-
height,
|
|
32
|
-
top,
|
|
33
|
-
left,
|
|
34
|
-
right,
|
|
35
|
-
bottom
|
|
36
|
-
};
|
|
37
|
-
const html = 'TH' === element.tagName ? `<table style="border-collapse:collapse;width:${rect.width}px"><thead><tr>${element.outerHTML}</tr></thead></table>` : `<ul style="margin:0;padding:0;list-style:none">${element.outerHTML}</ul>`;
|
|
38
|
-
setOverlay({
|
|
39
|
-
html,
|
|
40
|
-
rect
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
onDragCancel: ()=>setOverlay(null),
|
|
45
|
-
onDragEnd: (event)=>{
|
|
46
|
-
setOverlay(null);
|
|
47
|
-
onDragEnd(event);
|
|
48
|
-
},
|
|
49
|
-
children: [
|
|
50
|
-
/*#__PURE__*/ jsx(SortableContext, {
|
|
51
|
-
items: ids,
|
|
52
|
-
children: children
|
|
53
|
-
}),
|
|
54
|
-
/*#__PURE__*/ jsx(DragOverlay, {
|
|
55
|
-
dropAnimation: null,
|
|
56
|
-
zIndex: 1500,
|
|
57
|
-
children: overlay && /*#__PURE__*/ jsx(Box, {
|
|
58
|
-
"aria-hidden": true,
|
|
59
|
-
"data-testid": "column-drag-overlay",
|
|
60
|
-
sx: {
|
|
61
|
-
width: overlay.rect.width,
|
|
62
|
-
height: overlay.rect.height,
|
|
63
|
-
opacity: 0.65,
|
|
64
|
-
bgcolor: 'background.paper',
|
|
65
|
-
pointerEvents: 'none'
|
|
66
|
-
},
|
|
67
|
-
dangerouslySetInnerHTML: {
|
|
68
|
-
__html: overlay.html
|
|
69
|
-
}
|
|
70
|
-
})
|
|
71
|
-
})
|
|
72
|
-
]
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
const ColumnDragMenu = ({ ids, onDragEnd, ...props })=>/*#__PURE__*/ jsx(ColumnDragContext, {
|
|
76
|
-
ids: ids,
|
|
77
|
-
onDragEnd: onDragEnd,
|
|
78
|
-
children: /*#__PURE__*/ jsx(Menu, {
|
|
79
|
-
...props
|
|
80
|
-
})
|
|
81
|
-
});
|
|
82
|
-
const ColumnDragTableContainer = ({ ids, onDragEnd, ...props })=>/*#__PURE__*/ jsx(ColumnDragContext, {
|
|
83
|
-
ids: ids,
|
|
84
|
-
onDragEnd: onDragEnd,
|
|
85
|
-
children: /*#__PURE__*/ jsx(TableContainer, {
|
|
86
|
-
...props
|
|
87
|
-
})
|
|
88
|
-
});
|
|
89
|
-
const DragHandleContext = /*#__PURE__*/ createContext(null);
|
|
90
|
-
const ColumnDragHandle = ()=>useContext(DragHandleContext);
|
|
91
|
-
const useColumnDragBorders = (id, edge)=>{
|
|
92
|
-
const { active, over } = useDndContext();
|
|
93
|
-
const theme = useTheme();
|
|
94
|
-
const isDragging = active?.id === id;
|
|
95
|
-
const isOver = over?.id === id;
|
|
96
|
-
if (!isDragging && !isOver) return {};
|
|
97
|
-
const border = isDragging ? `1px dashed ${theme.palette.grey[500]}` : `2px dashed ${theme.palette.primary.main}`;
|
|
98
|
-
return {
|
|
99
|
-
borderLeft: border,
|
|
100
|
-
borderRight: border,
|
|
101
|
-
...'top' === edge && {
|
|
102
|
-
borderTop: border
|
|
103
|
-
},
|
|
104
|
-
...'bottom' === edge && {
|
|
105
|
-
borderBottom: border
|
|
106
|
-
},
|
|
107
|
-
opacity: 0.5,
|
|
108
|
-
...isDragging && {
|
|
109
|
-
zIndex: 2
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
const useColumnDrag = ({ id, label, enabled }, activeOutlineWidth = 1)=>{
|
|
114
|
-
const strings = useStrings();
|
|
115
|
-
const theme = useTheme();
|
|
116
|
-
const element = useRef(null);
|
|
117
|
-
const { setNodeRef, setActivatorNodeRef, attributes, listeners, isDragging, isOver } = useSortable({
|
|
118
|
-
id,
|
|
119
|
-
disabled: !enabled,
|
|
120
|
-
data: {
|
|
121
|
-
getDragElement: ()=>element.current
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
const ref = useCallback((node)=>{
|
|
125
|
-
element.current = node;
|
|
126
|
-
setNodeRef(node);
|
|
127
|
-
}, [
|
|
128
|
-
setNodeRef
|
|
129
|
-
]);
|
|
130
|
-
const dragStyles = {
|
|
131
|
-
outline: isDragging ? `${activeOutlineWidth}px dashed ${theme.palette.grey[500]}` : isOver ? `2px dashed ${theme.palette.primary.main}` : void 0,
|
|
132
|
-
outlineOffset: '-2px'
|
|
133
|
-
};
|
|
134
|
-
const handle = enabled && /*#__PURE__*/ jsx(Tooltip, {
|
|
135
|
-
title: strings.TABLE_MOVE,
|
|
136
|
-
placement: "top",
|
|
137
|
-
children: /*#__PURE__*/ jsx(IconButton, {
|
|
138
|
-
size: "small",
|
|
139
|
-
disableRipple: true,
|
|
140
|
-
ref: setActivatorNodeRef,
|
|
141
|
-
...attributes,
|
|
142
|
-
...listeners,
|
|
143
|
-
"aria-label": `${strings.TABLE_DRAG_COLUMN}: ${label}`,
|
|
144
|
-
sx: {
|
|
145
|
-
touchAction: 'none',
|
|
146
|
-
cursor: 'grab',
|
|
147
|
-
'&:active': {
|
|
148
|
-
cursor: 'grabbing'
|
|
149
|
-
},
|
|
150
|
-
'&:hover': {
|
|
151
|
-
backgroundColor: 'transparent',
|
|
152
|
-
opacity: 1
|
|
153
|
-
},
|
|
154
|
-
m: '0 -0.1rem',
|
|
155
|
-
opacity: 0.5,
|
|
156
|
-
p: '2px',
|
|
157
|
-
transition: 'all 150ms ease-in-out'
|
|
158
|
-
},
|
|
159
|
-
onClick: (event)=>event.stopPropagation(),
|
|
160
|
-
children: /*#__PURE__*/ jsx(DragHandle, {})
|
|
161
|
-
})
|
|
162
|
-
});
|
|
163
|
-
return {
|
|
164
|
-
ref,
|
|
165
|
-
handle,
|
|
166
|
-
dragStyles,
|
|
167
|
-
isDragging
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
const DraggableColumnHeader = ({ id, label, enabled, ...props })=>{
|
|
171
|
-
const { ref, handle } = useColumnDrag({
|
|
172
|
-
id,
|
|
173
|
-
label,
|
|
174
|
-
enabled
|
|
175
|
-
});
|
|
176
|
-
const borders = useColumnDragBorders(id, 'top');
|
|
177
|
-
return /*#__PURE__*/ jsx(DragHandleContext.Provider, {
|
|
178
|
-
value: handle,
|
|
179
|
-
children: /*#__PURE__*/ jsx(TableCell, {
|
|
180
|
-
...props,
|
|
181
|
-
ref: ref,
|
|
182
|
-
sx: [
|
|
183
|
-
...Array.isArray(props.sx) ? props.sx : [
|
|
184
|
-
props.sx
|
|
185
|
-
],
|
|
186
|
-
borders
|
|
187
|
-
]
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
const ColumnDragBodyCell = ({ columnId, lastRow, ...props })=>{
|
|
192
|
-
const borders = useColumnDragBorders(columnId, lastRow ? 'bottom' : void 0);
|
|
193
|
-
return /*#__PURE__*/ jsx(TableCell, {
|
|
194
|
-
...props,
|
|
195
|
-
sx: [
|
|
196
|
-
...Array.isArray(props.sx) ? props.sx : [
|
|
197
|
-
props.sx
|
|
198
|
-
],
|
|
199
|
-
borders
|
|
200
|
-
]
|
|
201
|
-
});
|
|
202
|
-
};
|
|
203
|
-
const DraggableColumnItem = ({ id, label, enabled, ...props })=>{
|
|
204
|
-
const { ref, handle, dragStyles, isDragging } = useColumnDrag({
|
|
205
|
-
id,
|
|
206
|
-
label,
|
|
207
|
-
enabled
|
|
208
|
-
}, 2);
|
|
209
|
-
return /*#__PURE__*/ jsx(DragHandleContext.Provider, {
|
|
210
|
-
value: handle,
|
|
211
|
-
children: /*#__PURE__*/ jsx(MenuItem, {
|
|
212
|
-
...props,
|
|
213
|
-
ref: ref,
|
|
214
|
-
sx: [
|
|
215
|
-
...Array.isArray(props.sx) ? props.sx : [
|
|
216
|
-
props.sx
|
|
217
|
-
],
|
|
218
|
-
dragStyles,
|
|
219
|
-
{
|
|
220
|
-
opacity: isDragging ? 0.5 : 1
|
|
221
|
-
}
|
|
222
|
-
]
|
|
223
|
-
})
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
export { ColumnDragBodyCell, ColumnDragHandle, ColumnDragMenu, ColumnDragTableContainer, DraggableColumnHeader, DraggableColumnItem };
|