add isEqual to DatePicker
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
db8ba63892
commit
86d49053a6
@ -105,4 +105,30 @@ open class DatePickerEntryFieldModel: FormFieldModel {
|
||||
try container.encode(transparentBackground, forKey: .transparentBackground)
|
||||
try container.encodeIfPresent(width, forKey: .width)
|
||||
}
|
||||
|
||||
open override func isEqual(to model: any ModelComparisonProtocol) -> Bool {
|
||||
guard super.isEqual(to: model), let model = model as? Self else { return false }
|
||||
return dateFormat == model.dateFormat
|
||||
&& selectedDate == model.selectedDate
|
||||
&& calendar == model.calendar
|
||||
&& title == model.title
|
||||
&& feedback == model.feedback
|
||||
&& feedbackTextPlacement == model.feedbackTextPlacement
|
||||
&& tooltip == model.tooltip
|
||||
&& transparentBackground == model.transparentBackground
|
||||
&& width == model.width
|
||||
}
|
||||
|
||||
open override func isVisuallyEquivalent(to model: any MoleculeModelComparisonProtocol) -> Bool {
|
||||
guard super.isVisuallyEquivalent(to: model), let model = model as? Self else { return false }
|
||||
return dateFormat == model.dateFormat
|
||||
&& selectedDate == model.selectedDate
|
||||
&& calendar == model.calendar
|
||||
&& title == model.title
|
||||
&& feedback == model.feedback
|
||||
&& feedbackTextPlacement == model.feedbackTextPlacement
|
||||
&& tooltip == model.tooltip
|
||||
&& transparentBackground == model.transparentBackground
|
||||
&& width == model.width
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user