@ngx-stoui/core 15.0.0 → 16.0.0

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 (67) hide show
  1. package/README.md +7 -7
  2. package/{esm2020 → esm2022}/index.mjs +1 -1
  3. package/{esm2020 → esm2022}/lib/abstract-and-interfaces/keyPress.enum.mjs +1 -1
  4. package/esm2022/lib/sto-directives/context-menu.directive.mjs +36 -0
  5. package/esm2022/lib/sto-directives/date-form-field-click.directive.mjs +46 -0
  6. package/esm2022/lib/sto-directives/directives.module.mjs +64 -0
  7. package/{esm2020 → esm2022}/lib/sto-directives/index.mjs +1 -1
  8. package/esm2022/lib/sto-directives/menu-overlay.directive.mjs +48 -0
  9. package/{esm2020 → esm2022}/lib/sto-directives/quick-keys.directive.mjs +4 -4
  10. package/{esm2020 → esm2022}/lib/sto-directives/sto-grid.directive.mjs +10 -10
  11. package/{esm2020 → esm2022}/lib/sto-directives/sto-select-text-on-focus.directive.mjs +4 -4
  12. package/{esm2020 → esm2022}/lib/sto-pipes/currency-format.pipe.mjs +4 -4
  13. package/{esm2020 → esm2022}/lib/sto-pipes/date-format.pipe.mjs +4 -4
  14. package/{esm2020 → esm2022}/lib/sto-pipes/keys.pipe.mjs +4 -4
  15. package/{esm2020 → esm2022}/lib/sto-pipes/number-format.pipe.mjs +4 -4
  16. package/{esm2020 → esm2022}/lib/sto-pipes/sto-pipes.module.mjs +17 -17
  17. package/{esm2020 → esm2022}/lib/sto-pipes/with-unit.mjs +7 -7
  18. package/{esm2020 → esm2022}/lib/sto-pipes/yes-no.mjs +4 -4
  19. package/{fesm2020 → fesm2022}/ngx-stoui-core.mjs +83 -84
  20. package/fesm2022/ngx-stoui-core.mjs.map +1 -0
  21. package/lib/sto-directives/context-menu.directive.d.ts +2 -2
  22. package/lib/sto-directives/date-form-field-click.directive.d.ts +2 -2
  23. package/lib/sto-directives/menu-overlay.directive.d.ts +1 -1
  24. package/lib/sto-directives/quick-keys.directive.d.ts +1 -1
  25. package/lib/sto-directives/sto-grid.directive.d.ts +2 -2
  26. package/ngx-datatable.css +26 -9
  27. package/ngx-stoui.css +3290 -3555
  28. package/package.json +18 -18
  29. package/style/_fonts.scss +3 -3
  30. package/style/datatable/_ngx-datatable-compact.scss +144 -144
  31. package/style/datatable/_ngx-datatable-form.scss +94 -95
  32. package/style/datatable/_ngx-datatable-variables.scss +10 -10
  33. package/style/datatable/ngx-datatable.scss +404 -398
  34. package/style/form/sto-form.scss +348 -342
  35. package/style/grid.scss +20 -20
  36. package/style/sto-dialog.scss +73 -73
  37. package/style/sto-grid.scss +67 -67
  38. package/style/theme/_action-footer.scss +20 -20
  39. package/style/theme/_appheader.scss +121 -122
  40. package/style/theme/_card.scss +28 -26
  41. package/style/theme/_colors.scss +170 -170
  42. package/style/theme/_datatable.scss +231 -224
  43. package/style/theme/_daterange.scss +47 -51
  44. package/style/theme/_dialog.scss +25 -25
  45. package/style/theme/_filterpanel.scss +88 -88
  46. package/style/theme/_input-overrides.scss +119 -117
  47. package/style/theme/_message-panel.scss +89 -89
  48. package/style/theme/_number-input.scss +23 -23
  49. package/style/theme/_number-unit-input.scss +34 -34
  50. package/style/theme/_select-filter.scss +16 -16
  51. package/style/theme/_sto-indicators.scss +89 -89
  52. package/style/theme/_theme-variables.scss +63 -61
  53. package/style/theme/_theme.scss +22 -16
  54. package/style/theme/_typography.scss +44 -41
  55. package/style/theme/_wysiwyg.scss +38 -38
  56. package/style/theme/components.scss +16 -16
  57. package/style/theme/preference-manager.scss +50 -50
  58. package/style/theme.scss +41 -35
  59. package/esm2020/lib/sto-directives/context-menu.directive.mjs +0 -36
  60. package/esm2020/lib/sto-directives/date-form-field-click.directive.mjs +0 -46
  61. package/esm2020/lib/sto-directives/directives.module.mjs +0 -64
  62. package/esm2020/lib/sto-directives/menu-overlay.directive.mjs +0 -48
  63. package/fesm2015/ngx-stoui-core.mjs +0 -829
  64. package/fesm2015/ngx-stoui-core.mjs.map +0 -1
  65. package/fesm2020/ngx-stoui-core.mjs.map +0 -1
  66. package/license.md +0 -21
  67. /package/{esm2020 → esm2022}/ngx-stoui-core.mjs +0 -0
@@ -1,224 +1,231 @@
1
- @use '@angular/material' as mat;
2
- @import "theme";
3
- @import "typography";
4
-
5
- @mixin sto-datatable-theme($theme, $variables) {
6
- $primary: map_get($variables, primary);
7
- $accent: map_get($variables, accent);
8
- $color: map_get($variables, color);
9
- $border-color: map_get($variables, border-color);
10
- $background-color: transparent;
11
- $footer-bg: map_get($variables, background);
12
- $header-background-color: map_get($variables, selected-bg);
13
- $hover-color: map_get($variables, hover-bg);
14
- $selected-color: map_get($variables, selected-bg);
15
- $icon-color: map_get($variables, icon);
16
- $icon-hover: map_get($variables, icon-hover);
17
-
18
- .sto-mdl-table {
19
- background-color: $background-color;
20
- color: $color;
21
-
22
- .mat-icon-button {
23
- color: $icon-color;
24
-
25
- &:hover {
26
- color: $color;
27
- }
28
- }
29
-
30
- &__actions {
31
- border-bottom: 1px solid $border-color;
32
- }
33
-
34
- &__header__row {
35
- border-bottom: 1px solid $border-color;
36
- background-color: $header-background-color;
37
-
38
- &__cell {
39
- color: $color;
40
-
41
- &__resize-handle {
42
- span {
43
- background: $border-color;
44
- }
45
- }
46
-
47
- &--sortable:hover {
48
- background-color: $hover-color;
49
- }
50
-
51
- }
52
- }
53
-
54
- &__body {
55
- &__row {
56
- border-bottom: 1px solid $border-color;
57
-
58
- &--selected {
59
- background-color: $selected-color;
60
- }
61
-
62
- &:not(.sto-mdl-table__body__row--selected) {
63
- &:hover, &:focus {
64
- background-color: $hover-color;
65
- }
66
- }
67
- }
68
- }
69
-
70
- &__footer {
71
- &__row {
72
- border-bottom: 1px solid $border-color;
73
- border-top: 1px solid $border-color;
74
- background: $footer-bg;
75
- }
76
- }
77
-
78
- }
79
-
80
- .ngx-datatable.sto-datatable {
81
- background-color: $background-color;
82
- color: $color;
83
-
84
- .datatable-body, .datatable-header {
85
- mat-icon {
86
- color: $icon-color;
87
- }
88
- }
89
-
90
- .datatable-header {
91
- border-bottom: 1px solid $border-color;
92
- }
93
-
94
- .datatable-header .datatable-header-cell {
95
- color: $color;
96
- }
97
-
98
- .datatable-body .progress-linear {
99
- .container {
100
- background-color: $accent;
101
-
102
- .bar {
103
- background-color: $primary;
104
- }
105
- }
106
- }
107
-
108
- .datatable-body .datatable-body-row .datatable-body-cell {
109
- color: $color;
110
- border-bottom: 1px solid $border-color;
111
- }
112
-
113
- .datatable-body .datatable-body-row:not(.active):hover {
114
- .datatable-row-left, .datatable-row-right, .datatable-row-center {
115
- background-color: $hover-color;
116
- }
117
-
118
- background-color: $hover-color;
119
- }
120
-
121
- .datatable-header .datatable-header-column-group .datatable-header-cell {
122
- border-left: 1px solid $border-color;
123
- }
124
-
125
- .datatable-body .datatable-body-row:focus:not(.active) .datatable-row-group {
126
- &.datatable-row-left, &.datatable-row-right, &.datatable-row-center {
127
- background-color: $selected-color !important;
128
- }
129
- }
130
-
131
- .datatable-body .datatable-body-row.active {
132
-
133
- background-color: $selected-color;
134
- }
135
-
136
- .datatable-body .datatable-body-row:not(.active):not(:hover) {
137
- .datatable-row-left, .datatable-row-right, .datatable-row-center {
138
- background-color: $background-color;
139
- }
140
- }
141
-
142
- .datatable-footer {
143
- overflow: hidden;
144
-
145
- .datatable-pager {
146
- a {
147
- color: $primary;
148
- padding: 0 2px;
149
- text-decoration: none;
150
-
151
- &:hover {
152
- background: $hover-color;
153
- }
154
- }
155
-
156
- .pager li.pages {
157
- margin: 0 2px;
158
-
159
- &.active {
160
- background: $selected-color;
161
- }
162
-
163
- &.disabled {
164
- a {
165
- color: $border-color;
166
- }
167
- }
168
- }
169
- }
170
- }
171
- }
172
-
173
- }
174
-
175
- body {
176
- @include sto-datatable-theme($sto-theme, $variables);
177
- }
178
-
179
- @mixin sto-datatable-typography($config) {
180
- .sto-mdl-table {
181
- font: {
182
- family: mat.font-family($config, body-1);
183
- size: mat.font-size($config, body-1);
184
- weight: mat.font-weight($config, body-1);
185
- }
186
- font-feature-settings: 'tnum', 'lnum';
187
- }
188
-
189
- .ngx-datatable.sto-datatable {
190
- .datatable-body, .datatable-header {
191
- font: {
192
- family: mat.font-family($config, body-1);
193
- size: mat.font-size($config, body-1);
194
- weight: mat.font-weight($config, body-1);
195
- }
196
- }
197
-
198
- .datatable-footer {
199
- font: {
200
- family: mat.font-family($config, body-1);
201
- size: mat.font-size($config, body-1);
202
- weight: mat.font-weight($config, body-1);
203
- }
204
-
205
- .pager li a[role="button"] {
206
- line-height: mat.font-size($config, body-1);
207
- }
208
- }
209
-
210
- font-feature-settings: 'tnum', 'lnum';
211
- }
212
- }
213
-
214
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
215
- @include sto-datatable-typography($sto-typography);
216
- }
217
-
218
- .mat-typography.sto-sm-typography {
219
- @include sto-datatable-typography($sto-sm-typography);
220
- }
221
-
222
- .mat-typography.sto-l-typography {
223
- @include sto-datatable-typography($sto-l-typography);
224
- }
1
+ @use '@angular/material' as mat;
2
+ @import 'theme';
3
+ @import 'typography';
4
+
5
+ @mixin sto-datatable-theme($theme, $variables) {
6
+ $primary: map_get($variables, primary);
7
+ $accent: map_get($variables, accent);
8
+ $color: map_get($variables, color);
9
+ $border-color: map_get($variables, border-color);
10
+ $background-color: transparent;
11
+ $footer-bg: map_get($variables, background);
12
+ $header-background-color: map_get($variables, selected-bg);
13
+ $hover-color: map_get($variables, hover-bg);
14
+ $selected-color: map_get($variables, selected-bg);
15
+ $icon-color: map_get($variables, icon);
16
+ $icon-hover: map_get($variables, icon-hover);
17
+
18
+ .sto-mdl-table {
19
+ background-color: $background-color;
20
+ color: $color;
21
+
22
+ .mat-icon-button {
23
+ color: $icon-color;
24
+
25
+ &:hover {
26
+ color: $color;
27
+ }
28
+ }
29
+
30
+ &__actions {
31
+ border-bottom: 1px solid $border-color;
32
+ }
33
+
34
+ &__header__row {
35
+ border-bottom: 1px solid $border-color;
36
+ background-color: $header-background-color;
37
+
38
+ &__cell {
39
+ color: $color;
40
+
41
+ &__resize-handle {
42
+ span {
43
+ background: $border-color;
44
+ }
45
+ }
46
+
47
+ &--sortable:hover {
48
+ background-color: $hover-color;
49
+ }
50
+ }
51
+ }
52
+
53
+ &__body {
54
+ &__row {
55
+ border-bottom: 1px solid $border-color;
56
+
57
+ &--selected {
58
+ background-color: $selected-color;
59
+ }
60
+
61
+ &:not(.sto-mdl-table__body__row--selected) {
62
+ &:hover,
63
+ &:focus {
64
+ background-color: $hover-color;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ &__footer {
71
+ &__row {
72
+ border-bottom: 1px solid $border-color;
73
+ border-top: 1px solid $border-color;
74
+ background: $footer-bg;
75
+ }
76
+ }
77
+ }
78
+
79
+ .ngx-datatable.sto-datatable {
80
+ background-color: $background-color;
81
+ color: $color;
82
+
83
+ .datatable-body,
84
+ .datatable-header {
85
+ mat-icon {
86
+ color: $icon-color;
87
+ }
88
+ }
89
+
90
+ .datatable-header {
91
+ border-bottom: 1px solid $border-color;
92
+ }
93
+
94
+ .datatable-header .datatable-header-cell {
95
+ color: $color;
96
+ }
97
+
98
+ .datatable-body .progress-linear {
99
+ .container {
100
+ background-color: $accent;
101
+
102
+ .bar {
103
+ background-color: $primary;
104
+ }
105
+ }
106
+ }
107
+
108
+ .datatable-body .datatable-body-row {
109
+ color: $color;
110
+ border-bottom: 1px solid $border-color;
111
+ }
112
+
113
+ .datatable-body .datatable-body-row:not(.active):hover {
114
+ .datatable-row-left,
115
+ .datatable-row-right,
116
+ .datatable-row-center {
117
+ background-color: $hover-color;
118
+ }
119
+
120
+ background-color: $hover-color;
121
+ }
122
+
123
+ .datatable-header .datatable-header-column-group .datatable-header-cell {
124
+ border-left: 1px solid $border-color;
125
+ }
126
+
127
+ .datatable-body
128
+ .datatable-body-row:focus:not(.active)
129
+ .datatable-row-group {
130
+ &.datatable-row-left,
131
+ &.datatable-row-right,
132
+ &.datatable-row-center {
133
+ background-color: $selected-color !important;
134
+ }
135
+ }
136
+
137
+ .datatable-body .datatable-body-row.active {
138
+ background-color: $selected-color;
139
+ }
140
+
141
+ .datatable-body .datatable-body-row:not(.active):not(:hover) {
142
+ .datatable-row-left,
143
+ .datatable-row-right,
144
+ .datatable-row-center {
145
+ background-color: $background-color;
146
+ }
147
+ }
148
+
149
+ .datatable-footer {
150
+ overflow: hidden;
151
+
152
+ .datatable-pager {
153
+ a {
154
+ color: $primary;
155
+ padding: 0 2px;
156
+ text-decoration: none;
157
+
158
+ &:hover {
159
+ background: $hover-color;
160
+ }
161
+ }
162
+
163
+ .pager li.pages {
164
+ margin: 0 2px;
165
+
166
+ &.active {
167
+ background: $selected-color;
168
+ }
169
+
170
+ &.disabled {
171
+ a {
172
+ color: $border-color;
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+
181
+ body {
182
+ @include sto-datatable-theme($sto-theme, $variables);
183
+ }
184
+
185
+ @mixin sto-datatable-typography($config) {
186
+ .sto-mdl-table {
187
+ font: {
188
+ family: mat.font-family($config, body-1);
189
+ size: mat.font-size($config, body-1);
190
+ weight: mat.font-weight($config, body-1);
191
+ }
192
+ font-feature-settings: 'tnum', 'lnum';
193
+ }
194
+
195
+ .ngx-datatable.sto-datatable {
196
+ .datatable-body,
197
+ .datatable-header {
198
+ font: {
199
+ family: mat.font-family($config, body-1);
200
+ size: mat.font-size($config, body-1);
201
+ weight: mat.font-weight($config, body-1);
202
+ }
203
+ }
204
+
205
+ .datatable-footer {
206
+ font: {
207
+ family: mat.font-family($config, body-1);
208
+ size: mat.font-size($config, body-1);
209
+ weight: mat.font-weight($config, body-1);
210
+ }
211
+
212
+ .pager li a[role='button'] {
213
+ line-height: mat.font-size($config, body-1);
214
+ }
215
+ }
216
+
217
+ font-feature-settings: 'tnum', 'lnum';
218
+ }
219
+ }
220
+
221
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
222
+ @include sto-datatable-typography($sto-typography);
223
+ }
224
+
225
+ .mat-typography.sto-sm-typography {
226
+ @include sto-datatable-typography($sto-sm-typography);
227
+ }
228
+
229
+ .mat-typography.sto-l-typography {
230
+ @include sto-datatable-typography($sto-l-typography);
231
+ }
@@ -1,51 +1,47 @@
1
- @import "theme";
2
- @import "typography";
3
-
4
- @mixin sto-daterange-theme($theme, $variables) {
5
- $primary: map_get($variables, primary);
6
- $color: map_get($variables, color);
7
- $warn: map_get($variables, warn);
8
- $border-color: map_get($variables, border-color);
9
- $background-color: map_get($variables, app-bar);
10
- $hover-bg-color: map_get($variables, hover-bg);
11
- $selected-color: map_get($variables, selected-bg);
12
- $warning-color: map_get($variables, warning);
13
- $icon-color: map_get($variables, icon);
14
- $hover-color: map_get($variables, hover-color);
15
- $warn-contrast: map_get($variables, warn-contrast);
16
- $warn: map_get($variables, warn);
17
-
18
- .sto-daterange {
19
- background-color: $background-color;
20
-
21
- .sto-daterange__error--container {
22
- background-color: $warn;
23
-
24
- .mat-icon {
25
- color: $warn-contrast;
26
- }
27
- }
28
-
29
-
30
- }
31
- .sto-daterange-wrapper {
32
- input.date-input-element {
33
- color: $color;
34
- }
35
-
36
- .sto-form__field.mat-focused .mat-form-field-suffix .mat-icon {
37
- color: $icon-color;
38
- }
39
- }
40
-
41
- .sto-date.sto-date__popout {
42
- background: $background-color;
43
- }
44
-
45
-
46
- }
47
-
48
- // Include theme styles for your custom components.
49
- body {
50
- @include sto-daterange-theme($sto-theme, $variables);
51
- }
1
+ @import 'theme';
2
+ @import 'typography';
3
+
4
+ @mixin sto-daterange-theme($theme, $variables) {
5
+ $primary: map_get($variables, primary);
6
+ $color: map_get($variables, color);
7
+ $warn: map_get($variables, warn);
8
+ $border-color: map_get($variables, border-color);
9
+ $background-color: map_get($variables, app-bar);
10
+ $hover-bg-color: map_get($variables, hover-bg);
11
+ $selected-color: map_get($variables, selected-bg);
12
+ $warning-color: map_get($variables, warning);
13
+ $icon-color: map_get($variables, icon);
14
+ $hover-color: map_get($variables, hover-color);
15
+ $warn-contrast: map_get($variables, warn-contrast);
16
+ $warn: map_get($variables, warn);
17
+
18
+ .sto-daterange {
19
+ background-color: $background-color;
20
+
21
+ .sto-daterange__error--container {
22
+ background-color: $warn;
23
+
24
+ .mat-icon {
25
+ color: $warn-contrast;
26
+ }
27
+ }
28
+ }
29
+ .sto-daterange-wrapper {
30
+ input.date-input-element {
31
+ color: $color;
32
+ }
33
+
34
+ .sto-form__field.mat-focused .mat-mdc-form-field-icon-suffix .mat-icon {
35
+ color: $icon-color;
36
+ }
37
+ }
38
+
39
+ .sto-date.sto-date__popout {
40
+ background: $background-color;
41
+ }
42
+ }
43
+
44
+ // Include theme styles for your custom components.
45
+ body {
46
+ @include sto-daterange-theme($sto-theme, $variables);
47
+ }
@@ -1,25 +1,25 @@
1
- @import "theme";
2
- @import "typography";
3
-
4
- @mixin dialog-theme($theme, $variables) {
5
- $border-color: map_get($variables, border-color);
6
- $background-color: map_get($variables, app-bar);
7
- $divider: map-get($variables, border-color);
8
-
9
- .sto-dialog .mat-dialog-container {
10
-
11
- .mat-dialog-content {
12
- border-top: solid 1px $divider;
13
-
14
- &.scroll-lines {
15
- border-bottom: solid 1px $divider;
16
- }
17
- }
18
- }
19
- }
20
-
21
- // Include theme styles for your custom components.
22
- body {
23
- @include dialog-theme($sto-theme, $variables);
24
- }
25
-
1
+ @import "theme";
2
+ @import "typography";
3
+
4
+ @mixin dialog-theme($theme, $variables) {
5
+ $border-color: map_get($variables, border-color);
6
+ $background-color: map_get($variables, app-bar);
7
+ $divider: map-get($variables, border-color);
8
+
9
+ .sto-dialog .mat-dialog-container {
10
+
11
+ .mat-dialog-content {
12
+ border-top: solid 1px $divider;
13
+
14
+ &.scroll-lines {
15
+ border-bottom: solid 1px $divider;
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ // Include theme styles for your custom components.
22
+ body {
23
+ @include dialog-theme($sto-theme, $variables);
24
+ }
25
+