ontimize-web-ngx 15.0.0-beta.2 → 15.0.0-beta.3

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 (30) hide show
  1. package/esm2020/lib/components/app-sidenav/o-app-sidenav.component.mjs +2 -2
  2. package/esm2020/lib/components/dual-list-selector/o-dual-list-selector.component.mjs +3 -3
  3. package/esm2020/lib/components/grid/o-grid.component.mjs +5 -5
  4. package/esm2020/lib/components/input/combo/o-combo.component.mjs +2 -2
  5. package/esm2020/lib/components/input/phone-input/o-phone-input.component.mjs +3 -3
  6. package/esm2020/lib/components/input/search-input/o-search-input.component.mjs +2 -2
  7. package/esm2020/lib/components/list/list-item/o-list-item.component.mjs +2 -2
  8. package/esm2020/lib/components/list/o-list.component.mjs +5 -14
  9. package/esm2020/lib/components/list/renderers/card/o-list-item-card.component.mjs +3 -3
  10. package/esm2020/lib/components/list/renderers/card-image/o-list-item-card-image.component.mjs +3 -3
  11. package/esm2020/lib/components/table/extensions/dialog/apply-configuration/o-table-apply-configuration-dialog.component.mjs +3 -3
  12. package/esm2020/lib/components/table/extensions/dialog/filter-by-column/o-table-filter-by-column-data-dialog.component.mjs +2 -2
  13. package/esm2020/lib/components/table/extensions/dialog/store-configuration/o-table-store-configuration-dialog.component.mjs +3 -3
  14. package/esm2020/lib/components/table/extensions/dialog/visible-columns/o-table-visible-columns-dialog.component.mjs +3 -3
  15. package/esm2020/lib/components/table/o-table.component.mjs +8 -8
  16. package/esm2020/lib/layouts/form-layout/tabgroup/o-form-layout-tabgroup.component.mjs +2 -2
  17. package/esm2020/lib/shared/components/filter/load-filter/o-load-filter-dialog.component.mjs +3 -3
  18. package/fesm2015/ontimize-web-ngx.mjs +42 -51
  19. package/fesm2015/ontimize-web-ngx.mjs.map +1 -1
  20. package/fesm2020/ontimize-web-ngx.mjs +42 -51
  21. package/fesm2020/ontimize-web-ngx.mjs.map +1 -1
  22. package/lib/components/list/o-list.component.d.ts +1 -3
  23. package/ontimize.scss +2 -72
  24. package/package.json +1 -1
  25. package/theme.scss +78 -89
  26. package/theming/addons/report-on-demand.scss +5 -1
  27. package/theming/ontimize-style-v8.scss +1 -1
  28. package/theming/styles/density.scss +37 -23
  29. package/theming/styles/ontimize-v8/o-form-field-style.scss +3 -2
  30. package/theming/styles/ontimize-v8/o-table-style.scss +1 -1
@@ -20,7 +20,6 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
20
20
  listItemDirectives: QueryList<OListItemDirective>;
21
21
  refreshButton: boolean;
22
22
  selectable: boolean;
23
- odense: boolean;
24
23
  deleteButton: boolean;
25
24
  insertButtonFloatable: boolean;
26
25
  showButtonsText: boolean;
@@ -52,7 +51,6 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
52
51
  getComponentKey(): string;
53
52
  initialize(): void;
54
53
  reinitialize(options: OListInitializationOptions): void;
55
- getDense(): boolean;
56
54
  onListItemClicked(onNext: (item: OListItemDirective) => void): object;
57
55
  onItemDetailClick(item: OListItemDirective | ListItem): void;
58
56
  onItemDetailDoubleClick(item: OListItemDirective | ListItem): void;
@@ -75,5 +73,5 @@ export declare class OListComponent extends AbstractOServiceComponent<OListCompo
75
73
  updateSelectedItems(): void;
76
74
  getSqlTypes(): any;
77
75
  static ɵfac: i0.ɵɵFactoryDeclaration<OListComponent, [null, null, { optional: true; }]>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<OListComponent, "o-list", never, { "quickFilterColumns": "quick-filter-columns"; "refreshButton": "refresh-button"; "route": "route"; "selectable": "selectable"; "odense": "dense"; "deleteButton": "delete-button"; "sortColumns": "sort-columns"; "insertButtonPosition": "insert-button-position"; "insertButtonFloatable": "insert-button-floatable"; "showButtonsText": "show-buttons-text"; "keysSqlTypes": "keys-sql-types"; }, { "onInsertButtonClick": "onInsertButtonClick"; "onItemDeleted": "onItemDeleted"; }, ["listItemDirectives"], ["[o-list-toolbar][position=start]", "[o-list-toolbar][position=end]", "[o-list-toolbar]", "*"], false, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<OListComponent, "o-list", never, { "quickFilterColumns": "quick-filter-columns"; "refreshButton": "refresh-button"; "route": "route"; "selectable": "selectable"; "deleteButton": "delete-button"; "sortColumns": "sort-columns"; "insertButtonPosition": "insert-button-position"; "insertButtonFloatable": "insert-button-floatable"; "showButtonsText": "show-buttons-text"; "keysSqlTypes": "keys-sql-types"; }, { "onInsertButtonClick": "onInsertButtonClick"; "onItemDeleted": "onItemDeleted"; }, ["listItemDirectives"], ["[o-list-toolbar][position=start]", "[o-list-toolbar][position=end]", "[o-list-toolbar]", "*"], false, never>;
79
77
  }
package/ontimize.scss CHANGED
@@ -874,67 +874,6 @@ $mat-stroked-button-line-height: $mat-button-line-height - 2;
874
874
  }
875
875
  }
876
876
 
877
- .mat-mdc-list-base {
878
-
879
- &[dense] {
880
- .mat-mdc-list-item {
881
- min-height: 30px;
882
- height: auto;
883
- display: flex;
884
- padding: 0 8px;
885
-
886
- .mdc-list-item__content,
887
- .mat-mdc-list-item-meta {
888
- width: 100%;
889
- align-self: center;
890
-
891
- .mat-mdc-list-item-icon {
892
- margin-top: 0;
893
- padding: 4px;
894
- }
895
-
896
- .mdc-list-item__first-text,
897
- .mdc-list-item__secondary-text {
898
- &::before {
899
- display: flex;
900
- }
901
- }
902
-
903
- .mdc-list-item__secondary-text {
904
- padding: 0 8px;
905
-
906
- &::before {
907
- height: auto;
908
- }
909
- }
910
-
911
- }
912
- }
913
-
914
- }
915
-
916
- &.mat-mdc-selection-list[dense] {
917
- overflow: auto;
918
- outline: none;
919
- padding-top: 0;
920
- min-height: 40px;
921
-
922
- .mat-mdc-list-item {
923
- margin: 6px 0;
924
- border-radius: 4px;
925
- cursor: default;
926
-
927
-
928
- .mdc-list-item__start {
929
- margin-top: 0;
930
- }
931
- }
932
-
933
- p {
934
- white-space: normal;
935
- }
936
- }
937
- }
938
877
  }
939
878
 
940
879
  .mat-mdc-dialog-actions {
@@ -1013,7 +952,7 @@ button.mat-mdc-button-base {
1013
952
  height: $mat-button-line-height;
1014
953
  }
1015
954
 
1016
- >.mat-icon{
955
+ >.mat-icon {
1017
956
  line-height: 1;
1018
957
  }
1019
958
  }
@@ -1036,15 +975,6 @@ button.mat-mdc-button-base {
1036
975
  }
1037
976
  }
1038
977
 
1039
- .o-table-apply-configuration-dialog-list.mat-mdc-selection-list.mat-mdc-list-base[dense],
1040
- .o-table-load-filter-dialog-list.mat-mdc-list-base[dense] {
1041
-
1042
- .o-table-apply-configuration-dialog-list-title,
1043
- .o-table-load-filter-dialog-list-title {
1044
- font-weight: bold;
1045
-
1046
- }
1047
- }
1048
978
 
1049
979
 
1050
980
 
@@ -1059,4 +989,4 @@ button.mat-mdc-button-base {
1059
989
 
1060
990
  .overlay-ref-display-none .cdk-overlay-pane.o-context-menu {
1061
991
  display: none;
1062
- }
992
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ontimize-web-ngx",
3
3
  "homepage": "https://github.com/OntimizeWeb/ontimize-web-ngx#readme",
4
- "version": "15.0.0-beta.2",
4
+ "version": "15.0.0-beta.3",
5
5
  "description": "Ontimize Web framework using Angular 15",
6
6
  "bugs": "https://github.com/OntimizeWeb/ontimize-web-ngx/issues",
7
7
  "author": "Imatia S.L.",
package/theme.scss CHANGED
@@ -374,7 +374,10 @@
374
374
 
375
375
  &[aria-selected="true"] {
376
376
  background-color: mat.get-color-from-palette($primary, 100);
377
- color: if($is-dark-theme, #121212, mat.get-color-from-palette($foreground, text));
377
+
378
+ .mdc-list-item__secondary-text {
379
+ color: if($is-dark-theme, #121212, mat.get-color-from-palette($foreground, text));
380
+ }
378
381
  }
379
382
  }
380
383
 
@@ -681,16 +684,18 @@
681
684
  .mat-mdc-dialog-container {
682
685
  .mat-mdc-dialog-title {
683
686
  border-bottom: 1px solid mat.get-color-from-palette($primary);
687
+
684
688
  .mat-icon {
685
689
  color: mat.get-color-from-palette($primary);
686
690
  }
687
691
  }
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
+ @if($typography) {
694
+ .mat-mdc-dialog-title {
695
+ line-height: mat.font-size($typography, subtitle-1);
696
+ font-size: mat.font-size($typography, subtitle-1);
697
+ }
692
698
  }
693
- }
694
699
 
695
700
 
696
701
  .empty-filter-list {
@@ -709,117 +714,103 @@
709
714
 
710
715
  }
711
716
 
712
- .mdc-list[dense],
713
- .mat-mdc-selection-list[dense] {
714
- outline: none;
715
717
 
716
- .mat-mdc-list-option-checkbox-before {
717
- display: flex;
718
- align-items: center;
719
- padding-right: 0px;
720
- margin-right: 0px;
721
- }
722
-
723
-
724
- }
725
-
726
- @if($typography) {
727
- .mat-mdc-list[dense] {
728
- .mat-mdc-list-item {
729
-
730
- .empty-filter-list,
731
- .mdc-list-item__content>* {
732
- font-size: mat.font-size($typography, body-1);
733
- }
718
+ .mdc-list {
719
+ padding: 0;
720
+ @include mat.list-density(-2);
734
721
 
735
- .mat-mdc-list-item-line:nth-child(n+2) {
736
- font-size: mat.font-size($typography, caption);
737
- }
722
+ .mat-mdc-list-item.mdc-list-item {
723
+ margin: 6px 0;
724
+ border-radius: 4px;
738
725
 
726
+ &.mdc-list-item--with-leading-checkbox .mdc-list-item__start {
727
+ margin-right: 8px;
739
728
  }
740
- }
741
- }
742
- }
743
- }
744
-
745
- }
746
-
747
729
 
748
- /*MAT LIST DENSE in v15 is unsupported */
749
- .mat-mdc-list[dense] {
750
- .mat-mdc-list-item {
751
- height: auto;
730
+ &.mdc-list-item--with-one-line,
731
+ &.mdc-list-item--with-two-lines,
732
+ &.mdc-list-item--with-three-lines {
733
+ height: auto;
734
+ min-height: 30px;
752
735
 
753
- &.mdc-list-item--with-three-lines {
754
- height: 76px;
755
- }
756
-
757
- &.mdc-list-item--with-two-lines {
758
- height: 60px;
759
- }
736
+ }
760
737
 
761
- &.mdc-list-item--with-one-line {
762
- height: 60px;
763
- }
738
+ .mdc-list-item__content {
739
+ display: table;
740
+ align-self: center;
741
+ width: 100%;
764
742
 
765
743
 
744
+ .mdc-list-item__secondary-text,
745
+ .mdc-list-item__primary-text {
746
+ margin-bottom: 0;
747
+ align-self: center;
748
+ vertical-align: middle;
766
749
 
750
+ &::before,
751
+ &::after {
752
+ content: none;
753
+ }
767
754
 
768
- .mdc-list-item__primary-text,
769
- .mdc-list-item__secondary-text {
770
- margin-bottom: 0;
755
+ &.mat-mdc-list-item-unscoped-content {
756
+ display: table-cell;
757
+ vertical-align: middle;
758
+ width: 100%;
759
+ }
760
+ }
761
+ }
771
762
 
772
- &::before {
773
- height: auto;
774
- content: none;
775
- }
763
+ .mdc-list-item__start {
764
+ align-self: center;
765
+ margin-top: 0;
766
+ }
776
767
 
777
- @if($typography) {
778
- font-size: mat.font-size($typography, caption);
768
+ }
779
769
  }
780
770
 
781
771
  }
782
772
  }
783
773
  }
784
774
 
775
+
776
+
785
777
  /*global styles about drag/drop in dialogs table*/
786
778
  .cdk-drag-preview,
787
779
  .cdk-drag-dragging {
788
- width: 100%;
789
- display: block;
790
780
 
791
- background-color: mat.get-color-from-palette($background, background);
792
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
793
- box-sizing: border-box;
794
- border-radius: 2px;
781
+ &.mdc-list-item.mat-mdc-list-item {
795
782
 
796
- @if($typography) {
797
- .mdc-list-item__content {
798
- font-size: mat.font-size($typography, body-1);
799
- }
800
- }
783
+ background-color: mat.get-color-from-palette($background, background);
784
+ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
785
+ box-sizing: border-box;
786
+ border-radius: 2px;
801
787
 
802
- .mdc-list-item__content {
803
- display: block;
804
- color: mat.get-color-from-palette($foreground, text);
805
- padding: 6px;
806
- flex-direction: row;
807
- align-items: center;
808
- //background-color: mat.get-color-from-palette($background, background);
809
- //display: flex;
810
- //box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
811
- //box-sizing: border-box;
812
- // border-radius: 2px;
788
+ .mdc-list-item__secondary-text,
789
+ .mdc-list-item__primary-text {
790
+ padding: 0 8px;
791
+ width: 100%;
813
792
 
814
- .mat-mdc-list-item-icon {
815
- padding: 4px;
793
+ &::before,
794
+ &::after {
795
+ content: none;
796
+ }
816
797
  }
817
798
 
818
- .mat-mdc-list-text {
819
- padding-left: 16px;
820
- width: 100%;
799
+ .mdc-list-item__start {
800
+ align-self: center;
801
+ margin-top: 0;
802
+ margin-right: 8px;
803
+ }
804
+
805
+ .mdc-list-item__secondary-text {
806
+ color: mat.get-color-from-palette($foreground, icon);
807
+
808
+ @if($typography) {
809
+ font-size: mat.font-size($typography, body-1);
810
+ }
821
811
  }
822
812
  }
813
+
823
814
  }
824
815
 
825
816
  .cdk-drop-list-dragging .o-drag-list-item-box:not(.cdk-drag-placeholder) {
@@ -995,8 +986,6 @@
995
986
  .o-mat-menu.mat-mdc-menu-panel {
996
987
  min-height: auto;
997
988
  }
998
-
999
-
1000
989
  }// Layout-padding-xxx & Layout-margin-xxxx
1001
990
  // ------------------------------
1002
991
  $baseline-grid: 8px !default;
@@ -1,5 +1,5 @@
1
1
  @use "sass:map";
2
- @use '@angular/material'as mat;
2
+ @use '@angular/material' as mat;
3
3
 
4
4
  @mixin report-on-demand($theme-or-color-config) {
5
5
  $theme: map.get($theme-or-color-config, color);
@@ -7,6 +7,10 @@
7
7
 
8
8
  .report-on-demand-sidenav {
9
9
  .mat-expansion-panel {
10
+ border: 1px solid mat.get-color-from-palette($background, background);
11
+ }
12
+
13
+ .mat-expansion-panel-header {
10
14
  background-color: mat.get-color-from-palette($background, background);
11
15
  }
12
16
  }
@@ -86,7 +86,7 @@ $app-background-color: #eaeaea;
86
86
 
87
87
  @include theme.o-material-theme($theme-or-color-config);
88
88
  @include layout.layout-padding-margin();
89
- @include o-density.checkbox(19px, 19px, 15px);
89
+ @include o-density.checkbox();
90
90
  @include o-density.list();
91
91
  @include o-density.radio();
92
92
  @include o-table-style.o-table-style($theme-or-color-config);
@@ -1,37 +1,51 @@
1
1
  @use '@angular/material'as mat;
2
2
  @use "sass:selector";
3
3
 
4
- @mixin checkbox($ripple-size, $touch-target-size, $icon-size) {
4
+ @mixin checkbox() {
5
5
 
6
6
 
7
- mat-checkbox.mat-mdc-checkbox .mdc-checkbox,
8
- .mdc-list-item.mat-mdc-list-option .mdc-checkbox {
9
- padding: calc((var(--mdc-checkbox-ripple-size, $ripple-size) - var(--mdc-checkbox-icon-size, $icon-size)) / 2);
10
- margin: calc((var(--mdc-checkbox-touch-target-size, $touch-target-size) - var(--mdc-checkbox-icon-size)) / 2);
11
-
12
- .mdc-checkbox__background {
13
- top: calc((var(--mdc-checkbox-ripple-size, $ripple-size) - var(--mdc-checkbox-icon-size, $icon-size)) / 2);
14
- left: calc((var(--mdc-checkbox-ripple-size, $ripple-size) - var(--mdc-checkbox-icon-size, $icon-size)) / 2);
15
- height: var(--mdc-checkbox-icon-size, $icon-size);
16
- width: var(--mdc-checkbox-icon-size, $icon-size);
17
- }
7
+ mat-checkbox.mat-mdc-checkbox .mdc-checkbox {
18
8
 
19
- .mdc-checkbox__native-control {
20
- top: calc((20px - var(--mdc-checkbox-touch-target-size, $touch-target-size)) / 2);
21
- right: calc((20px - var(--mdc-checkbox-touch-target-size, $touch-target-size)) / 2);
9
+ @include checkbox-size(28px, 16px);
10
+ }
22
11
 
23
- left: calc((20px - var(--mdc-checkbox-touch-target-size, $touch-target-size)) / 2);
24
- width: var(--mdc-checkbox-touch-target-size, $touch-target-size);
25
- height: var(--mdc-checkbox-touch-target-size, $touch-target-size);
12
+ .o-table {
13
+ mat-checkbox.mat-mdc-checkbox .mdc-checkbox {
14
+ @include checkbox-size(28px, 18px);
26
15
  }
16
+ }
27
17
 
28
- .mat-mdc-checkbox-touch-target {
29
- height: var(--mdc-checkbox-touch-target-size, $touch-target-size);
30
- width: var(--mdc-checkbox-touch-target-size, $touch-target-size);
31
- }
18
+ .mdc-list-item.mat-mdc-list-option .mdc-checkbox {
19
+ @include checkbox-size(21px, 15px);
20
+ }
21
+
22
+ }
32
23
 
33
- //}
24
+ @mixin checkbox-size($ripple-size, $icon-size) {
25
+ width: $icon-size;
26
+ height: $icon-size;
27
+ flex: 0 0 $icon-size;
28
+ padding: calc(($ripple-size - $icon-size) / 2) + 1;
29
+
30
+
31
+ .mdc-checkbox__background {
32
+ top: calc(($ripple-size - $icon-size) / 2) + 1;
33
+ left: calc(($ripple-size - $icon-size) / 2) + 1;
34
+ width: $icon-size;
35
+ height: $icon-size;
36
+ }
37
+
38
+ .mdc-checkbox__native-control {
39
+ width: $ripple-size;
40
+ height: $ripple-size;
41
+
42
+ }
43
+
44
+ .mat-mdc-checkbox-touch-target {
45
+ height: $icon-size;
46
+ width: $icon-size;
34
47
  }
48
+
35
49
  }
36
50
 
37
51
  @mixin radio() {
@@ -36,9 +36,10 @@
36
36
  .mat-mdc-form-field-flex {
37
37
  .mat-mdc-form-field-infix {
38
38
  min-height: auto;
39
- padding-bottom: 4px;
40
-
41
39
 
40
+ .mat-mdc-form-field-input-control:not(textarea){
41
+ height: 1em;
42
+ }
42
43
  .mat-mdc-floating-label {
43
44
  display: block;
44
45
  }
@@ -9,7 +9,7 @@
9
9
  $typography: map.get($theme, typography);
10
10
 
11
11
  /* TABLE */
12
- .ontimize-table.o-table {
12
+ .ontimize-table.o-table.o-table {
13
13
  font-weight: 400;
14
14
 
15
15
  .o-table-container {