easy-mat-ui 0.0.6 → 1.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 (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +361 -63
  3. package/fesm2022/easy-mat-ui.mjs +2874 -0
  4. package/fesm2022/easy-mat-ui.mjs.map +1 -0
  5. package/index.d.ts +1136 -0
  6. package/package.json +68 -22
  7. package/page-generator/blocks.js +155 -0
  8. package/page-generator/catalog.js +132 -0
  9. package/page-generator/cli/main.js +314 -0
  10. package/page-generator/cli/project.js +252 -0
  11. package/page-generator/context.js +108 -0
  12. package/page-generator/generate.js +182 -0
  13. package/page-generator/index.js +33 -0
  14. package/page-generator/naming.js +53 -0
  15. package/page-generator/table.js +310 -0
  16. package/page-generator/types.js +6 -0
  17. package/styles/styles/_backgrounds.scss +39 -0
  18. package/{src/lib → styles}/styles/_buttons.scss +90 -90
  19. package/styles/styles/_colors.scss +197 -0
  20. package/{src/lib → styles}/styles/_effects.scss +44 -44
  21. package/{src/lib → styles}/styles/_material-overrides.scss +106 -87
  22. package/{src/lib → styles}/styles/_spacing.scss +68 -68
  23. package/styles/styles/_tables.scss +569 -0
  24. package/{src/lib → styles}/styles/_typography.scss +100 -105
  25. package/{src/lib → styles}/styles.scss +29 -30
  26. package/ng-package.json +0 -19
  27. package/src/lib/easy-mat-ui.component.spec.ts +0 -23
  28. package/src/lib/easy-mat-ui.component.ts +0 -16
  29. package/src/lib/easy-mat-ui.service.spec.ts +0 -16
  30. package/src/lib/easy-mat-ui.service.ts +0 -9
  31. package/src/lib/easy-multi-select/easy-multi-select.css +0 -102
  32. package/src/lib/easy-multi-select/easy-multi-select.html +0 -51
  33. package/src/lib/easy-multi-select/easy-multi-select.spec.ts +0 -23
  34. package/src/lib/easy-multi-select/easy-multi-select.ts +0 -181
  35. package/src/lib/easy-table/easy-table.component.css +0 -117
  36. package/src/lib/easy-table/easy-table.component.html +0 -221
  37. package/src/lib/easy-table/easy-table.component.spec.ts +0 -23
  38. package/src/lib/easy-table/easy-table.component.ts +0 -568
  39. package/src/lib/model/dictionary.model.ts +0 -4
  40. package/src/lib/model/mat-column-typed.model.ts +0 -41
  41. package/src/lib/model/mat-column.model.ts +0 -35
  42. package/src/lib/model/tuple.model.ts +0 -8
  43. package/src/lib/shared/table-toolbar/table-toolbar.css +0 -26
  44. package/src/lib/shared/table-toolbar/table-toolbar.html +0 -80
  45. package/src/lib/shared/table-toolbar/table-toolbar.ts +0 -130
  46. package/src/lib/styles/_backgrounds.scss +0 -39
  47. package/src/lib/styles/_colors.scss +0 -67
  48. package/src/lib/styles/_tables.scss +0 -71
  49. package/src/lib/utils/enums.ts +0 -49
  50. package/src/lib/utils/matTabCommon.ts +0 -59
  51. package/src/lib/utils/utils.ts +0 -68
  52. package/src/public-api.ts +0 -8
  53. package/tsconfig.lib.json +0 -18
  54. package/tsconfig.lib.prod.json +0 -11
  55. package/tsconfig.spec.json +0 -15
@@ -1,90 +1,90 @@
1
- button.mat-mdc-mini-fab {
2
- --mdc-fab-small-container-size: 32px;
3
- --mdc-icon-button-icon-size: 18px;
4
- }
5
-
6
- button.mat-mdc-icon-button {
7
- --mdc-icon-button-icon-size: 20px;
8
- }
9
-
10
- .btn-mini-fab {
11
- border-radius: 50%;
12
- color: white;
13
- border: none;
14
- cursor: pointer;
15
- box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
16
- display: inline-flex;
17
- align-items: center;
18
- justify-content: center;
19
- transition: transform 0.2s, filter 0.2s;
20
-
21
- &:hover {
22
- filter: brightness(90%);
23
- }
24
-
25
- &:focus {
26
- outline: none;
27
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
28
- }
29
- }
30
-
31
- .btn-small {
32
- width: 32px;
33
- height: 32px;
34
- font-size: 16px;
35
-
36
- .material-icons,
37
- .mat-icon {
38
- font-size: 16px !important;
39
- height: 16px !important;
40
- width: 16px !important;
41
- }
42
- }
43
-
44
- .btn-medium {
45
- width: 40px;
46
- height: 40px;
47
- font-size: 18px;
48
-
49
- .material-icons,
50
- .mat-icon {
51
- font-size: 20px !important;
52
- height: 20px !important;
53
- width: 20px !important;
54
- }
55
- }
56
-
57
- .btn-large {
58
- width: 56px;
59
- height: 56px;
60
- font-size: 22px;
61
-
62
- .material-icons,
63
- .mat-icon {
64
- font-size: 28px !important;
65
- height: 28px !important;
66
- width: 28px !important;
67
- }
68
- }
69
-
70
- .icon-only {
71
- background: transparent;
72
- border: none;
73
- box-shadow: none;
74
- padding: 0;
75
- margin: 0;
76
- width: auto;
77
- height: auto;
78
- min-width: unset;
79
- min-height: unset;
80
-
81
- .mat-icon {
82
- font-size: 20px;
83
- line-height: 20px;
84
- }
85
- }
86
-
87
- .btn-action-upload {
88
- color: purple !important;
89
- border-color: purple !important;
90
- }
1
+ button.mat-mdc-mini-fab {
2
+ --mdc-fab-small-container-size: 32px;
3
+ --mdc-icon-button-icon-size: 18px;
4
+ }
5
+
6
+ button.mat-mdc-icon-button {
7
+ --mdc-icon-button-icon-size: 20px;
8
+ }
9
+
10
+ .btn-mini-fab {
11
+ border-radius: 50%;
12
+ color: white;
13
+ border: none;
14
+ cursor: pointer;
15
+ box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
16
+ display: inline-flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ transition: transform 0.2s, filter 0.2s;
20
+
21
+ &:hover {
22
+ filter: brightness(90%);
23
+ }
24
+
25
+ &:focus {
26
+ outline: none;
27
+ box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
28
+ }
29
+ }
30
+
31
+ .btn-small {
32
+ width: 32px;
33
+ height: 32px;
34
+ font-size: 16px;
35
+
36
+ .material-icons,
37
+ .mat-icon {
38
+ font-size: 16px !important;
39
+ height: 16px !important;
40
+ width: 16px !important;
41
+ }
42
+ }
43
+
44
+ .btn-medium {
45
+ width: 40px;
46
+ height: 40px;
47
+ font-size: 18px;
48
+
49
+ .material-icons,
50
+ .mat-icon {
51
+ font-size: 20px !important;
52
+ height: 20px !important;
53
+ width: 20px !important;
54
+ }
55
+ }
56
+
57
+ .btn-large {
58
+ width: 56px;
59
+ height: 56px;
60
+ font-size: 22px;
61
+
62
+ .material-icons,
63
+ .mat-icon {
64
+ font-size: 28px !important;
65
+ height: 28px !important;
66
+ width: 28px !important;
67
+ }
68
+ }
69
+
70
+ .icon-only {
71
+ background: transparent;
72
+ border: none;
73
+ box-shadow: none;
74
+ padding: 0;
75
+ margin: 0;
76
+ width: auto;
77
+ height: auto;
78
+ min-width: unset;
79
+ min-height: unset;
80
+
81
+ .mat-icon {
82
+ font-size: 20px;
83
+ line-height: 20px;
84
+ }
85
+ }
86
+
87
+ .btn-action-upload {
88
+ color: purple !important;
89
+ border-color: purple !important;
90
+ }
@@ -0,0 +1,197 @@
1
+ :root {
2
+ --color-primary-blue: #1f6f8b;
3
+ --color-primary-dark: #14506a;
4
+ --color-accent-taupe: #14506a;
5
+ --color-yellow: #f5a524;
6
+ --color-morning-blue: #7fb0c4;
7
+ --color-morning-clear-green: #e0f0f0;
8
+ --color-taupe: #52627a;
9
+ --color-red: #dc2626;
10
+ --color-orange: #f97316;
11
+ --color-green: #16a34a;
12
+
13
+ --bg-gray: #f8fafc;
14
+ --bg-readonly: #f1f5f9;
15
+ --background-color: #f4f7fb;
16
+ --text-color: #0f172a;
17
+ --border-color: #e2e8f0;
18
+ --hover-color: #eef4fb;
19
+ --active-shadow: #ffffff;
20
+ --bg-sidenav: #e2e8f0;
21
+ --shadow-border-color: #cbd5e1;
22
+
23
+ --input-bg: #ffffff;
24
+ --input-border: #cbd5e1;
25
+ --input-border-hover: #1f6f8b;
26
+ --input-text: #0f172a;
27
+ --input-placeholder: #64748b;
28
+ --input-icon: #64748b;
29
+
30
+ --card-bg: #ffffff;
31
+ --card-text: #0f172a;
32
+ --card-shadow: rgba(15, 23, 42, 0.08);
33
+
34
+ --footer-bg: #ffffff;
35
+ --footer-text: #1f6f8b;
36
+
37
+ /* Semantic status colors (aliases of the palette above, override freely). */
38
+ --color-info: #0891b2;
39
+ --color-success: var(--color-green);
40
+ --color-warning: var(--color-yellow);
41
+ --color-danger: var(--color-red);
42
+ --on-accent: #ffffff;
43
+ /* Brand blue for small text on surfaces: 4.6:1 on white (the plain brand blue is 3.2:1). */
44
+ --color-primary-blue-strong: #1f6f8b;
45
+
46
+ /* Interaction states. */
47
+ --focus-ring: 0 0 0 3px rgba(31, 111, 139, 0.28);
48
+ --disabled-bg: #eef2f7;
49
+ --disabled-text: #8a97a8;
50
+
51
+ /* Shape and elevation. */
52
+ --radius-sm: 6px;
53
+ --radius-md: 10px;
54
+ --radius-lg: 14px;
55
+ --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
56
+ --shadow-md: 0 6px 16px -6px rgba(15, 23, 42, 0.14);
57
+ --shadow-lg: 0 20px 40px -16px rgba(15, 23, 42, 0.2);
58
+
59
+ /* Table surface: selected row, header, child tabs. */
60
+ --row-selected-bg: #dbe9f4;
61
+ --row-selected-border: #1f6f8b;
62
+ --table-header-bg: #f8fafc;
63
+ --table-header-text: #475569;
64
+ --table-header-size: 12.5px;
65
+ --table-header-transform: uppercase;
66
+ --table-header-spacing: 0.04em;
67
+ --tab-active-bg: #1f6f8b;
68
+ }
69
+
70
+ body.dark-theme {
71
+ --color-primary-blue: #8eb3c7;
72
+ --color-primary-dark: #f04e37;
73
+ --color-accent-taupe: #e06666;
74
+ --color-morning-blue: #a3c4c3;
75
+ --color-morning-clear-green: #2a3b3c;
76
+ --color-taupe: #cbd5e1;
77
+
78
+ --bg-gray: #162032;
79
+ --card-bg: #1e293b;
80
+ --bg-readonly: #334155;
81
+ --background-color: #0f172a;
82
+ --text-color: #f8fafc;
83
+ --border-color: #334155;
84
+ --shadow-border-color: #99a6ad;
85
+ --hover-color: #1e293b;
86
+ --active-shadow: #0f172a;
87
+ --bg-sidenav: #1e293bcc;
88
+
89
+ --input-bg: #1e293b;
90
+ --input-border: #475569;
91
+ --input-border-hover: #8eb3c7;
92
+ --input-text: #f8fafc;
93
+ --input-placeholder: #94a3b8;
94
+ --input-icon: #94a3b8;
95
+
96
+ --card-text: #f8fafc;
97
+ --card-shadow: rgba(0, 0, 0, 0.4);
98
+
99
+ --footer-bg: transparent;
100
+ --footer-text: #f8fafc;
101
+
102
+ --color-primary-blue-strong: #8eb3c7;
103
+ --color-yellow: #ffb703;
104
+ --color-green: #4caf50;
105
+ --color-red: #f44438;
106
+ --color-orange: #ff6b35;
107
+ --color-info: #00bcd4;
108
+ --row-selected-bg: #2c4a68;
109
+ --row-selected-border: #8eb3c7;
110
+ --table-header-bg: var(--card-bg);
111
+ --table-header-text: var(--text-color);
112
+ --table-header-size: 14px;
113
+ --table-header-transform: none;
114
+ --table-header-spacing: normal;
115
+ --tab-active-bg: #2e7d32;
116
+ --focus-ring: 0 0 0 3px rgba(142, 179, 199, 0.45);
117
+ --disabled-bg: #1b2535;
118
+ --disabled-text: #64748b;
119
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
120
+ --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
121
+ --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
122
+ }
123
+
124
+ .taupe {
125
+ color: var(--color-accent-taupe) !important;
126
+ }
127
+
128
+ .taupe-light {
129
+ color: var(--color-taupe) !important;
130
+ }
131
+
132
+ .blue {
133
+ color: #0275d8 !important;
134
+ }
135
+
136
+ .royal-blue {
137
+ color: var(--color-primary-blue) !important;
138
+ }
139
+
140
+ .green {
141
+ color: var(--color-green) !important;
142
+ }
143
+
144
+ .red {
145
+ color: var(--color-red) !important;
146
+ }
147
+
148
+ .light-blue {
149
+ color: #b1cdee !important;
150
+ }
151
+
152
+ .yellow {
153
+ color: var(--color-yellow) !important;
154
+ }
155
+
156
+ .info {
157
+ color: #00bcd4 !important;
158
+ }
159
+
160
+ .grey {
161
+ color: #999999 !important;
162
+ }
163
+
164
+ .success {
165
+ color: #198754 !important;
166
+ }
167
+
168
+ .primary {
169
+ color: #0d6efd !important;
170
+ }
171
+
172
+ .danger {
173
+ color: #dc3545 !important;
174
+ }
175
+
176
+ .error {
177
+ color: #ff6347 !important;
178
+ }
179
+
180
+ .secondary {
181
+ color: #6c757d !important;
182
+ }
183
+
184
+ .warning {
185
+ color: #ffc107 !important;
186
+ }
187
+
188
+ .dark {
189
+ color: var(--text-color) !important;
190
+ }
191
+
192
+ .card {
193
+ background-color: var(--card-bg) !important;
194
+ color: var(--card-text) !important;
195
+ border-color: var(--border-color) !important;
196
+ box-shadow: 0 1px 5px 3px #99a6ad !important;
197
+ }
@@ -1,44 +1,44 @@
1
- .box-shadow {
2
- box-shadow: 5px 5px 5px #555555;
3
- }
4
-
5
- .box-shadow-5 {
6
- box-shadow: 0px 5px 5px #555555 !important;
7
- }
8
-
9
- .box-shadow-5-1 {
10
- box-shadow: 0px 0px 5px 1px #555555 !important;
11
- }
12
-
13
- .bg-enable {
14
- background: -webkit-gradient(linear, left top, left bottom, from(#ecf1fc), to(#FFF));
15
- box-shadow: 5px 5px 5px #555555;
16
- animation: blinker 3s linear infinite;
17
- font-weight: bold;
18
- }
19
-
20
- .text-animation {
21
- animation: blinker 3s linear infinite;
22
- }
23
-
24
- @keyframes blinker {
25
- from {
26
- font-size: 0.9em;
27
- }
28
- 10% {
29
- font-size: 0.5em;
30
- }
31
- 50% {
32
- font-size: 0.7em;
33
- }
34
- 70% {
35
- font-size: 0.8em;
36
- }
37
- to {
38
- font-size: 0.9em;
39
- }
40
- }
41
-
42
- .d-contents {
43
- display: contents !important;
44
- }
1
+ .box-shadow {
2
+ box-shadow: 5px 5px 5px #555555;
3
+ }
4
+
5
+ .box-shadow-5 {
6
+ box-shadow: 0px 5px 5px #555555 !important;
7
+ }
8
+
9
+ .box-shadow-5-1 {
10
+ box-shadow: 0px 0px 5px 1px #555555 !important;
11
+ }
12
+
13
+ .bg-enable {
14
+ background: -webkit-gradient(linear, left top, left bottom, from(#ecf1fc), to(#FFF));
15
+ box-shadow: 5px 5px 5px #555555;
16
+ animation: blinker 3s linear infinite;
17
+ font-weight: bold;
18
+ }
19
+
20
+ .text-animation {
21
+ animation: blinker 3s linear infinite;
22
+ }
23
+
24
+ @keyframes blinker {
25
+ from {
26
+ font-size: 0.9em;
27
+ }
28
+ 10% {
29
+ font-size: 0.5em;
30
+ }
31
+ 50% {
32
+ font-size: 0.7em;
33
+ }
34
+ 70% {
35
+ font-size: 0.8em;
36
+ }
37
+ to {
38
+ font-size: 0.9em;
39
+ }
40
+ }
41
+
42
+ .d-contents {
43
+ display: contents !important;
44
+ }
@@ -1,87 +1,106 @@
1
- .mat-mdc-form-field-appearance-legacy .mat-mdc-form-field-underline {
2
- background-color: #4caf50 !important;
3
- }
4
-
5
- .mat-mdc-form-field-hint-wrapper {
6
- display: none !important;
7
- }
8
-
9
- .mat-mdc-form-field.mat-focused .mat-mdc-form-field-ripple {
10
- background-color: transparent !important;
11
- }
12
-
13
- .mat-mdc-form-field.mat-focused .mat-mdc-form-field-label {
14
- color: #4caf50 !important;
15
- }
16
-
17
- .vertical-center {
18
- align-items: center !important;
19
- justify-content: space-between;
20
- }
21
-
22
- .audit {
23
- background-color: transparent;
24
- box-shadow: 1px 2px #b4b3b3;
25
- color: #e91e63;
26
- }
27
-
28
- /* Height Fix Safari */
29
- .h-17 {
30
- height: 17px;
31
- box-sizing: border-box;
32
- line-height: normal;
33
- }
34
-
35
- @supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
36
- .h-17 {
37
- padding-top: 15px;
38
- }
39
- }
40
-
41
- input.password {
42
- border: none;
43
- background: transparent;
44
- font-family: monospace;
45
- }
46
-
47
- ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
48
- background-color: white !important;
49
- }
50
-
51
- ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:hover {
52
- background-color: white !important;
53
- }
54
-
55
- ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:focus-within {
56
- background-color: white !important;
57
- }
58
-
59
- ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-focus-overlay {
60
- background-color: transparent !important;
61
- }
62
-
63
- ::ng-deep .mat-mdc-text-field-wrapper {
64
- border-radius: 4px !important;
65
- box-shadow: none !important;
66
- }
67
-
68
-
69
- .input-overwrite {
70
- width: 50px;
71
- margin: 2px;
72
- background-image: none;
73
- }
74
-
75
- .overwrite {
76
- background-color: white;
77
- text-align: center;
78
- border-radius: 5px;
79
- font-weight: bold;
80
- color: #f44336;
81
- box-shadow:0px 0px 5px #6192D1;
82
- -webkit-box-shadow: 0px 0px 5px #6192D1;
83
- -webkit-padding: 3px;
84
- border-width: 2px;
85
- border-color: transparent;
86
- border-style: inset;
87
- }
1
+ .mat-mdc-form-field-appearance-legacy .mat-mdc-form-field-underline {
2
+ background-color: var(--color-green) !important;
3
+ }
4
+
5
+ .mat-mdc-form-field-hint-wrapper {
6
+ display: none !important;
7
+ }
8
+
9
+ .mat-mdc-form-field.mat-focused .mat-mdc-form-field-ripple {
10
+ background-color: transparent !important;
11
+ }
12
+
13
+ .mat-mdc-form-field.mat-focused .mat-mdc-form-field-label {
14
+ color: var(--color-green) !important;
15
+ }
16
+
17
+ .vertical-center {
18
+ align-items: center !important;
19
+ justify-content: space-between;
20
+ }
21
+
22
+ .audit {
23
+ background-color: transparent;
24
+ box-shadow: 1px 2px #b4b3b3;
25
+ color: #e91e63;
26
+ }
27
+
28
+ .h-17 {
29
+ height: 17px;
30
+ box-sizing: border-box;
31
+ line-height: normal;
32
+ }
33
+
34
+ @supports (-webkit-appearance: none) and (not (-moz-appearance: none)) {
35
+ .h-17 {
36
+ padding-top: 15px;
37
+ }
38
+ }
39
+
40
+ input.password {
41
+ border: none;
42
+ background: transparent;
43
+ font-family: monospace;
44
+ color: var(--input-text);
45
+ }
46
+
47
+ ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper {
48
+ background-color: var(--input-bg) !important;
49
+ }
50
+
51
+ ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:hover {
52
+ background-color: var(--input-bg) !important;
53
+ }
54
+
55
+ ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:focus-within {
56
+ background-color: var(--input-bg) !important;
57
+ }
58
+
59
+ ::ng-deep .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-focus-overlay {
60
+ background-color: transparent !important;
61
+ }
62
+
63
+ ::ng-deep .mat-mdc-text-field-wrapper {
64
+ border-radius: 4px !important;
65
+ box-shadow: none !important;
66
+ }
67
+
68
+ .input-overwrite {
69
+ width: 50px;
70
+ margin: 2px;
71
+ background-image: none;
72
+ }
73
+
74
+ .overwrite {
75
+ background-color: var(--input-bg);
76
+ text-align: center;
77
+ border-radius: 5px;
78
+ font-weight: bold;
79
+ color: var(--color-red);
80
+ box-shadow: 0px 0px 5px #6192d1;
81
+ -webkit-box-shadow: 0px 0px 5px #6192d1;
82
+ -webkit-padding: 3px;
83
+ border-width: 2px;
84
+ border-color: transparent;
85
+ border-style: inset;
86
+ }
87
+
88
+ body.dark-theme {
89
+ .cdk-overlay-container {
90
+ .mat-mdc-menu-panel,
91
+ .mat-mdc-select-panel,
92
+ .mat-mdc-dialog-container {
93
+ background-color: var(--card-bg) !important;
94
+ color: var(--text-color) !important;
95
+ }
96
+
97
+ .mat-mdc-option {
98
+ color: var(--text-color) !important;
99
+
100
+ &:hover,
101
+ &.mdc-list-item--selected {
102
+ background-color: var(--hover-color) !important;
103
+ }
104
+ }
105
+ }
106
+ }