-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
744 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"@salt-ds/ag-grid-theme": minor | ||
--- | ||
|
||
- Added theme support for several built-in ag grid provided editors | ||
- `agLargeTextCellEditor` | ||
- `agSelectCellEditor` | ||
- `agRichSelectCellEditor` | ||
- `agNumberCellEditor` | ||
- `agDateStringCellEditor` | ||
- Fixed `input` padding within `.editable-cell` during editing | ||
- Fixed long text overflow within `.editable-cell` when focused | ||
|
||
Closes #4144 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/core": patch | ||
--- | ||
|
||
Fixed Salt Provider in floating ui adding extra attributes to root when mixing styling options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
packages/ag-grid-theme/src/dependencies/agProvidedCellEditorsExampleColumns.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import { languages, shortColorData } from "./dataGridExampleDataCellEditors"; | ||
|
||
const agProvidedCellEditorsExampleColumns = [ | ||
{ | ||
headerName: "Text", | ||
field: "name", | ||
cellEditor: "agTextCellEditor", | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["editable-cell"], | ||
}, | ||
{ | ||
headerName: "Large Text", | ||
field: "sentence", | ||
cellEditor: "agLargeTextCellEditor", | ||
cellEditorPopup: true, | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["editable-cell"], | ||
}, | ||
{ | ||
headerName: "Boolean", | ||
field: "checked", | ||
cellDataType: "boolean", | ||
cellRenderer: "agCheckboxCellRenderer", | ||
cellEditor: "agCheckboxCellEditor", | ||
editable: true, | ||
}, | ||
{ | ||
headerName: "Select", | ||
field: "lang", | ||
cellEditor: "agSelectCellEditor", | ||
cellEditorParams: { | ||
values: languages, | ||
valueListGap: 0, | ||
}, | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["editable-cell"], | ||
}, | ||
{ | ||
headerName: "Rich Select", | ||
field: "color", | ||
cellEditor: "agRichSelectCellEditor", | ||
cellEditorParams: { | ||
values: shortColorData, | ||
valueListGap: 0, | ||
allowTyping: true, | ||
filterList: true, | ||
highlightMatch: true, | ||
}, | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["editable-cell"], | ||
}, | ||
{ | ||
headerName: "Number", | ||
field: "count", | ||
cellEditor: "agNumberCellEditor", | ||
cellEditorParams: { | ||
min: 0, | ||
max: 100, | ||
}, | ||
// Right aligns header | ||
type: "numericColumn", | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["numeric-cell", "editable-cell"], | ||
}, | ||
{ | ||
headerName: "Date", | ||
field: "date", | ||
cellDataType: "dateString", | ||
cellEditor: "agDateStringCellEditor", | ||
cellEditorParams: { | ||
min: "2000-01-01", | ||
max: "2019-12-31", | ||
}, | ||
editable: true, | ||
filter: true, | ||
floatingFilter: true, | ||
cellClass: ["editable-cell"], | ||
}, | ||
]; | ||
|
||
export default agProvidedCellEditorsExampleColumns; |
93 changes: 93 additions & 0 deletions
93
packages/ag-grid-theme/src/dependencies/dataGridExampleDataCellEditors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
export const languages = [ | ||
"English", | ||
"Spanish", | ||
"French", | ||
"Portuguese", | ||
"(other)", | ||
] as const; | ||
export const sentences = [ | ||
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.", | ||
"Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna.", | ||
"Nunc viverra imperdiet enim. Fusce est. Vivamus a tellus.", | ||
"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.", | ||
"Proin pharetra nonummy pede. Mauris et orci. Aenean nec lorem.", | ||
"In porttitor. Donec laoreet nonummy augue.", | ||
"Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc.", | ||
"Mauris eget neque at sem venenatis eleifend. Ut nonummy. Fusce aliquet pede non pede.", | ||
"Suspendisse dapibus lorem pellentesque magna. Integer nulla.", | ||
"Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien.", | ||
"Donec ut est in lectus consequat consequat. Etiam eget dui. Aliquam erat volutpat.", | ||
]; | ||
export const shortColorData = [ | ||
"Baby blue", | ||
"Black", | ||
"Blue", | ||
"Brown", | ||
"Green", | ||
"Orange", | ||
"Pink", | ||
"Purple", | ||
"Red", | ||
"White", | ||
"Yellow", | ||
]; | ||
|
||
export const currencyList = [ | ||
"USD", | ||
"EUR", | ||
"JPY", | ||
"GBP", | ||
"CHF", | ||
"CAD", | ||
"AUD", | ||
"NZD", | ||
"ZAR", | ||
]; | ||
|
||
export const dataGridExampleDataCellEditors = [ | ||
{ | ||
checked: false, | ||
name: currencyList[0], | ||
color: shortColorData[0], | ||
lang: languages[0], | ||
sentence: sentences[0], | ||
count: 10, | ||
date: "20/05/2009", | ||
}, | ||
{ | ||
checked: false, | ||
name: currencyList[1], | ||
color: shortColorData[1], | ||
lang: languages[1], | ||
sentence: sentences[1], | ||
count: 50, | ||
date: "20/05/2009", | ||
}, | ||
{ | ||
checked: true, | ||
name: currencyList[2], | ||
color: shortColorData[2], | ||
lang: languages[2], | ||
sentence: sentences[2], | ||
count: 80, | ||
date: "20/05/2009", | ||
}, | ||
{ | ||
checked: false, | ||
name: currencyList[3], | ||
color: shortColorData[3], | ||
lang: languages[3], | ||
sentence: sentences[3], | ||
count: 55, | ||
date: "20/05/2009", | ||
}, | ||
{ | ||
checked: false, | ||
name: currencyList[4], | ||
color: shortColorData[4], | ||
lang: languages[4], | ||
sentence: sentences[4], | ||
count: 79, | ||
date: "20/05/2009", | ||
}, | ||
] as const; |
Oops, something went wrong.