Skip to content

Commit ce57c7e

Browse files
committed
Update
1 parent 32219d2 commit ce57c7e

59 files changed

Lines changed: 11047 additions & 19998 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@angular-eslint/recommended",
15+
"plugin:@angular-eslint/template/process-inline-templates"
16+
],
17+
"rules": {
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
"type": "attribute",
22+
"prefix": "app",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "app",
31+
"style": "kebab-case"
32+
}
33+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@angular-eslint/template/recommended",
42+
"plugin:@angular-eslint/template/accessibility"
43+
],
44+
"rules": {}
45+
}
46+
]
47+
}

.github/FUNDING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# These are supported funding model platforms
2+
3+
github: murhafsousli
4+
patreon: murhaf
5+
ko_fi: # Replace with a single Ko-fi username
6+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
7+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
8+
liberapay: # Replace with a single Liberapay username
9+
issuehunt: # Replace with a single IssueHunt username
10+
otechie: # Replace with a single Otechie username
11+
custom: # Replace with a single custom sponsorship URL
Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
2+
name: Bug Report
3+
about: Report a bug found in ngx-bar-rating
54
---
65

7-
<!--
8-
1. Please make sure that you have searched in the older issues before submitting a new one!
9-
2. Please fill out all the required information!
10-
-->
11-
12-
#### I am submitting a
13-
14-
- [x] Bug Report
15-
16-
#### What is the expected behavior?
17-
18-
19-
#### What is the current behavior?
20-
216

22-
#### What are the steps to reproduce?
7+
#### Reproduction
238

24-
<!--
25-
Providing a StackBlitz reproduction is the *best* way to share your issue. <br/>
26-
StackBlitz starter: https://stackblitz.com/edit/ngx-bar-rating<br/>
27-
-->
9+
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/ngx-bar-rating
2810

11+
Steps to reproduce:
12+
1.
13+
2.
14+
15+
16+
#### Expected Behavior
2917

30-
#### What is the use-case or motivation for changing an existing behavior?
18+
What behavior were you expecting to see?
3119

3220

21+
#### Actual Behavior
3322

34-
#### Which versions are you using for the following packages?
23+
What behavior did you actually see?
3524

36-
Angular:
37-
ngx-bar-rating:
3825

26+
#### Environment
3927

40-
#### Is there anything else we should know?
28+
- Angular:
29+
- ngx-bar-rating:
30+
- Browser(s):
31+
- Operating System (e.g. Windows, macOS, Ubuntu):

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Feature
3+
about: Propose a new feature for ngx-bar-rating
4+
labels: feature
5+
---
6+
7+
#### Feature Description
8+
9+
Provide a brief summary of the feature you would like to see.
10+
11+
#### Use Case
12+
13+
Describe the use case(s) that the proposed feature would enable.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/integrate.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI Build
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
# Machine environment:
12+
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@master
16+
17+
- name: Use Node.js 20
18+
uses: actions/setup-node@master
19+
with:
20+
node-version: 20
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build-lib
27+
28+
- name: Lint
29+
run: npm run lint-lib
30+
31+
- name: Test
32+
run: npm run test-lib-headless
33+
34+
- name: Upload coverage reports to Codecov
35+
uses: codecov/codecov-action@main
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
38+
slug: MurhafSousli/ngx-bar-rating
39+
40+
- name: Code Coverage Report
41+
uses: irongut/CodeCoverageSummary@master
42+
with:
43+
filename: coverage/**/cobertura-coverage.xml
44+
badge: true
45+
fail_below_min: true
46+
format: markdown
47+
hide_branch_rate: false
48+
hide_complexity: true
49+
indicators: true
50+
output: both
51+
thresholds: '60 80'
52+
53+
- name: Add Coverage PR Comment
54+
uses: marocchino/sticky-pull-request-comment@main
55+
if: github.event_name == 'pull_request'
56+
with:
57+
recreate: true
58+
path: code-coverage-results.md
59+
continue-on-error: true # Allow this step to fail
60+
61+
- name: Build demo (ssr)
62+
run: npm run build-ssr

.github/workflows/netlify.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy Demo
2+
3+
on:
4+
push:
5+
branches: [ deploy-netlify ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Use Node.js 20
13+
uses: actions/setup-node@master
14+
with:
15+
node-version: 20
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Build demo
19+
run: npm run build
20+
env:
21+
GIST_CLIENT_ID: ${{ secrets.GIST_CLIENT_ID }}
22+
GIST_CLIENT_SECRET: ${{ secrets.GIST_CLIENT_SECRET }}
23+
- name: Deploy to Netlify
24+
uses: nwtgck/actions-netlify@master
25+
with:
26+
publish-dir: './dist/ngx-bar-rating-demo/browser'
27+
production-branch: deploy-netlify
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
deploy-message: "Deploy from GitHub Actions"
30+
enable-pull-request-comment: true
31+
enable-commit-comment: true
32+
overwrites-pull-request-comment: true
33+
env:
34+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
35+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
36+
timeout-minutes: 1

.gitignore

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,42 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
18-
/.idea
15+
.idea/
1916
.project
2017
.classpath
2118
.c9/
2219
*.launch
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
31+
# Miscellaneous
3532
/.angular/cache
36-
/.sass-cache
33+
.sass-cache/
3734
/connect.lock
3835
/coverage
3936
/libpeerconnection.log
40-
npm-debug.log
41-
yarn-error.log
4237
testem.log
4338
/typings
4439

45-
# System Files
40+
# System files
4641
.DS_Store
4742
Thumbs.db

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 8.0.0
4+
5+
- Upgrade to Angular 19.
6+
- Add unit tests.
7+
- feat: Add `provideBarRatingOptions` to override the default options.
8+
- feat: Add accessibility support such as focus and keys listeners to increase/decrease the rating.
9+
- feat: Ability to override CSS variables from `:root` selector.
10+
- feat: Add `effect` directive that adds click scale-fade effect.
11+
- feat: Add CSS variable `--br-effect-scale`, `--br-effect-duration` and `--br-effect-ease` to customize the effect.
12+
- fix: When used as a form control, the required validator is always true, closes [#116](https://github.com/MurhafSousli/ngx-bar-rating/issues/116).
13+
314
## 7.0.1
415

516
- fix: readonly attribute is not working in v7.0.0, closes [#111](https://github.com/MurhafSousli/ngx-bar-rating/issues/111).

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016-2024 Murhaf Sousli
3+
Copyright (c) 2016-2025 Murhaf Sousli
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)