ngxsmk-tel-input 1.6.5 → 1.6.7

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.
Files changed (54) hide show
  1. package/.editorconfig +17 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. package/.github/dependabot.yml +117 -0
  5. package/.github/renovate.json +10 -0
  6. package/.github/workflows/publish.yml +30 -0
  7. package/.vscode/extensions.json +4 -0
  8. package/.vscode/launch.json +20 -0
  9. package/.vscode/settings.json +3 -0
  10. package/.vscode/tasks.json +42 -0
  11. package/CHANGELOG.md +50 -0
  12. package/CODE_OF_CONDUCT.md +128 -0
  13. package/CONTRIBUTING.md +66 -0
  14. package/LICENSE +21 -0
  15. package/OPTIMIZATION_NOTES.md +140 -0
  16. package/README.md +33 -40
  17. package/SECURITY.md +105 -0
  18. package/THEME_DOCUMENTATION.md +311 -0
  19. package/angular.json +147 -0
  20. package/package.json +53 -24
  21. package/projects/demo/public/favicon.ico +0 -0
  22. package/projects/demo/src/app/app.component.html +0 -0
  23. package/projects/demo/src/app/app.component.scss +460 -0
  24. package/projects/demo/src/app/app.component.spec.ts +29 -0
  25. package/projects/demo/src/app/app.component.ts +293 -0
  26. package/projects/demo/src/app/app.config.ts +8 -0
  27. package/projects/demo/src/app/app.routes.ts +3 -0
  28. package/projects/demo/src/index.html +13 -0
  29. package/projects/demo/src/main.ts +6 -0
  30. package/projects/demo/src/styles.scss +251 -0
  31. package/projects/demo/tsconfig.app.json +15 -0
  32. package/projects/demo/tsconfig.spec.json +15 -0
  33. package/projects/ngxsmk-tel-input/.changeset/README.md +8 -0
  34. package/projects/ngxsmk-tel-input/.changeset/config.json +11 -0
  35. package/projects/ngxsmk-tel-input/README.md +363 -0
  36. package/projects/ngxsmk-tel-input/package-lock.json +139 -0
  37. package/projects/ngxsmk-tel-input/package.json +59 -0
  38. package/{src → projects/ngxsmk-tel-input/src}/lib/ngxsmk-tel-input.component.scss +123 -8
  39. package/{src → projects/ngxsmk-tel-input/src}/lib/ngxsmk-tel-input.component.ts +288 -47
  40. package/projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.service.ts +61 -0
  41. package/projects/ngxsmk-tel-input/src/lib/phone-input.utils.ts +109 -0
  42. package/projects/ngxsmk-tel-input/src/lib/theme.service.ts +184 -0
  43. package/{src → projects/ngxsmk-tel-input/src}/public-api.ts +2 -0
  44. package/tsconfig.json +31 -0
  45. package/src/lib/ngxsmk-tel-input.service.ts +0 -17
  46. /package/{docs → projects/ngxsmk-tel-input/docs}/invalid.png +0 -0
  47. /package/{docs → projects/ngxsmk-tel-input/docs}/kr.png +0 -0
  48. /package/{docs → projects/ngxsmk-tel-input/docs}/valid.png +0 -0
  49. /package/{ng-package.json → projects/ngxsmk-tel-input/ng-package.json} +0 -0
  50. /package/{src → projects/ngxsmk-tel-input/src}/lib/ngxsmk-tel-input.component.spec.ts +0 -0
  51. /package/{src → projects/ngxsmk-tel-input/src}/lib/ngxsmk-tel-input.service.spec.ts +0 -0
  52. /package/{src → projects/ngxsmk-tel-input/src}/lib/types.ts +0 -0
  53. /package/{tsconfig.lib.json → projects/ngxsmk-tel-input/tsconfig.lib.json} +0 -0
  54. /package/{tsconfig.spec.json → projects/ngxsmk-tel-input/tsconfig.spec.json} +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,17 @@
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
+ [*.ts]
12
+ quote_type = single
13
+ ij_typescript_use_double_quotes = false
14
+
15
+ [*.md]
16
+ max_line_length = off
17
+ trim_trailing_whitespace = false
@@ -0,0 +1,38 @@
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
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ 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,117 @@
1
+ version: 2
2
+
3
+ updates:
4
+ # Root workspace (package.json at /)
5
+ - package-ecosystem: "npm"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "weekly"
9
+ day: "monday"
10
+ time: "07:00"
11
+ timezone: "Asia/Colombo"
12
+ open-pull-requests-limit: 10
13
+ labels: ["dependencies"]
14
+ assignees: ["toozuuu"]
15
+ reviewers: ["toozuuu"]
16
+ commit-message:
17
+ prefix: "chore(deps)"
18
+ prefix-development: "chore(deps-dev)"
19
+ include: "scope"
20
+ # Avoid surprise major upgrades; we target Angular 17–19 for now
21
+ ignore:
22
+ - dependency-name: "@angular/*"
23
+ update-types: ["version-update:semver-major"]
24
+ - dependency-name: "rxjs"
25
+ update-types: ["version-update:semver-major"]
26
+ groups:
27
+ angular-minor-patch:
28
+ patterns: ["@angular/*"]
29
+ update-types: ["minor", "patch"]
30
+ tooling-minor-patch:
31
+ patterns:
32
+ - "@angular-devkit/*"
33
+ - "@angular/cli"
34
+ - "@angular-eslint/*"
35
+ - "eslint*"
36
+ - "typescript"
37
+ - "zone.js"
38
+ - "karma*"
39
+ - "jasmine*"
40
+ - "@types/*"
41
+ - "ng-packagr"
42
+ update-types: ["minor", "patch"]
43
+
44
+ # Library (projects/ngxsmk-tel-input)
45
+ - package-ecosystem: "npm"
46
+ directory: "/projects/ngxsmk-tel-input"
47
+ schedule:
48
+ interval: "weekly"
49
+ day: "monday"
50
+ time: "07:05"
51
+ timezone: "Asia/Colombo"
52
+ open-pull-requests-limit: 10
53
+ labels: ["dependencies", "library"]
54
+ assignees: ["toozuuu"]
55
+ reviewers: ["toozuuu"]
56
+ commit-message:
57
+ prefix: "chore(deps)"
58
+ prefix-development: "chore(deps-dev)"
59
+ include: "scope"
60
+ ignore:
61
+ - dependency-name: "@angular/*"
62
+ update-types: ["version-update:semver-major"]
63
+ - dependency-name: "rxjs"
64
+ update-types: ["version-update:semver-major"]
65
+ groups:
66
+ angular-minor-patch:
67
+ patterns: ["@angular/*"]
68
+ update-types: ["minor", "patch"]
69
+ lib-runtime:
70
+ patterns:
71
+ - "intl-tel-input"
72
+ - "libphonenumber-js"
73
+ - "tslib"
74
+ update-types: ["minor", "patch"]
75
+
76
+ # Demo app (optional; remove if you don't have /projects/demo)
77
+ - package-ecosystem: "npm"
78
+ directory: "/projects/demo"
79
+ schedule:
80
+ interval: "weekly"
81
+ day: "monday"
82
+ time: "07:10"
83
+ timezone: "Asia/Colombo"
84
+ open-pull-requests-limit: 5
85
+ labels: ["dependencies", "demo"]
86
+ assignees: ["toozuuu"]
87
+ reviewers: ["toozuuu"]
88
+ commit-message:
89
+ prefix: "chore(deps)"
90
+ prefix-development: "chore(deps-dev)"
91
+ include: "scope"
92
+ ignore:
93
+ - dependency-name: "@angular/*"
94
+ update-types: ["version-update:semver-major"]
95
+ groups:
96
+ angular-minor-patch:
97
+ patterns: ["@angular/*"]
98
+ update-types: ["minor", "patch"]
99
+
100
+ # GitHub Actions
101
+ - package-ecosystem: "github-actions"
102
+ directory: "/"
103
+ schedule:
104
+ interval: "weekly"
105
+ day: "monday"
106
+ time: "07:30"
107
+ timezone: "Asia/Colombo"
108
+ open-pull-requests-limit: 5
109
+ labels: ["dependencies", "ci"]
110
+ assignees: ["toozuuu"]
111
+ reviewers: ["toozuuu"]
112
+ commit-message:
113
+ prefix: "ci(deps)"
114
+ groups:
115
+ actions-minor-patch:
116
+ patterns: ["*"]
117
+ update-types: ["minor", "patch"]
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": ["config:recommended"],
4
+ "rangeStrategy": "bump",
5
+ "labels": ["deps"],
6
+ "schedule": ["after 9am on monday"],
7
+ "packageRules": [
8
+ { "matchManagers": ["npm"], "groupName": "npm (minor/patch)", "matchUpdateTypes": ["minor", "patch"] }
9
+ ]
10
+ }
@@ -0,0 +1,30 @@
1
+ name: NPM Publish (with provenance)
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*' # publish when you push a tag like v1.2.3
7
+
8
+ permissions:
9
+ contents: read
10
+ id-token: write # required for --provenance
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v5
17
+
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: 20
21
+ registry-url: 'https://registry.npmjs.org'
22
+
23
+ - run: npm ci
24
+ - run: npx ng build ngxsmk-tel-input --configuration production
25
+
26
+ - name: Publish to npm (with provenance)
27
+ working-directory: dist/ngxsmk-tel-input
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # create this secret in the repo
30
+ run: npm publish --access public --provenance
@@ -0,0 +1,4 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": ["angular.ng-template"]
4
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
+ "version": "0.2.0",
4
+ "configurations": [
5
+ {
6
+ "name": "ng serve",
7
+ "type": "chrome",
8
+ "request": "launch",
9
+ "preLaunchTask": "npm: start",
10
+ "url": "http://localhost:4200/"
11
+ },
12
+ {
13
+ "name": "ng test",
14
+ "type": "chrome",
15
+ "request": "launch",
16
+ "preLaunchTask": "npm: test",
17
+ "url": "http://localhost:9876/debug.html"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "git.ignoreLimitWarning": true
3
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3
+ "version": "2.0.0",
4
+ "tasks": [
5
+ {
6
+ "type": "npm",
7
+ "script": "start",
8
+ "isBackground": true,
9
+ "problemMatcher": {
10
+ "owner": "typescript",
11
+ "pattern": "$tsc",
12
+ "background": {
13
+ "activeOnStart": true,
14
+ "beginsPattern": {
15
+ "regexp": "(.*?)"
16
+ },
17
+ "endsPattern": {
18
+ "regexp": "bundle generation complete"
19
+ }
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "type": "npm",
25
+ "script": "test",
26
+ "isBackground": true,
27
+ "problemMatcher": {
28
+ "owner": "typescript",
29
+ "pattern": "$tsc",
30
+ "background": {
31
+ "activeOnStart": true,
32
+ "beginsPattern": {
33
+ "regexp": "(.*?)"
34
+ },
35
+ "endsPattern": {
36
+ "regexp": "bundle generation complete"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ ]
42
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.6.6] - 2025-10-18
9
+
10
+ ### Added
11
+ - **Dark & Light Theme Support**: Comprehensive theme system with automatic detection
12
+ - **ThemeService**: Global theme management service with reactive observables
13
+ - **Theme Input**: Component-level theme control with `[theme]="'light'|'dark'|'auto'"`
14
+ - **System Preference Detection**: Automatic theme detection based on user system settings
15
+ - **Persistent Theme Storage**: Saves user theme preference to localStorage
16
+ - **CSS Custom Properties**: Enhanced theming with CSS variables for both light and dark modes
17
+ - **Theme Documentation**: Comprehensive documentation for theme implementation
18
+
19
+ ### Enhanced
20
+ - **Dropdown Styling**: Improved dark mode dropdown appearance and functionality
21
+ - **Search Input**: Enhanced search input visibility and functionality in dark mode
22
+ - **Text Visibility**: Fixed text visibility issues in both light and dark themes
23
+ - **Title Styling**: Improved section title visibility and typography
24
+ - **Performance**: Removed hover animations for better performance
25
+ - **Accessibility**: Enhanced contrast ratios and focus indicators
26
+
27
+ ### Fixed
28
+ - **Dark Mode Dropdown**: Fixed dropdown panel not working properly in dark mode
29
+ - **Search Input**: Fixed search input not being visible when typing in dark mode
30
+ - **Title Visibility**: Fixed section titles not showing properly
31
+ - **Text Contrast**: Improved text contrast for better readability
32
+ - **Theme Consistency**: Ensured consistent theming across all components
33
+
34
+ ### Technical Improvements
35
+ - **CSS Optimization**: Enhanced CSS with better selectors and performance
36
+ - **TypeScript**: Fixed type issues with timeout handling
37
+ - **Component Integration**: Improved theme detection and application
38
+ - **Global Styling**: Added comprehensive global CSS rules for theme support
39
+ - **Observer Pattern**: Implemented MutationObserver for dynamic theme application
40
+
41
+ ### Breaking Changes
42
+ - None
43
+
44
+ ### Migration Guide
45
+ - No migration required - all changes are backward compatible
46
+ - New theme features are optional and work with existing implementations
47
+ - Default behavior remains unchanged
48
+
49
+ ## [1.6.5] - Previous Version
50
+ - Previous features and improvements
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ .
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,66 @@
1
+ ![Contributing to ngxsmk-tel-input](contributing-banner.png)
2
+
3
+ Thank you for your interest in contributing to `ngxsmk-tel-input`! This project is open-source, and we welcome contributions from everyone.
4
+
5
+ By participating in this project, you are expected to uphold the project's goals of maintaining a high-quality, Angular-native component.
6
+
7
+ ---
8
+
9
+ ## 💡 How to Contribute
10
+
11
+ There are several ways you can help improve this project:
12
+
13
+ 1. **Report Bugs:** Submit an issue if you find a problem.
14
+ 2. **Suggest Features:** Open an issue to propose new functionality.
15
+ 3. **Contribute Code:** Submit a Pull Request with bug fixes or new features.
16
+
17
+ ## 🐛 Reporting Bugs
18
+
19
+ If you find a bug, please check the [Issues page](https://github.com/toozuuu/ngxsmk-tel-input/issues) to see if it has already been reported.
20
+
21
+ When submitting a new bug report, please include:
22
+ * **Steps to reproduce** the issue.
23
+ * The **expected behavior** and the **actual behavior**.
24
+ * Your **Angular version** and the **browser** you are using.
25
+ * A minimal reproduction link (e.g., CodePen, JSFiddle) if possible.
26
+
27
+ ## ✨ Suggesting Enhancements
28
+
29
+ If you have an idea for a new feature or an enhancement, please open a new issue on the [Issues page](https://github.com/toozuuu/ngxsmk-tel-input/issues).
30
+
31
+ Describe the feature, why you think it would be useful, and how it aligns with the goals of the library.
32
+
33
+ ## 💻 Code Contributions (Pull Requests)
34
+
35
+ We welcome pull requests for bug fixes and new features.
36
+
37
+ ### Development Setup
38
+
39
+ This project is an Angular workspace containing a library (`ngxsmk-tel-input`) and a demo application (`demo`).
40
+
41
+ 1. **Fork** the repository and clone it locally:
42
+ ```bash
43
+ git clone git@github.com:your-username/ngxsmk-tel-input.git
44
+ cd ngxsmk-tel-input
45
+ ```
46
+ 2. **Install dependencies:**
47
+ ```bash
48
+ npm install
49
+ ```
50
+ 3. **Build the library** to ensure the latest version is available for the demo app:
51
+ ```bash
52
+ ng build ngxsmk-tel-input
53
+ ```
54
+ 4. **Run the demo application** to test your changes locally:
55
+ ```bash
56
+ ng serve demo
57
+ ```
58
+ This will serve the demo app, which consumes your local version of the library.
59
+
60
+ ### Testing
61
+
62
+ Please ensure that your code changes include appropriate tests and that all existing tests pass before submitting a PR.
63
+
64
+ ```bash
65
+ # To run all tests
66
+ ng test ngxsmk-tel-input
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sachin Dilshan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.