Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/on-merge-main-deploy-gpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '20.x'
node-version: 24
cache: npm
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm run npm-build-package
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/on-merge-main-deploy-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
deploy_npmjs_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '20.x'
node-version: 24
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Update npm to latest
run: npm install -g npm@latest
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/verify-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ jobs:
verify_pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout 🛎️
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install
run: npm ci

- name: Verify Code 👌
- name: Verify Code
run: |
npm run lint
npm run prettier:check
npm test -- --watch=false

- name: Build 🔧
- name: Build
run: |
npm run build:prod
npm run npm-build-package
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ testem.log
# System files
.DS_Store
Thumbs.db

# Local tool caches (npm, Cypress, Angular)
/.cache/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cache=.cache/npm
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,24 @@ interface TableTemplateReferenceExpandableObject<

| Angular version | @proangular/pro-table | Install |
| --------------- | --------------------- | -------------------------------- |
| v22 | v22.x.x | ng add @proangular/pro-table@^22 |
| v21 | v21.x.x | ng add @proangular/pro-table@^21 |
| v20 | v20.x.x | ng add @proangular/pro-table@^20 |
| v19 | ------ | Untested |
| v18 | ------ | Untested |
| v17 | ------ | Untested |

v22 moves pro-table to Angular 22. The inputs are signal inputs now and the
table works without zone.js, so it runs fine in a zoneless app. The selector,
input names and output names are the same, so your templates don't change. If
you read the inputs from code (`columns`, `data`, `selectable` and so on),
they're functions now, so call them. `maxSelectableRows` turns a null or
non-numeric value into `null`, and `initialSort` now applies when `data` shows
up after the first render. The selection checkboxes have an `aria-label` now.
The peer ranges are `>=22 <23` for Angular and Material, and the package doesn't
need `zone.js` anymore. Tests run on Vitest instead of Karma, and Node 24 is
required to build the library.

<p align="right">[ <a href="#index">Index</a> ]</p>

<!---------------------------------------------------------------------------->
Expand Down
37 changes: 19 additions & 18 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
"outputPath": "dist/pro-table",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down Expand Up @@ -76,24 +73,24 @@
"builder": "@angular/build:extract-i18n"
},
"test": {
"builder": "@angular/build:karma",
"builder": "@angular/build:unit-test",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
"runnerConfig": "vitest.config.mjs",
"coverageInclude": [
"src/app/public/**/*.ts"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
"coverageExclude": [
"**/*.spec.ts",
"**/*.testing.ts",
"**/public.ts"
],
"styles": [
"src/styles.scss"
],
"scripts": []
"coverageReporters": [
"text",
"text-summary",
"html",
"lcov",
"json-summary"
]
}
},
"lint": {
Expand All @@ -109,6 +106,10 @@
}
},
"cli": {
"cache": {
"enabled": true,
"path": ".cache/angular"
},
"schematicCollections": [
"@angular-eslint/schematics"
]
Expand Down
Loading