@smitag/angular-shared-ui 0.0.1

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 (44) hide show
  1. package/.eslintrc.json +43 -0
  2. package/README.md +29 -0
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +7 -0
  5. package/package.json +18 -0
  6. package/project.json +36 -0
  7. package/src/index.ts +2 -0
  8. package/src/lib/angular-material.module.ts +81 -0
  9. package/src/lib/shared-ui.module.ts +8 -0
  10. package/src/lib/styles/components/_base.scss +58 -0
  11. package/src/lib/styles/components/_card.scss +42 -0
  12. package/src/lib/styles/components/_dialog.scss +85 -0
  13. package/src/lib/styles/components/_drawer.scss +24 -0
  14. package/src/lib/styles/components/_form.scss +75 -0
  15. package/src/lib/styles/components/_header.scss +23 -0
  16. package/src/lib/styles/components/_helper.scss +90 -0
  17. package/src/lib/styles/components/_layout.scss +336 -0
  18. package/src/lib/styles/components/_tab.scss +8 -0
  19. package/src/lib/styles/components/_toolbar.scss +43 -0
  20. package/src/lib/styles/fonts/IBMPlexSans-Bold.ttf +0 -0
  21. package/src/lib/styles/fonts/IBMPlexSans-Light.ttf +0 -0
  22. package/src/lib/styles/fonts/IBMPlexSans-Medium.ttf +0 -0
  23. package/src/lib/styles/fonts/IBMPlexSans-Regular.ttf +0 -0
  24. package/src/lib/styles/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  25. package/src/lib/styles/fonts/IBMPlexSansCondensed-Medium.ttf +0 -0
  26. package/src/lib/styles/fonts/IBMPlexSansCondensed-Regular.ttf +0 -0
  27. package/src/lib/styles/fonts/IBMPlexSansCondensed-SemiBold.ttf +0 -0
  28. package/src/lib/styles/fonts/MaterialIcons-Regular.ttf +0 -0
  29. package/src/lib/styles/fonts/Poppins-Bold.ttf +0 -0
  30. package/src/lib/styles/fonts/Poppins-Light.ttf +0 -0
  31. package/src/lib/styles/fonts/Poppins-Medium.ttf +0 -0
  32. package/src/lib/styles/fonts/Poppins-Regular.ttf +0 -0
  33. package/src/lib/styles/fonts/Poppins-SemiBold.ttf +0 -0
  34. package/src/lib/styles/fonts/SourceSansPro-Bold.ttf +0 -0
  35. package/src/lib/styles/fonts/SourceSansPro-Light.ttf +0 -0
  36. package/src/lib/styles/fonts/SourceSansPro-Regular.ttf +0 -0
  37. package/src/lib/styles/fonts/SourceSansPro-SemiBold.ttf +0 -0
  38. package/src/lib/styles/fonts/_typo.scss +152 -0
  39. package/src/lib/styles/styles.scss +191 -0
  40. package/src/test-setup.ts +8 -0
  41. package/tsconfig.json +29 -0
  42. package/tsconfig.lib.json +17 -0
  43. package/tsconfig.lib.prod.json +9 -0
  44. package/tsconfig.spec.json +16 -0
@@ -0,0 +1,191 @@
1
+ /* You can add global styles to this file, and also import other style files */
2
+ @use 'sass:map';
3
+ @use '@angular/material' as mat;
4
+ @use '@angular/material/prebuilt-themes/deeppurple-amber.css';
5
+
6
+ @use './components/helper';
7
+ @use './components/header';
8
+ @use './components/card';
9
+ @use './components/form';
10
+ @use './components/tab';
11
+ @use './components/toolbar';
12
+ @use './components/dialog';
13
+ @use './components/drawer';
14
+ @use './fonts/typo';
15
+ @use './components/base';
16
+ @use './components/layout';
17
+
18
+ @use '@fortawesome/fontawesome-pro/scss/fontawesome';
19
+ @use '@fortawesome/fontawesome-pro/scss/regular';
20
+ @use '@fortawesome/fontawesome-pro/scss/solid';
21
+
22
+ html,
23
+ body {
24
+ font-family: 'Poppins', sans-serif;
25
+ height: 100%;
26
+ margin: 0;
27
+ background-color: #f2f2f6;
28
+ font-weight: 400;
29
+ color: rgba(0, 0, 0, 0.87);
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ .mat-drawer-container {
34
+ height: calc(100vh - 130px);
35
+ background-color: #f2f2f6;
36
+ }
37
+
38
+ main {
39
+ padding: 32px;
40
+ }
41
+
42
+ strong {
43
+ font-weight: 600;
44
+ }
45
+
46
+ :focus {
47
+ outline: 0 !important;
48
+ }
49
+
50
+ .text-default {
51
+ color: #0000;
52
+ }
53
+
54
+ .mat-icon {
55
+ overflow: visible !important;
56
+ }
57
+
58
+ .mat-mdc-menu-item .mat-icon.mat-icon-no-color {
59
+ height: 16px;
60
+ width: 16px;
61
+ margin-right: 8px !important;
62
+ margin-bottom: 3px !important;
63
+ color: rgba(0, 0, 0, 0.54);
64
+ }
65
+
66
+ .mat-form-field-type-checkbox {
67
+ .mat-form-field-wrapper,
68
+ .mat-form-field-infix {
69
+ padding-bottom: 0px !important;
70
+ border-top-width: 6px;
71
+ }
72
+ }
73
+
74
+ .mat-radio-label-content,
75
+ .mat-checkbox-label {
76
+ white-space: initial;
77
+ }
78
+
79
+ .mobile {
80
+ main {
81
+ padding: 0px;
82
+ }
83
+ }
84
+
85
+ .mat-sort-header {
86
+ font-size: 16px;
87
+ color: black;
88
+ }
89
+
90
+ .mat-option-text {
91
+ white-space: normal;
92
+ margin: 8px 0px 8px 0px;
93
+ line-height: initial;
94
+ height: unset;
95
+ }
96
+
97
+ .mat-option {
98
+ height: unset !important;
99
+ }
100
+
101
+ th {
102
+ -moz-hyphens: auto;
103
+ -o-hyphens: auto;
104
+ -webkit-hyphens: auto;
105
+ -ms-hyphens: auto;
106
+ hyphens: auto;
107
+ }
108
+
109
+ ul.no-dot {
110
+ list-style-type: none;
111
+ padding-left: 0;
112
+ }
113
+
114
+ ul li {
115
+ margin-bottom: 16px;
116
+ }
117
+
118
+ ul li:last-child {
119
+ margin-bottom: 0;
120
+ }
121
+
122
+ a {
123
+ text-decoration: none;
124
+ }
125
+
126
+ a .mat-icon {
127
+ vertical-align: middle;
128
+ }
129
+
130
+ a:hover {
131
+ text-decoration: underline;
132
+ }
133
+
134
+ .error {
135
+ color: #cc0000;
136
+ }
137
+
138
+ .success {
139
+ color: green;
140
+ }
141
+
142
+ .mat-mdc-snack-bar-container.success {
143
+ --mdc-snackbar-container-color: #058514;
144
+ color: #fff;
145
+ }
146
+
147
+ .mat-mdc-snack-bar-container.error {
148
+ --mdc-snackbar-container-color: #cc0000;
149
+ color: white;
150
+ }
151
+
152
+ .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
153
+ --mat-mdc-snack-bar-button-color: #fff;
154
+ }
155
+
156
+ .material-icons {
157
+ font-family: 'Material Icons', sans-serif;
158
+ font-weight: normal;
159
+ font-style: normal;
160
+ font-size: 24px; /* Preferred icon size */
161
+ display: inline-block;
162
+ line-height: 1;
163
+ text-transform: none;
164
+ letter-spacing: normal;
165
+ word-wrap: normal;
166
+ white-space: nowrap;
167
+ direction: ltr;
168
+
169
+ /* Support for all WebKit browsers. */
170
+ -webkit-font-smoothing: antialiased;
171
+ /* Support for Safari and Chrome. */
172
+ text-rendering: optimizeLegibility;
173
+
174
+ /* Support for Firefox. */
175
+ -moz-osx-font-smoothing: grayscale;
176
+
177
+ /* Support for IE */
178
+ font-feature-settings: 'liga';
179
+ }
180
+
181
+ @media (max-width: 1279px) and (min-width: 960px) {
182
+ main {
183
+ padding: 16px;
184
+ }
185
+ }
186
+
187
+ @media (max-width: 959px) {
188
+ main {
189
+ padding: 8px;
190
+ }
191
+ }
@@ -0,0 +1,8 @@
1
+ // @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment
2
+ globalThis.ngJest = {
3
+ testEnvironmentOptions: {
4
+ errorOnUnknownElements: true,
5
+ errorOnUnknownProperties: true,
6
+ },
7
+ };
8
+ import 'jest-preset-angular/setup-jest';
package/tsconfig.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "useDefineForClassFields": false,
5
+ "forceConsistentCasingInFileNames": true,
6
+ "strict": true,
7
+ "noImplicitOverride": true,
8
+ "noPropertyAccessFromIndexSignature": true,
9
+ "noImplicitReturns": true,
10
+ "noFallthroughCasesInSwitch": true
11
+ },
12
+ "files": [],
13
+ "include": [],
14
+ "references": [
15
+ {
16
+ "path": "./tsconfig.lib.json"
17
+ },
18
+ {
19
+ "path": "./tsconfig.spec.json"
20
+ }
21
+ ],
22
+ "extends": "../tsconfig.base.json",
23
+ "angularCompilerOptions": {
24
+ "enableI18nLegacyMessageIdFormat": false,
25
+ "strictInjectionParameters": true,
26
+ "strictInputAccessModifiers": true,
27
+ "strictTemplates": true
28
+ }
29
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../dist/out-tsc",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "inlineSources": true,
8
+ "types": []
9
+ },
10
+ "exclude": [
11
+ "src/**/*.spec.ts",
12
+ "src/test-setup.ts",
13
+ "jest.config.ts",
14
+ "src/**/*.test.ts"
15
+ ],
16
+ "include": ["src/**/*.ts"]
17
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "declarationMap": false
5
+ },
6
+ "angularCompilerOptions": {
7
+ "compilationMode": "partial"
8
+ }
9
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../dist/out-tsc",
5
+ "module": "commonjs",
6
+ "target": "es2016",
7
+ "types": ["jest", "node"]
8
+ },
9
+ "files": ["src/test-setup.ts"],
10
+ "include": [
11
+ "jest.config.ts",
12
+ "src/**/*.test.ts",
13
+ "src/**/*.spec.ts",
14
+ "src/**/*.d.ts"
15
+ ]
16
+ }