Граф коммитов

102 Коммитов

Автор SHA1 Сообщение Дата
Craig Dean 053ea391bc
housekeeping: Update README.md (#133)
* Update README.md

Clean up pass, to improve intelligibility and reflect the latest API additions more clearly.

* Update README.md

Co-authored-by: Artyom V. Gorchakov <worldbeater-dev@yandex.ru>

Co-authored-by: Glenn <5834289+glennawatson@users.noreply.github.com>
Co-authored-by: Artyom V. Gorchakov <worldbeater-dev@yandex.ru>
2020-10-18 12:44:40 +11:00
Artyom V. Gorchakov e6aadc5a32
feature: Use IValidationState Instead of ValidationState (#130)
* Use IValidationState where possible
* The new pattern plays well with our sample app
* The new validation rule overloads
* Use the new overload in our sample app
* Additional unit tests
* Approve the API
* Update README.md (#131)
Proposed update to indicate use of `IValidationState` or `ValidationState` with `ValidationRule`.
* Refactor: change validation state to have a static valid state (#132)
* Update ValidationState.cs
Added static Valid property, for `ValidationState.Valid` as mentioned in https://github.com/reactiveui/ReactiveUI.Validation/pull/130#issuecomment-710688558
Updated document to use `ValidationState.Valid` as introduced in #131
* Replaced construction of valid validation states with `ValidationState.Valid`.
* Added `ValidationState.Valid` to public API.
* Don't break the public ObservableValidationBase API if possible
* Use ValidationState.Valid in our sample app
Co-authored-by: Craig Dean <thargy@yahoo.com>
2020-10-17 17:24:25 +03:00
Artyom V. Gorchakov 86e9e8afcb
feature: Add ClearValidationRules Extension Methods (#128)
* Add the ability to clear validation rules
* Fix the API approval tests
* Add a test for the property selector
* Idempotency check
* Comments for future generations
2020-10-16 13:54:41 +03:00
dependabot-preview[bot] f84adacca7
build(deps): bump DiffEngine from 6.1.2 to 6.1.4 (#127)
Bumps [DiffEngine](https://github.com/VerifyTests/DiffEngine) from 6.1.2 to 6.1.4.
- [Release notes](https://github.com/VerifyTests/DiffEngine/releases)
- [Commits](https://github.com/VerifyTests/DiffEngine/compare/6.1.2...6.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-16 11:50:26 +11:00
Glenn ef9858c75f
housekeeping: Remove shoudly (#126) 2020-10-16 07:10:48 +11:00
Artyom V. Gorchakov 05316ecc58
housekeeping: Release version 1.7 (#125) 2020-10-15 22:13:54 +03:00
dependabot-preview[bot] 8669b3cbfd
build(deps): bump DiffEngine from 6.1.1 to 6.1.2 (#124)
Bumps [DiffEngine](https://github.com/VerifyTests/DiffEngine) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/VerifyTests/DiffEngine/releases)
- [Commits](https://github.com/VerifyTests/DiffEngine/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-15 03:51:06 +03:00
Artyom V. Gorchakov 4e0f2eb0ef
refactor: Deprecate Generic IValidatesProperties<T> (#122)
* Hide the generic IPropertyValidationComponent

* Uncomment and deprecate generic property validation component

* Approve the API

* Don't break the ResolveFor APIs

* Exclude obsolete guys from code coverage

* Approve the API

* Add a unit test for the new public API part

* Assert that an exception is thrown

* Test when exclusive is true

* Rename the tests file

* Use latest language version in tests

* API approval
2020-10-15 09:28:58 +11:00
Artyom V. Gorchakov 7a38594a86
housekeeping: Update the Documentation and Code Snippets in README (#121)
* housekeeping: Update the Documentation

* Update README.md
2020-10-15 02:25:00 +11:00
Artyom V. Gorchakov b5d87bcdf9
refactor: Update the LoginApp to use Newer ValidationRule Overloads (#120)
* Sample app with more sample code

* Improved Avalonia indicator

* Shorter error messages
2020-10-14 22:06:16 +11:00
Artyom V. Gorchakov 897f124648
feature: Deprecate ModelObservableValidation in Favor of ObservableValidation (#119)
* Cleanup property validations

* Introduce a new ObservableValidation class

* Deprecate ModelObservableValidation

* The new portion of validation helpers

* Update the tests

* The API changes

* Exclude obsolete guys from code coverage

* Update the sample app

* Exclude deprecated stuff from code coverage

* Fix the validation pipeline in the sample app

* Remove generic type arguments from RxValObject in tests

* Use ValidationRule in Indei tests

* Improve the XML documentation
2020-10-14 10:03:06 +11:00
Artyom V. Gorchakov 1565d37548
feature: Deprecate ReactiveValidationObject<T> in Favor of Just ReactiveValidationObject (#118)
* Deprecate RxValObject<T> in favor of RxValObject

* Update the sample app
2020-10-13 23:18:21 +11:00
Artyom V. Gorchakov 1121e56418
feature: Improved IDisposable Handling, Possibility to Change Validation Rules Dynamically (#115)
* Inject the cleanup disposable into the ValidationHelper

* Fix false positive error highlighting

* Dispose and detach the component when the helper disposes

* Add a failing test

* Update IsValid when source list changes

* Lazy fix the failing test

* Ensure the observables disconnect on dispose

* Cover indei with unit tests

* Memoize mentioned property names

* Pass the ignored parameter

* ResolveFor->ObserveFor

* Potential performance improvements

* Obsolete the ResolveFor extension methods

* The pure pipeline

* Cache initial indei state

* Observe validation status in view model binding

* Improved reactivity test

* Granularity in test cases

* Reactivity for validation helper properties
2020-10-13 22:18:19 +11:00
Artyom V. Gorchakov f0040f9627
Support Binding to IReactiveObject's (#114)
* Support binding to interfaces that implement IReactiveObject
* Use the immediate scheduler
2020-10-12 14:15:28 +03:00
Glenn c04c179aa5
housekeeping: Fix invalid environment in github action (#113) 2020-10-12 13:30:26 +11:00
Glenn 2af0dae497
Update ci-build.yml (#112) 2020-10-12 12:58:07 +11:00
dependabot-preview[bot] a5d1068f05
build(deps): bump DiffEngine from 6.0.3 to 6.1.1 (#111)
Bumps [DiffEngine](https://github.com/VerifyTests/DiffEngine) from 6.0.3 to 6.1.1.
- [Release notes](https://github.com/VerifyTests/DiffEngine/releases)
- [Commits](https://github.com/VerifyTests/DiffEngine/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 11:47:46 +11:00
Glenn 516838143d
housekeeping: Release version 1.6 (#110) 2020-10-12 10:30:48 +11:00
Artyom V. Gorchakov f59a09a28e
Consistent ValidationRule Overloads (#105)
* Add less verbose ValidationRule overloads, deprecate old ones

* Approve the API changes

* SupportsValidationExtensions -> ValidatableViewModelExtensions

* Unit test the new ValidationRule overloads

* Use the new overload in the sample app

* Cover the constructors

* Test observable property validation ctor

* The parameters

* Cover one more overload
2020-10-12 10:27:13 +11:00
Glenn 5f19fde28e
housekeeping: Add unit test indications to code cov (#108)
* housekeeping: Add unit test indications to code cov

* Update ci-build.yml

* Update ci-build.yml

* Update ci-build.yml (#109)

* Update ci-build.yml
2020-10-11 18:57:08 +11:00
Glenn ac34a06b93
housekeeping: Change the build icon. (#107) 2020-10-11 17:51:37 +11:00
Glenn 2b9d83902a
housekeeping: Use GitHub actions for building. (#106)
* housekeeping: add initial github action

* housekeeping: Change building to GitHub actions
2020-10-11 17:42:54 +11:00
Artyom V. Gorchakov 291e022bf9
Try Resolve a Default Formatter from Splat.Locator (#104)
* Try get a validation formatter from Locator

* Improve the XML documentation

* Further documentation improvements

* Unit test the bindings used by Android extensions

* Add IValidationTextFormatter demo usage

* Document action bindings, test the view model bindings

* Approve the changes
2020-10-11 10:17:01 +11:00
Artyom V. Gorchakov aec03847db
Add LoginApp.WinForms and LoginApp.Uwp (#102)
* Basic sample app for Windows Forms

* Add a UWP sample app

* Add separate sln files for each platform

* Move LoginApp projects to samples/

* Fix project path
2020-10-10 10:22:50 +11:00
Artyom V. Gorchakov 83f539f03a
Support custom IValidationTextFormatters in BindValidation, Increase Code Coverage (#103)
* Move BindValidation tests to ValidationBindingTests.cs

* Add tests for ValidationHelper bindings

* Add tests for the ValidationHelper class

* Deprecate the BindToDirect internal API method

* Allow using custom formatters

* Approve the new API

* Add a test for nested validation contexts

* Cleanup using directives
2020-10-10 10:22:35 +11:00
dependabot-preview[bot] 96fcd44065
build(deps): bump Nerdbank.GitVersioning from 3.2.31 to 3.3.37 (#101)
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.2.31 to 3.3.37.
- [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/dotnet/Nerdbank.GitVersioning/compare/v3.2.31...v3.3.37)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-08 11:27:03 +11:00
Artyom V. Gorchakov 0826399ff7
Support multiple validations in BindValidation, deprecate BindValidationEx (#100)
* Add a failing test

* Lazy fix

* Obsolete BindValidationEx, support multiple validations in BindValidation

* Adjust the docs and the code

* Add more complex code to the samples

* Remove the deprecated using

* FirstOrDefault in Android target
2020-10-08 10:10:55 +11:00
Artyom V. Gorchakov 5d4861f646
Update LoginApp, add Avalonia and WPF samples (#99)
* Move Xamarin.Forms-related code into LoginApp.Forms

* The app crashes on launch

* Adjust build properties

* Fix the crashes

* Remove the redundant files

* Update LoginApp.iOS.csproj

* Inherit from ReactiveValidationObject

* Move the files around, add Avalonia sample app

* Add LoginApp.Wpf

* Use the .NET Foundation header in samples
2020-10-07 22:35:54 +11:00
Artyom V. Gorchakov 37505fc7bd
Fix INotifyDataErrorInfo Issues on WPF (#97)
* Fix synchronization issues with CurrentThreadScheduler.Instance
* Publish ErrorsChanged with property name
* Update XML docs
* Fix a few nullables
* Update nullables for Android also
* Approve the new API, fix tests
* Add file headers and Indei tests
* build(deps): bump Shouldly from 4.0.0-beta0002 to 4.0.0-beta0003
* build(deps): bump Roslynator.Analyzers from 2.3.0 to 3.0.0
* build(deps): bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.1
* build(deps): bump Microsoft.CodeAnalysis.FxCopAnalyzers
* build(deps): bump Xunit.StaFact from 0.3.18 to 1.0.37
* build(deps): bump xunit.runner.visualstudio from 2.4.2 to 2.4.3
* Use the new DiffEngine
* Mark IsValid observable as not nullable
* Update the approved API
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-05 13:09:46 +03:00
Glenn 5c5bc39c50
Delete opencollective.yml 2020-07-28 19:59:21 +10:00
dependabot-preview[bot] 4c126199fa
build(deps): bump Nerdbank.GitVersioning from 3.1.91 to 3.2.31 (#86)
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.1.91 to 3.2.31.
- [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/dotnet/Nerdbank.GitVersioning/compare/v3.1.91...v3.2.31)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-26 18:17:41 +10:00
Glenn 1a74daacea
feature: Add nullability (#85) 2020-07-26 17:26:09 +10:00
Artyom V. Gorchakov 4f61a89be2
Update links and code snippets in README.md (#84) 2020-07-19 05:27:56 +10:00
Artyom V. Gorchakov 245f2e40e6
Update version.json (#83) 2020-07-18 10:59:30 +10:00
Artyom V. Gorchakov a6af6213d3
Fix #60, #61, #70 (#82)
* Use OAPH instead of ROOC

* Fix error sharing when last property is the same (#60)

* Use the main thread scheduler in this.IsValid (70)

* Switch over from BPV to IPVC (#61)

* Fix duplicating validations

* Bring back the scheduling fix until we ensure it finally works without it

* Fix typo

* Access _validationSource directly

* The scheduling fix is no longer needed

* Don't break ROOC public API

* build(deps): bump PublicApiGenerator from 10.1.0 to 10.2.0

Bumps [PublicApiGenerator](https://github.com/PublicApiGenerator/PublicApiGenerator) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/PublicApiGenerator/PublicApiGenerator/releases)
- [Commits](https://github.com/PublicApiGenerator/PublicApiGenerator/compare/10.1.0...10.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Evil serializable attributes

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-17 23:10:15 +10:00
Glenn 915b47a72f
Update azure-pipelines.yml 2020-07-04 14:44:03 +10:00
Glenn 73f9b48423
Update version.json 2020-07-04 14:43:45 +10:00
dependabot-preview[bot] 7c7b05a77f
build(deps): bump PublicApiGenerator from 9.3.0 to 10.1.0 (#76)
* build(deps): bump PublicApiGenerator from 9.3.0 to 10.1.0

Bumps [PublicApiGenerator](https://github.com/PublicApiGenerator/PublicApiGenerator) from 9.3.0 to 10.1.0.
- [Release notes](https://github.com/PublicApiGenerator/PublicApiGenerator/releases)
- [Commits](https://github.com/PublicApiGenerator/PublicApiGenerator/compare/9.3.0...10.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update with latest tests

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Glenn Watson <github@glennwatson.net>
2020-06-09 14:01:26 +10:00
dependabot-preview[bot] 900d410042
build(deps): bump Microsoft.NET.Test.Sdk from 16.6.0 to 16.6.1 (#73)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.6.0 to 16.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.6.0...v16.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-09 13:38:44 +10:00
dependabot-preview[bot] e0ddfb61a9
build(deps): bump Nerdbank.GitVersioning from 3.1.74 to 3.1.91 (#74)
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.1.74 to 3.1.91.
- [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/dotnet/Nerdbank.GitVersioning/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-09 13:38:24 +10:00
dependabot-preview[bot] 46d8e20362
build(deps): bump xunit.runner.visualstudio from 2.4.1 to 2.4.2 (#77)
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.1 to 2.4.2.
- [Release notes](https://github.com/xunit/visualstudio.xunit/releases)
- [Commits](https://github.com/xunit/visualstudio.xunit/commits/v2.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-09 13:38:05 +10:00
Rodney Littles II 11bf997581
housekeeping: Updated Cake to v0.38.1 (#78) 2020-06-09 13:37:45 +10:00
dtwk2 156656cf10
Added support for GetErrors parameter being null (#69)
* Added support for GetErrors parameter being null

* Update ReactiveValidationObject.cs

* Added missing reference

* Added underscore to field-name. Removed trailing whitespace. Made method, GetMemberInfoName, private.

Co-authored-by: Declan Taylor <declan.taylor@pcs-instruments.com>
2020-04-21 15:24:43 +10:00
dependabot-preview[bot] 21359ad5c2
build(deps): bump Microsoft.NET.Test.Sdk from 16.5.0 to 16.6.0 (#72)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.5.0 to 16.6.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.5.0...v16.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-21 15:23:29 +10:00
dependabot-preview[bot] 8640c89422
build(deps): bump Microsoft.NET.Test.Sdk from 16.4.0 to 16.5.0 (#62)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.4.0 to 16.5.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.4.0...v16.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 11:22:14 +11:00
dependabot-preview[bot] 6276aec3bf
build(deps): bump Nerdbank.GitVersioning from 3.0.50 to 3.1.74 (#68)
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.0.50 to 3.1.74.
- [Release notes](https://github.com/dotnet/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/dotnet/Nerdbank.GitVersioning/compare/v3.0.50...v3.1.74)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 11:21:45 +11:00
Lixfeld 700ac113f7
Use TaskpoolScheduler for WPF/WF ValidationContext (#67) 2020-03-30 09:11:59 +11:00
Michael Kreich aa218ee50b
Feature extension and testcase for new ModelObservableValidation (#59)
* extension method for overload with property lambda

* testcase for new functionality
2020-01-29 22:27:02 +11:00
Michael Kreich 710ee6f82f
Feature: ModelObservableValidation + INotifyDataErrorInfo (#58)
* INotifyErrorInfo working with ModelObservableValidationBase part 1

* common base interface for BasePropertyValidation and ModelObservableValidationBase

* json schema error (outsideNameSpace => outsideNamespace)

* updated readme

* fixed ApiApprovalTests

* fixed ApiApprovalTests for all frameworks ;-)
2020-01-29 19:34:58 +11:00
dependabot-preview[bot] 8dedb69914 build(deps): bump Nerdbank.GitVersioning from 3.0.28 to 3.0.50 (#56)
Bumps [Nerdbank.GitVersioning](https://github.com/AArnott/Nerdbank.GitVersioning) from 3.0.28 to 3.0.50.
- [Release notes](https://github.com/AArnott/Nerdbank.GitVersioning/releases)
- [Commits](https://github.com/AArnott/Nerdbank.GitVersioning/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-16 11:53:34 +11:00