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
package/theme.scss
CHANGED
|
@@ -9,12 +9,20 @@
|
|
|
9
9
|
$theme-or-color-config: map.merge($theme-or-color-config, 'typography', $typographyConfig);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
//Include theme styles for core and each component used in your app.;
|
|
13
|
-
|
|
14
|
+
$typography: map.get($theme-or-color-config, typography);
|
|
15
|
+
|
|
16
|
+
@if($typography) {
|
|
17
|
+
@include mat.core();
|
|
18
|
+
@include mat.all-component-themes($theme-or-color-config);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@else {
|
|
22
|
+
@include mat.all-component-colors($theme-or-color-config);
|
|
23
|
+
}
|
|
14
24
|
|
|
15
25
|
$typography: mat.get-typography-config($theme-or-color-config);
|
|
16
|
-
//Emit the CSS rules for these CSS classes and native elements
|
|
17
|
-
@include mat.typography-hierarchy($typography);
|
|
18
26
|
|
|
19
27
|
@include app-global-theme($theme-or-color-config);
|
|
20
28
|
@include o-breadcrumb-theme($theme-or-color-config);
|
|
@@ -24,7 +32,6 @@
|
|
|
24
32
|
@include o-date-input-theme($theme-or-color-config);
|
|
25
33
|
@include o-dialog-theme($theme-or-color-config);
|
|
26
34
|
@include o-table-theme($theme-or-color-config);
|
|
27
|
-
@include o-table-typography($typography);
|
|
28
35
|
@include o-list-theme($theme-or-color-config);
|
|
29
36
|
@include o-list-picker-theme($theme-or-color-config);
|
|
30
37
|
@include o-app-header-theme($theme-or-color-config);
|
|
@@ -247,12 +254,17 @@
|
|
|
247
254
|
background-color: mat.get-color-from-palette($background, background, 0.29);
|
|
248
255
|
}
|
|
249
256
|
|
|
257
|
+
@if($typography) {
|
|
258
|
+
.o-card-menu-item-title {
|
|
259
|
+
font-size: mat.font-size($typography, headline-6);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
250
263
|
.o-card-menu-item-title {
|
|
251
264
|
color: mat.get-color-from-palette($primary);
|
|
252
|
-
font-size: mat.font-size($typography, headline-5);
|
|
253
265
|
}
|
|
254
266
|
|
|
255
|
-
.mat-mdc-button {
|
|
267
|
+
.mat-mdc-button:not(:disabled) {
|
|
256
268
|
color: mat.get-color-from-palette($primary);
|
|
257
269
|
background: mat.get-color-from-palette($accent, 100);
|
|
258
270
|
}
|
|
@@ -292,12 +304,14 @@
|
|
|
292
304
|
|
|
293
305
|
}
|
|
294
306
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
307
|
+
@if($typography) {
|
|
308
|
+
>.o-container-title,
|
|
309
|
+
>.mat-expansion-panel-header .o-container-title {
|
|
310
|
+
span {
|
|
311
|
+
font: {
|
|
312
|
+
size: mat.font-size($typography, body-1);
|
|
313
|
+
weight: mat.font-weight($typography, body-1);
|
|
314
|
+
}
|
|
301
315
|
}
|
|
302
316
|
}
|
|
303
317
|
}
|
|
@@ -452,9 +466,6 @@
|
|
|
452
466
|
$primary: map.get($theme, primary);
|
|
453
467
|
$accent: map.get($theme, accent);
|
|
454
468
|
|
|
455
|
-
/* outline appearance */
|
|
456
|
-
$border-radius: 2px;
|
|
457
|
-
|
|
458
469
|
.mat-mdc-form-field {
|
|
459
470
|
&.mat-form-field-disabled.accent {
|
|
460
471
|
@include icon-color-mixin(mat.get-color-from-palette($accent, 0.42));
|
|
@@ -476,7 +487,7 @@
|
|
|
476
487
|
color: mat.get-color-from-palette($foreground, disabled-button);
|
|
477
488
|
}
|
|
478
489
|
|
|
479
|
-
&.mat-form-field-appearance-ontimize.read-only{
|
|
490
|
+
&.mat-form-field-appearance-ontimize.read-only {
|
|
480
491
|
|
|
481
492
|
.mat-mdc-select-disabled .mat-mdc-select-value {
|
|
482
493
|
color: inherit;
|
|
@@ -495,14 +506,6 @@
|
|
|
495
506
|
color: mat.get-color-from-palette($warn);
|
|
496
507
|
}
|
|
497
508
|
|
|
498
|
-
/* OUTLINE APPEARANCE */
|
|
499
|
-
&.mat-form-field-appearance-outline .mdc-text-field--outlined .mdc-notched-outline {
|
|
500
|
-
|
|
501
|
-
.mdc-notched-outline__leading,
|
|
502
|
-
.mdc-notched-outline__trailing {
|
|
503
|
-
border-radius: $border-radius 0 0 $border-radius;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
509
|
}
|
|
507
510
|
|
|
508
511
|
input:not([type]):disabled,
|
|
@@ -525,9 +528,11 @@
|
|
|
525
528
|
}
|
|
526
529
|
|
|
527
530
|
.o-tooltip.o-mat-error {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
+
.mdc-tooltip__surface {
|
|
532
|
+
background: mat.get-color-from-palette($primary, default-contrast);
|
|
533
|
+
border: 1px solid mat.get-color-from-palette($warn);
|
|
534
|
+
color: mat.get-color-from-palette($warn);
|
|
535
|
+
}
|
|
531
536
|
}
|
|
532
537
|
|
|
533
538
|
/* CHECKBOX */
|
|
@@ -590,13 +595,16 @@
|
|
|
590
595
|
background-color: mat.get-color-from-palette($background, background);
|
|
591
596
|
}
|
|
592
597
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
@if($typography) {
|
|
599
|
+
|
|
600
|
+
button,
|
|
601
|
+
html,
|
|
602
|
+
input,
|
|
603
|
+
select,
|
|
604
|
+
span,
|
|
605
|
+
textarea {
|
|
606
|
+
font-family: mat.font-family($typography);
|
|
607
|
+
}
|
|
600
608
|
}
|
|
601
609
|
|
|
602
610
|
::-webkit-scrollbar {
|
|
@@ -673,11 +681,16 @@
|
|
|
673
681
|
.mat-mdc-dialog-container {
|
|
674
682
|
.mat-mdc-dialog-title {
|
|
675
683
|
border-bottom: 1px solid mat.get-color-from-palette($primary);
|
|
676
|
-
|
|
677
684
|
.mat-icon {
|
|
678
685
|
color: mat.get-color-from-palette($primary);
|
|
679
686
|
}
|
|
680
687
|
}
|
|
688
|
+
@if($typography){
|
|
689
|
+
.mat-mdc-dialog-title {
|
|
690
|
+
line-height: mat.font-size($typography, subtitle-1);
|
|
691
|
+
font-size: mat.font-size($typography, subtitle-1);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
681
694
|
|
|
682
695
|
|
|
683
696
|
.empty-filter-list {
|
|
@@ -685,7 +698,9 @@
|
|
|
685
698
|
}
|
|
686
699
|
|
|
687
700
|
.mat-mdc-dialog-content {
|
|
688
|
-
|
|
701
|
+
@if($typography) {
|
|
702
|
+
font-size: mat.font-size($typography, body-1);
|
|
703
|
+
}
|
|
689
704
|
|
|
690
705
|
.mat-mdc-subheader.mdc-list-group__subheader {
|
|
691
706
|
font-weight: inherit;
|
|
@@ -708,18 +723,20 @@
|
|
|
708
723
|
|
|
709
724
|
}
|
|
710
725
|
|
|
711
|
-
|
|
712
|
-
.mat-mdc-list
|
|
726
|
+
@if($typography) {
|
|
727
|
+
.mat-mdc-list[dense] {
|
|
728
|
+
.mat-mdc-list-item {
|
|
713
729
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
730
|
+
.empty-filter-list,
|
|
731
|
+
.mdc-list-item__content>* {
|
|
732
|
+
font-size: mat.font-size($typography, body-1);
|
|
733
|
+
}
|
|
718
734
|
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
735
|
+
.mat-mdc-list-item-line:nth-child(n+2) {
|
|
736
|
+
font-size: mat.font-size($typography, caption);
|
|
737
|
+
}
|
|
722
738
|
|
|
739
|
+
}
|
|
723
740
|
}
|
|
724
741
|
}
|
|
725
742
|
}
|
|
@@ -751,12 +768,15 @@
|
|
|
751
768
|
.mdc-list-item__primary-text,
|
|
752
769
|
.mdc-list-item__secondary-text {
|
|
753
770
|
margin-bottom: 0;
|
|
771
|
+
|
|
754
772
|
&::before {
|
|
755
773
|
height: auto;
|
|
756
774
|
content: none;
|
|
757
775
|
}
|
|
758
776
|
|
|
759
|
-
|
|
777
|
+
@if($typography) {
|
|
778
|
+
font-size: mat.font-size($typography, caption);
|
|
779
|
+
}
|
|
760
780
|
|
|
761
781
|
}
|
|
762
782
|
}
|
|
@@ -773,9 +793,14 @@
|
|
|
773
793
|
box-sizing: border-box;
|
|
774
794
|
border-radius: 2px;
|
|
775
795
|
|
|
796
|
+
@if($typography) {
|
|
797
|
+
.mdc-list-item__content {
|
|
798
|
+
font-size: mat.font-size($typography, body-1);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
|
|
776
802
|
.mdc-list-item__content {
|
|
777
803
|
display: block;
|
|
778
|
-
font-size: mat.font-size($typography, body-1);
|
|
779
804
|
color: mat.get-color-from-palette($foreground, text);
|
|
780
805
|
padding: 6px;
|
|
781
806
|
flex-direction: row;
|
|
@@ -967,28 +992,11 @@
|
|
|
967
992
|
}
|
|
968
993
|
|
|
969
994
|
/*MAT MENU*/
|
|
970
|
-
/* TODO(mdc-migration): The following rule targets internal classes of menu that may no longer apply for the MDC version. */
|
|
971
|
-
/* TODO(mdc-migration): The following rule targets internal classes of menu that may no longer apply for the MDC version. */
|
|
972
995
|
.o-mat-menu.mat-mdc-menu-panel {
|
|
973
996
|
min-height: auto;
|
|
974
997
|
}
|
|
975
998
|
|
|
976
|
-
/* CHART FONT */
|
|
977
|
-
o-chart .nvd3 {
|
|
978
|
-
text {
|
|
979
|
-
font: mat.font-weight($typography, caption) mat.font-size($typography, caption) mat.font-family($typography);
|
|
980
|
-
fill: mat.get-color-from-palette($foreground, text);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
.nv-discretebar .nv-groups text,
|
|
984
|
-
.nv-multibarHorizontal .nv-groups text {
|
|
985
|
-
fill: mat.get-color-from-palette($foreground, text);
|
|
986
|
-
}
|
|
987
999
|
|
|
988
|
-
.nv-axis path {
|
|
989
|
-
stroke: mat.get-color-from-palette($foreground, text);
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
1000
|
}// Layout-padding-xxx & Layout-margin-xxxx
|
|
993
1001
|
// ------------------------------
|
|
994
1002
|
$baseline-grid: 8px !default;
|
|
@@ -1445,113 +1453,7 @@ $layout-gutter-width-horizontal: 14px !default;
|
|
|
1445
1453
|
.o-table-quickfilter .quickFilter .mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-prefix div {
|
|
1446
1454
|
border-right: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
1447
1455
|
}
|
|
1448
|
-
}@
|
|
1449
|
-
/* Small */
|
|
1450
|
-
$small-header-height: mat.define-typography-level(32px, 32px, 400),
|
|
1451
|
-
$small-row-height: mat.define-typography-level(28px, 28px, 400),
|
|
1452
|
-
$small-header-font-size: mat.define-typography-level(16px, 16px, 400),
|
|
1453
|
-
$small-row-font-size: mat.define-typography-level(12px, 12px, 400),
|
|
1454
|
-
/* Medium */
|
|
1455
|
-
$medium-header-height: mat.define-typography-level(40px, 40px, 400),
|
|
1456
|
-
$medium-row-height: mat.define-typography-level(36px, 36px, 400),
|
|
1457
|
-
$medium-header-font-size: mat.define-typography-level(20px, 20px, 400),
|
|
1458
|
-
$medium-row-font-size: mat.define-typography-level(14px, 14px, 400),
|
|
1459
|
-
/* Large */
|
|
1460
|
-
$large-header-height: mat.define-typography-level(52px, 40px, 400),
|
|
1461
|
-
$large-row-height: mat.define-typography-level(48px, 36px, 400),
|
|
1462
|
-
$large-header-font-size: mat.define-typography-level(24px, 24px, 400),
|
|
1463
|
-
$large-row-font-size: mat.define-typography-level(14px, 14px, 400)
|
|
1464
|
-
) {
|
|
1465
|
-
|
|
1466
|
-
// Declare an initial map with all of the levels.
|
|
1467
|
-
$config: (
|
|
1468
|
-
small-header-height: $small-header-height,
|
|
1469
|
-
small-row-height: $small-row-height,
|
|
1470
|
-
small-header-font-size: $small-header-font-size,
|
|
1471
|
-
small-row-font-size: $small-row-font-size,
|
|
1472
|
-
|
|
1473
|
-
medium-header-height: $medium-header-height,
|
|
1474
|
-
medium-row-height: $medium-row-height,
|
|
1475
|
-
medium-header-font-size: $medium-header-font-size,
|
|
1476
|
-
medium-row-font-size: $medium-row-font-size,
|
|
1477
|
-
|
|
1478
|
-
large-header-height: $large-header-height,
|
|
1479
|
-
large-row-height: $large-row-height,
|
|
1480
|
-
large-header-font-size: $large-header-font-size,
|
|
1481
|
-
large-row-font-size: $large-row-font-size
|
|
1482
|
-
);
|
|
1483
|
-
@return $config;
|
|
1484
|
-
}
|
|
1485
|
-
@mixin o-table-size-typography($typography, $size) {
|
|
1486
|
-
|
|
1487
|
-
$header-height: mat.font-size($typography, #{$size}-header-height);
|
|
1488
|
-
$row-height: mat.font-size($typography, #{$size}-row-height);
|
|
1489
|
-
$header-font-size: mat.font-size($typography, #{$size}-header-font-size);
|
|
1490
|
-
$row-font-size: mat.font-size($typography, #{$size}-row-font-size);
|
|
1491
|
-
|
|
1492
|
-
.o-table .o-table-container {
|
|
1493
|
-
.mat-mdc-table.#{$size} {
|
|
1494
|
-
tr.mat-mdc-header-row:not(.o-table-insertable) {
|
|
1495
|
-
height: $header-height;
|
|
1496
|
-
|
|
1497
|
-
.mat-mdc-header-cell {
|
|
1498
|
-
font-size: $header-font-size;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
tr.mat-mdc-row {
|
|
1503
|
-
height: $row-height;
|
|
1504
|
-
|
|
1505
|
-
.mat-mdc-cell {
|
|
1506
|
-
.mat-mdc-form-field {
|
|
1507
|
-
font-size: $row-font-size;
|
|
1508
|
-
}
|
|
1509
|
-
font-size: $row-font-size;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
tr.o-table-insertable.mat-mdc-header-row{
|
|
1514
|
-
height: $row-height;
|
|
1515
|
-
|
|
1516
|
-
.mat-mdc-table-sticky {
|
|
1517
|
-
.mat-mdc-form-field {
|
|
1518
|
-
font-size: $row-font-size;
|
|
1519
|
-
}
|
|
1520
|
-
font-size: $row-font-size;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
.o-table-no-results span {
|
|
1525
|
-
font-size: $row-font-size;
|
|
1526
|
-
line-height: $header-height;
|
|
1527
|
-
}
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
.o-table-context-menu.#{$size},
|
|
1532
|
-
.o-table-menu.#{$size} {
|
|
1533
|
-
.mat-mdc-menu-item {
|
|
1534
|
-
line-height: $row-height;
|
|
1535
|
-
height: $row-height;
|
|
1536
|
-
min-height: $row-height;
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
.o-table-visible-columns-dialog {
|
|
1541
|
-
.mat-mdc-list.#{$size} .mat-mdc-list-item {
|
|
1542
|
-
height: $header-height;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
@mixin o-table-typography($typography: null) {
|
|
1547
|
-
@if $typography == null{
|
|
1548
|
-
$typography: o-table-typography-config();
|
|
1549
|
-
}
|
|
1550
|
-
@include o-table-size-typography($typography, 'small');
|
|
1551
|
-
@include o-table-size-typography($typography, 'medium');
|
|
1552
|
-
@include o-table-size-typography($typography, 'large');
|
|
1553
|
-
}
|
|
1554
|
-
@mixin o-dialog-theme($theme-or-color-config) {
|
|
1456
|
+
}@mixin o-dialog-theme($theme-or-color-config) {
|
|
1555
1457
|
$theme: map.get($theme-or-color-config, color);
|
|
1556
1458
|
$background: map.get($theme, background);
|
|
1557
1459
|
$foreground: map.get($theme, foreground);
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
-
@use 'fonts/poppins.scss';
|
|
3
|
-
@use 'styles/lite/layout.scss';
|
|
4
|
-
@use 'styles/default/typography/ontimize.scss'as ontimize-typography;
|
|
5
|
-
@use 'styles/default/addons/report-on-demand.scss';
|
|
6
|
-
@use 'styles/default/addons/charts-on-demand.scss';
|
|
7
2
|
@use '@angular/material'as mat;
|
|
3
|
+
@use 'fonts/poppins.scss';
|
|
4
|
+
@use 'styles/ontimize-v8/variables.scss';
|
|
5
|
+
@use 'typography/ontimize.scss';
|
|
6
|
+
@use 'styles/ontimize-v8/o-form-field-style.scss';
|
|
7
|
+
@use 'styles/ontimize-v8/o-table-style.scss';
|
|
8
|
+
@use 'styles/ontimize-v8/containers';
|
|
9
|
+
@use 'styles/layout.scss';
|
|
8
10
|
@use 'styles/density.scss'as o-density;
|
|
11
|
+
@use 'styles/paginator.scss';
|
|
12
|
+
|
|
13
|
+
@use '../theme.scss';
|
|
14
|
+
@use 'addons/report-on-demand.scss';
|
|
15
|
+
@use 'addons/charts-on-demand.scss';
|
|
9
16
|
|
|
10
|
-
$typography: ontimize-typography.$default-typography;
|
|
11
17
|
$background-color: #eceff1;
|
|
12
18
|
/*Application background-color*/
|
|
13
19
|
$app-background-color: #eaeaea;
|
|
@@ -44,7 +50,7 @@ $app-background-color: #eaeaea;
|
|
|
44
50
|
is-dark: false,
|
|
45
51
|
foreground: map.get($mat-theme, foreground),
|
|
46
52
|
background: ontimize-light-theme-background($mat-theme)),
|
|
47
|
-
typography:
|
|
53
|
+
typography:ontimize.$typography)
|
|
48
54
|
}
|
|
49
55
|
|
|
50
56
|
// Creates a container object for a dark theme to be given to individual component theme mixins.
|
|
@@ -56,7 +62,7 @@ $app-background-color: #eaeaea;
|
|
|
56
62
|
is-dark: true,
|
|
57
63
|
foreground: map.get($mat-theme, foreground),
|
|
58
64
|
background: ontimize-dark-theme-background($mat-theme)),
|
|
59
|
-
typography:
|
|
65
|
+
typography: ontimize.$typography)
|
|
60
66
|
}
|
|
61
67
|
|
|
62
68
|
@mixin ontimize-theme-styles($theme-or-color-config) {
|
|
@@ -65,35 +71,28 @@ $app-background-color: #eaeaea;
|
|
|
65
71
|
|
|
66
72
|
$primary: map.get($theme, primary);
|
|
67
73
|
$accent: map.get($theme, accent);
|
|
68
|
-
// $warn: map.get($theme, warn);
|
|
69
74
|
$background: map.get($theme, background);
|
|
70
75
|
$foreground: map.get($theme, foreground);
|
|
71
76
|
$container-background: mat.get-color-from-palette($background, 'card');
|
|
72
|
-
|
|
73
|
-
$button-line-height: 30px;
|
|
74
|
-
$basic-padding-size: 8px;
|
|
75
|
-
// $tabs-header-border: 1px solid mat.get-color-from-palette($foreground, divider);
|
|
76
|
-
$tabs-header-border: none;
|
|
77
|
-
$inactive-tab-opacity: .35;
|
|
78
|
-
$font-size-title-container: 1;
|
|
77
|
+
|
|
79
78
|
$fill-background-input: mat.get-color-from-palette($foreground, base, 0.1);
|
|
80
79
|
$is-dark-theme: map.get($theme, is-dark);
|
|
81
80
|
|
|
82
|
-
|
|
83
|
-
$background-tab-inactive-on-dark: #686868;
|
|
84
|
-
$background-tab-inactive-on-light: #D7DDE0;
|
|
85
|
-
$background-tab-inactive: if($is-dark-theme, $background-tab-inactive-on-dark, $background-tab-inactive-on-light);
|
|
81
|
+
$background-tab-inactive: if($is-dark-theme, variables.$background-tab-inactive-on-dark, variables.$background-tab-inactive-on-light);
|
|
86
82
|
$background-accent-button: if($is-dark-theme, transparent, #ffffff);
|
|
87
83
|
$background-hover-accent-button: if($is-dark-theme, mat.get-color-from-palette($accent, 500), mat.get-color-from-palette($accent, 100));
|
|
88
84
|
$background-primary-button: if($is-dark-theme, mat.get-color-from-palette($primary, 500), mat.get-color-from-palette($primary, 100));
|
|
89
85
|
$background-hover-primary-button: if($is-dark-theme, transparent, #ffffff);
|
|
90
|
-
|
|
91
|
-
@include
|
|
92
|
-
@include charts-on-demand.o-chart-on-demand($theme-or-color-config);
|
|
86
|
+
|
|
87
|
+
@include theme.o-material-theme($theme-or-color-config);
|
|
93
88
|
@include layout.layout-padding-margin();
|
|
94
|
-
@include o-density.checkbox(
|
|
89
|
+
@include o-density.checkbox(19px, 19px, 15px);
|
|
95
90
|
@include o-density.list();
|
|
96
91
|
@include o-density.radio();
|
|
92
|
+
@include o-table-style.o-table-style($theme-or-color-config);
|
|
93
|
+
@include report-on-demand.report-on-demand($theme-or-color-config);
|
|
94
|
+
@include charts-on-demand.o-chart-on-demand($theme-or-color-config);
|
|
95
|
+
|
|
97
96
|
|
|
98
97
|
.mat-dialog-actions {
|
|
99
98
|
|
|
@@ -135,7 +134,7 @@ $app-background-color: #eaeaea;
|
|
|
135
134
|
.standalone-chart-container,
|
|
136
135
|
.standalone-form-container .o-form-content-wrapper {
|
|
137
136
|
background: $container-background;
|
|
138
|
-
border-radius:
|
|
137
|
+
border-radius: variables.$border-radius;
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
.standalone-chart-container {
|
|
@@ -144,7 +143,7 @@ $app-background-color: #eaeaea;
|
|
|
144
143
|
|
|
145
144
|
.standalone-form-container {
|
|
146
145
|
.inner-form {
|
|
147
|
-
padding:
|
|
146
|
+
padding: variables.$basic-padding-size*2;
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
|
|
@@ -152,6 +151,20 @@ $app-background-color: #eaeaea;
|
|
|
152
151
|
.o-app-sidenav {
|
|
153
152
|
font-weight: 400;
|
|
154
153
|
color: #aaaaaa;
|
|
154
|
+
|
|
155
|
+
.mat-drawer-closed {
|
|
156
|
+
|
|
157
|
+
.o-app-sidenav-menu-group,
|
|
158
|
+
.o-app-sidenav-menu-item {
|
|
159
|
+
a {
|
|
160
|
+
width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
|
|
161
|
+
max-width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
|
|
162
|
+
min-width: variables.$sidenav-closed-width - variables.$margin-left-buttom;
|
|
163
|
+
padding-left: 4px;
|
|
164
|
+
padding-right: 12px;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
155
168
|
}
|
|
156
169
|
|
|
157
170
|
/* USER INFO */
|
|
@@ -168,7 +181,7 @@ $app-background-color: #eaeaea;
|
|
|
168
181
|
.mat-toolbar {
|
|
169
182
|
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.24);
|
|
170
183
|
background-color: mat.get-color-from-palette($background, background);
|
|
171
|
-
border-radius:
|
|
184
|
+
border-radius: variables.$border-radius;
|
|
172
185
|
min-height: initial;
|
|
173
186
|
}
|
|
174
187
|
}
|
|
@@ -221,10 +234,12 @@ $app-background-color: #eaeaea;
|
|
|
221
234
|
|
|
222
235
|
.mdc-tab__content {
|
|
223
236
|
width: 100%;
|
|
237
|
+
|
|
224
238
|
.mdc-tab__text-label {
|
|
225
239
|
padding: 0 8px;
|
|
226
240
|
}
|
|
227
241
|
}
|
|
242
|
+
|
|
228
243
|
&.mdc-tab--active {
|
|
229
244
|
background: $container-background;
|
|
230
245
|
|
|
@@ -245,8 +260,8 @@ $app-background-color: #eaeaea;
|
|
|
245
260
|
|
|
246
261
|
>.mat-mdc-tab-body-wrapper {
|
|
247
262
|
background: $container-background;
|
|
248
|
-
border-radius:
|
|
249
|
-
border-top:
|
|
263
|
+
border-radius: variables.$border-radius;
|
|
264
|
+
border-top: variables.$tabs-header-border;
|
|
250
265
|
border-top-left-radius: initial;
|
|
251
266
|
}
|
|
252
267
|
}
|
|
@@ -255,7 +270,7 @@ $app-background-color: #eaeaea;
|
|
|
255
270
|
&.mat-mdc-tab-group {
|
|
256
271
|
|
|
257
272
|
.mat-mdc-tab-body-wrapper {
|
|
258
|
-
padding:
|
|
273
|
+
padding: variables.$basic-padding-size;
|
|
259
274
|
}
|
|
260
275
|
}
|
|
261
276
|
}
|
|
@@ -268,76 +283,11 @@ $app-background-color: #eaeaea;
|
|
|
268
283
|
&.mat-mdc-icon-button,
|
|
269
284
|
&.mat-mdc-raised-button,
|
|
270
285
|
&.mat-mdc-outlined-button {
|
|
271
|
-
border-radius:
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* TABLE */
|
|
276
|
-
.ontimize-table.o-table {
|
|
277
|
-
font-weight: 400;
|
|
278
|
-
|
|
279
|
-
.o-table-container {
|
|
280
|
-
border: none;
|
|
281
|
-
border-radius: $border-radius;
|
|
282
|
-
box-sizing: border-box;
|
|
283
|
-
|
|
284
|
-
/*Toolbar*/
|
|
285
|
-
.o-table-toolbar {
|
|
286
|
-
margin: 0 0 4px;
|
|
287
|
-
padding-top: $basic-padding-size;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.o-table-menu {
|
|
291
|
-
.o-table-option-active {
|
|
292
|
-
background: mat.get-color-from-palette($foreground, divider);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
thead tr th {
|
|
297
|
-
font-weight: 700;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
tbody tr.even,
|
|
301
|
-
thead tr {
|
|
302
|
-
background-color: inherit;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version.*/
|
|
306
|
-
tbody td.o-table-column-select-checkbox .mat-checkbox-inner-container .mat-checkbox-background,
|
|
307
|
-
thead tr th.o-table-column-select-checkbox .mat-checkbox-inner-container .mat-checkbox-background {
|
|
308
|
-
background-color: mat.get-color-from-palette($accent);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.mat-mdc-header-cell {
|
|
312
|
-
font-weight: 700;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.mat-mdc-paginator {
|
|
317
|
-
background: inherit;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.mat-mdc-table {
|
|
321
|
-
.mat-mdc-header-row .mat-mdc-header-cell {
|
|
322
|
-
font-weight: 700;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.ontimize-table.o-table.o-table-fixed {
|
|
328
|
-
.o-scrollable-container {
|
|
329
|
-
height: 100%;
|
|
330
|
-
overflow-y: auto;
|
|
286
|
+
border-radius: variables.$border-radius;
|
|
331
287
|
}
|
|
332
288
|
}
|
|
333
289
|
|
|
334
290
|
|
|
335
|
-
|
|
336
|
-
.mat-mdc-menu-panel.o-table-quickfilter-menu .mat-mdc-checkbox,
|
|
337
|
-
.mat-mdc-menu-panel.o-search-input-menu .mat-mdc-checkbox {
|
|
338
|
-
padding: 2px 0;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
291
|
/*background levels */
|
|
342
292
|
.bg-level-0,
|
|
343
293
|
o-column.o-column.bg-level-0,
|
|
@@ -368,4 +318,12 @@ $app-background-color: #eaeaea;
|
|
|
368
318
|
o-row.o-row.bg-level-1 {
|
|
369
319
|
background-color: mat.get-color-from-palette($background, level-1);
|
|
370
320
|
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@mixin ontimize-theme-all-component-color($theme-or-color-config) {
|
|
324
|
+
$color: map.get($theme-or-color-config, color);
|
|
325
|
+
@include ontimize-theme-styles((color: $color,
|
|
326
|
+
typography: null,
|
|
327
|
+
density: null,
|
|
328
|
+
));
|
|
371
329
|
}
|