@ts-core/angular 15.0.1 → 15.0.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/bottomSheet/BottomSheetImpl.d.ts +0 -11
- package/bottomSheet/component/BottomSheetBaseComponent.d.ts +0 -5
- package/component/tab-group/tab-group.component.d.ts +4 -2
- package/directive/ResizeDirective.d.ts +2 -2
- package/directive/SelectOnFocusDirective.d.ts +1 -1
- package/esm2020/bottomSheet/BottomSheetImpl.mjs +2 -47
- package/esm2020/bottomSheet/BottomSheetService.mjs +2 -2
- package/esm2020/bottomSheet/component/BottomSheetBaseComponent.mjs +1 -16
- package/esm2020/component/tab-group/tab-group.component.mjs +15 -4
- package/esm2020/directive/AutoScrollBottomDirective.mjs +2 -2
- package/esm2020/directive/MenuTriggerForDirective.mjs +5 -3
- package/esm2020/directive/ResizeDirective.mjs +5 -5
- package/esm2020/directive/SelectOnFocusDirective.mjs +2 -2
- package/esm2020/language/LanguageMatPaginatorIntl.mjs +5 -7
- package/esm2020/manager/ResizeManager.mjs +3 -11
- package/esm2020/notification/NotificationService.mjs +2 -2
- package/esm2020/theme/ThemeStyleDirective.mjs +2 -2
- package/esm2020/util/ViewUtil.mjs +1 -1
- package/esm2020/window/IWindow.mjs +2 -1
- package/esm2020/window/WindowImpl.mjs +10 -17
- package/esm2020/window/WindowService.mjs +2 -2
- package/fesm2015/ts-core-angular.mjs +867 -931
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +867 -931
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/htdocs/common.js +3 -3
- package/manager/ResizeManager.d.ts +1 -1
- package/package.json +1 -2
- package/style/_filter.scss +14 -0
- package/style/_mouse.scss +27 -0
- package/style/_scroll.scss +20 -0
- package/style/_text.scss +12 -0
- package/style/mat/_core.scss +317 -0
- package/style/mat/_index.scss +169 -0
- package/style/mat/_variables.scss +1 -0
- package/style/mat/bootstrap/_background.scss +22 -4
- package/style/mat/bootstrap/_border.scss +67 -72
- package/style/mat/bootstrap/_index.scss +27 -0
- package/style/mat/bootstrap/_text.scss +28 -24
- package/style/mat/helper/_theme.scss +96 -0
- package/style/mat/helper/_typography.scss +15 -0
- package/window/IWindow.d.ts +1 -0
- package/window/WindowImpl.d.ts +1 -2
- package/style/mat/bootstrap/_variables.scss +0 -8
- package/style/mat/vi-mat-bootstrap.scss +0 -50
- package/style/mat/vi-mat.scss +0 -570
- package/style/mixin.scss +0 -69
- package/style/mouse.scss +0 -47
package/htdocs/common.js
CHANGED
|
@@ -15,10 +15,10 @@ function cookieGet(name) {
|
|
|
15
15
|
//
|
|
16
16
|
//--------------------------------------------------------------------------
|
|
17
17
|
|
|
18
|
-
function
|
|
19
|
-
var theme = cookieGet(
|
|
18
|
+
function themeSet(themeCookieName) {
|
|
19
|
+
var theme = cookieGet(themeCookieName);
|
|
20
20
|
if (theme) {
|
|
21
|
-
document.body.className = theme
|
|
21
|
+
document.body.className = `${theme}-theme mat-app-background`;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -8,7 +8,7 @@ export declare class ResizeManager implements IDestroyable {
|
|
|
8
8
|
protected subject: BehaviorSubject<ISize>;
|
|
9
9
|
protected element: HTMLElement;
|
|
10
10
|
constructor(element: IViewElement);
|
|
11
|
-
protected
|
|
11
|
+
protected handlerItem: (item: ISize) => void;
|
|
12
12
|
protected handler2: (items: Array<ResizeObserverEntry>) => void;
|
|
13
13
|
get changed(): Observable<ISize>;
|
|
14
14
|
get value(): ISize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-core/angular",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "Modules for frontend based on angular",
|
|
5
5
|
"main": "public-api.js",
|
|
6
6
|
"author": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"@ts-core/frontend": "^3.0.9",
|
|
27
27
|
"@types/numeral": "^2.0.2",
|
|
28
28
|
"bootstrap": "^5.2.3",
|
|
29
|
-
"css-element-queries": "^1.2.3",
|
|
30
29
|
"csshake": "^1.7.0",
|
|
31
30
|
"interactjs": "1.10.11",
|
|
32
31
|
"moment": "^2.29.4",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@mixin grayscale($value) {
|
|
2
|
+
filter: none;
|
|
3
|
+
-o-filter: grayscale($value);
|
|
4
|
+
-ms-filter: grayscale($value);
|
|
5
|
+
-moz-filter: grayscale($value);
|
|
6
|
+
-webkit-filter: grayscale($value);
|
|
7
|
+
}
|
|
8
|
+
@mixin invert($value) {
|
|
9
|
+
filter: none;
|
|
10
|
+
-o-filter: invert($value);
|
|
11
|
+
-ms-filter: invert($value);
|
|
12
|
+
-moz-filter: invert($value);
|
|
13
|
+
-webkit-filter: invert($value);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@mixin active() {
|
|
2
|
+
@include cursor-mixin(pointer);
|
|
3
|
+
}
|
|
4
|
+
@mixin inactive() {
|
|
5
|
+
@include cursor-mixin(default);
|
|
6
|
+
}
|
|
7
|
+
@mixin move(){
|
|
8
|
+
@include cursor-mixin(move);
|
|
9
|
+
}
|
|
10
|
+
@mixin help(){
|
|
11
|
+
@include cursor-mixin(help);
|
|
12
|
+
}
|
|
13
|
+
@mixin wait(){
|
|
14
|
+
@include cursor-mixin(wait);
|
|
15
|
+
}
|
|
16
|
+
@mixin enabled() {
|
|
17
|
+
@include pointer-events-mixin(auto);
|
|
18
|
+
}
|
|
19
|
+
@mixin disabled() {
|
|
20
|
+
@include pointer-events-mixin(none);
|
|
21
|
+
}
|
|
22
|
+
@mixin cursor-mixin($value) {
|
|
23
|
+
cursor: $value !important;
|
|
24
|
+
}
|
|
25
|
+
@mixin pointer-events-mixin($value) {
|
|
26
|
+
pointer-events: $value !important;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@mixin no() {
|
|
2
|
+
overflow-y: hidden;
|
|
3
|
+
overflow-x: hidden;
|
|
4
|
+
-webkit-overflow-scrolling: touch;
|
|
5
|
+
}
|
|
6
|
+
@mixin auto() {
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
-webkit-overflow-scrolling: touch;
|
|
10
|
+
}
|
|
11
|
+
@mixin vertical() {
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
-webkit-overflow-scrolling: touch;
|
|
15
|
+
}
|
|
16
|
+
@mixin horizontal() {
|
|
17
|
+
overflow-y: hidden;
|
|
18
|
+
overflow-x: auto;
|
|
19
|
+
-webkit-overflow-scrolling: touch;
|
|
20
|
+
}
|
package/style/_text.scss
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'variables' as var;
|
|
3
|
+
@use '@angular/material' as mat;
|
|
4
|
+
|
|
5
|
+
@use '../text' as text;
|
|
6
|
+
@use '../mouse' as mouse;
|
|
7
|
+
@use '../scroll' as scroll;
|
|
8
|
+
@use 'bootstrap' as bootstrap;
|
|
9
|
+
|
|
10
|
+
@import 'bootstrap/scss/functions';
|
|
11
|
+
@import 'bootstrap/scss/variables';
|
|
12
|
+
@import 'bootstrap/scss/mixins/breakpoints';
|
|
13
|
+
|
|
14
|
+
@mixin core() {
|
|
15
|
+
@include mat.core();
|
|
16
|
+
@include bootstrap.core();
|
|
17
|
+
|
|
18
|
+
// Common
|
|
19
|
+
p,
|
|
20
|
+
h1,
|
|
21
|
+
h2,
|
|
22
|
+
h3,
|
|
23
|
+
h4,
|
|
24
|
+
h5,
|
|
25
|
+
h6,
|
|
26
|
+
body {
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
a:focus,
|
|
32
|
+
div:focus,
|
|
33
|
+
button:focus {
|
|
34
|
+
outline: 0;
|
|
35
|
+
}
|
|
36
|
+
textarea {
|
|
37
|
+
&.cdk-textarea-autosize {
|
|
38
|
+
overflow-y: hidden !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Material
|
|
43
|
+
|
|
44
|
+
mat-chip:focus,
|
|
45
|
+
mat-tab-group {
|
|
46
|
+
outline: 0;
|
|
47
|
+
}
|
|
48
|
+
mat-dialog-container {
|
|
49
|
+
&:hover:not(.minimized) {
|
|
50
|
+
vi-window-resize-element {
|
|
51
|
+
display: block !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
vi-window-resize-element {
|
|
55
|
+
width: 32px;
|
|
56
|
+
right: -16px;
|
|
57
|
+
bottom: -16px;
|
|
58
|
+
display: none !important;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
mat-bottom-sheet-container {
|
|
63
|
+
padding: 0 !important;
|
|
64
|
+
overflow: visible !important;
|
|
65
|
+
& > :first-child {
|
|
66
|
+
height: 100%;
|
|
67
|
+
border-radius: var.$border-radius;
|
|
68
|
+
@include scroll.vertical();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
mat-form-field {
|
|
72
|
+
&.no-underline {
|
|
73
|
+
.mdc-text-field {
|
|
74
|
+
border-bottom-left-radius: var.$border-radius;
|
|
75
|
+
border-bottom-right-radius: var.$border-radius;
|
|
76
|
+
.mdc-line-ripple {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
mat-dialog-container,
|
|
83
|
+
mat-bottom-sheet-container {
|
|
84
|
+
vi-window-close-element,
|
|
85
|
+
vi-window-expand-element,
|
|
86
|
+
vi-window-minimize-element {
|
|
87
|
+
top: -16px;
|
|
88
|
+
width: 32px;
|
|
89
|
+
height: 32px;
|
|
90
|
+
}
|
|
91
|
+
vi-window-close-element {
|
|
92
|
+
right: -16px;
|
|
93
|
+
}
|
|
94
|
+
vi-window-expand-element,
|
|
95
|
+
vi-window-minimize-element {
|
|
96
|
+
right: 24px;
|
|
97
|
+
}
|
|
98
|
+
@include media-breakpoint-down(lg) {
|
|
99
|
+
vi-window-close-element {
|
|
100
|
+
right: 16px;
|
|
101
|
+
}
|
|
102
|
+
vi-window-expand-element,
|
|
103
|
+
vi-window-minimize-element {
|
|
104
|
+
right: 56px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
mat-cell {
|
|
109
|
+
color: inherit !important;
|
|
110
|
+
}
|
|
111
|
+
mat-header-cell {
|
|
112
|
+
&:not(:hover),
|
|
113
|
+
&.mat-sort-header-disabled {
|
|
114
|
+
color: inherit !important;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
mat-expansion-panel {
|
|
119
|
+
border-radius: 0 !important;
|
|
120
|
+
border-bottom-width: 1px;
|
|
121
|
+
border-bottom-style: solid;
|
|
122
|
+
&:last-child {
|
|
123
|
+
border-bottom: none !important;
|
|
124
|
+
}
|
|
125
|
+
&:not([class*='mat-elevation-z']) {
|
|
126
|
+
box-shadow: none !important;
|
|
127
|
+
}
|
|
128
|
+
&.mat-expansion-panel-spacing {
|
|
129
|
+
margin: 0 !important;
|
|
130
|
+
}
|
|
131
|
+
mat-expansion-panel-header {
|
|
132
|
+
height: auto !important;
|
|
133
|
+
padding: 1rem !important;
|
|
134
|
+
&.mat-expanded {
|
|
135
|
+
height: auto !important;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
.mat-expansion-panel-body {
|
|
139
|
+
padding: 0 !important;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
mat-progress-bar {
|
|
144
|
+
&.border {
|
|
145
|
+
height: 1px;
|
|
146
|
+
border: none !important;
|
|
147
|
+
.mdc-linear-progress__buffer {
|
|
148
|
+
.mdc-linear-progress__buffer-dots {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
&.transparent {
|
|
154
|
+
.mdc-linear-progress__buffer {
|
|
155
|
+
.mdc-linear-progress__buffer-dots {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
mat-table {
|
|
162
|
+
background: none !important;
|
|
163
|
+
}
|
|
164
|
+
mat-paginator {
|
|
165
|
+
background: none !important;
|
|
166
|
+
}
|
|
167
|
+
.mat-icon {
|
|
168
|
+
width: unset !important;
|
|
169
|
+
height: unset !important;
|
|
170
|
+
}
|
|
171
|
+
.cdk-global-scrollblock {
|
|
172
|
+
overflow-y: auto;
|
|
173
|
+
}
|
|
174
|
+
.cdk-overlay-pane {
|
|
175
|
+
&.vi-window,
|
|
176
|
+
&.vi-notification {
|
|
177
|
+
position: absolute !important;
|
|
178
|
+
}
|
|
179
|
+
&.vi-draggable,
|
|
180
|
+
&.vi-resizeable {
|
|
181
|
+
border-radius: var.$border-radius;
|
|
182
|
+
}
|
|
183
|
+
&.vi-window {
|
|
184
|
+
border: 2px solid transparent;
|
|
185
|
+
}
|
|
186
|
+
&.minimized {
|
|
187
|
+
height: auto !important;
|
|
188
|
+
min-height: 40px !important;
|
|
189
|
+
}
|
|
190
|
+
&.vi-blink {
|
|
191
|
+
border-width: 2px;
|
|
192
|
+
border-style: solid;
|
|
193
|
+
animation: blink 1s;
|
|
194
|
+
animation-iteration-count: 3;
|
|
195
|
+
// @keyframes blink { 50% { border-color:#fff ; } }
|
|
196
|
+
}
|
|
197
|
+
.mat-mdc-select-panel {
|
|
198
|
+
padding: 0 !important;
|
|
199
|
+
border-style: solid;
|
|
200
|
+
border-width: 1px;
|
|
201
|
+
border-radius: var.$border-radius;
|
|
202
|
+
}
|
|
203
|
+
.mat-mdc-menu-content {
|
|
204
|
+
padding: 0 !important;
|
|
205
|
+
}
|
|
206
|
+
.mat-mdc-menu-panel {
|
|
207
|
+
max-width: none !important;
|
|
208
|
+
max-height: none !important;
|
|
209
|
+
min-height: 0px !important;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
.mdc-tooltip__surface {
|
|
213
|
+
max-height: inherit !important;
|
|
214
|
+
}
|
|
215
|
+
.mat-mdc-paginator-range-label {
|
|
216
|
+
margin-left: 1rem;
|
|
217
|
+
margin-right: 1rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Text
|
|
221
|
+
.mat-h1,
|
|
222
|
+
.mat-h2,
|
|
223
|
+
.mat-h3,
|
|
224
|
+
.mat-h4,
|
|
225
|
+
.mat-h5,
|
|
226
|
+
.mat-h6,
|
|
227
|
+
.mat-body,
|
|
228
|
+
.mat-body-1,
|
|
229
|
+
.mat-body-2,
|
|
230
|
+
.mat-body-strong,
|
|
231
|
+
.mat-small,
|
|
232
|
+
.mat-caption,
|
|
233
|
+
.mat-subtitle-1,
|
|
234
|
+
.mat-subtitle-2,
|
|
235
|
+
.mat-headline-1,
|
|
236
|
+
.mat-headline-2,
|
|
237
|
+
.mat-headline-3,
|
|
238
|
+
.mat-headline-4,
|
|
239
|
+
.mat-headline-5,
|
|
240
|
+
.mat-headline-6 {
|
|
241
|
+
margin: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.text-underline {
|
|
245
|
+
text-decoration: underline !important;
|
|
246
|
+
}
|
|
247
|
+
.text-one-line {
|
|
248
|
+
@include text.one-line();
|
|
249
|
+
}
|
|
250
|
+
.text-multi-line {
|
|
251
|
+
@include text.word-wrap-break-word();
|
|
252
|
+
@include text.word-break-break-all();
|
|
253
|
+
}
|
|
254
|
+
.text-word-wrap-break-word {
|
|
255
|
+
@include text.word-wrap-break-word();
|
|
256
|
+
}
|
|
257
|
+
.text-word-break-break-all {
|
|
258
|
+
@include text.word-break-break-all();
|
|
259
|
+
}
|
|
260
|
+
.scroll-no {
|
|
261
|
+
@include scroll.no();
|
|
262
|
+
}
|
|
263
|
+
.scroll-auto {
|
|
264
|
+
@include scroll.auto();
|
|
265
|
+
}
|
|
266
|
+
.scroll-vertical {
|
|
267
|
+
@include scroll.vertical();
|
|
268
|
+
}
|
|
269
|
+
.scroll-horizontal {
|
|
270
|
+
@include scroll.horizontal();
|
|
271
|
+
}
|
|
272
|
+
.mouse-help {
|
|
273
|
+
@include mouse.help();
|
|
274
|
+
}
|
|
275
|
+
.mouse-wait {
|
|
276
|
+
@include mouse.wait();
|
|
277
|
+
}
|
|
278
|
+
.mouse-active {
|
|
279
|
+
@include mouse.active();
|
|
280
|
+
}
|
|
281
|
+
.mouse-enabled {
|
|
282
|
+
@include mouse.enabled();
|
|
283
|
+
}
|
|
284
|
+
.mouse-disabled {
|
|
285
|
+
@include mouse.disabled();
|
|
286
|
+
}
|
|
287
|
+
.mouse-inactive {
|
|
288
|
+
@include mouse.inactive();
|
|
289
|
+
}
|
|
290
|
+
.mouse-disabled {
|
|
291
|
+
@include mouse.disabled();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
::-webkit-scrollbar {
|
|
295
|
+
width: 14px;
|
|
296
|
+
height: 14px;
|
|
297
|
+
}
|
|
298
|
+
::-webkit-scrollbar-thumb {
|
|
299
|
+
height: 6px;
|
|
300
|
+
min-height: 16px;
|
|
301
|
+
border: 4px solid;
|
|
302
|
+
background-clip: padding-box;
|
|
303
|
+
-webkit-border-radius: 7px;
|
|
304
|
+
}
|
|
305
|
+
::-webkit-scrollbar-thumb {
|
|
306
|
+
border-color: transparent;
|
|
307
|
+
-webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
|
|
308
|
+
}
|
|
309
|
+
::-webkit-scrollbar-corner {
|
|
310
|
+
background-color: transparent;
|
|
311
|
+
}
|
|
312
|
+
::-webkit-scrollbar-button {
|
|
313
|
+
width: 0;
|
|
314
|
+
height: 0;
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@forward '../filter' as filter-*;
|
|
2
|
+
@forward '../scroll' as scroll-*;
|
|
3
|
+
@forward '../mouse' as mouse-*;
|
|
4
|
+
@forward '../text' as text-*;
|
|
5
|
+
|
|
6
|
+
@forward 'helper/typography' as typography-*;
|
|
7
|
+
@forward 'helper/theme' as theme-*;
|
|
8
|
+
@forward 'core' show core;
|
|
9
|
+
|
|
10
|
+
@use 'sass:map';
|
|
11
|
+
@use '@angular/material' as mat;
|
|
12
|
+
|
|
13
|
+
@use 'variables' as var;
|
|
14
|
+
@use 'bootstrap' as bootstrap;
|
|
15
|
+
@use 'helper/typography' as typography;
|
|
16
|
+
|
|
17
|
+
@mixin color($theme) {
|
|
18
|
+
@include bootstrap.color($theme);
|
|
19
|
+
|
|
20
|
+
$primary: map.get($theme, 'primary');
|
|
21
|
+
$foreground: map.get($theme, 'foreground');
|
|
22
|
+
$background: map.get($theme, 'background');
|
|
23
|
+
$border-color: map.get($foreground, 'divider');
|
|
24
|
+
|
|
25
|
+
$text-primary: mat.get-color-from-palette($primary);
|
|
26
|
+
|
|
27
|
+
body {
|
|
28
|
+
color: map.get($foreground, 'text');
|
|
29
|
+
background-color: map.get($background, 'body');
|
|
30
|
+
}
|
|
31
|
+
mat-form-field {
|
|
32
|
+
.mdc-text-field {
|
|
33
|
+
.mdc-line-ripple::before {
|
|
34
|
+
border-bottom-color: $border-color !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.mdc-text-field--outlined {
|
|
38
|
+
&:not(.mdc-text-field--disabled) {
|
|
39
|
+
.mdc-notched-outline__notch,
|
|
40
|
+
.mdc-notched-outline__leading,
|
|
41
|
+
.mdc-notched-outline__trailing {
|
|
42
|
+
border-color: $border-color !important;
|
|
43
|
+
}
|
|
44
|
+
&:hover {
|
|
45
|
+
.mdc-notched-outline__notch,
|
|
46
|
+
.mdc-notched-outline__leading,
|
|
47
|
+
.mdc-notched-outline__trailing {
|
|
48
|
+
border-color: mat.get-color-from-palette($foreground, 'base') !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&.mdc-text-field--focused {
|
|
52
|
+
.mdc-notched-outline__notch,
|
|
53
|
+
.mdc-notched-outline__leading,
|
|
54
|
+
.mdc-notched-outline__trailing {
|
|
55
|
+
border-color: mat.get-color-from-palette($primary) !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
mat-expansion-panel {
|
|
62
|
+
border-bottom-color: $border-color;
|
|
63
|
+
}
|
|
64
|
+
mat-progress-bar {
|
|
65
|
+
&.border {
|
|
66
|
+
&:not(.transparent) {
|
|
67
|
+
.mdc-linear-progress__buffer {
|
|
68
|
+
.mdc-linear-progress__buffer-bar {
|
|
69
|
+
background-color: $border-color !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.transparent {
|
|
75
|
+
.mdc-linear-progress__buffer {
|
|
76
|
+
.mdc-linear-progress__buffer-bar {
|
|
77
|
+
background-color: transparent !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
mat-cell {
|
|
83
|
+
border-bottom-color: $border-color !important;
|
|
84
|
+
&:last-child {
|
|
85
|
+
border-bottom-color: transparent;
|
|
86
|
+
}
|
|
87
|
+
&.active {
|
|
88
|
+
background-color: map.get($background, 'hover') !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.cdk-overlay-pane {
|
|
92
|
+
&.vi-blink {
|
|
93
|
+
border-color: $text-primary;
|
|
94
|
+
}
|
|
95
|
+
.mat-mdc-select-panel {
|
|
96
|
+
border-color: $border-color;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.cdk-overlay-dark-backdrop {
|
|
100
|
+
background: rgba(0, 0, 0, 0.32);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
$thumb-color: rgba(0, 0, 0, 0.15);
|
|
104
|
+
@if map.get($theme, 'is-dark') {
|
|
105
|
+
$thumb-color: rgba(255, 255, 255, 0.1);
|
|
106
|
+
.mat-drawer-backdrop {
|
|
107
|
+
&.mat-drawer-shown {
|
|
108
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
::-webkit-scrollbar-thumb {
|
|
113
|
+
background-color: $thumb-color;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin typography($typography) {
|
|
118
|
+
@include bootstrap.typography($typography);
|
|
119
|
+
|
|
120
|
+
body {
|
|
121
|
+
@include typography.level($typography, 'body-1', false);
|
|
122
|
+
}
|
|
123
|
+
.mat-headline-1 {
|
|
124
|
+
@include typography.level($typography, 'headline-1');
|
|
125
|
+
}
|
|
126
|
+
.mat-headline-2 {
|
|
127
|
+
@include typography.level($typography, 'headline-2');
|
|
128
|
+
}
|
|
129
|
+
.mat-headline-3 {
|
|
130
|
+
@include typography.level($typography, 'headline-3');
|
|
131
|
+
}
|
|
132
|
+
.mat-headline-4 {
|
|
133
|
+
@include typography.level($typography, 'headline-4');
|
|
134
|
+
}
|
|
135
|
+
.mat-headline-5 {
|
|
136
|
+
@include typography.level($typography, 'headline-5');
|
|
137
|
+
}
|
|
138
|
+
.mat-headline-6 {
|
|
139
|
+
@include typography.level($typography, 'headline-6');
|
|
140
|
+
}
|
|
141
|
+
.mat-subtitle-2 {
|
|
142
|
+
@include typography.level($typography, 'subtitle-2');
|
|
143
|
+
}
|
|
144
|
+
.mat-subtitle-1 {
|
|
145
|
+
@include typography.level($typography, 'subtitle-1');
|
|
146
|
+
}
|
|
147
|
+
.mat-body-2 {
|
|
148
|
+
@include typography.level($typography, 'body-2');
|
|
149
|
+
}
|
|
150
|
+
.mat-body-1 {
|
|
151
|
+
@include typography.level($typography, 'body-1');
|
|
152
|
+
}
|
|
153
|
+
.mat-caption {
|
|
154
|
+
@include typography.level($typography, 'caption');
|
|
155
|
+
}
|
|
156
|
+
.mat-button {
|
|
157
|
+
@include typography.level($typography, 'button');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@mixin theme($theme, $typography) {
|
|
161
|
+
$color: mat.get-color-config($theme);
|
|
162
|
+
@if $color != null {
|
|
163
|
+
@include color($theme);
|
|
164
|
+
}
|
|
165
|
+
@if $typography != null {
|
|
166
|
+
@include typography($typography);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$border-radius: 4px !default;
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
$color: mat.get-color-config($theme);
|
|
6
|
+
$primary: map.get($color, 'primary');
|
|
7
|
+
$foreground: map.get($color, 'foreground');
|
|
8
|
+
$background: map.get($color, 'background');
|
|
3
9
|
|
|
4
10
|
.background {
|
|
5
|
-
background-color: map
|
|
11
|
+
background-color: map.get($background, 'background') !important;
|
|
6
12
|
}
|
|
7
13
|
.background-body {
|
|
8
|
-
background-color: map
|
|
14
|
+
background-color: map.get($background, 'body') !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin typography($typography) {
|
|
19
|
+
}
|
|
20
|
+
@mixin theme($theme, $typography) {
|
|
21
|
+
$color: mat.get-color-config($theme);
|
|
22
|
+
@if $color != null {
|
|
23
|
+
@include color($theme);
|
|
24
|
+
}
|
|
25
|
+
@if $typography != null {
|
|
26
|
+
@include typography($typography);
|
|
9
27
|
}
|
|
10
28
|
}
|