-
Notifications
You must be signed in to change notification settings - Fork 125
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: (Core) Custom Messages in pickers #4361
Conversation
✔️ Deploy preview for fundamental-ngx ready! 🔨 Explore the source changes: 3662074 🔍 Inspect the deploy logs: https://app.netlify.com/sites/fundamental-ngx/deploys/600558a6b5edd60008f5a3d9 😎 Browse the preview: https://deploy-preview-4361--fundamental-ngx.netlify.app |
Deploy preview for fundamental-ngx ready! Built with commit 26efdc3 |
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.
Awesome work. Added some minor comments
get state(): FormStates { | ||
return this._state; | ||
} | ||
private _state: FormStates = null; |
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.
missing typedocs and @hidden for _state
@ViewChild(CalendarComponent) | ||
calendarComponent: CalendarComponent<D>; | ||
|
||
@ViewChild('inputGroupComponent', { read: ElementRef }) |
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.
@@ -218,6 +240,19 @@ export class DatePickerComponent<D> implements OnInit, OnDestroy, ControlValueAc | |||
@Output() | |||
readonly activeViewChange: EventEmitter<FdCalendarView> = new EventEmitter<FdCalendarView>(); | |||
|
|||
/** @hidden */ | |||
@ViewChild(CalendarComponent) | |||
calendarComponent: CalendarComponent<D>; |
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.
should be prefixed with _
/** @hidden The value of the input */ | ||
inputFieldDate: string = null; | ||
|
||
/** @hidden Whether the date input is invalid */ | ||
isInvalidDateInput = false; |
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.
Should be prefixed with _
since it's hidden?
get state(): FormStates { | ||
return this._state; | ||
} | ||
|
||
private _state: FormStates = null; |
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.
same as above, missing typedocs and hidden
@@ -247,6 +280,10 @@ export class DatetimePickerComponent<D> implements OnInit, OnDestroy, OnChanges, | |||
@ViewChild(CalendarComponent) | |||
_calendarComponent: CalendarComponent<D>; | |||
|
|||
/** @hidden */ | |||
@ViewChild('inputGroupComponent', { read: ElementRef }) | |||
inputGroupElement: ElementRef; |
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.
_
prefix
@@ -8,3 +8,7 @@ | |||
max-width: 100%; | |||
} | |||
} | |||
|
|||
.invisible { |
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.
I think it should have some sort of prefix, o.w. can conflict with the same class in the application
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.
It's not used anywhere, so I will just remove
Thanks @InnaAtanasova for review, your comments are applied |
1f4f11a
to
222abb0
Compare
Please provide a link to the associated issue.
closes: #2934
Please provide a brief summary of this pull request.
There is added new way to add messages into date/time/datetimepicker.
message
Input into them.I created new popover-form service, that can be reused in other form components in future.
Please check whether the PR fulfills the following requirements
https://github.com/SAP/fundamental-ngx/blob/main/CONTRIBUTING.md
https://github.com/SAP/fundamental-ngx/wiki/PR-Review-Checklist
Documentation checklist:
README.md