Commit 54e42c1
22.x.x (#107)
* feat: update universal-demo-app to support BootstrapContext in main.server.ts
chore: update peer dependency for @angular/cdk to version 21.0.0 in flex-layout package.json
fix: correct schema path in flex-layout project.json and add tsConfig option for packaging
* chore: update version to 21.0.0-rc.1 in package.json
* Refactor code structure for improved readability and maintainability
* feat: add markdown page and sitemap, implement section page component
- Created a new markdown page (index.html) for standalone content.
- Added a sitemap.xml for better SEO and navigation.
- Implemented SectionPageComponent with dynamic content rendering and layout using Angular Material and ngx-layout directives.
* feat: enhance components with ChangeDetectionStrategy.Eager for improved performance
- Updated multiple components in the responsive and stackoverflow pages to use ChangeDetectionStrategy.Eager.
- Modified tsconfig.app.json to include angularCompilerOptions for nullish coalescing and optional chaining checks.
- Adjusted various test files to import necessary components instead of declaring them.
- Added .npmrc file to set legacy-peer-deps to true for compatibility.
- Changed module resolution strategy in tsconfig.json from node to bundler.
* refactor: migrate tests from Jasmine to Vitest and remove custom matchers
- Replaced Jasmine spies with Vitest spies in media-marshaller tests.
- Removed custom matchers from various spec files and set up Vitest environment.
- Updated TypeScript configuration to use Vitest types instead of Jasmine.
- Deleted obsolete Karma configuration files and test setup.
* fix: update output paths for updated-demo and universal-demo-app builds
* chore: remove Netlify configuration file
* fix: update output paths for updated-demo and universal-demo-app builds
* fix: remove duplicate dependencies from package.json
* fix: update version to 22.0.0-rc in package.json
* fix: add ignoreDeprecations option to tsconfig.json
* chore: update dependencies and refactor tests
- Updated @docusaurus/preset-classic to ^3.10.1 and related Docusaurus packages.
- Replaced conventional-changelog-cli with conventional-changelog.
- Added jsdom as a dependency.
- Removed unused expect imports from various test files.
- Refactored test imports to use Default directives from ngx-layout.
- Updated test setup for Vitest compatibility, including ProxyZone handling.
- Added vitest-base.config.ts for base Vitest configuration.
- Adjusted tsconfig.spec.json to include test-setup.ts.
* feat: add SSR testing support for flex-layout library
- Introduced a new test target for server-side rendering (SSR) in angular.json.
- Updated package.json to use the new SSR test command.
- Removed deprecated SSR test files and configurations.
- Added a new provider file for SSR tests to set PLATFORM_ID.
- Adjusted flex directive tests to handle null styles during SSR.
- Updated TypeScript configuration to include the new SSR provider file.
* fix: update CI badge and remove deprecated dependencies from package.json and package-lock.json
* fix(layout-gap): use direction-independent CSS properties for fxLayoutGap (#95) (#106)
fxLayoutGap emitted physical margin properties (margin-right/left) and
selected between them by reading the CDK Directionality (the `dir`
attribute). That broke layouts when the writing direction was set via CSS
`direction: rtl`, and required LTR/RTL branching throughout the directive.
Switch to logical properties, which the browser resolves against the
writing direction automatically:
row -> margin-inline-end
row-reverse -> margin-inline-start
column -> margin-block-end
column-reverse -> margin-block-start
grid margin -> margin-inline / margin-block
grid padding -> padding-inline / padding-block
This both fixes the RTL bug and removes now-dead direction handling: the
Directionality injection and its change trigger, the four direction-keyed
style caches and their selection in updateWithValue, and the
`directionality` field on LayoutGapParent.
Tests updated to assert the logical properties; full library suite passes
(478/478).
Closes #95
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6cd5cc2 commit 54e42c1
4 files changed
Lines changed: 216 additions & 203 deletions
File tree
- projects/libs/flex-layout/flex/layout-gap
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments