Skip to content

Commit

Permalink
Fixed a bug in CollectionCheck that onValueChanged is not called on c…
Browse files Browse the repository at this point in the history
…hange
  • Loading branch information
gius committed Dec 17, 2020
1 parent 42eecdc commit 2d0dac8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 225 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.16.1

- Fixed a bug in `CollectionCheck` that `onValueChanged` is not called on change.

# 0.16.0

- Added `ManualPromise`, `groupBy()` to @frui.ts/helpers.
Expand Down
198 changes: 5 additions & 193 deletions examples/complexdemo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,6 @@
# yarn lockfile v1


"@apidevtools/json-schema-ref-parser@^8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-8.0.0.tgz#9eb749499b3f8d919e90bb141e4b6f67aee4692d"
integrity sha512-n4YBtwQhdpLto1BaUCyAeflizmIbaloGShsPyRtFf5qdFJxfssj+GgLavczgKJFa3Bq+3St2CKcpRJdjtB4EBw==
dependencies:
"@jsdevtools/ono" "^7.1.0"
call-me-maybe "^1.0.1"
js-yaml "^3.13.1"

"@apidevtools/openapi-schemas@^2.0.2":
version "2.0.4"
resolved "https://registry.yarnpkg.com/@apidevtools/openapi-schemas/-/openapi-schemas-2.0.4.tgz#bae1cef77ebb2b3705c7cc6911281da5153c1ab3"
integrity sha512-ob5c4UiaMYkb24pNhvfSABShAwpREvUGCkqjiz/BX9gKZ32y/S22M+ALIHftTAuv9KsFVSpVdIDzi9ZzFh5TCA==

"@apidevtools/swagger-methods@^3.0.0":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz#b789a362e055b0340d04712eafe7027ddc1ac267"
integrity sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==

"@apidevtools/swagger-parser@^9.0.1":
version "9.0.1"
resolved "https://registry.yarnpkg.com/@apidevtools/swagger-parser/-/swagger-parser-9.0.1.tgz#592e39dc412452ac4b34507a765e4d74ff6eda14"
integrity sha512-Irqybg4dQrcHhZcxJc/UM4vO7Ksoj1Id5e+K94XUOzllqX1n47HEA50EKiXTCQbykxuJ4cYGIivjx/MRSTC5OA==
dependencies:
"@apidevtools/json-schema-ref-parser" "^8.0.0"
"@apidevtools/openapi-schemas" "^2.0.2"
"@apidevtools/swagger-methods" "^3.0.0"
"@jsdevtools/ono" "^7.1.0"
call-me-maybe "^1.0.1"
openapi-types "^1.3.5"
z-schema "^4.2.2"

"@babel/[email protected]", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3":
version "7.8.3"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e"
Expand Down Expand Up @@ -1094,60 +1062,6 @@
is-absolute "^1.0.0"
is-negated-glob "^1.0.0"

"@frui.ts/bootstrap@^999.0.0":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/bootstrap/-/bootstrap-0.16.0-rc.2.tgz#8175dc0dcab231372691809cb80f3437323a1d67"
integrity sha512-17CS1U417itlWafhrVW5IVAouQFLFZRxtv8ZwD6BZMTumPsDA2DAucAgaarogk6+R1QueQDdBt6sbtgaXs4V7w==
dependencies:
"@frui.ts/helpers" "^0.16.0-rc.2"
"@frui.ts/validation" "^0.16.0-rc.2"
"@frui.ts/views" "^0.16.0-rc.2"
bootstrap "^4.5.0"
mobx-react-lite "^1.5.2"
react-bootstrap "^1.0.1"

"@frui.ts/generator@^999.0.0":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/generator/-/generator-0.16.0-rc.2.tgz#3528d8b2377b8831fe3cb2318e204ba1eb3c5f67"
integrity sha512-QZSXlWRwmxRqpnIzuNKnMVIgu8l2XTcgVoKlJj2KOHd/hGnsoCPAC1rNt9i8zq+5k+3IWpqL4jzjXeoxJaDQNw==
dependencies:
"@apidevtools/swagger-parser" "^9.0.1"
cli-progress "^3.8.2"
commander "^5.1.0"
lodash "^4.17.15"
openapi-types "^1.3.5"
ts-morph "^7.1.2"

"@frui.ts/helpers@^0.16.0-rc.2", "@frui.ts/helpers@^999.0.0":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/helpers/-/helpers-0.16.0-rc.2.tgz#2c0960133b6795e5b7b06897a3062b4fc3767119"
integrity sha512-WDTmihVluapXVw8HyR+B8zugV97PYLKcLhAEd3LWulJ5dWZQaekbGC1Xagh4EhCneVzXDyf3llw4qQBD7Iy+Ag==

"@frui.ts/screens@^0.16.0-rc.2", "@frui.ts/screens@^999.0.0":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/screens/-/screens-0.16.0-rc.2.tgz#701b5cef0a6fef6d630d881ecced78705865aad4"
integrity sha512-SsjD2+CU4vdrtlp30GyegHv/V91O0eF0ZOmUenPRu7/o6tBfQ14Z8ydMHzsXj4WuKwoFV8VbTYRrgBFz93/owA==
dependencies:
"@frui.ts/helpers" "^0.16.0-rc.2"
query-string "^6.9.0"
route-parser "^0.0.5"

"@frui.ts/validation@^0.16.0-rc.2":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/validation/-/validation-0.16.0-rc.2.tgz#0a0ab43ccb161c29077ff01aeec062e8923b7088"
integrity sha512-v3ndNW/CF2dCl/NYCDg3NfR5/3G5fRMTYIwVpIE+tG6Qgo7e639F+iXeipj56MX9RjjZLQmzKpTAZGQtTS9wCQ==
dependencies:
"@frui.ts/helpers" "^0.16.0-rc.2"

"@frui.ts/views@^0.16.0-rc.2", "@frui.ts/views@^999.0.0":
version "0.16.0-rc.2"
resolved "https://registry.yarnpkg.com/@frui.ts/views/-/views-0.16.0-rc.2.tgz#269ad7270c0abb377c82ba22fd2343373679fe12"
integrity sha512-7G952dKW4wGKOv/xV8jNRmOiNpo92gqwx8ewoclVKYiSq8T0OJ43mUQANuNkOGuyIX6DWyoQIEWS5YwBpuorRg==
dependencies:
"@frui.ts/helpers" "^0.16.0-rc.2"
"@frui.ts/screens" "^0.16.0-rc.2"
lodash "^4.17.15"

"@hapi/[email protected]":
version "2.1.4"
resolved "https://registry.yarnpkg.com/@hapi/address/-/address-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5"
Expand Down Expand Up @@ -1338,11 +1252,6 @@
"@types/yargs" "^15.0.0"
chalk "^3.0.0"

"@jsdevtools/ono@^7.1.0":
version "7.1.3"
resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796"
integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==

"@mrmlnc/readdir-enhanced@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
Expand Down Expand Up @@ -1538,18 +1447,6 @@
dependencies:
"@babel/runtime" "^7.10.2"

"@ts-morph/common@~0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@ts-morph/common/-/common-0.4.0.tgz#c8fdb870692b16a80ca0722af7d12d6bb7c78ed7"
integrity sha512-VV5/F8k/9RnSZnNpnaOarKb7LOzYhITjHB9JIcpl1l+zlt99H1HeZH/yI2Xs6BtAV4WjPX+SjjRVybdEm6IOEQ==
dependencies:
"@dsherret/to-absolute-glob" "^2.0.2"
fast-glob "^3.1.1"
fs-extra "^8.1.0"
is-negated-glob "^1.0.0"
multimatch "^4.0.0"
typescript "~3.8.2"

"@ts-morph/common@~0.5.2":
version "0.5.2"
resolved "https://registry.yarnpkg.com/@ts-morph/common/-/common-0.5.2.tgz#d02c2493c1e07dfd47f247b4f0b72f083fcaea3a"
Expand Down Expand Up @@ -3032,14 +2929,6 @@ cli-cursor@^3.1.0:
dependencies:
restore-cursor "^3.1.0"

cli-progress@^3.8.2:
version "3.8.2"
resolved "https://registry.yarnpkg.com/cli-progress/-/cli-progress-3.8.2.tgz#abaf1fc6d6401351f16f068117a410554a0eb8c7"
integrity sha512-qRwBxLldMSfxB+YGFgNRaj5vyyHe1yMpVeDL79c+7puGujdKJHQHydgqXDcrkvQgJ5U/d3lpf6vffSoVVUftVQ==
dependencies:
colors "^1.1.2"
string-width "^4.2.0"

cli-width@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
Expand Down Expand Up @@ -3155,19 +3044,14 @@ color@^3.0.0:
color-convert "^1.9.1"
color-string "^1.5.2"

colors@^1.1.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==

combined-stream@^1.0.6, combined-stream@~1.0.6:
version "1.0.8"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
dependencies:
delayed-stream "~1.0.0"

commander@^2.11.0, commander@^2.20.0, commander@^2.7.1:
commander@^2.11.0, commander@^2.20.0:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
Expand All @@ -3177,11 +3061,6 @@ commander@^4.1.1:
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==

commander@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==

common-tags@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937"
Expand Down Expand Up @@ -4603,7 +4482,7 @@ fast-glob@^2.0.2:
merge2 "^1.2.3"
micromatch "^3.1.10"

fast-glob@^3.1.1, fast-glob@^3.2.2:
fast-glob@^3.2.2:
version "3.2.4"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3"
integrity sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==
Expand Down Expand Up @@ -6775,16 +6654,6 @@ lodash._reinterpolate@^3.0.0:
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=

lodash.get@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=

lodash.isequal@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA=

lodash.memoize@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
Expand Down Expand Up @@ -7538,11 +7407,6 @@ open@^7.0.2:
is-docker "^2.0.0"
is-wsl "^2.1.1"

openapi-types@^1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/openapi-types/-/openapi-types-1.3.5.tgz#6718cfbc857fe6c6f1471f65b32bdebb9c10ce40"
integrity sha512-11oi4zYorsgvg5yBarZplAqbpev5HkuVNPlZaPTknPDzAynq+lnJdXAmruGWP0s+dNYZS7bjM+xrTpJw7184Fg==

opn@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.5.0.tgz#fc7164fab56d235904c51c3b27da6758ca3b9bfc"
Expand Down Expand Up @@ -7873,7 +7737,7 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=

picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.0.7, picomatch@^2.2.1:
picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1:
version "2.2.2"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==
Expand Down Expand Up @@ -8834,15 +8698,6 @@ query-string@^4.1.0:
object-assign "^4.1.0"
strict-uri-encode "^1.0.0"

query-string@^6.9.0:
version "6.13.7"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.7.tgz#af53802ff6ed56f3345f92d40a056f93681026ee"
integrity sha512-CsGs8ZYb39zu0WLkeOhe0NMePqgYdAuCqxOYKDR5LVCytDZYMGx3Bb+xypvQvPHVPijRXB0HZNFllCzHRe4gEA==
dependencies:
decode-uri-component "^0.2.0"
split-on-first "^1.0.0"
strict-uri-encode "^2.0.0"

querystring-es3@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
Expand Down Expand Up @@ -9139,13 +8994,6 @@ readdirp@^2.2.1:
micromatch "^3.1.10"
readable-stream "^2.0.2"

readdirp@~3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.3.0.tgz#984458d13a1e42e2e9f5841b129e162f369aff17"
integrity sha512-zz0pAkSPOXXm1viEwygWIPSPkcBYjW1xU5j/JBh5t9bGCJwa6f9+BJa6VaB2g+b55yVrmXzqkyLf4xaWYM0IkQ==
dependencies:
picomatch "^2.0.7"

readdirp@~3.5.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e"
Expand Down Expand Up @@ -9483,11 +9331,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
hash-base "^3.0.0"
inherits "^2.0.1"

route-parser@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/route-parser/-/route-parser-0.0.5.tgz#7d1d09d335e49094031ea16991a4a79b01bbe1f4"
integrity sha1-fR0J0zXkkJQDHqFpkaSnmwG74fQ=

rsvp@^4.8.4:
version "4.8.5"
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734"
Expand Down Expand Up @@ -9965,11 +9808,6 @@ spdy@^4.0.1:
select-hose "^2.0.0"
spdy-transport "^3.0.0"

split-on-first@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f"
integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==

split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
Expand Down Expand Up @@ -10077,11 +9915,6 @@ strict-uri-encode@^1.0.0:
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=

strict-uri-encode@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY=

string-length@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed"
Expand Down Expand Up @@ -10124,7 +9957,7 @@ string-width@^3.0.0, string-width@^3.1.0:
is-fullwidth-code-point "^2.0.0"
strip-ansi "^5.1.0"

string-width@^4.1.0, string-width@^4.2.0:
string-width@^4.1.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==
Expand Down Expand Up @@ -10498,7 +10331,7 @@ tr46@^1.0.1:
dependencies:
punycode "^2.1.0"

ts-morph@^7.0.0, ts-morph@^7.1.2:
ts-morph@^7.0.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/ts-morph/-/ts-morph-7.3.0.tgz#1777b893d9573b3522108b43159b5ba2515ffde7"
integrity sha512-BUKSoz7AFSKPcYTZODbICW2mOthAN4vc5juD6FL1lD/dLwZ0WvrC3zqBM3/X6f5gHxq3yaz+HmanHGaWm0ddbQ==
Expand Down Expand Up @@ -10591,11 +10424,6 @@ typescript@~3.7.2:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==

typescript@~3.8.2:
version "3.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==

typescript@~3.9.7:
version "3.9.7"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
Expand Down Expand Up @@ -10818,11 +10646,6 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"

validator@^12.0.0:
version "12.2.0"
resolved "https://registry.yarnpkg.com/validator/-/validator-12.2.0.tgz#660d47e96267033fd070096c3b1a6f2db4380a0a"
integrity sha512-jJfE/DW6tIK1Ek8nCfNFqt8Wb3nzMoAbocBF6/Icgg1ZFSBpObdnwVY2jQj6qUqzhx5jc71fpvBWyLGO7Xl+nQ==

vary@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
Expand Down Expand Up @@ -11370,14 +11193,3 @@ yargs@^13.3.0:
which-module "^2.0.0"
y18n "^4.0.0"
yargs-parser "^13.1.2"

z-schema@^4.2.2:
version "4.2.3"
resolved "https://registry.yarnpkg.com/z-schema/-/z-schema-4.2.3.tgz#85f7eea7e6d4fe59a483462a98f511bd78fe9882"
integrity sha512-zkvK/9TC6p38IwcrbnT3ul9in1UX4cm1y/VZSs4GHKIiDCrlafc+YQBgQBUdDXLAoZHf2qvQ7gJJOo6yT1LH6A==
dependencies:
lodash.get "^4.4.2"
lodash.isequal "^4.5.0"
validator "^12.0.0"
optionalDependencies:
commander "^2.7.1"
12 changes: 11 additions & 1 deletion packages/bootstrap/src/controls/collectionCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ function useCollection<TTarget, TProperty extends BindingProperty<TTarget>>(

if (isSet(collection)) {
const checked = collection.has(key);
const toggle = () => (collection.has(key) ? collection.delete(key) : collection.add(key));
const toggle = () => {
if (collection.has(key)) {
collection.delete(key);
} else {
collection.add(key);
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
props.onValueChanged?.(key, props.property!, props.target!);
};
return [checked, action(toggle)];
} else {
const array = collection as typeof key[];
Expand All @@ -44,6 +52,8 @@ function useCollection<TTarget, TProperty extends BindingProperty<TTarget>>(
} else {
array.push(key);
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
props.onValueChanged?.(key, props.property!, props.target!);
};
return [checked, action(toggle)];
}
Expand Down
5 changes: 0 additions & 5 deletions packages/dataviews/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# yarn lockfile v1


"@frui.ts/data@^0.14.0-beta.2":
version "0.14.0-beta.2"
resolved "https://registry.yarnpkg.com/@frui.ts/data/-/data-0.14.0-beta.2.tgz#d133b6357724ce93b75a601aeab15a6db50e60db"
integrity sha512-O/S8TIwiE+6NDDkLxkRZSLnDSWezBn4O2zTP8ja0bV2Z1AD1asmVVI8Ym5NsJU81Gi4xW8TjK67z/oUYJIKb/w==

"@types/color-name@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
Expand Down
Loading

0 comments on commit 2d0dac8

Please sign in to comment.