qms-angular 1.0.89 → 1.0.90

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 (89) hide show
  1. package/bundles/qms-angular.umd.js +109 -63
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/themes.const.js +3 -0
  4. package/esm2015/lib/components/button/button-toggle.js +1 -1
  5. package/esm2015/lib/components/button/button.js +3 -3
  6. package/esm2015/lib/components/comment/comment.js +1 -1
  7. package/esm2015/lib/components/list/list.js +5 -3
  8. package/esm2015/lib/components/related/content/related-content.component.js +1 -1
  9. package/esm2015/lib/components/related/list-other-related/list-related.component.js +1 -1
  10. package/esm2015/lib/components/related/popup/related-popup.component.js +1 -1
  11. package/esm2015/lib/components/related/risk/analysis/analysis.component.js +1 -1
  12. package/esm2015/lib/components/related/risk/list/list.component.js +1 -1
  13. package/esm2015/lib/components/related/risk/result/result.component.js +1 -1
  14. package/esm2015/lib/components/rich-text/rich-text.js +1 -1
  15. package/esm2015/lib/components/select-dialog/select-dialog.js +1 -1
  16. package/esm2015/lib/components/select-include-children/select-include-children.component.js +1 -1
  17. package/esm2015/lib/components/select-one/select-one.component.js +1 -1
  18. package/esm2015/lib/components/select-process-document/select-process-document.component.js +1 -1
  19. package/esm2015/lib/components/table/table-action.js +2 -2
  20. package/esm2015/lib/components/tree/tree.component.js +1 -1
  21. package/esm2015/lib/components/treeNew/tree.component.js +1 -1
  22. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +1 -1
  23. package/esm2015/lib/services/theming.service.js +36 -0
  24. package/esm2015/lib/shared.module.js +1 -1
  25. package/esm2015/public-api.js +3 -1
  26. package/fesm2015/qms-angular.js +69 -32
  27. package/fesm2015/qms-angular.js.map +1 -1
  28. package/lib/common/themes.const.d.ts +2 -0
  29. package/lib/components/list/list.d.ts +1 -1
  30. package/lib/services/theming.service.d.ts +7 -0
  31. package/lib.theme.scss +11 -9
  32. package/package.json +1 -1
  33. package/public-api.d.ts +2 -0
  34. package/qms-angular.metadata.json +1 -1
  35. package/src/lib/components/breadcrumb/breadcrumb.scss +2 -1
  36. package/src/lib/components/button/_button-base.scss +45 -52
  37. package/src/lib/components/button/_button-theme.scss +4 -2
  38. package/src/lib/components/button/button-icon.scss +17 -14
  39. package/src/lib/components/button/button-toggle.scss +64 -115
  40. package/src/lib/components/comment/comment.scss +3 -2
  41. package/src/lib/components/dialog/dialog.scss +2 -1
  42. package/src/lib/components/list/_list-base.scss +2 -2
  43. package/src/lib/components/list/_list-expansion.scss +33 -7
  44. package/src/lib/components/list/list.scss +21 -4
  45. package/src/lib/components/related/content/related-content.component.scss +4 -2
  46. package/src/lib/components/related/list-other-related/list-related.component.scss +7 -6
  47. package/src/lib/components/related/popup/related-popup.component.scss +10 -9
  48. package/src/lib/components/related/risk/analysis/analysis.component.scss +4 -3
  49. package/src/lib/components/related/risk/list/list.component.scss +7 -6
  50. package/src/lib/components/related/risk/result/result.component.scss +9 -8
  51. package/src/lib/components/rich-text/rich-text.scss +3 -2
  52. package/src/lib/components/select-dialog/select-dialog.scss +5 -5
  53. package/src/lib/components/select-include-children/select-include-children.component.scss +10 -9
  54. package/src/lib/components/select-one/select-one.component.scss +5 -4
  55. package/src/lib/components/select-process-document/select-process-document.component.scss +12 -12
  56. package/src/lib/components/substance-conflict/substance-conflict.component.scss +4 -3
  57. package/src/lib/components/table/table.scss +4 -3
  58. package/src/lib/components/tooltip/tooltip.scss +3 -1
  59. package/src/lib/components/tree/tree.component.scss +12 -12
  60. package/src/lib/components/treeNew/tree.component.scss +11 -18
  61. package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +3 -2
  62. package/src/themes/_non-bg-scrollbar.scss +4 -3
  63. package/src/themes/core/_app-bar.scss +5 -4
  64. package/src/themes/core/_button.scss +14 -12
  65. package/src/themes/core/_checkbox.scss +9 -24
  66. package/src/themes/core/_chip-input.scss +29 -27
  67. package/src/themes/core/_chip.scss +12 -10
  68. package/src/themes/core/_date-picker.scss +9 -8
  69. package/src/themes/core/_dropdown-menu.scss +12 -11
  70. package/src/themes/core/_file-upload.scss +12 -11
  71. package/src/themes/core/_form-prefix.scss +6 -4
  72. package/src/themes/core/_form.scss +28 -27
  73. package/src/themes/core/_progress.scss +5 -3
  74. package/src/themes/core/_radio.scss +13 -15
  75. package/src/themes/core/_range-slider.scss +34 -33
  76. package/src/themes/core/_scrollbar.scss +25 -34
  77. package/src/themes/core/_search-field.scss +5 -3
  78. package/src/themes/core/_select.scss +5 -2
  79. package/src/themes/core/_slide-toggle.scss +10 -11
  80. package/src/themes/core/_styles.scss +19 -17
  81. package/src/themes/core/_tab.scss +88 -87
  82. package/src/themes/core/_table.scss +18 -17
  83. package/src/themes/core/_text-block.scss +3 -1
  84. package/src/themes/theme/_mixins.scss +18 -0
  85. package/src/themes/theme/_theme.scss +17 -0
  86. package/src/themes/theme/_variable.scss +303 -0
  87. package/src/themes/_color.scss +0 -61
  88. package/src/themes/_scrollbar.scss +0 -27
  89. package/src/themes/core/_colors.scss +0 -60
@@ -1,36 +1,27 @@
1
- @import "colors";
2
- .qms-scrollbar {
3
- /* width */
4
- &::-webkit-scrollbar {
5
- width: 12px;
6
- }
7
-
8
- /* Track */
9
- &::-webkit-scrollbar-track {
10
- background: black(0.12);
11
- background-clip: content-box;
12
- }
13
-
14
- /* Handle */
15
- &::-webkit-scrollbar-thumb {
16
- background: black(0.38);
17
- border-radius: 20px;
18
- width: 4px;
19
- border: 4px solid transparent;
20
- background-clip: content-box;
21
- }
22
-
23
- /* Handle on hover */
24
- &::-webkit-scrollbar-thumb:hover {
25
- background: black(0.5);
26
- background-clip: content-box;
27
- border: 4px solid transparent;
28
- }
1
+ @import '../theme/variable';
29
2
 
30
- &.none-scroll-bg {
31
- &::-webkit-scrollbar-track {
32
- background: transparent;
33
- background-clip: content-box;
34
- }
35
- }
3
+ ::-webkit-scrollbar {
4
+ width: 12px;
5
+ }
6
+
7
+ /* Track */
8
+ ::-webkit-scrollbar-track {
9
+ background: black(0.12);
10
+ background-clip: content-box;
11
+ }
12
+
13
+ /* Handle */
14
+ ::-webkit-scrollbar-thumb {
15
+ background: black(0.38);
16
+ border-radius: 20px;
17
+ width: 4px;
18
+ border: 4px solid transparent;
19
+ background-clip: content-box;
20
+ }
21
+
22
+ /* Handle on hover */
23
+ ::-webkit-scrollbar-thumb:hover {
24
+ background: black(0.5);
25
+ background-clip: content-box;
26
+ border: 4px solid transparent;
36
27
  }
@@ -1,9 +1,11 @@
1
- @import "colors";
1
+ @import "../theme/variable";
2
+ @import "../theme/mixins";
3
+
2
4
  .mat-form-field {
3
5
  &.qms-search-field-loading {
4
6
  .mat-form-field-underline::before {
5
7
  height: 2px;
6
- background-color: $active;
8
+ background-color: theme-apply($active);
7
9
  }
8
10
  }
9
- }
11
+ }
@@ -1,3 +1,6 @@
1
+ @import "../theme/variable";
2
+ @import "../theme/mixins";
3
+
1
4
  .mat-form-field {
2
5
  &.qms-select-input {
3
6
  .qms-select {
@@ -33,11 +36,11 @@
33
36
  margin-top: 32px;
34
37
 
35
38
  .mat-option.mat-selected:not(.mat-option-disabled) {
36
- color: $primary !important;
39
+ color: theme-apply($primary) !important;
37
40
  }
38
41
 
39
42
  .mat-pseudo-checkbox-checked, .mat-primary .mat-pseudo-checkbox-indeterminate {
40
- background-color: $primary !important;
43
+ background-color: theme-apply($primary) !important;
41
44
  }
42
45
 
43
46
  .opt-check-icon {
@@ -1,5 +1,6 @@
1
+ @import "../theme/variable";
2
+ @import "../theme/mixins";
1
3
  @import "typography";
2
- @import "colors";
3
4
 
4
5
  // SLIDE TOGGLE STYLES
5
6
 
@@ -22,7 +23,7 @@
22
23
  opacity: 0.08;
23
24
  background-color: black;
24
25
  }
25
- }
26
+ }
26
27
  }
27
28
 
28
29
  .mat-slide-toggle-thumb {
@@ -37,7 +38,7 @@
37
38
  .text-label {
38
39
  font-size: 1rem;
39
40
  line-height: 28px;
40
- color: $default-color;
41
+ color: theme-apply($default-color);
41
42
  white-space: break-spaces;
42
43
  }
43
44
 
@@ -49,21 +50,19 @@
49
50
  }
50
51
 
51
52
  .mat-error {
52
- color: $error;
53
+ color: theme-apply($error);
53
54
  }
54
55
 
55
56
  &:not(.mat-disabled).mat-checked.cdk-keyboard-focused {
56
57
  .mat-slide-toggle-persistent-ripple {
57
58
  opacity: 1;
58
- // border: 2px solid $secondary;
59
- background: $secondary-light-6-opacity;
59
+ background: theme-apply($secondary-light-6-opacity);
60
60
  }
61
61
  }
62
62
 
63
63
  &:not(.mat-disabled).cdk-keyboard-focused {
64
64
  .mat-slide-toggle-persistent-ripple {
65
65
  opacity: 1;
66
- // border: 2px solid $primary;
67
66
  background: black(0.12);
68
67
  }
69
68
  }
@@ -87,24 +86,24 @@
87
86
  &:hover {
88
87
  .mat-ripple-element.mat-slide-toggle-persistent-ripple {
89
88
  opacity: 1;
90
- background-color: $secondary-light-6-opacity;
89
+ background-color: theme-apply($secondary-light-6-opacity);
91
90
  }
92
91
  }
93
92
 
94
93
  &:active {
95
94
  .mat-ripple-element.mat-slide-toggle-persistent-ripple {
96
95
  opacity: 1;
97
- background-color: $secondary-light-12-opacity;
96
+ background-color: theme-apply($secondary-light-12-opacity);
98
97
  }
99
98
  }
100
99
  }
101
100
 
102
101
  .mat-ripple-element {
103
- background-color: $secondary;
102
+ background-color: theme-apply($secondary);
104
103
  }
105
104
 
106
105
  .mat-slide-toggle-thumb {
107
- background-color: $secondary;
106
+ background-color: theme-apply($secondary);
108
107
  }
109
108
  }
110
109
  }
@@ -1,39 +1,41 @@
1
- @import '../color';
1
+ @import "../theme/variable";
2
+ @import "../theme/mixins";
3
+
2
4
  .toast-error {
3
- background-color: $error-color;
4
- color: $text-white;
5
+ background-color: theme-apply($error-color);
6
+ color: theme-apply($text-white);
5
7
 
6
8
  .mat-simple-snackbar-action.ng-star-inserted {
7
- color: $text-white;
9
+ color: theme-apply($text-white);
8
10
  }
9
11
  }
10
12
 
11
13
  ::ng-deep .toast-success {
12
- background-color: $success-color;
13
- color: $text-white;
14
+ background-color: theme-apply($success-color);
15
+ color: theme-apply($text-white);
14
16
  .mat-simple-snackbar-action.ng-star-inserted {
15
- color: $text-white;
17
+ color: theme-apply($text-white);
16
18
  }
17
19
  .mat-snack-bar-container{
18
- background-color: $success-color;
20
+ background-color: theme-apply($success-color);
19
21
  }
20
22
  }
21
23
 
22
24
  .toast-infor {
23
- background-color: $infor-color;
24
- color: $text-white;
25
+ background-color: theme-apply($infor-color);
26
+ color: theme-apply($text-white);
25
27
 
26
28
  .mat-simple-snackbar-action.ng-star-inserted {
27
- color: $text-white;
29
+ color: theme-apply($text-white);
28
30
  }
29
31
  }
30
32
 
31
33
  .toast-warning {
32
- background-color: $warning-color;
33
- color: $text-dark;
34
+ background-color: theme-apply($warning-color);
35
+ color: theme-apply($text-dark);
34
36
 
35
37
  .mat-simple-snackbar-action.ng-star-inserted {
36
- color: $text-dark;
38
+ color: theme-apply($text-dark);
37
39
  }
38
40
  }
39
41
 
@@ -43,7 +45,7 @@
43
45
  .mat-simple-snackbar {
44
46
  button {
45
47
  &:hover {
46
- background-color: $primary-light-6-opacity;
48
+ background-color: theme-apply($primary-light-6-opacity);
47
49
  }
48
50
  }
49
51
  span {
@@ -52,7 +54,7 @@
52
54
  font-weight: normal;
53
55
  font-size: 14px;
54
56
  line-height: 22px;
55
- color: $primary-button-text-color;
57
+ color: theme-apply($primary-button-text-color);
56
58
  }
57
59
  .mat-button-wrapper {
58
60
  color:#94BAEF;
@@ -63,4 +65,4 @@
63
65
  line-height: 16px;
64
66
  }
65
67
  }
66
- }
68
+ }