diff --git a/.changeset/curly-walls-fly.md b/.changeset/curly-walls-fly.md deleted file mode 100644 index 8330ffa..0000000 --- a/.changeset/curly-walls-fly.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fn-sphere/theme-mui-material": patch -"@fn-sphere/filter": patch ---- - -Add depth limit for filter group diff --git a/.changeset/dull-rice-protect.md b/.changeset/dull-rice-protect.md deleted file mode 100644 index 58f0fba..0000000 --- a/.changeset/dull-rice-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/core": minor ---- - -Make string filter case insensitive diff --git a/.changeset/gentle-rings-remember.md b/.changeset/gentle-rings-remember.md deleted file mode 100644 index 654be3c..0000000 --- a/.changeset/gentle-rings-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/core": patch ---- - -Add new utils function `createDefaultRule` diff --git a/.changeset/honest-penguins-drive.md b/.changeset/honest-penguins-drive.md deleted file mode 100644 index d941f37..0000000 --- a/.changeset/honest-penguins-drive.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@fn-sphere/filter": minor ---- - -Breaking Changes - -- Now the first field and the first filter will be selected by default when creating a new rule. - - Updated `useFilterSphere` to use `createDefaultRule` for default rule creation. - - Updated `useFilterGroup` and `useFilterRule` to use `createDefaultRule` when no input is provided. diff --git a/.changeset/large-bees-learn.md b/.changeset/large-bees-learn.md deleted file mode 100644 index a471daa..0000000 --- a/.changeset/large-bees-learn.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@fn-sphere/filter": minor ---- - -Export `filterableFields` in `useRootRule` hook. -Remove `filterableFields` from `useFilterRule` hook. - -BREAKING CHANGE: The `filterableFields` is now exported in the `useRootRule` hook instead of the `useFilterRule` hook. - -Migration: - -```diff -+ const { filterableFields } = useRootRule(); -- const { filterableFields } = useFilterRule(rule); -``` diff --git a/.changeset/lemon-spiders-work.md b/.changeset/lemon-spiders-work.md deleted file mode 100644 index cc79a5a..0000000 --- a/.changeset/lemon-spiders-work.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@fn-sphere/filter": minor -"@fn-sphere/core": minor ---- - -Add locale supports - -BREAKING CHANGE - -- All name of filter has been changed. -- The `booleanFilter` has been removed. diff --git a/.changeset/mighty-years-drive.md b/.changeset/mighty-years-drive.md deleted file mode 100644 index d60221b..0000000 --- a/.changeset/mighty-years-drive.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@fn-sphere/filter": patch ---- - -Deprecated `getRootRule` in favor of `rootRule` in `useRootRule` hook. - -Migration: - -```diff -+ const { rootRule } = useRootRule(); -- const { getRootRule } = useRootRule(); -``` diff --git a/.changeset/plenty-spoons-exercise.md b/.changeset/plenty-spoons-exercise.md deleted file mode 100644 index 66ed59f..0000000 --- a/.changeset/plenty-spoons-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/filter": patch ---- - -Fix logical error in `toggleGroupOp` function within the `useFilterGroup` hook diff --git a/.changeset/purple-impalas-move.md b/.changeset/purple-impalas-move.md deleted file mode 100644 index ca712d5..0000000 --- a/.changeset/purple-impalas-move.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@fn-sphere/filter": minor -"@fn-sphere/theme-mui-material": patch ---- - -Breaking Changes - -- Renamed `filterGroup` prop to `rule` in FilterGroupContainer. -- Modified `filterTheme` in theme-mui-material to use `rule` instead of `filterGroup`. diff --git a/.changeset/quiet-rivers-mate.md b/.changeset/quiet-rivers-mate.md deleted file mode 100644 index 1a2198a..0000000 --- a/.changeset/quiet-rivers-mate.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@fn-sphere/theme-mui-material": patch ---- - -- Updated `FilterGroupContainer` template with improved layout and functionality. -- Removed `variant="contained"` from Button component. -- Updated `SingleFilter` template: - - Replaced `DeleteIcon` with `ClearIcon`. diff --git a/.changeset/ten-eels-bake.md b/.changeset/ten-eels-bake.md deleted file mode 100644 index 5f32872..0000000 --- a/.changeset/ten-eels-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/theme-mui-material": patch ---- - -Update locale text diff --git a/.changeset/ten-zebras-smell.md b/.changeset/ten-zebras-smell.md deleted file mode 100644 index 8767163..0000000 --- a/.changeset/ten-zebras-smell.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@fn-sphere/core": minor ---- - -Breaking Changes - -- Removed support for array input in `defineTypedFn` and `defineGenericFn`. diff --git a/.changeset/three-cups-protect.md b/.changeset/three-cups-protect.md deleted file mode 100644 index 9496b5b..0000000 --- a/.changeset/three-cups-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/filter": patch ---- - -Support custom style for components diff --git a/.changeset/wicked-ladybugs-behave.md b/.changeset/wicked-ladybugs-behave.md deleted file mode 100644 index 7b007aa..0000000 --- a/.changeset/wicked-ladybugs-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@fn-sphere/filter": patch ---- - -Support `moveRule` in `useFilterRule` diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 555db6b..81b03e7 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,26 @@ # @fn-sphere/core +## 0.6.0 + +### Minor Changes + +- [#51](https://github.com/lawvs/fn-sphere/pull/51) [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209) Thanks [@lawvs](https://github.com/lawvs)! - Make string filter case insensitive + +- [#51](https://github.com/lawvs/fn-sphere/pull/51) [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209) Thanks [@lawvs](https://github.com/lawvs)! - Add locale supports + + BREAKING CHANGE + + - All name of filter has been changed. + - The `booleanFilter` has been removed. + +- [`01369a8`](https://github.com/lawvs/fn-sphere/commit/01369a805b0fb644ddbb4e7dd334d7896651ac84) Thanks [@lawvs](https://github.com/lawvs)! - Breaking Changes + + - Removed support for array input in `defineTypedFn` and `defineGenericFn`. + +### Patch Changes + +- [`020bdb1`](https://github.com/lawvs/fn-sphere/commit/020bdb1dbdac9e6dfcf47d01bdeeb05d6bd13612) Thanks [@lawvs](https://github.com/lawvs)! - Add new utils function `createDefaultRule` + ## 0.5.0 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 23eb92b..aa4f027 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@fn-sphere/core", - "version": "0.5.0", + "version": "0.6.0", "description": "", "type": "module", "scripts": { diff --git a/packages/filter/CHANGELOG.md b/packages/filter/CHANGELOG.md index dc78aa0..9ec21a6 100644 --- a/packages/filter/CHANGELOG.md +++ b/packages/filter/CHANGELOG.md @@ -1,5 +1,61 @@ # @fn-sphere/filter +## 0.6.0 + +### Minor Changes + +- [`ef470f1`](https://github.com/lawvs/fn-sphere/commit/ef470f179cda345a441f98e0b8d765598080d551) Thanks [@lawvs](https://github.com/lawvs)! - Breaking Changes + + - Now the first field and the first filter will be selected by default when creating a new rule. + - Updated `useFilterSphere` to use `createDefaultRule` for default rule creation. + - Updated `useFilterGroup` and `useFilterRule` to use `createDefaultRule` when no input is provided. + +- [`62aeaf0`](https://github.com/lawvs/fn-sphere/commit/62aeaf054cb90701cabbe4c2389145d8bbaed9f7) Thanks [@lawvs](https://github.com/lawvs)! - Export `filterableFields` in `useRootRule` hook. + Remove `filterableFields` from `useFilterRule` hook. + + BREAKING CHANGE: The `filterableFields` is now exported in the `useRootRule` hook instead of the `useFilterRule` hook. + + Migration: + + ```diff + + const { filterableFields } = useRootRule(); + - const { filterableFields } = useFilterRule(rule); + ``` + +- [#51](https://github.com/lawvs/fn-sphere/pull/51) [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209) Thanks [@lawvs](https://github.com/lawvs)! - Add locale supports + + BREAKING CHANGE + + - All name of filter has been changed. + - The `booleanFilter` has been removed. + +- [`9badd88`](https://github.com/lawvs/fn-sphere/commit/9badd88890b39141b6ae5ce02865d8cc5b938a9a) Thanks [@lawvs](https://github.com/lawvs)! - Breaking Changes + + - Renamed `filterGroup` prop to `rule` in FilterGroupContainer. + - Modified `filterTheme` in theme-mui-material to use `rule` instead of `filterGroup`. + +### Patch Changes + +- [`964faf3`](https://github.com/lawvs/fn-sphere/commit/964faf32dfb0f0e982063ee5a8a496e1a799b9c9) Thanks [@lawvs](https://github.com/lawvs)! - Add depth limit for filter group + +- [`200e5a1`](https://github.com/lawvs/fn-sphere/commit/200e5a1587797ee35651bc8735a9507f8ff4d4b3) Thanks [@lawvs](https://github.com/lawvs)! - Deprecated `getRootRule` in favor of `rootRule` in `useRootRule` hook. + + Migration: + + ```diff + + const { rootRule } = useRootRule(); + - const { getRootRule } = useRootRule(); + ``` + +- [`479f048`](https://github.com/lawvs/fn-sphere/commit/479f0488e42283656d8f59b515775435b0a9338b) Thanks [@lawvs](https://github.com/lawvs)! - Fix logical error in `toggleGroupOp` function within the `useFilterGroup` hook + +- [`8337984`](https://github.com/lawvs/fn-sphere/commit/8337984b832bd11652159ccf15c7fdbe0a300889) Thanks [@lawvs](https://github.com/lawvs)! - Support custom style for components + +- [`6be8772`](https://github.com/lawvs/fn-sphere/commit/6be8772d0e3dca728a52404da911844c01e2cda6) Thanks [@lawvs](https://github.com/lawvs)! - Support `moveRule` in `useFilterRule` + +- Updated dependencies [[`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209), [`020bdb1`](https://github.com/lawvs/fn-sphere/commit/020bdb1dbdac9e6dfcf47d01bdeeb05d6bd13612), [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209), [`01369a8`](https://github.com/lawvs/fn-sphere/commit/01369a805b0fb644ddbb4e7dd334d7896651ac84)]: + - @fn-sphere/core@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/filter/package.json b/packages/filter/package.json index 079af4c..4f2ea6f 100644 --- a/packages/filter/package.json +++ b/packages/filter/package.json @@ -1,6 +1,6 @@ { "name": "@fn-sphere/filter", - "version": "0.5.0", + "version": "0.6.0", "type": "module", "description": "Filter Sphere is a powerful and flexible library for creating dynamic filtering interfaces in your web applications.", "keywords": [ diff --git a/packages/theme-mui-material/CHANGELOG.md b/packages/theme-mui-material/CHANGELOG.md new file mode 100644 index 0000000..41f4b0d --- /dev/null +++ b/packages/theme-mui-material/CHANGELOG.md @@ -0,0 +1,23 @@ +# @fn-sphere/theme-mui-material + +## 0.1.1 + +### Patch Changes + +- [`964faf3`](https://github.com/lawvs/fn-sphere/commit/964faf32dfb0f0e982063ee5a8a496e1a799b9c9) Thanks [@lawvs](https://github.com/lawvs)! - Add depth limit for filter group + +- [`9badd88`](https://github.com/lawvs/fn-sphere/commit/9badd88890b39141b6ae5ce02865d8cc5b938a9a) Thanks [@lawvs](https://github.com/lawvs)! - Breaking Changes + + - Renamed `filterGroup` prop to `rule` in FilterGroupContainer. + - Modified `filterTheme` in theme-mui-material to use `rule` instead of `filterGroup`. + +- [`50d4c0b`](https://github.com/lawvs/fn-sphere/commit/50d4c0ba43caee04b226f396286f271bbe755d26) Thanks [@lawvs](https://github.com/lawvs)! - - Updated `FilterGroupContainer` template with improved layout and functionality. + + - Removed `variant="contained"` from Button component. + - Updated `SingleFilter` template: + - Replaced `DeleteIcon` with `ClearIcon`. + +- [#51](https://github.com/lawvs/fn-sphere/pull/51) [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209) Thanks [@lawvs](https://github.com/lawvs)! - Update locale text + +- Updated dependencies [[`964faf3`](https://github.com/lawvs/fn-sphere/commit/964faf32dfb0f0e982063ee5a8a496e1a799b9c9), [`ef470f1`](https://github.com/lawvs/fn-sphere/commit/ef470f179cda345a441f98e0b8d765598080d551), [`62aeaf0`](https://github.com/lawvs/fn-sphere/commit/62aeaf054cb90701cabbe4c2389145d8bbaed9f7), [`a8b07f2`](https://github.com/lawvs/fn-sphere/commit/a8b07f24ed031e5ed3c4396cfdf7a603f5fb2209), [`200e5a1`](https://github.com/lawvs/fn-sphere/commit/200e5a1587797ee35651bc8735a9507f8ff4d4b3), [`479f048`](https://github.com/lawvs/fn-sphere/commit/479f0488e42283656d8f59b515775435b0a9338b), [`9badd88`](https://github.com/lawvs/fn-sphere/commit/9badd88890b39141b6ae5ce02865d8cc5b938a9a), [`8337984`](https://github.com/lawvs/fn-sphere/commit/8337984b832bd11652159ccf15c7fdbe0a300889), [`6be8772`](https://github.com/lawvs/fn-sphere/commit/6be8772d0e3dca728a52404da911844c01e2cda6)]: + - @fn-sphere/filter@0.6.0 diff --git a/packages/theme-mui-material/package.json b/packages/theme-mui-material/package.json index dcd0888..c5fde7d 100644 --- a/packages/theme-mui-material/package.json +++ b/packages/theme-mui-material/package.json @@ -1,6 +1,6 @@ { "name": "@fn-sphere/theme-mui-material", - "version": "0.1.0", + "version": "0.1.1", "type": "module", "scripts": { "build": "tsc", @@ -14,7 +14,7 @@ "peerDependencies": { "@emotion/react": "^11.0.0", "@emotion/styled": "^11.0.0", - "@fn-sphere/filter": "workspace:^0", + "@fn-sphere/filter": "workspace:^0.6.0", "@mui/icons-material": "^6.0.0", "@mui/material": "^5.0.0 || ^6.0.0" },