-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(grid): expose editorOptions for the default editors and improve built-in editing for date/time cols (input formats) #14465
Open
ddaribo
wants to merge
65
commits into
master
Choose a base branch
from
bpachilova/grid-editor-options-feat-14009
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 34 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
77a8696
feat(date-time-util): logic to identify numeric formats for editing
ddaribo 705de49
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo 334cba2
chore(date-time-util): formatting fixes
ddaribo 3648659
Merge branch 'bpachilova/grid-editor-options-feat-14009' of https://g…
ddaribo e24c974
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo 82c1fd3
fix(esf-styles): small margin fix for time picker
ddaribo 602d25d
feat(grid-interface): add editorOptions property on the ColumnType an…
ddaribo 282c896
feat(grid-column): get/set editorOptions and dateTimeFormat
ddaribo ca0f4f5
feat(grid-cells): use editorOptions.dateTimeFormat; add locale where …
ddaribo 78e76c1
feat(grid-filters): use editorOptions.dateTimeFormat and locale on fi…
ddaribo 6c8e88e
test(grid-column-and-filtering): editors input formats
ddaribo 913a7cd
chore(grid-cells): delete leftover inputFormat bindings
ddaribo fb063af
chore(column-test): fix time col format test check
ddaribo d5264e1
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo dcd9517
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo 017fdfb
feat(date-time-util): default locale-based format for time and date-t…
ddaribo 4c0b4fa
feat(date-time-editors): handle default inputFormat based on locale
ddaribo cac8366
feat(date-time-util): localize predefined formats used for input; ref…
ddaribo 6cee547
feat(date-range): handle inputFormat when locale is changed
ddaribo 360bc67
feat(dte-dir,pickers): handle locale change and display/input formats
ddaribo 26708b2
refactor(column): do not handle format transformations here
ddaribo 8e1196b
refactor(qb): editorOptions.defaultDateTimeFormat setting
ddaribo b06fe16
refactor(filtering-ui-test): adjust according to latest changes
ddaribo 02cbe4c
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo b08258c
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ChronosSF c9b5331
refactor(column): address comment - simplify editorOptions assignment
ddaribo 45ddab0
chore(column): remove unused import
ddaribo 8ce97fa
chore(docs): update changelog, grid feature readme
ddaribo a65d264
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo 14a6984
chore(*): fixing lint error
ddaribo 188e1ac
chore(docs): move changelog entry under 18.2.0
ddaribo 90018ee
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo d90f85f
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo 98cac6b
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ChronosSF fcd02f4
chore(date-time.util): use formatDate method instead of new date pipe
ddaribo 09d3978
chore(date-time.util): not set options for DateParts.AmPm (def locale…
ddaribo a2f2c8e
chore(date-time-tests): normalize expected string values
ddaribo 8b71c7c
fix(date-time.util): remove 'narrow' time option
ddaribo f3e2a97
chore(picker-base): discard the userSetFormat internal prop
ddaribo 14bdd91
fix(date-time-editors): do not overwrite the set inputFormat
ddaribo 42715e7
chore(date-time-editors-tests): refactor according to the feature specs
ddaribo 51ebb75
refactor(date-time-editors): if not set, infer input format from disp…
ddaribo 6492941
refactor(*): if not set, infer date-time cells input format from display
ddaribo 4ca1812
refactor(interfaces): change name to IFieldEditorOptions and alias fo…
ddaribo 90ab1ed
chore(grid-tests): adjust tests to focus the target editor in edit mode
ddaribo ce5b19e
chore(dater-range-picker-test): use variable to check expectation as …
ddaribo 72123ac
chore(changelog): edit features description
ddaribo e676e81
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo ad76d3f
chore(gird-filtering-tests): fix input checks
ddaribo fe9d959
chore(grid-filtering-tests): edit input and display format props check
ddaribo 2bb44ad
chore(query-builder): clear redundant logic after changes
ddaribo a7ffbb5
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo e675433
fix(dte-dir): upd display value for locale wh input+display format ar…
ddaribo 5ddf08a
chore(tests): address comments
ddaribo 9dce296
chore(date-time.util): address comments
ddaribo 989bde0
fix(column): do not trigger grid pipes on editorOptions set
ddaribo daed5c0
chore(picker-base): address comments - allow falsy value as input format
ddaribo 567df5b
chore(date-range): address comments
ddaribo 9b78357
chore(dte-dir): comment - allow falsy format, default is date format
ddaribo 7df2a6c
chore(changelog): edit description
ddaribo 625b9b7
chore(picker, date-range): refactor per comments
ddaribo 870a5b2
chore(column.spec): refactor tests related to focusing the cell editor
ddaribo bbdc60b
feat(date-time-editor.directive): add defaultInputFormatType property
ddaribo 7ace78c
feat(*): set defaultInputFormatType on dateTimeEditor in grid editors…
ddaribo ec9d6fb
Merge branch 'master' into bpachilova/grid-editor-options-feat-14009
ddaribo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are at least two new features here, if not 3.
You have a general grid localiation of the input format used in editors (Edit, Filtering, etc UI), auto sync from the display format (pipeArgs.format) where applicable and then the new option to override the inferred format from either of the previous two.
Oh, and technically, those seem to be features baked into all date time editors and pickers too, right? (though how we describe that based on the current comments is TBD)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh and I guess we should include the Query Builder in the components getting the new functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ddaribo I'd still describe the auto localized input format and infer from the display(pipe) format as a separate (first) point. That could even be more impactful for more people than the new option which is an override if the new functionality doesn't produce quite what you'd like :)