@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
package/style/grid.scss CHANGED
@@ -1,20 +1,20 @@
1
- @mixin grid($col-count: 12, $child-selector: 'grid-column', $margin: 0 24px 40px) {
2
- display: grid;
3
- grid-column-gap: 16px;
4
- grid-row-gap: 16px;
5
- margin: $margin;
6
- grid-template-columns: repeat($col-count, 1fr);
7
- .#{$child-selector} {
8
- display: block;
9
- grid-column: span 1;
10
- }
11
- @for $i from 1 through 12 {
12
- .#{$child-selector}-#{$i} {
13
- @if $i > $col-count {
14
- grid-column: span $col-count;
15
- } @else {
16
- grid-column: span $i;
17
- }
18
- }
19
- }
20
- }
1
+ @mixin grid($col-count: 12, $child-selector: 'grid-column', $margin: 0 24px 40px) {
2
+ display: grid;
3
+ grid-column-gap: 16px;
4
+ grid-row-gap: 16px;
5
+ margin: $margin;
6
+ grid-template-columns: repeat($col-count, 1fr);
7
+ .#{$child-selector} {
8
+ display: block;
9
+ grid-column: span 1;
10
+ }
11
+ @for $i from 1 through 12 {
12
+ .#{$child-selector}-#{$i} {
13
+ @if $i > $col-count {
14
+ grid-column: span $col-count;
15
+ } @else {
16
+ grid-column: span $i;
17
+ }
18
+ }
19
+ }
20
+ }
@@ -1,73 +1,73 @@
1
- @use '@angular/material' as mat;
2
- @import "./theme/typography";
3
-
4
- @mixin sto-dialog-typography($config) {
5
- .sto-dialog {
6
- .mat-dialog-title {
7
- line-height: mat.line-height($config, body-1);
8
- }
9
- }
10
- }
11
-
12
- .mat-typography {
13
- @include sto-dialog-typography($sto-typography);
14
- }
15
-
16
- .mat-typography.sto-sm-typography {
17
- @include sto-dialog-typography($sto-sm-typography);
18
- }
19
-
20
- .mat-typography.sto-l-typography {
21
- @include sto-dialog-typography($sto-l-typography);
22
- }
23
-
24
-
25
- .sto-dialog {
26
-
27
- }
28
-
29
- .sto-dialog .mat-dialog-container {
30
- padding: 0;
31
-
32
- .mat-dialog-content {
33
- margin: 0;
34
- padding: 12px 24px 16px;
35
-
36
- .sto-selection-list {
37
- .sto-selection-list__item {
38
- .mat-list-item-content.mat-list-item-content-reverse {
39
- padding: 0 24px;
40
- }
41
- }
42
-
43
- margin: -24px;
44
- }
45
-
46
- p {
47
- white-space: pre-line;
48
- }
49
-
50
- }
51
-
52
- .mat-dialog-title {
53
- padding: 24px 24px 20px;
54
- margin-bottom: -4px;
55
- }
56
-
57
- .mat-dialog-actions {
58
- padding: 8px;
59
- display: flex;
60
- justify-content: flex-end;
61
- margin: 0;
62
- }
63
-
64
- .mat-dialog-actions:last-child {
65
- margin-bottom: 0;
66
- }
67
- }
68
-
69
- sto-confirm {
70
- .mat-dialog-content {
71
- padding: 24px;
72
- }
73
- }
1
+ @use '@angular/material' as mat;
2
+ @import "./theme/typography";
3
+
4
+ @mixin sto-dialog-typography($config) {
5
+ .sto-dialog {
6
+ .mat-dialog-title {
7
+ line-height: mat.line-height($config, body-1);
8
+ }
9
+ }
10
+ }
11
+
12
+ .mat-typography {
13
+ @include sto-dialog-typography($sto-typography);
14
+ }
15
+
16
+ .mat-typography.sto-sm-typography {
17
+ @include sto-dialog-typography($sto-sm-typography);
18
+ }
19
+
20
+ .mat-typography.sto-l-typography {
21
+ @include sto-dialog-typography($sto-l-typography);
22
+ }
23
+
24
+
25
+ .sto-dialog {
26
+
27
+ }
28
+
29
+ .sto-dialog .mat-dialog-container {
30
+ padding: 0;
31
+
32
+ .mat-dialog-content {
33
+ margin: 0;
34
+ padding: 12px 24px 16px;
35
+
36
+ .sto-selection-list {
37
+ .sto-selection-list__item {
38
+ .mat-list-item-content.mat-list-item-content-reverse {
39
+ padding: 0 24px;
40
+ }
41
+ }
42
+
43
+ margin: -24px;
44
+ }
45
+
46
+ p {
47
+ white-space: pre-line;
48
+ }
49
+
50
+ }
51
+
52
+ .mat-dialog-title {
53
+ padding: 24px 24px 20px;
54
+ margin-bottom: -4px;
55
+ }
56
+
57
+ .mat-dialog-actions {
58
+ padding: 8px;
59
+ display: flex;
60
+ justify-content: flex-end;
61
+ margin: 0;
62
+ }
63
+
64
+ .mat-dialog-actions:last-child {
65
+ margin-bottom: 0;
66
+ }
67
+ }
68
+
69
+ sto-confirm {
70
+ .mat-dialog-content {
71
+ padding: 24px;
72
+ }
73
+ }
@@ -1,67 +1,67 @@
1
- /**
2
- Flexible, dynamic grid
3
- automatically resizes between 1 and 4 columns, depending on available space
4
- Use with StoGridDirective
5
- */
6
- .sto-f-grid {
7
- display: flex;
8
- flex-wrap: wrap;
9
- margin-right: -8px;
10
- margin-left: -8px;
11
-
12
- &__col {
13
- min-height: 24px;
14
- margin-left: 8px;
15
- margin-right: 8px;
16
- overflow: hidden;
17
-
18
- &--spacer {
19
- visibility: hidden;
20
- }
21
- }
22
-
23
- &--1 {
24
- .sto-f-grid__col--spacer {
25
- display: none;
26
- }
27
-
28
- .sto-f-grid__col, .sto-f-grid__col--2 {
29
- flex: 1 1 calc(100% - 16px);
30
- }
31
- }
32
-
33
- &--2 {
34
- .sto-f-grid__col {
35
- flex: 1 1 calc(50% - 16px);
36
- }
37
-
38
- .sto-f-grid__col--2 {
39
- flex: 1 1 100%;
40
-
41
- &.sto-f-grid__col--spacer {
42
- display: none;
43
-
44
- }
45
- }
46
- }
47
-
48
- &--4 {
49
- .sto-f-grid__col {
50
- flex: 1 1 calc(25% - 16px);
51
- }
52
-
53
- .sto-f-grid__col--2 {
54
- flex: 1 1 calc(50% - 16px);
55
- }
56
- }
57
-
58
- &--6 {
59
- .sto-f-grid__col {
60
- flex: 1 1 calc(16.667% - 16px);
61
- }
62
-
63
- .sto-f-grid__col--2 {
64
- flex: 1 1 calc(16.667% - 16px);
65
- }
66
- }
67
- }
1
+ /**
2
+ Flexible, dynamic grid
3
+ automatically resizes between 1 and 4 columns, depending on available space
4
+ Use with StoGridDirective
5
+ */
6
+ .sto-f-grid {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ margin-right: -8px;
10
+ margin-left: -8px;
11
+
12
+ &__col {
13
+ min-height: 24px;
14
+ margin-left: 8px;
15
+ margin-right: 8px;
16
+ overflow: hidden;
17
+
18
+ &--spacer {
19
+ visibility: hidden;
20
+ }
21
+ }
22
+
23
+ &--1 {
24
+ .sto-f-grid__col--spacer {
25
+ display: none;
26
+ }
27
+
28
+ .sto-f-grid__col, .sto-f-grid__col--2 {
29
+ flex: 1 1 calc(100% - 16px);
30
+ }
31
+ }
32
+
33
+ &--2 {
34
+ .sto-f-grid__col {
35
+ flex: 1 1 calc(50% - 16px);
36
+ }
37
+
38
+ .sto-f-grid__col--2 {
39
+ flex: 1 1 100%;
40
+
41
+ &.sto-f-grid__col--spacer {
42
+ display: none;
43
+
44
+ }
45
+ }
46
+ }
47
+
48
+ &--4 {
49
+ .sto-f-grid__col {
50
+ flex: 1 1 calc(25% - 16px);
51
+ }
52
+
53
+ .sto-f-grid__col--2 {
54
+ flex: 1 1 calc(50% - 16px);
55
+ }
56
+ }
57
+
58
+ &--6 {
59
+ .sto-f-grid__col {
60
+ flex: 1 1 calc(16.667% - 16px);
61
+ }
62
+
63
+ .sto-f-grid__col--2 {
64
+ flex: 1 1 calc(16.667% - 16px);
65
+ }
66
+ }
67
+ }
@@ -1,20 +1,20 @@
1
- @import "theme";
2
- @import "typography";
3
-
4
- @mixin sto-action-footer-theme($theme, $variables) {
5
- $border-color: map_get($variables, border-color);
6
- $background-color: map_get($variables, background);
7
-
8
- .sto-action-footer {
9
- background-color: $background-color;
10
- border-top: 1px solid $border-color;
11
- }
12
-
13
- }
14
-
15
- // Include theme styles for your custom components.
16
- body {
17
- @include sto-action-footer-theme($sto-theme, $variables);
18
- }
19
-
20
-
1
+ @import "theme";
2
+ @import "typography";
3
+
4
+ @mixin sto-action-footer-theme($theme, $variables) {
5
+ $border-color: map_get($variables, border-color);
6
+ $background-color: map_get($variables, background);
7
+
8
+ .sto-action-footer {
9
+ background-color: $background-color;
10
+ border-top: 1px solid $border-color;
11
+ }
12
+
13
+ }
14
+
15
+ // Include theme styles for your custom components.
16
+ body {
17
+ @include sto-action-footer-theme($sto-theme, $variables);
18
+ }
19
+
20
+
@@ -1,122 +1,121 @@
1
- @use '@angular/material' as mat;
2
- @import "theme";
3
- @import "typography";
4
-
5
- @mixin sto-appheader-theme($theme, $variables) {
6
- $primary: map_get($variables, primary);
7
- $accent: mat.get-color-from-palette(map_get($theme, accent), resting);
8
- $hover-accent: mat.get-color-from-palette(map_get($theme, accent), hover);
9
- $color: map_get($variables, color);
10
- $border-color: map_get($variables, border-color);
11
- $background-color: map_get($variables, card-bg);
12
- $hover-bg-color: map_get($variables, hover-bg);
13
- $selected-color: map_get($variables, selected-bg);
14
- $indicators: map-get($theme, indicators);
15
- $warning-palette: map_get($indicators, warning);
16
- $warning-color: mat.get-color-from-palette($warning-palette, resting);
17
- $icon-color: map_get($variables, icon);
18
- $hover-color: map_get($variables, hover-color);
19
-
20
- .sto-header {
21
- background-color: $background-color !important;
22
- //color: $color !important;
23
- border-bottom-color: $border-color;
24
-
25
- &--test-environment {
26
- border: 4px solid $warning-color;
27
- }
28
-
29
- &__environment--label {
30
- background: $warning-color;
31
- }
32
-
33
- button {
34
- color: $primary;
35
-
36
- &:focus {
37
- background-color: $selected-color;
38
- }
39
-
40
- &:hover {
41
- background-color: $hover-bg-color;
42
- }
43
- }
44
-
45
- &__actions--small {
46
- background: $background-color;
47
- }
48
- }
49
-
50
- .sto-breadcrumb {
51
- &__home {
52
- color: $primary;
53
-
54
- &:hover {
55
- color: $primary;
56
- }
57
- }
58
-
59
- &__list__item {
60
- color: $primary;
61
-
62
- &:hover {
63
- color: $primary;
64
- }
65
- }
66
-
67
- .separator {
68
- color: $primary;
69
- }
70
- }
71
-
72
- }
73
-
74
- body {
75
- @include sto-appheader-theme($sto-theme, $variables);
76
- }
77
-
78
- @mixin app-header-typography($config, $height) {
79
- .app-wrapper {
80
- margin: $height auto 0;
81
- }
82
- .sto-header {
83
- height: $height;
84
- font-size: mat.font-size($config, subheading-1);
85
- line-height: mat.line-height($config, subheading-1);
86
-
87
- .mat-icon {
88
- font-size: mat.font-size($config, title);
89
- line-height: mat.font-size($config, title);
90
- width: mat.font-size($config, title);
91
- height: mat.font-size($config, title);
92
- }
93
-
94
- &__environment {
95
- height: $height;
96
- top: -4px;
97
- }
98
- }
99
- .sto-breadcrumb {
100
- font-size: mat.font-size($config, subheading-1);
101
- line-height: mat.line-height($config, subheading-1);
102
-
103
- .mat-icon {
104
- font-size: mat.font-size($config, title);
105
- line-height: mat.font-size($config, title);
106
- width: mat.font-size($config, title);
107
- height: mat.font-size($config, title);
108
- }
109
- }
110
- }
111
-
112
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
113
- @include app-header-typography($sto-typography, 64px);
114
- }
115
-
116
- .mat-typography.sto-sm-typography {
117
- @include app-header-typography($sto-sm-typography, 48px);
118
- }
119
-
120
- .mat-typography.sto-l-typography {
121
- @include app-header-typography($sto-l-typography, 64px);
122
- }
1
+ @use '@angular/material' as mat;
2
+ @import 'theme';
3
+ @import 'typography';
4
+
5
+ @mixin sto-appheader-theme($theme, $variables) {
6
+ $primary: map_get($variables, primary);
7
+ $accent: mat.get-color-from-palette(map_get($theme, accent), resting);
8
+ $hover-accent: mat.get-color-from-palette(map_get($theme, accent), hover);
9
+ $color: map_get($variables, color);
10
+ $border-color: map_get($variables, border-color);
11
+ $background-color: map_get($variables, card-bg);
12
+ $hover-bg-color: map_get($variables, hover-bg);
13
+ $selected-color: map_get($variables, selected-bg);
14
+ $indicators: map-get($theme, indicators);
15
+ $warning-palette: map_get($indicators, warning);
16
+ $warning-color: mat.get-color-from-palette($warning-palette, resting);
17
+ $icon-color: map_get($variables, icon);
18
+ $hover-color: map_get($variables, hover-color);
19
+
20
+ .sto-header {
21
+ background-color: $background-color !important;
22
+ //color: $color !important;
23
+ border-bottom-color: $border-color;
24
+
25
+ &--test-environment {
26
+ border: 4px solid $warning-color;
27
+ }
28
+
29
+ &__environment--label {
30
+ background: $warning-color;
31
+ }
32
+
33
+ button {
34
+ color: $primary;
35
+
36
+ &:focus {
37
+ background-color: $selected-color;
38
+ }
39
+
40
+ &:hover {
41
+ background-color: $hover-bg-color;
42
+ }
43
+ }
44
+
45
+ &__actions--small {
46
+ background: $background-color;
47
+ }
48
+ }
49
+
50
+ .sto-breadcrumb {
51
+ &__home {
52
+ color: $primary;
53
+
54
+ &:hover {
55
+ color: $primary;
56
+ }
57
+ }
58
+
59
+ &__list__item {
60
+ color: $primary;
61
+
62
+ &:hover {
63
+ color: $primary;
64
+ }
65
+ }
66
+
67
+ .separator {
68
+ color: $primary;
69
+ }
70
+ }
71
+ }
72
+
73
+ body {
74
+ @include sto-appheader-theme($sto-theme, $variables);
75
+ }
76
+
77
+ @mixin app-header-typography($config, $height) {
78
+ .app-wrapper {
79
+ margin: $height auto 0;
80
+ }
81
+ .sto-header {
82
+ height: $height;
83
+ font-size: mat.font-size($config, subtitle-1);
84
+ line-height: mat.line-height($config, subtitle-1);
85
+
86
+ .mat-icon {
87
+ font-size: mat.font-size($config, headline-2);
88
+ line-height: mat.font-size($config, headline-2);
89
+ width: mat.font-size($config, headline-2);
90
+ height: mat.font-size($config, headline-2);
91
+ }
92
+
93
+ &__environment {
94
+ height: $height;
95
+ top: -4px;
96
+ }
97
+ }
98
+ .sto-breadcrumb {
99
+ font-size: mat.font-size($config, subtitle-1);
100
+ line-height: mat.line-height($config, subtitle-1);
101
+
102
+ .mat-icon {
103
+ font-size: mat.font-size($config, headline-2);
104
+ line-height: mat.font-size($config, headline-2);
105
+ width: mat.font-size($config, headline-2);
106
+ height: mat.font-size($config, headline-2);
107
+ }
108
+ }
109
+ }
110
+
111
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
112
+ @include app-header-typography($sto-typography, 64px);
113
+ }
114
+
115
+ .mat-typography.sto-sm-typography {
116
+ @include app-header-typography($sto-sm-typography, 48px);
117
+ }
118
+
119
+ .mat-typography.sto-l-typography {
120
+ @include app-header-typography($sto-l-typography, 64px);
121
+ }
@@ -1,26 +1,28 @@
1
- @use '@angular/material' as mat;
2
- @import "typography";
3
-
4
- @mixin sto-card-typography($config) {
5
- .mat-card.sto-card {
6
- .mat-card-title, .mat-card-title.sto-card__title {
7
- line-height: mat.line-height($config, headline);
8
- }
9
-
10
- .mat-card-subtitle, .mat-card-subtitle.sto-card__subtitle {
11
- margin-bottom: 4px;
12
- }
13
- }
14
- }
15
-
16
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
17
- @include sto-card-typography($sto-typography);
18
- }
19
-
20
- .mat-typography.sto-sm-typography {
21
- @include sto-card-typography($sto-sm-typography);
22
- }
23
-
24
- .mat-typography.sto-l-typography {
25
- @include sto-card-typography($sto-l-typography);
26
- }
1
+ @use '@angular/material' as mat;
2
+ @import 'typography';
3
+
4
+ @mixin sto-card-typography($config) {
5
+ .mat-card.sto-card {
6
+ .mat-card-title,
7
+ .mat-card-title.sto-card__title {
8
+ line-height: mat.line-height($config, headline-1);
9
+ }
10
+
11
+ .mat-card-subtitle,
12
+ .mat-card-subtitle.sto-card__subtitle {
13
+ margin-bottom: 4px;
14
+ }
15
+ }
16
+ }
17
+
18
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) {
19
+ @include sto-card-typography($sto-typography);
20
+ }
21
+
22
+ .mat-typography.sto-sm-typography {
23
+ @include sto-card-typography($sto-sm-typography);
24
+ }
25
+
26
+ .mat-typography.sto-l-typography {
27
+ @include sto-card-typography($sto-l-typography);
28
+ }