@hug/hospitality 0.0.4-alpha.10 → 0.0.4-alpha.14

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 (37) hide show
  1. package/.editorconfig +18 -0
  2. package/.eslintignore +47 -0
  3. package/.eslintrc.json +6 -0
  4. package/.github/ISSUE_TEMPLATE/1-bug-report.yml +57 -0
  5. package/.github/ISSUE_TEMPLATE/2-feature-request.yml +26 -0
  6. package/.github/ISSUE_TEMPLATE/3-doc-issue.yml +26 -0
  7. package/.github/workflows/ci_release.yml +17 -0
  8. package/.husky/commit-msg +3 -0
  9. package/.husky/pre-commit +17 -0
  10. package/.vscode/extensions.json +6 -0
  11. package/.vscode/settings.json +33 -0
  12. package/CODE_OF_CONDUCT.md +135 -0
  13. package/CONTRIBUTING.md +289 -0
  14. package/DEVELOPER.md +37 -0
  15. package/index.ts +1 -0
  16. package/material/button/button.scss +237 -0
  17. package/material/core/directives/components-styling.directive.ts +20 -0
  18. package/material/core/index.ts +1 -0
  19. package/material/core/ng-package.json +7 -0
  20. package/{src/components/form-field/form-field.provider.mjs → material/form-field/form-field.provider.ts} +2 -1
  21. package/{src/components → material}/form-field/form-field.scss +4 -4
  22. package/material/form-field/index.ts +1 -0
  23. package/material/form-field/ng-package.json +7 -0
  24. package/material/theme/theme.scss +69 -0
  25. package/material/theme/utils.scss +10 -0
  26. package/ng-package.json +10 -0
  27. package/package.json +37 -28
  28. package/tokens/index.ts +38 -0
  29. package/tokens/ng-package.json +7 -0
  30. package/{src/tokens → tokens}/tokens.css +129 -100
  31. package/tsconfig.json +16 -0
  32. package/src/components/form-field/form-field.provider.d.ts +0 -3
  33. package/src/material/theme/theme.scss +0 -65
  34. package/src/tokens/index.d.ts +0 -14
  35. package/src/tokens/index.mjs +0 -3
  36. /package/{src/components → material}/dialog/dialog.scss +0 -0
  37. /package/{src/tokens → tokens}/tokens.json +0 -0
package/.editorconfig ADDED
@@ -0,0 +1,18 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 4
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.ts]
13
+ quote_type = single
14
+ ij_typescript_use_double_quotes = false
15
+
16
+ [*.md]
17
+ max_line_length = off
18
+ trim_trailing_whitespace = false
package/.eslintignore ADDED
@@ -0,0 +1,47 @@
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
43
+
44
+ # Capacitor/Cordova
45
+ capacitor.config.ts
46
+ /android
47
+ /ios
package/.eslintrc.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "root": true,
3
+ "extends": [
4
+ "@hug/eslint-config/moderate"
5
+ ]
6
+ }
@@ -0,0 +1,57 @@
1
+ name: 🐞 Bug report
2
+ description: Report a bug in the library
3
+ title: '[BUG] <title>'
4
+ labels: [bug, needs triage]
5
+
6
+ body:
7
+ - type: checkboxes
8
+ attributes:
9
+ label: Is there an existing issue for this?
10
+ description: |
11
+ Please search open and closed issues before submitting a new one.
12
+ Existing issues often contain information about workarounds, resolution or progress updates.
13
+ options:
14
+ - label: I have searched the existing issues
15
+ required: true
16
+
17
+ - type: input
18
+ attributes:
19
+ label: Library version
20
+ description: Please make sure you have installed the latest version and verified it is still an issue.
21
+ placeholder: latest
22
+ validations:
23
+ required: true
24
+
25
+ - type: textarea
26
+ attributes:
27
+ label: Description
28
+ description: A clear & concise description of what you're experiencing.
29
+ validations:
30
+ required: true
31
+
32
+ - type: textarea
33
+ attributes:
34
+ label: Steps to reproduce
35
+ description: |
36
+ Issues that don't have enough info and can't be reproduced will be closed.
37
+ Please provide the steps to reproduce the behavior and if applicable create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)
38
+ in a [new repository](https://github.com/new), a [gist](https://gist.github.com) or a [live demo](https://stackblitz.com).
39
+ validations:
40
+ required: false
41
+
42
+ - type: textarea
43
+ attributes:
44
+ label: Environment
45
+ description: |
46
+ examples:
47
+ - **OS Name**: macOS Monterey (version 12.6.1)
48
+ - **System Model Name**: MacBook Pro (16-inch, 2019)
49
+ - **npm**: **`npm -v`**: 7.6.3
50
+ - **Node.js**: **`node -v`**: 13.14.0
51
+ value: |
52
+ - **OS Name**:
53
+ - **System Model Name**:
54
+ - **npm**:
55
+ - **Node.js**:
56
+ validations:
57
+ required: false
@@ -0,0 +1,26 @@
1
+ name: 🚀 Feature request
2
+ description: Suggest a feature for the library
3
+ title: '[FEATURE] <title>'
4
+ labels: [enhancement, needs triage]
5
+
6
+ body:
7
+ - type: textarea
8
+ attributes:
9
+ label: Description
10
+ description: A clear and concise description of the problem or missing capability.
11
+ validations:
12
+ required: true
13
+
14
+ - type: textarea
15
+ attributes:
16
+ label: Proposed solution
17
+ description: If you have a solution in mind, please describe it.
18
+ validations:
19
+ required: true
20
+
21
+ - type: textarea
22
+ attributes:
23
+ label: Alternatives considered
24
+ description: Have you considered any alternative solutions or workarounds?
25
+ validations:
26
+ required: false
@@ -0,0 +1,26 @@
1
+ name: 📚 Docs enhancement
2
+ description: File an enhancement or report an issue in the library's documentation
3
+ title: '[DOCS] <title>'
4
+ labels: [documentation, needs triage]
5
+
6
+ body:
7
+ - type: checkboxes
8
+ attributes:
9
+ label: Documentation can be submitted with pull requests
10
+ options:
11
+ - label: I know that I can edit the docs myself but prefer to file this issue instead
12
+ required: true
13
+
14
+ - type: input
15
+ attributes:
16
+ label: Docs URL
17
+ description: The URL of the page you'd like to see an enhancement to or report a problem from.
18
+ validations:
19
+ required: false
20
+
21
+ - type: textarea
22
+ attributes:
23
+ label: Description
24
+ description: A clear and concise description of the enhancement or problem.
25
+ validations:
26
+ required: true
@@ -0,0 +1,17 @@
1
+ name: Release library
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ ci_release:
9
+ uses: dsi-hug/actions/.github/workflows/action.yml@v3
10
+ secrets:
11
+ NPM_TOKEN: ${{ secrets.DSI_HUG_NPM_TOKEN }}
12
+ with:
13
+ working-directory: .
14
+ lint: true
15
+ test: false
16
+ build: false
17
+ release: true
@@ -0,0 +1,3 @@
1
+ printf "> Validating commit message... "
2
+ npx --no -- commitlint --edit "$1"
3
+ printf "OK\n"
@@ -0,0 +1,17 @@
1
+ printf "> Validating user email... "
2
+ gitUserEmail="$(git config user.email)"
3
+ if [[ $gitUserEmail =~ ^.*@(hcuge|hug).ch$ ]] ; then
4
+ printf "\n"
5
+ printf "For privacy, git user email should not end with @hcuge.ch or @hug.ch\n"
6
+ printf "Received: %s\n" $gitUserEmail
7
+ printf "\n"
8
+ printf "You can fix this with the following command:\n"
9
+ printf "git config --global user.email <your_email>\n"
10
+ exit 1
11
+ else
12
+ printf "OK\n"
13
+ fi
14
+
15
+ printf "> Linting staged files... "
16
+ npx --no -- lint-staged --quiet
17
+ printf "OK\n"
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "pkief.material-icon-theme"
5
+ ]
6
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "files.eol": "\n",
3
+ "files.watcherExclude": {
4
+ "**/dist/**": true,
5
+ "**/tmp/**": true
6
+ },
7
+ "search.exclude": {
8
+ "**/node_modules": true,
9
+ "**/dist": true,
10
+ "**/tmp": true
11
+ },
12
+ "workbench.iconTheme": "material-icon-theme",
13
+ "material-icon-theme.folders.theme": "none",
14
+ "material-icon-theme.opacity": 0.6,
15
+ "[javascript]": {
16
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
17
+ },
18
+ "[ts]": {
19
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
20
+ },
21
+ "editor.codeActionsOnSave": {
22
+ "source.fixAll.eslint": "explicit"
23
+ },
24
+ "editor.formatOnSave": true,
25
+ "eslint.format.enable": true,
26
+ "html.format.wrapAttributes": "force-aligned",
27
+ "html.format.wrapLineLength": 120,
28
+ "npm.exclude": "**/{dist,tmp}{,/**}",
29
+ "npm.packageManager": "npm",
30
+ "npm.scriptExplorerExclude": [
31
+ "install"
32
+ ]
33
+ }
@@ -0,0 +1,135 @@
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, caste, color, 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 by opening an issue or contacting one or more of the project maintainers.
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][v2.0].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126
+ at [https://www.contributor-covenant.org/translations][translations].
127
+
128
+
129
+
130
+
131
+ [homepage]: https://www.contributor-covenant.org
132
+ [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
133
+ [Mozilla CoC]: https://github.com/mozilla/diversity
134
+ [FAQ]: https://www.contributor-covenant.org/faq
135
+ [translations]: https://www.contributor-covenant.org/translations