ngx-print 20.1.0-beta.3 → 20.1.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,13 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.md]
12
+ max_line_length = off
13
+ trim_trailing_whitespace = false
package/.eslintrc.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "root": true,
3
+ "ignorePatterns": ["projects/**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts"],
7
+ "extends": [
8
+ "eslint:recommended",
9
+ "plugin:@typescript-eslint/recommended",
10
+ "plugin:@angular-eslint/recommended",
11
+ "plugin:@angular-eslint/template/process-inline-templates",
12
+ "plugin:prettier/recommended"
13
+ ],
14
+ "rules": {
15
+ "@typescript-eslint/no-unused-vars": "off",
16
+ "@typescript-eslint/no-explicit-any": "off",
17
+ "@typescript-eslint/no-unused-expressions": "off",
18
+ "@angular-eslint/directive-selector": [
19
+ "off",
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": ["*.html"],
38
+ "excludedFiles": ["*inline-template-*.component.html"],
39
+ "extends": ["plugin:@angular-eslint/template/recommended", "plugin:prettier/recommended"],
40
+ "rules": {
41
+ "prettier/prettier": [
42
+ "error",
43
+ {
44
+ "parser": "angular"
45
+ }
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior.
15
+
16
+ **Expected behavior**
17
+ A clear and concise description of what you expected to happen.
18
+
19
+ **Screenshots**
20
+ If applicable, add screenshots to help explain your problem.
21
+
22
+ **Ngx-Print Version**
23
+ Include the current affected version.
24
+
25
+ **Desktop (please complete the following information):**
26
+ - OS: [e.g. iOS]
27
+ - Browser [e.g. chrome, safari]
28
+ - Version [e.g. 22]
29
+
30
+ **Additional context**
31
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "npm"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ day: "monday"
8
+ time: "10:00"
9
+ timezone: "America/New_York"
10
+ open-pull-requests-limit: 5
11
+ groups:
12
+ npm-dependencies:
13
+ patterns:
14
+ - "*"
15
+ ignore:
16
+ - dependency-name: "*"
17
+ update-types: ["version-update:semver-major"]
@@ -0,0 +1,32 @@
1
+ name: Pull Request Checker
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ concurrency:
9
+ group: ${{github.repository_id}}-${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ build-npm:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 24.0.0
23
+
24
+ - name: Install npm dependencies
25
+ run: npm ci
26
+
27
+ # Run linting
28
+ - name: Run lint
29
+ run: npm run lint
30
+
31
+ - name: Run tests
32
+ run: npm run test
@@ -0,0 +1,26 @@
1
+ name: Mark stale issues and pull requests
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 2 * * *'
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ issues: write
10
+ pull-requests: write
11
+
12
+ jobs:
13
+ stale:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/stale@v9
17
+ with:
18
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
19
+ stale-issue-message: 'This issue has been automatically marked as stale due to inactivity. Please comment if you want to keep it open.'
20
+ stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity.'
21
+ close-issue-message: 'Closing this issue due to prolonged inactivity.'
22
+ close-pr-message: 'Closing this pull request due to inactivity.'
23
+ days-before-stale: 30
24
+ days-before-close: 7
25
+ exempt-issue-labels: 'inspecting'
26
+
@@ -0,0 +1,42 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+
3
+ # Compiled output
4
+ /dist
5
+ /tmp
6
+ /out-tsc
7
+ /bazel-out
8
+
9
+ # Node
10
+ /node_modules
11
+ npm-debug.log
12
+ yarn-error.log
13
+
14
+ # IDEs and editors
15
+ .idea/
16
+ .project
17
+ .classpath
18
+ .c9/
19
+ *.launch
20
+ .settings/
21
+ *.sublime-workspace
22
+
23
+ # Visual Studio Code
24
+ .vscode/*
25
+ !.vscode/settings.json
26
+ !.vscode/tasks.json
27
+ !.vscode/launch.json
28
+ !.vscode/extensions.json
29
+ .history/*
30
+
31
+ # Miscellaneous
32
+ /.angular/cache
33
+ .sass-cache/
34
+ /connect.lock
35
+ /coverage
36
+ /libpeerconnection.log
37
+ testem.log
38
+ /typings
39
+
40
+ # System files
41
+ .DS_Store
42
+ Thumbs.db
@@ -0,0 +1,14 @@
1
+ {
2
+ "tabWidth": 2,
3
+ "useTabs": false,
4
+ "singleQuote": true,
5
+ "semi": true,
6
+ "bracketSpacing": true,
7
+ "arrowParens": "avoid",
8
+ "trailingComma": "es5",
9
+ "bracketSameLine": true,
10
+ "printWidth": 150,
11
+ "endOfLine": "auto",
12
+ "htmlWhitespaceSensitivity": "ignore",
13
+ "quoteProps": "preserve"
14
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # 1.5.0 (2023-11-29)
2
+ * Now supports Angular 17
3
+ * Added printService
4
+
5
+ # 1.4.0 (2023-11-29)
6
+ * Now supports Angular 16
7
+
8
+ # 1.3.0 (2022-12-20)
9
+ ### New features
10
+ * Supports previewOnly tag, allowing for the print preview to show without the print dialog
11
+ ### Dependency Updates
12
+ * Angular Ivy support with Angular 15
13
+
14
+ # 1.1.0 (2018-12-04)
15
+ ### New features
16
+ * Support styles (CSS) ([#5](https://github.com/selemxmn/ngx-print/issues/5)) ([71cefdf](https://github.com/selemxmn/ngx-print/commit/71cefdf))
17
+ * Permit a dynamic title of printing window instead of the old static `Print tab` ([2098f3e](https://github.com/selemxmn/ngx-print/commit/2098f3e))
package/_config.yml ADDED
@@ -0,0 +1 @@
1
+ theme: jekyll-theme-cayman
package/angular.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "ngx-print": {
7
+ "root": "",
8
+ "sourceRoot": "src",
9
+ "projectType": "library",
10
+ "prefix": "lib",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular/build:ng-packagr",
14
+ "options": {
15
+ "tsConfig": "tsconfig.lib.json",
16
+ "project": "ng-package.json"
17
+ }
18
+ },
19
+ "test": {
20
+ "builder": "@angular/build:karma",
21
+ "options": {
22
+ "tsConfig": "tsconfig.spec.json",
23
+ "karmaConfig": "karma.conf.js"
24
+ }
25
+ },
26
+ "lint": {
27
+ "builder": "@angular-eslint/builder:lint",
28
+ "options": {
29
+ "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
30
+ }
31
+ }
32
+ }
33
+ }
34
+ },
35
+ "cli": {
36
+ "analytics": false
37
+ },
38
+ "schematics": {
39
+ "@schematics/angular:component": {
40
+ "type": "component"
41
+ },
42
+ "@schematics/angular:directive": {
43
+ "type": "directive"
44
+ },
45
+ "@schematics/angular:service": {
46
+ "type": "service"
47
+ },
48
+ "@schematics/angular:guard": {
49
+ "typeSeparator": "."
50
+ },
51
+ "@schematics/angular:interceptor": {
52
+ "typeSeparator": "."
53
+ },
54
+ "@schematics/angular:module": {
55
+ "typeSeparator": "."
56
+ },
57
+ "@schematics/angular:pipe": {
58
+ "typeSeparator": "."
59
+ },
60
+ "@schematics/angular:resolver": {
61
+ "typeSeparator": "."
62
+ }
63
+ }
64
+ }
package/karma.conf.js ADDED
@@ -0,0 +1,43 @@
1
+ // Karma configuration file, see link for more information
2
+ // https://karma-runner.github.io/1.0/config/configuration-file.html
3
+
4
+ module.exports = function (config) {
5
+ config.set({
6
+ basePath: "",
7
+ frameworks: ["jasmine", "@angular-devkit/build-angular"],
8
+ plugins: [
9
+ require("karma-jasmine"),
10
+ require("karma-chrome-launcher"),
11
+ require("karma-jasmine-html-reporter"),
12
+ require("karma-coverage"),
13
+ ],
14
+ client: {
15
+ clearContext: false, // leave Jasmine Spec Runner output visible in browser
16
+ },
17
+ ccoverageReporter: {
18
+ dir: require("path").join(__dirname, "./coverage/<project-name>"),
19
+ subdir: ".",
20
+ reporters: [{ type: "html" }, { type: "text-summary" }],
21
+ check: {
22
+ global: {
23
+ statements: 80,
24
+ branches: 80,
25
+ functions: 80,
26
+ lines: 80,
27
+ },
28
+ },
29
+ },
30
+ port: 9876,
31
+ colors: true,
32
+ logLevel: config.LOG_INFO,
33
+ autoWatch: true,
34
+ browsers: ["Chrome"],
35
+ customLaunchers: {
36
+ ChromeHeadlessCI: {
37
+ base: "ChromeHeadless",
38
+ flags: ["--no-sandbox"],
39
+ },
40
+ },
41
+ singleRun: true,
42
+ });
43
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "./dist/ngx-print",
4
+ "lib": {
5
+ "entryFile": "src/public_api.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,43 +1,68 @@
1
- {
2
- "name": "ngx-print",
3
- "version": "20.1.0-beta.3",
4
- "description": "Plug n' Play Angular (2++) directive to print your stuff",
5
- "author": "https://github.com/selemxmn/ngx-print/graphs/contributors",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/selemxmn/ngx-print.git"
9
- },
10
- "license": "MIT",
11
- "bugs": {
12
- "url": "https://github.com/selemxmn/ngx-print/issues"
13
- },
14
- "homepage": "https://github.com/selemxmn/ngx-print#readme",
15
- "keywords": [
16
- "print",
17
- "angular",
18
- "library",
19
- "ng-print",
20
- "ngx-print",
21
- "directive",
22
- "dependency",
23
- "angular-print"
24
- ],
25
- "peerDependencies": {
26
- "rxjs": "^7.4.0"
27
- },
28
- "module": "fesm2022/ngx-print.mjs",
29
- "typings": "index.d.ts",
30
- "exports": {
31
- "./package.json": {
32
- "default": "./package.json"
33
- },
34
- ".": {
35
- "types": "./index.d.ts",
36
- "default": "./fesm2022/ngx-print.mjs"
37
- }
38
- },
39
- "sideEffects": false,
40
- "dependencies": {
41
- "tslib": "^2.3.0"
42
- }
43
- }
1
+ {
2
+ "name": "ngx-print",
3
+ "version": "20.1.0-beta.4",
4
+ "description": "Plug n' Play Angular (2++) directive to print your stuff",
5
+ "author": "https://github.com/selemxmn/ngx-print/graphs/contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/selemxmn/ngx-print.git"
9
+ },
10
+ "license": "MIT",
11
+ "bugs": {
12
+ "url": "https://github.com/selemxmn/ngx-print/issues"
13
+ },
14
+ "homepage": "https://github.com/selemxmn/ngx-print#readme",
15
+ "keywords": [
16
+ "print",
17
+ "angular",
18
+ "library",
19
+ "ng-print",
20
+ "ngx-print",
21
+ "directive",
22
+ "dependency",
23
+ "angular-print"
24
+ ],
25
+ "scripts": {
26
+ "ng": "ng",
27
+ "build": "ng build",
28
+ "test": "ng test --no-watch --code-coverage --no-progress --browsers=ChromeHeadlessCI",
29
+ "lint": "ng lint"
30
+ },
31
+ "devDependencies": {
32
+ "@angular-devkit/build-angular": "^20.1.0",
33
+ "@angular-eslint/builder": "20.2.0",
34
+ "@angular-eslint/eslint-plugin": "20.2.0",
35
+ "@angular-eslint/eslint-plugin-template": "20.2.0",
36
+ "@angular-eslint/schematics": "20.2.0",
37
+ "@angular-eslint/template-parser": "20.2.0",
38
+ "@angular/build": "^20.1.0",
39
+ "@angular/cli": "^20.1.0",
40
+ "@angular/common": "^20.1.0",
41
+ "@angular/compiler": "^20.1.0",
42
+ "@angular/compiler-cli": "^20.1.0",
43
+ "@angular/core": "^20.1.0",
44
+ "@angular/platform-browser": "20.2.1",
45
+ "@angular/platform-browser-dynamic": "20.2.1",
46
+ "@types/jasmine": "~5.1.4",
47
+ "@typescript-eslint/eslint-plugin": "^8.33.1",
48
+ "@typescript-eslint/parser": "^8.33.1",
49
+ "@typescript-eslint/types": "^8.36.0",
50
+ "@typescript-eslint/utils": "^8.33.1",
51
+ "eslint": "^9.28.0",
52
+ "eslint-config-prettier": "^9.1.0",
53
+ "eslint-plugin-prettier": "^5.4.1",
54
+ "jasmine-core": "~5.9.0",
55
+ "karma": "~6.4.0",
56
+ "karma-chrome-launcher": "~3.2.0",
57
+ "karma-coverage": "~2.2.0",
58
+ "karma-jasmine": "~5.1.0",
59
+ "karma-jasmine-html-reporter": "~2.1.0",
60
+ "ng-packagr": "^20.1.0",
61
+ "prettier": "^3.3.3",
62
+ "prettier-eslint": "^16.3.0",
63
+ "typescript": "~5.9.2"
64
+ },
65
+ "peerDependencies": {
66
+ "rxjs": "^7.4.0"
67
+ }
68
+ }