ontimize-web-ngx 15.0.0-beta.0 → 15.0.0-beta.2
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.
- package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +2 -2
- package/esm2020/lib/components/button-toggle/o-button-toggle-group/o-button-toggle-group.component.mjs +13 -15
- package/esm2020/lib/components/card-menu-item/o-card-menu-item.component.mjs +6 -8
- package/esm2020/lib/components/form/navigation/o-form.navigation.class.mjs +2 -2
- package/esm2020/lib/components/form-container/o-form-container.component.mjs +6 -8
- package/esm2020/lib/components/index.mjs +2 -3
- package/esm2020/lib/components/o-service-base-component.class.mjs +1 -1
- package/esm2020/lib/components/o-service-component.class.mjs +2 -1
- package/esm2020/lib/components/table/column/calculated/o-table-column-calculated.component.mjs +6 -7
- package/esm2020/lib/components/table/column/o-table-column.component.mjs +123 -129
- package/esm2020/lib/components/table/extensions/default-o-table.datasource.mjs +46 -9
- package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +3 -3
- package/esm2020/lib/components/table/extensions/header/table-insertable-row/o-table-insertable-row.component.mjs +6 -7
- package/esm2020/lib/components/table/extensions/header/table-quickfilter/o-table-quickfilter.component.mjs +4 -4
- package/esm2020/lib/components/table/o-table.component.mjs +13 -14
- package/esm2020/lib/components/user-info/index.mjs +5 -0
- package/esm2020/lib/components/user-info/o-user-info.module.mjs +3 -3
- package/esm2020/lib/interfaces/o-table-column.interface.mjs +1 -1
- package/esm2020/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.mjs +20 -22
- package/esm2020/lib/layouts/form-layout/dialog/options/o-form-layout-dialog-options.directive.mjs +7 -3
- package/esm2020/lib/layouts/form-layout/o-form-layout-manager.component.mjs +10 -4
- package/esm2020/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.mjs +8 -9
- package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +6 -8
- package/esm2020/lib/services/appearance.service.mjs +14 -2
- package/esm2020/lib/services/o-error-dialog-manager.service.mjs +8 -4
- package/esm2020/lib/services/translate/o-translate.service.mjs +3 -2
- package/esm2020/lib/util/util.mjs +5 -1
- package/fesm2015/ontimize-web-ngx.mjs +275 -230
- package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
- package/fesm2020/ontimize-web-ngx.mjs +275 -230
- package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
- package/lib/components/button-toggle/o-button-toggle-group/o-button-toggle-group.component.d.ts +1 -3
- package/lib/components/card-menu-item/o-card-menu-item.component.d.ts +2 -3
- package/lib/components/form-container/o-form-container.component.d.ts +1 -3
- package/lib/components/index.d.ts +1 -2
- package/lib/components/table/column/calculated/o-table-column-calculated.component.d.ts +2 -3
- package/lib/components/table/column/o-table-column.component.d.ts +3 -4
- package/lib/components/table/extensions/default-o-table.datasource.d.ts +1 -0
- package/lib/components/table/extensions/header/table-insertable-row/o-table-insertable-row.component.d.ts +2 -3
- package/lib/components/table/o-table.component.d.ts +5 -6
- package/lib/components/user-info/index.d.ts +4 -0
- package/lib/components/user-info/o-user-info.module.d.ts +1 -1
- package/lib/interfaces/o-table-column.interface.d.ts +2 -2
- package/lib/layouts/form-layout/dialog/o-form-layout-dialog.component.d.ts +4 -4
- package/lib/layouts/form-layout/dialog/options/o-form-layout-dialog-options.directive.d.ts +3 -1
- package/lib/layouts/form-layout/o-form-layout-manager.component.d.ts +2 -1
- package/lib/layouts/form-layout/split-pane/o-form-layout-split-pane.component.d.ts +2 -3
- package/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.d.ts +2 -3
- package/lib/services/appearance.service.d.ts +3 -0
- package/lib/services/o-error-dialog-manager.service.d.ts +2 -2
- package/lib/services/translate/o-translate.service.d.ts +1 -0
- package/lib/util/util.d.ts +1 -0
- package/package.json +1 -1
- package/theme.scss +73 -171
- package/theming/{ontimize-theme.scss → ontimize-style-v8.scss} +54 -96
- package/theming/{implatform-fashion-theme.scss → ontimize-style.scss} +128 -32
- package/theming/styles/{lite/layout-lite.scss → layout.scss} +1 -1
- package/theming/styles/{fashion/typography-fashion.scss → ontimize/typography-ontimize.scss} +14 -4
- package/theming/styles/{lite/typography-lite.scss → ontimize-v8/containers.scss} +1 -97
- package/theming/styles/ontimize-v8/o-form-field-style.scss +59 -0
- package/theming/styles/ontimize-v8/o-table-style.scss +224 -0
- package/theming/styles/ontimize-v8/variables.scss +13 -0
- package/theming/styles/paginator.scss +4 -0
- package/theming/themes/fashion.scss +46 -0
- package/theming/themes/ontimize-black-yellow.scss +3 -5
- package/theming/themes/ontimize-blue.scss +21 -0
- package/theming/themes/ontimize.scss +8 -16
- package/theming/{styles/lite/typography/ontimize-lite.scss → typography/ontimize.scss} +3 -3
- package/theming/ontimize-theme-flat.scss +0 -330
- package/theming/ontimize-theme-lite.scss +0 -40
- package/theming/styles/default/typography/ontimize.scss +0 -9
- package/theming/styles/flat/variables.scss +0 -8
- package/theming/styles/lite/form-field/o-form-field-theme.scss +0 -57
- package/theming/styles/lite/layout.scss +0 -70
- package/theming/styles/lite/paginator.scss +0 -6
- package/theming/themes/implatform-fashion-default-theme.scss +0 -148
- package/theming/themes/mat-deeppurple-amber.scss +0 -12
- package/theming/themes/mat-indigo-pink.scss +0 -11
- package/theming/themes/mat-pink-bluegrey.scss +0 -11
- package/theming/themes/mat-purple-green.scss +0 -11
- package/theming/themes/ontimize-lite.scss +0 -29
- /package/theming/{styles/default/addons → addons}/charts-on-demand.scss +0 -0
- /package/theming/{styles/default/addons → addons}/report-on-demand.scss +0 -0
- /package/theming/styles/{fashion → ontimize}/variables.scss +0 -0
- /package/theming/{styles/default/typography → typography}/o-table-typography.scss +0 -0
|
@@ -1,15 +1,110 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
2
|
@use "sass:map";
|
|
3
|
-
@use '
|
|
4
|
-
@use 'styles/
|
|
5
|
-
@use 'styles/fashion/variables.scss';
|
|
6
|
-
@use 'styles/lite/typography/ontimize-lite.scss'as ontimize-lite;
|
|
3
|
+
@use 'fonts/poppins.scss';
|
|
4
|
+
@use 'styles/ontimize/variables.scss';
|
|
7
5
|
@use '@angular/material'as mat;
|
|
8
6
|
@use '@angular/cdk';
|
|
9
|
-
@use 'styles/
|
|
7
|
+
@use 'styles/ontimize/typography-ontimize.scss';
|
|
8
|
+
@use 'typography/ontimize.scss'as ontimize;
|
|
9
|
+
@use 'ontimize-style-v8.scss'as ontimize-style;
|
|
10
|
+
|
|
11
|
+
/*Sidenav background-color*/
|
|
12
|
+
$sidenav-background-color: #f5f5f5;
|
|
13
|
+
|
|
14
|
+
// Background palette for light themes.
|
|
15
|
+
@function ontimize-light-theme-background($primary, $mat-theme) {
|
|
16
|
+
$primary-500: mat.get-color-from-palette($primary, 500);
|
|
17
|
+
$background: map.get($mat-theme, background);
|
|
18
|
+
@return map.merge($background,
|
|
19
|
+
(level-0: mix(variables.$app-background-color, $primary-500, 98%),
|
|
20
|
+
level-04: #f2f2f2,
|
|
21
|
+
level-06: #f6f6f6,
|
|
22
|
+
level-08: #fafafa,
|
|
23
|
+
level-1: white,
|
|
24
|
+
sidenav-overlay: #525252,
|
|
25
|
+
status-bar: mix($sidenav-background-color, mat.get-color-from-palette($primary), 97.2%),
|
|
26
|
+
app-bar: mix($sidenav-background-color, mat.get-color-from-palette($primary), 97.2%),
|
|
27
|
+
background: mix(variables.$app-background-color, mat.get-color-from-palette($primary), 97.2%)));
|
|
28
|
+
}
|
|
10
29
|
|
|
11
|
-
|
|
30
|
+
// Background palette for dark themes.
|
|
31
|
+
@function ontimize-dark-theme-background($primary, $mat-theme) {
|
|
32
|
+
$primary-500: mat.get-color-from-palette($primary, 500);
|
|
33
|
+
$background: map.get($mat-theme, background);
|
|
34
|
+
@return map.merge($background,
|
|
35
|
+
(level-0: mix(#171717, $primary-500, 94%),
|
|
36
|
+
level-04: mix(#1E1E1E, $primary-500, 94%),
|
|
37
|
+
level-06: mix(#2C2C2C, $primary-500, 94%),
|
|
38
|
+
level-08: mix(#333333, $primary-500, 94%),
|
|
39
|
+
level-1: mix(#383838, $primary-500, 94%),
|
|
40
|
+
sidenav-overlay: #525252,
|
|
41
|
+
status-bar: mix(#272727, $primary-500, 94%)));
|
|
42
|
+
}
|
|
12
43
|
|
|
44
|
+
// Foreground palette for light themes.
|
|
45
|
+
$ontimize-light-theme-foreground: (base: rgba(black, 0.6),
|
|
46
|
+
divider: rgba(black, 0.12),
|
|
47
|
+
dividers: rgba(black, 0.12),
|
|
48
|
+
disabled: rgba(black, 0.38),
|
|
49
|
+
disabled-button: rgba(black, 0.38),
|
|
50
|
+
disabled-text: rgba(black, 0.38),
|
|
51
|
+
elevation: black,
|
|
52
|
+
hint-text: rgba(black, 0.38),
|
|
53
|
+
secondary-text: rgba(black, 0.54),
|
|
54
|
+
title: rgba(black, 0.87),
|
|
55
|
+
icon: rgba(black, 0.6),
|
|
56
|
+
icons: rgba(black, 0.6),
|
|
57
|
+
text: rgba(black, 0.87),
|
|
58
|
+
slider-min: rgba(black, 0.38),
|
|
59
|
+
slider-off: rgba(black, 0.38),
|
|
60
|
+
slider-off-active: rgba(black, 0.38),
|
|
61
|
+
button: rgba(black, 0.74));
|
|
62
|
+
|
|
63
|
+
// Foreground palette for dark themes.
|
|
64
|
+
$ontimize-dark-theme-foreground: (base: rgba(white, 0.6),
|
|
65
|
+
divider: rgba(white, 0.12),
|
|
66
|
+
dividers: rgba(white, 0.12),
|
|
67
|
+
disabled: rgba(white, 0.38),
|
|
68
|
+
disabled-button: rgba(white, 0.38),
|
|
69
|
+
disabled-text: rgba(white, 0.38),
|
|
70
|
+
elevation: black,
|
|
71
|
+
hint-text: rgba(white, 0.38),
|
|
72
|
+
secondary-text: rgba(white, 0.54),
|
|
73
|
+
title: rgba(white, 0.87),
|
|
74
|
+
icon: rgba(white, 0.6),
|
|
75
|
+
icons: rgba(white, 0.6),
|
|
76
|
+
text: rgba(white, 0.87),
|
|
77
|
+
slider-min: rgba(white, 0.38),
|
|
78
|
+
slider-off: rgba(white, 0.38),
|
|
79
|
+
slider-off-active: rgba(white, 0.38),
|
|
80
|
+
button: rgba(white, 0.74));
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// Creates a container object for a light theme to be given to individual component theme mixins.
|
|
84
|
+
@function o-mat-light-theme($primary, $accent, $warn: mat.define-palette(mat.$red-palette)) {
|
|
85
|
+
$mat-theme: mat.define-light-theme((color:(primary: $primary, accent: $accent, warn: $warn)));
|
|
86
|
+
$color: map.get($mat-theme, color);
|
|
87
|
+
@return (color:(primary: $primary,
|
|
88
|
+
accent: $accent,
|
|
89
|
+
warn: $warn,
|
|
90
|
+
is-dark: false,
|
|
91
|
+
foreground: $ontimize-light-theme-foreground,
|
|
92
|
+
background: ontimize-light-theme-background($primary, $color)),
|
|
93
|
+
typography:ontimize.$typography)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Creates a container object for a dark theme to be given to individual component theme mixins.
|
|
97
|
+
@function o-mat-dark-theme($primary, $accent, $warn: mat.define-palette(mat.$red-palette)) {
|
|
98
|
+
$mat-theme: mat.define-dark-theme((color:(primary: $primary, accent: $accent, warn: $warn)));
|
|
99
|
+
$color: map.get($mat-theme, color);
|
|
100
|
+
@return (color:(primary: $primary,
|
|
101
|
+
accent: $accent,
|
|
102
|
+
warn: $warn,
|
|
103
|
+
is-dark: true,
|
|
104
|
+
foreground: $ontimize-dark-theme-foreground,
|
|
105
|
+
background: ontimize-dark-theme-background($primary, $color)),
|
|
106
|
+
typography:ontimize.$typography)
|
|
107
|
+
}
|
|
13
108
|
|
|
14
109
|
@mixin mat-checkbox-theme($theme-or-color-config) {
|
|
15
110
|
$theme: map.get($theme-or-color-config, color);
|
|
@@ -200,32 +295,30 @@ $typography : ontimize-lite.$typography;
|
|
|
200
295
|
background: $disabled-color;
|
|
201
296
|
}
|
|
202
297
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
298
|
}
|
|
206
299
|
|
|
207
|
-
@mixin
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
@else {
|
|
216
|
-
$typography: $current-typography;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
$theme-or-color-config: map.merge($theme-or-color-config, 'typography', $typography);
|
|
300
|
+
@mixin ontimize-theme-all-component-color($theme-or-color-config) {
|
|
301
|
+
$color: map.get($theme-or-color-config, color);
|
|
302
|
+
@include ontimize-theme-styles((color: $color,
|
|
303
|
+
typography: null,
|
|
304
|
+
density: null,
|
|
305
|
+
));
|
|
306
|
+
}
|
|
220
307
|
|
|
308
|
+
@mixin ontimize-theme-styles($theme-or-color-config) {
|
|
221
309
|
|
|
222
310
|
$typography: mat.get-typography-config($theme-or-color-config);
|
|
223
|
-
|
|
311
|
+
//Apply v8 styles
|
|
312
|
+
@include ontimize-style.ontimize-theme-styles($theme-or-color-config);
|
|
313
|
+
//Apply new styles
|
|
224
314
|
@include mat-checkbox-theme($theme-or-color-config);
|
|
225
315
|
@include mat-pseudo-checkbox-theme($theme-or-color-config);
|
|
226
|
-
|
|
227
|
-
@
|
|
228
|
-
|
|
316
|
+
|
|
317
|
+
@if($typography) {
|
|
318
|
+
@include typography-ontimize.o-table-typography-fashion($typography);
|
|
319
|
+
@include typography-ontimize.o-common-typography-fashion($typography);
|
|
320
|
+
@include typography-ontimize.o-form-theme-fashion($typography);
|
|
321
|
+
}
|
|
229
322
|
|
|
230
323
|
$theme: map.get($theme-or-color-config, color);
|
|
231
324
|
$background: map.get($theme, background);
|
|
@@ -411,7 +504,7 @@ $typography : ontimize-lite.$typography;
|
|
|
411
504
|
}
|
|
412
505
|
}
|
|
413
506
|
|
|
414
|
-
.mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label{
|
|
507
|
+
.mat-mdc-tab-group .mdc-tab.mdc-tab--active .mdc-tab__text-label {
|
|
415
508
|
color: mat.get-color-from-palette($foreground, title);
|
|
416
509
|
}
|
|
417
510
|
|
|
@@ -599,12 +692,15 @@ $typography : ontimize-lite.$typography;
|
|
|
599
692
|
}
|
|
600
693
|
}
|
|
601
694
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
695
|
+
@if($typography) {
|
|
696
|
+
|
|
697
|
+
>.o-container-title,
|
|
698
|
+
>.mat-expansion-panel-header .o-container-title {
|
|
699
|
+
span {
|
|
700
|
+
font: {
|
|
701
|
+
size: mat.font-size($typography, headline-6);
|
|
702
|
+
weight: bold;
|
|
703
|
+
}
|
|
608
704
|
}
|
|
609
705
|
}
|
|
610
706
|
}
|
|
@@ -20,7 +20,7 @@ $layout-gutter-width: ($baseline-grid * 2) !default;
|
|
|
20
20
|
$layout-gutter-width-vertical: $baseline-grid;
|
|
21
21
|
$layout-gutter-width-horizontal: 14px !default;
|
|
22
22
|
|
|
23
|
-
@mixin layout-padding-margin
|
|
23
|
+
@mixin layout-padding-margin() {
|
|
24
24
|
[layout-padding] > [flex-lt-md],
|
|
25
25
|
[layout-padding] > [flex-sm] {
|
|
26
26
|
padding: $layout-gutter-width * 0.25;
|
package/theming/styles/{fashion/typography-fashion.scss → ontimize/typography-ontimize.scss}
RENAMED
|
@@ -72,15 +72,25 @@
|
|
|
72
72
|
max-height: 64px;
|
|
73
73
|
padding: 0 24px;
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
@if($typography) {
|
|
76
|
+
font: {
|
|
77
|
+
size: mat.font-size($typography, headline-5);
|
|
78
|
+
weight: bold;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.o-form-navigation {
|
|
82
|
+
span {
|
|
83
|
+
font: {
|
|
84
|
+
size: mat.font-size($typography, subtitle-1);
|
|
85
|
+
weight: normal;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
78
89
|
}
|
|
79
90
|
|
|
80
91
|
.o-form-navigation {
|
|
81
92
|
span {
|
|
82
93
|
font: {
|
|
83
|
-
size: mat.font-size($typography, subtitle-1);
|
|
84
94
|
weight: normal;
|
|
85
95
|
}
|
|
86
96
|
}
|
|
@@ -1,98 +1,4 @@
|
|
|
1
|
-
@use '@angular/material'as mat;
|
|
2
|
-
@use 'form-field/o-form-field-theme.scss';
|
|
3
1
|
|
|
4
|
-
@mixin o-table-typography-lite($config) {
|
|
5
|
-
|
|
6
|
-
.o-table.o-table {
|
|
7
|
-
.o-table-container {
|
|
8
|
-
.mat-mdc-table {
|
|
9
|
-
.mat-mdc-header-cell {
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
|
|
12
|
-
.column-filter-icon {
|
|
13
|
-
margin-right: 4px;
|
|
14
|
-
width: 16px;
|
|
15
|
-
height: 16px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
o-table.o-table {
|
|
23
|
-
.o-table-container {
|
|
24
|
-
.o-table-toolbar .buttons .o-table-button .mat-mdc-button {
|
|
25
|
-
|
|
26
|
-
height: 30px;
|
|
27
|
-
border: none;
|
|
28
|
-
padding: 0 6px;
|
|
29
|
-
border-radius: 0;
|
|
30
|
-
|
|
31
|
-
&.disabled {
|
|
32
|
-
border: none;
|
|
33
|
-
border-radius: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:not(.disabled):hover {
|
|
37
|
-
border: none;
|
|
38
|
-
border-radius: 0;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mat-mdc-table {
|
|
43
|
-
.mat-mdc-form-field {
|
|
44
|
-
|
|
45
|
-
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
|
46
|
-
.mat-form-field-infix {
|
|
47
|
-
border-top: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.mat-mdc-row .mat-mdc-cell {
|
|
52
|
-
&:not(.o-column-image):first-of-type {
|
|
53
|
-
padding-left: 12px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:last-of-type {
|
|
57
|
-
padding-right: 12px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.mat-mdc-cell,
|
|
62
|
-
.mat-mdc-header-cell {
|
|
63
|
-
&.mat-column-select {
|
|
64
|
-
padding: 0 0 0 12px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.o-table-export-dialog.o-table-export-dialog {
|
|
72
|
-
.mat-mdc-raised-button {
|
|
73
|
-
width: 68px;
|
|
74
|
-
height: 68px;
|
|
75
|
-
min-width: 68px;
|
|
76
|
-
|
|
77
|
-
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
|
|
78
|
-
.mat-button-wrapper {
|
|
79
|
-
>div {
|
|
80
|
-
line-height: 1;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.mat-icon {
|
|
85
|
-
padding: 0 6px 6px;
|
|
86
|
-
width: 38px;
|
|
87
|
-
height: 38px;
|
|
88
|
-
font-size: 38px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@mixin o-common-typography-lite($config) {
|
|
96
2
|
$font-size-title-container: .75;
|
|
97
3
|
|
|
98
4
|
.o-column,
|
|
@@ -227,9 +133,8 @@
|
|
|
227
133
|
}
|
|
228
134
|
}
|
|
229
135
|
|
|
230
|
-
}
|
|
231
136
|
|
|
232
|
-
|
|
137
|
+
|
|
233
138
|
$mat-toolbar-height-desktop: 36px;
|
|
234
139
|
$margin-button: 6px;
|
|
235
140
|
$mat-icon-button-size: 30px;
|
|
@@ -268,4 +173,3 @@
|
|
|
268
173
|
}
|
|
269
174
|
}
|
|
270
175
|
}
|
|
271
|
-
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use '@angular/material'as mat;
|
|
2
|
+
@use 'variables.scss';
|
|
3
|
+
|
|
4
|
+
.mat-mdc-form-field {
|
|
5
|
+
|
|
6
|
+
@include mat.form-field-density(-2);
|
|
7
|
+
|
|
8
|
+
&.mat-form-field-appearance-outline .mdc-notched-outline {
|
|
9
|
+
.mdc-notched-outline__leading {
|
|
10
|
+
border-top-left-radius: variables.$border-radius;
|
|
11
|
+
border-bottom-left-radius: variables.$border-radius;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mdc-notched-outline__trailing {
|
|
15
|
+
border-top-right-radius: variables.$border-radius;
|
|
16
|
+
border-bottom-right-radius: variables.$border-radius;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.icon-field .mat-mdc-form-field-icon-suffix .icon-btn,
|
|
21
|
+
&.icon-field .mat-mdc-form-field-icon-suffix .mat-icon-button,
|
|
22
|
+
.mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,
|
|
23
|
+
.mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button {
|
|
24
|
+
svg {
|
|
25
|
+
height: 100%;
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mat-mdc-button-touch-target {
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 20px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mat-mdc-text-field-wrapper {
|
|
36
|
+
.mat-mdc-form-field-flex {
|
|
37
|
+
.mat-mdc-form-field-infix {
|
|
38
|
+
min-height: auto;
|
|
39
|
+
padding-bottom: 4px;
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
.mat-mdc-floating-label {
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.mat-mdc-select-arrow-wrapper {
|
|
47
|
+
height: auto;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex:not(.mdc-text-field--outlined) .mat-mdc-form-field-infix,
|
|
55
|
+
.mdc-text-field--no-label:not(.mdc-text-field--outlined):not(.mdc-text-field--textarea) .mat-mdc-form-field-infix {
|
|
56
|
+
padding-bottom: 4px;
|
|
57
|
+
padding-top: 18px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
@use 'variables.scss';
|
|
2
|
+
@use '@angular/material'as mat;
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
|
|
5
|
+
@mixin o-table-style($theme) {
|
|
6
|
+
|
|
7
|
+
$foreground: map.get($theme, color, foreground);
|
|
8
|
+
$accent: map.get($theme, color, accent);
|
|
9
|
+
$typography: map.get($theme, typography);
|
|
10
|
+
|
|
11
|
+
/* TABLE */
|
|
12
|
+
.ontimize-table.o-table {
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
|
|
15
|
+
.o-table-container {
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: variables.$border-radius;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
|
|
20
|
+
/*Toolbar*/
|
|
21
|
+
.o-table-toolbar {
|
|
22
|
+
margin: 0 0 4px;
|
|
23
|
+
padding-top: variables.$basic-padding-size;
|
|
24
|
+
|
|
25
|
+
.buttons .o-table-button .mat-mdc-button {
|
|
26
|
+
|
|
27
|
+
height: 30px;
|
|
28
|
+
border: none;
|
|
29
|
+
padding: 0 6px;
|
|
30
|
+
border-radius: 0;
|
|
31
|
+
|
|
32
|
+
&.disabled {
|
|
33
|
+
border: none;
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:not(.disabled):hover {
|
|
38
|
+
border: none;
|
|
39
|
+
border-radius: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.o-table-menu {
|
|
45
|
+
.o-table-option-active {
|
|
46
|
+
background: mat.get-color-from-palette($foreground, divider);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
thead tr th {
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
tbody tr.even,
|
|
55
|
+
thead tr {
|
|
56
|
+
background-color: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version.*/
|
|
60
|
+
tbody td.o-table-column-select-checkbox .mat-checkbox-inner-container .mat-checkbox-background,
|
|
61
|
+
thead tr th.o-table-column-select-checkbox .mat-checkbox-inner-container .mat-checkbox-background {
|
|
62
|
+
background-color: mat.get-color-from-palette($accent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mat-mdc-header-cell {
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
|
|
68
|
+
.column-filter-icon {
|
|
69
|
+
margin-right: 4px;
|
|
70
|
+
width: 16px;
|
|
71
|
+
height: 16px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mat-mdc-paginator {
|
|
77
|
+
background: inherit;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.mat-mdc-table {
|
|
81
|
+
.mat-mdc-header-row .mat-mdc-header-cell {
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.mat-mdc-form-field {
|
|
86
|
+
.mat-mdc-form-field-infix {
|
|
87
|
+
border-top: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mat-mdc-row .mat-mdc-cell {
|
|
92
|
+
&:not(.o-column-image):first-of-type {
|
|
93
|
+
padding-left: 12px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:last-of-type {
|
|
97
|
+
padding-right: 12px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.mat-mdc-cell,
|
|
102
|
+
.mat-mdc-header-cell {
|
|
103
|
+
&.mat-column-select {
|
|
104
|
+
padding: 0 0 0 12px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ontimize-table.o-table.o-table-fixed {
|
|
111
|
+
.o-scrollable-container {
|
|
112
|
+
height: 100%;
|
|
113
|
+
overflow-y: auto;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
.mat-mdc-menu-panel.o-table-quickfilter-menu .mat-mdc-checkbox,
|
|
120
|
+
.mat-mdc-menu-panel.o-search-input-menu .mat-mdc-checkbox {
|
|
121
|
+
padding: 2px 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.o-table-export-dialog.o-table-export-dialog {
|
|
125
|
+
.mat-mdc-raised-button {
|
|
126
|
+
width: 68px;
|
|
127
|
+
height: 68px;
|
|
128
|
+
min-width: 68px;
|
|
129
|
+
|
|
130
|
+
/* TODO(mdc-migration): The following rule targets internal classes of button that may no longer apply for the MDC version. */
|
|
131
|
+
.mat-button-wrapper {
|
|
132
|
+
>div {
|
|
133
|
+
line-height: 1;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.mat-icon {
|
|
138
|
+
padding: 0 6px 6px;
|
|
139
|
+
width: 38px;
|
|
140
|
+
height: 38px;
|
|
141
|
+
font-size: 38px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@if($typography) {
|
|
147
|
+
@include o-table-typography($typography);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin o-table-size-typography($typography, $size) {
|
|
152
|
+
|
|
153
|
+
$header-height: mat.font-size($typography, #{$size}-header-height);
|
|
154
|
+
$row-height: mat.font-size($typography, #{$size}-row-height);
|
|
155
|
+
$header-font-size: mat.font-size($typography, #{$size}-header-font-size);
|
|
156
|
+
$row-font-size: mat.font-size($typography, #{$size}-row-font-size);
|
|
157
|
+
|
|
158
|
+
.o-table .o-table-container {
|
|
159
|
+
.mat-mdc-table.#{$size} {
|
|
160
|
+
tr.mat-mdc-header-row:not(.o-table-insertable) {
|
|
161
|
+
height: $header-height;
|
|
162
|
+
|
|
163
|
+
.mat-mdc-header-cell {
|
|
164
|
+
font-size: $header-font-size;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
tr.mat-mdc-row {
|
|
169
|
+
height: $row-height;
|
|
170
|
+
|
|
171
|
+
.mat-mdc-cell {
|
|
172
|
+
.mat-mdc-form-field {
|
|
173
|
+
font-size: $row-font-size;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
font-size: $row-font-size;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
tr.o-table-insertable.mat-mdc-header-row {
|
|
181
|
+
height: $row-height;
|
|
182
|
+
|
|
183
|
+
.mat-mdc-table-sticky {
|
|
184
|
+
.mat-mdc-form-field {
|
|
185
|
+
font-size: $row-font-size;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
font-size: $row-font-size;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.o-table-no-results span {
|
|
193
|
+
font-size: $row-font-size;
|
|
194
|
+
line-height: $header-height;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.o-table-context-menu.#{$size},
|
|
200
|
+
.o-table-menu.#{$size} {
|
|
201
|
+
.mat-mdc-menu-item {
|
|
202
|
+
line-height: $row-height;
|
|
203
|
+
height: $row-height;
|
|
204
|
+
min-height: $row-height;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.o-table-visible-columns-dialog {
|
|
209
|
+
.mat-mdc-list.#{$size} .mat-mdc-list-item {
|
|
210
|
+
height: $header-height;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@mixin o-table-typography($typography: null) {
|
|
217
|
+
@if $typography==null {
|
|
218
|
+
$typography: o-table-typography();
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@include o-table-size-typography($typography, 'small');
|
|
222
|
+
@include o-table-size-typography($typography, 'medium');
|
|
223
|
+
@include o-table-size-typography($typography, 'large');
|
|
224
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
$border-radius: 2px;
|
|
2
|
+
$button-line-height: 30px;
|
|
3
|
+
$basic-padding-size: 8px;
|
|
4
|
+
$tabs-header-border: none;
|
|
5
|
+
$inactive-tab-opacity: .35;
|
|
6
|
+
$font-size-title-container: 1;
|
|
7
|
+
$background-tab-inactive-on-dark: #686868;
|
|
8
|
+
$background-tab-inactive-on-light: #D7DDE0;
|
|
9
|
+
/*Application background-color*/
|
|
10
|
+
$app-background-color: #eaeaea;
|
|
11
|
+
|
|
12
|
+
$margin-left-buttom: 8px;
|
|
13
|
+
$sidenav-closed-width: 48px;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use '@angular/material'as mat;
|
|
4
|
+
@use '../ontimize-style.scss'as ontimize-style;
|
|
5
|
+
|
|
6
|
+
//Definition primary and accent palettes
|
|
7
|
+
$default-palette: (50: #e8e3f4,
|
|
8
|
+
100: #c5b9e4,
|
|
9
|
+
200: #9f8ad2,
|
|
10
|
+
300: #795bc0,
|
|
11
|
+
400: #5c37b3,
|
|
12
|
+
500: #3f14a5,
|
|
13
|
+
600: #39129d,
|
|
14
|
+
700: #310e93,
|
|
15
|
+
800: #290b8a,
|
|
16
|
+
900: #1b0679,
|
|
17
|
+
A100: #b3a8ff,
|
|
18
|
+
A200: #8775ff,
|
|
19
|
+
A400: #5b42ff,
|
|
20
|
+
A700: #4428ff,
|
|
21
|
+
contrast: (50: #000000,
|
|
22
|
+
100: #000000,
|
|
23
|
+
200: #000000,
|
|
24
|
+
300: #ffffff,
|
|
25
|
+
400: #ffffff,
|
|
26
|
+
500: #ffffff,
|
|
27
|
+
600: #ffffff,
|
|
28
|
+
700: #ffffff,
|
|
29
|
+
800: #ffffff,
|
|
30
|
+
900: #ffffff,
|
|
31
|
+
A100: #000000,
|
|
32
|
+
A200: #000000,
|
|
33
|
+
A400: #ffffff,
|
|
34
|
+
A700: #ffffff,
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
// Define a theme.
|
|
39
|
+
$primary: mat.define-palette($default-palette);
|
|
40
|
+
$accent: mat.define-palette($default-palette);
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/* Light theme */
|
|
44
|
+
$theme: ontimize-style.o-mat-light-theme($primary, $accent);
|
|
45
|
+
/* Dark theme */
|
|
46
|
+
$dark-theme: ontimize-style.o-mat-dark-theme($primary, $accent);
|