@ngx-stoui/core 15.0.1 → 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 (66) 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 +3289 -3554
  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/{esm2020 → esm2022}/ngx-stoui-core.mjs +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-stoui/core",
3
- "version": "15.0.1",
3
+ "version": "16.0.0",
4
4
  "author": {
5
5
  "name": "Ronnie Laugen",
6
6
  "email": "rhenri@equinor.com"
@@ -21,31 +21,31 @@
21
21
  "equinor"
22
22
  ],
23
23
  "peerDependencies": {
24
- "@angular/common": "^15.0.0",
25
- "@angular/core": "^15.0.0",
26
- "date-fns": "^2.0.0"
24
+ "@angular/common": "^16.0.0",
25
+ "@angular/core": "^16.0.0",
26
+ "date-fns": "^2.30.0"
27
27
  },
28
28
  "dependencies": {
29
29
  "tslib": "^2.1.0"
30
30
  },
31
- "module": "fesm2015/ngx-stoui-core.mjs",
32
- "es2020": "fesm2020/ngx-stoui-core.mjs",
33
- "esm2020": "esm2020/ngx-stoui-core.mjs",
34
- "fesm2020": "fesm2020/ngx-stoui-core.mjs",
35
- "fesm2015": "fesm2015/ngx-stoui-core.mjs",
36
- "typings": "index.d.ts",
37
31
  "exports": {
38
- "./package.json": {
39
- "default": "./package.json"
40
- },
41
32
  ".": {
33
+ "default": "./fesm2022/ngx-stoui-core.mjs",
42
34
  "types": "./index.d.ts",
43
- "esm2020": "./esm2020/ngx-stoui-core.mjs",
44
- "es2020": "./fesm2020/ngx-stoui-core.mjs",
45
- "es2015": "./fesm2015/ngx-stoui-core.mjs",
46
- "node": "./fesm2015/ngx-stoui-core.mjs",
47
- "default": "./fesm2020/ngx-stoui-core.mjs"
35
+ "esm2022": "./esm2022/ngx-stoui-core.mjs",
36
+ "esm": "./esm2022/ngx-stoui-core.mjs"
37
+ },
38
+ "./ngx-stoui.css": {
39
+ "default": "./ngx-stoui.css"
40
+ },
41
+ "./ngx-datatable.css": {
42
+ "default": "./ngx-datatable.css"
43
+ },
44
+ "./package.json": {
45
+ "default": "./package.json"
48
46
  }
49
47
  },
48
+ "module": "fesm2022/ngx-stoui-core.mjs",
49
+ "typings": "index.d.ts",
50
50
  "sideEffects": false
51
51
  }
package/style/_fonts.scss CHANGED
@@ -1,3 +1,3 @@
1
- @import url("https://cdn.eds.equinor.com/font/equinor-font.css");
2
- @import url("https://fonts.googleapis.com/css?family=Material+Icons");
3
- @import url("https://fonts.googleapis.com/css?family=Material+Icons+Outlined");
1
+ @import url("https://cdn.eds.equinor.com/font/equinor-font.css");
2
+ @import url("https://fonts.googleapis.com/css?family=Material+Icons");
3
+ @import url("https://fonts.googleapis.com/css?family=Material+Icons+Outlined");
@@ -1,144 +1,144 @@
1
- $row-height: 24px;
2
- $icon-height: 16px;
3
-
4
-
5
- .sto-compact .imo-overview, .sto-compact .sto-drawer--compact { //only in .imo-overview for now
6
-
7
- .ngx-datatable.sto-datatable, .ngx-datatable.sto-datatable.inside-card {
8
- .datatable-body {
9
-
10
- .progress-linear {
11
- height: 3px;
12
- margin: -3px 0 0 0;
13
-
14
- .container {
15
- height: 3px;
16
-
17
- .bar {
18
- height: 3px;
19
- }
20
- }
21
- }
22
-
23
- .datatable-body-row {
24
- .datatable-body-cell {
25
- padding: 2px 8px;
26
-
27
- &.date-cell {
28
- padding: 0px;
29
-
30
- small {
31
- display: none;
32
- }
33
- }
34
-
35
- .datatable-body-cell-label {
36
- .mat-icon-button {
37
- margin-left: 0;
38
- height: $row-height;
39
- width: $row-height;
40
- line-height: $row-height;
41
- }
42
- }
43
-
44
- }
45
- }
46
- }
47
-
48
- .datatable-header {
49
- .datatable-header-cell {
50
- padding: 4px 8px;
51
-
52
- .column-group-header {
53
- &-icon {
54
- max-width: 8px;
55
- margin-right: 8px;
56
- flex-grow: 1;
57
-
58
- .mat-icon {
59
- height: 12px;
60
- line-height: 12px;
61
- }
62
- }
63
-
64
- }
65
-
66
- &.sto-datatable__header-column {
67
- &--withunit {
68
- .sto-datatable__header-column__unit {
69
- margin-right: -3px; //Adjusment for weird whitepace
70
- font-size: 10px;
71
- position: static;
72
-
73
- &::before {
74
- content: "("
75
- }
76
-
77
- &::after {
78
- content: ")"
79
- }
80
- }
81
-
82
- }
83
- }
84
- }
85
-
86
- }
87
-
88
- .mat-icon {
89
- height: $icon-height;
90
- width: $icon-height;
91
- font-size: $icon-height;
92
- line-height: $icon-height;
93
-
94
- }
95
- }
96
-
97
-
98
- sto-datatable-fixed-row-wrapper {
99
- margin-top: 8px;
100
- }
101
-
102
-
103
- .date-status-cell {
104
- .month-label {
105
- line-height: 20px;
106
- position: absolute;
107
- left: 2px;
108
- }
109
- }
110
-
111
- }
112
-
113
-
114
- .sto-compact .sto-datatable .datatable-body .datatable-body-cell-label .date-status-cell {
115
- line-height: 24px;
116
- }
117
-
118
- .sto-compact .sto-datatable {
119
- .datatable-footer .datatable-footer-inner {
120
- font-size: 11px;
121
- line-height: 13px;
122
- }
123
- }
124
-
125
- .sto-compact .imo-overview .ngx-datatable.sto-datatable .datatable-body .datatable-body-row .datatable-body-cell.sto-datatable__column--editable .datatable-body-cell-label {
126
- .mat-form-field-prefix {
127
- height: 19px;
128
- width: 19px;
129
-
130
- button.mat-icon-button {
131
- font-size: 18px;
132
- height: 18px;
133
- width: 18px;
134
- line-height: 18px;
135
- }
136
-
137
- .mat-icon {
138
- font-size: 16px;
139
- height: 16px;
140
- width: 16px;
141
- line-height: 16px;
142
- }
143
- }
144
- }
1
+ $row-height: 24px;
2
+ $icon-height: 16px;
3
+
4
+
5
+ .sto-compact .imo-overview, .sto-compact .sto-drawer--compact { //only in .imo-overview for now
6
+
7
+ .ngx-datatable.sto-datatable, .ngx-datatable.sto-datatable.inside-card {
8
+ .datatable-body {
9
+
10
+ .progress-linear {
11
+ height: 3px;
12
+ margin: -3px 0 0 0;
13
+
14
+ .container {
15
+ height: 3px;
16
+
17
+ .bar {
18
+ height: 3px;
19
+ }
20
+ }
21
+ }
22
+
23
+ .datatable-body-row {
24
+ .datatable-body-cell {
25
+ padding: 2px 8px;
26
+
27
+ &.date-cell {
28
+ padding: 0px;
29
+
30
+ small {
31
+ display: none;
32
+ }
33
+ }
34
+
35
+ .datatable-body-cell-label {
36
+ .mat-icon-button {
37
+ margin-left: 0;
38
+ height: $row-height;
39
+ width: $row-height;
40
+ line-height: $row-height;
41
+ }
42
+ }
43
+
44
+ }
45
+ }
46
+ }
47
+
48
+ .datatable-header {
49
+ .datatable-header-cell {
50
+ padding: 4px 8px;
51
+
52
+ .column-group-header {
53
+ &-icon {
54
+ max-width: 8px;
55
+ margin-right: 8px;
56
+ flex-grow: 1;
57
+
58
+ .mat-icon {
59
+ height: 12px;
60
+ line-height: 12px;
61
+ }
62
+ }
63
+
64
+ }
65
+
66
+ &.sto-datatable__header-column {
67
+ &--withunit {
68
+ .sto-datatable__header-column__unit {
69
+ margin-right: -3px; //Adjusment for weird whitepace
70
+ font-size: 10px;
71
+ position: static;
72
+
73
+ &::before {
74
+ content: "("
75
+ }
76
+
77
+ &::after {
78
+ content: ")"
79
+ }
80
+ }
81
+
82
+ }
83
+ }
84
+ }
85
+
86
+ }
87
+
88
+ .mat-icon {
89
+ height: $icon-height;
90
+ width: $icon-height;
91
+ font-size: $icon-height;
92
+ line-height: $icon-height;
93
+
94
+ }
95
+ }
96
+
97
+
98
+ sto-datatable-fixed-row-wrapper {
99
+ margin-top: 8px;
100
+ }
101
+
102
+
103
+ .date-status-cell {
104
+ .month-label {
105
+ line-height: 20px;
106
+ position: absolute;
107
+ left: 2px;
108
+ }
109
+ }
110
+
111
+ }
112
+
113
+
114
+ .sto-compact .sto-datatable .datatable-body .datatable-body-cell-label .date-status-cell {
115
+ line-height: 24px;
116
+ }
117
+
118
+ .sto-compact .sto-datatable {
119
+ .datatable-footer .datatable-footer-inner {
120
+ font-size: 11px;
121
+ line-height: 13px;
122
+ }
123
+ }
124
+
125
+ .sto-compact .imo-overview .ngx-datatable.sto-datatable .datatable-body .datatable-body-row .datatable-body-cell.sto-datatable__column--editable .datatable-body-cell-label {
126
+ .mat-form-field-prefix {
127
+ height: 19px;
128
+ width: 19px;
129
+
130
+ button.mat-icon-button {
131
+ font-size: 18px;
132
+ height: 18px;
133
+ width: 18px;
134
+ line-height: 18px;
135
+ }
136
+
137
+ .mat-icon {
138
+ font-size: 16px;
139
+ height: 16px;
140
+ width: 16px;
141
+ line-height: 16px;
142
+ }
143
+ }
144
+ }
@@ -1,95 +1,94 @@
1
- .sto-datatable {
2
- .sto-form__field {
3
-
4
- &--readonly, &--disabled {
5
- .mat-form-field-flex {
6
- border: 0;
7
- }
8
- }
9
-
10
- width: 100%;
11
-
12
- input[type="number"] {
13
- text-align: right;
14
- }
15
-
16
- .mat-form-field-infix {
17
- border: 0 !important;
18
- margin: 0 !important;
19
- padding: 1px 0 0 0 !important;
20
- }
21
-
22
- .mat-form-field-flex {
23
- height: 31px;
24
- padding: 4px 6px;
25
- }
26
-
27
- .mat-select {
28
- .mat-select-arrow {
29
- margin-top: -5px;
30
- }
31
- }
32
-
33
- }
34
-
35
- &__column {
36
- &--editable {
37
- padding: 2px 0 !important;
38
-
39
- .datatable-body-cell-label .mat-select {
40
- height: 14px;
41
- }
42
-
43
- .datatable-body-cell-label .mat-icon-button {
44
- margin: 0;
45
- height: 16px;
46
- width: 16px;
47
-
48
- .mat-icon {
49
- height: 1.125em;
50
- width: 16px;
51
- }
52
- }
53
-
54
- }
55
- }
56
-
57
- .mat-form-field-placeholder, .mat-form-field-label {
58
- top: 0;
59
- }
60
-
61
- .mat-form-field-label-wrapper {
62
- top: 0;
63
- padding: 0;
64
- }
65
- }
66
-
67
- .sto-compact {
68
- .sto-datatable {
69
- .sto-form__field {
70
- .mat-form-field-flex {
71
- height: 19px;
72
- padding: 0 6px;
73
- }
74
-
75
- .mat-form-field-suffix {
76
- height: 22px;
77
- }
78
-
79
- &.mat-form-field-type-mat-input {
80
- .mat-form-field-underline {
81
- bottom: 18px;
82
-
83
- .mat-form-field-ripple {
84
- height: 2px;
85
- }
86
- }
87
- }
88
- }
89
-
90
- .datatable-body .datatable-body-cell-label {
91
- line-height: 19px;
92
- height: 100%;
93
- }
94
- }
95
- }
1
+ .sto-datatable {
2
+ .sto-form__field {
3
+ &--readonly,
4
+ &--disabled {
5
+ .mat-mdc-form-field-flex {
6
+ border: 0;
7
+ }
8
+ }
9
+
10
+ width: 100%;
11
+
12
+ input[type='number'] {
13
+ text-align: right;
14
+ }
15
+
16
+ .mat-mdc-form-field-infix {
17
+ border: 0 !important;
18
+ margin: 0 !important;
19
+ padding: 1px 0 0 0 !important;
20
+ }
21
+
22
+ .mat-mdc-form-field-flex {
23
+ height: 31px;
24
+ padding: 4px 6px;
25
+ }
26
+
27
+ .mat-select {
28
+ .mat-select-arrow {
29
+ margin-top: -5px;
30
+ }
31
+ }
32
+ }
33
+
34
+ &__column {
35
+ &--editable {
36
+ padding: 2px 0 !important;
37
+
38
+ .datatable-body-cell-label .mat-select {
39
+ height: 14px;
40
+ }
41
+
42
+ .datatable-body-cell-label .mat-icon-button {
43
+ margin: 0;
44
+ height: 16px;
45
+ width: 16px;
46
+
47
+ .mat-icon {
48
+ height: 1.125em;
49
+ width: 16px;
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ .mat-form-field-placeholder,
56
+ .mat-mdc-floating-label {
57
+ top: 0;
58
+ }
59
+
60
+ .mat-mdc-floating-label-wrapper {
61
+ top: 0;
62
+ padding: 0;
63
+ }
64
+ }
65
+
66
+ .sto-compact {
67
+ .sto-datatable {
68
+ .sto-form__field {
69
+ .mat-mdc-form-field-flex {
70
+ height: 19px;
71
+ padding: 0 6px;
72
+ }
73
+
74
+ .mat-mdc-form-field-icon-suffix {
75
+ height: 22px;
76
+ }
77
+
78
+ &.mat-form-field-type-mat-input {
79
+ .mat-form-field-underline {
80
+ bottom: 18px;
81
+
82
+ .mat-form-field-ripple {
83
+ height: 2px;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ .datatable-body .datatable-body-cell-label {
90
+ line-height: 19px;
91
+ height: 100%;
92
+ }
93
+ }
94
+ }
@@ -1,10 +1,10 @@
1
- //colors: datatable
2
-
3
- $datatable-font-size: $font-size;
4
- $datatable-header-vertical-padding: $space-2x;
5
- $datatable-header-horizontal-padding: $space-2x;
6
- $datatable-header-font-size: 11px;
7
- $datatable-vertical-padding: $space-2x;
8
- $datatable-horizontal-padding: $space-2x;
9
-
10
- $content-height: 20px;
1
+ //colors: datatable
2
+
3
+ $datatable-font-size: $font-size;
4
+ $datatable-header-vertical-padding: $space-2x;
5
+ $datatable-header-horizontal-padding: $space-2x;
6
+ $datatable-header-font-size: 11px;
7
+ $datatable-vertical-padding: $space-2x;
8
+ $datatable-horizontal-padding: $space-2x;
9
+
10
+ $content-height: 20px;