Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MurhafSousli committed Mar 18, 2024
1 parent c62fb6e commit 9c69197
Show file tree
Hide file tree
Showing 66 changed files with 4,111 additions and 1,005 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
3 changes: 3 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Build
run: npm run build-lib

- name: Lint
run: npm run lint-lib

- name: Test
run: npm run test-lib-headless

Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

## 14.0.0-beta.6

- refactor: content wrapper selector should be direct child of the viewport
- feat: Add scrollbar buttons using `buttons` options, closes [#465](https://github.com/MurhafSousli/ngx-scrollbar/issues/465).
- refactor: Reuse similar code in track, thumb and buttons directives.
- refactor: content wrapper selector should be direct child of the viewport.
- refactor: Use `swithcMap` instead of `expand` for track long ongoing pointer down event.
- refactor: Only use `getRtlScrollAxisType` once on initialization in `SmoothScrollManager`.
- refactor: `matSelectViewport` use instant scroll function to scroll to the selected item in the list.
- refactor: Use `getBoundingClientRect` in all directives instead of `clientWidth` and `clientHeight` for high precision calculation.

### Breaking Changes

- The default value for the CSS variable `--scrollbar-offset` became 0 (was 4 before).
- The default value for the CSS variable `--scrollbar-border-radius` became 0px (was 7px before).

## 14.0.0-beta.5

Expand Down
14 changes: 14 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,22 @@
],
"karmaConfig": "projects/ngx-scrollbar/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/ngx-scrollbar/**/*.ts",
"projects/ngx-scrollbar/**/*.html"
]
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit 9c69197

Please sign in to comment.