@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.
Files changed (48) hide show
  1. package/bottomSheet/BottomSheetImpl.d.ts +0 -11
  2. package/bottomSheet/component/BottomSheetBaseComponent.d.ts +0 -5
  3. package/component/tab-group/tab-group.component.d.ts +4 -2
  4. package/directive/ResizeDirective.d.ts +2 -2
  5. package/directive/SelectOnFocusDirective.d.ts +1 -1
  6. package/esm2020/bottomSheet/BottomSheetImpl.mjs +2 -47
  7. package/esm2020/bottomSheet/BottomSheetService.mjs +2 -2
  8. package/esm2020/bottomSheet/component/BottomSheetBaseComponent.mjs +1 -16
  9. package/esm2020/component/tab-group/tab-group.component.mjs +15 -4
  10. package/esm2020/directive/AutoScrollBottomDirective.mjs +2 -2
  11. package/esm2020/directive/MenuTriggerForDirective.mjs +5 -3
  12. package/esm2020/directive/ResizeDirective.mjs +5 -5
  13. package/esm2020/directive/SelectOnFocusDirective.mjs +2 -2
  14. package/esm2020/language/LanguageMatPaginatorIntl.mjs +5 -7
  15. package/esm2020/manager/ResizeManager.mjs +3 -11
  16. package/esm2020/notification/NotificationService.mjs +2 -2
  17. package/esm2020/theme/ThemeStyleDirective.mjs +2 -2
  18. package/esm2020/util/ViewUtil.mjs +1 -1
  19. package/esm2020/window/IWindow.mjs +2 -1
  20. package/esm2020/window/WindowImpl.mjs +10 -17
  21. package/esm2020/window/WindowService.mjs +2 -2
  22. package/fesm2015/ts-core-angular.mjs +867 -931
  23. package/fesm2015/ts-core-angular.mjs.map +1 -1
  24. package/fesm2020/ts-core-angular.mjs +867 -931
  25. package/fesm2020/ts-core-angular.mjs.map +1 -1
  26. package/htdocs/common.js +3 -3
  27. package/manager/ResizeManager.d.ts +1 -1
  28. package/package.json +1 -2
  29. package/style/_filter.scss +14 -0
  30. package/style/_mouse.scss +27 -0
  31. package/style/_scroll.scss +20 -0
  32. package/style/_text.scss +12 -0
  33. package/style/mat/_core.scss +317 -0
  34. package/style/mat/_index.scss +169 -0
  35. package/style/mat/_variables.scss +1 -0
  36. package/style/mat/bootstrap/_background.scss +22 -4
  37. package/style/mat/bootstrap/_border.scss +67 -72
  38. package/style/mat/bootstrap/_index.scss +27 -0
  39. package/style/mat/bootstrap/_text.scss +28 -24
  40. package/style/mat/helper/_theme.scss +96 -0
  41. package/style/mat/helper/_typography.scss +15 -0
  42. package/window/IWindow.d.ts +1 -0
  43. package/window/WindowImpl.d.ts +1 -2
  44. package/style/mat/bootstrap/_variables.scss +0 -8
  45. package/style/mat/vi-mat-bootstrap.scss +0 -50
  46. package/style/mat/vi-mat.scss +0 -570
  47. package/style/mixin.scss +0 -69
  48. package/style/mouse.scss +0 -47
@@ -1,570 +0,0 @@
1
- @import '@angular/material/theming';
2
- @import 'vi-mat-bootstrap';
3
- @import '../mixin';
4
- @import '../mouse';
5
-
6
- /*--------------------------------------------------------------------------
7
- //
8
- // Mixins
9
- //
10
- //-------------------------------------------------------------------------*/
11
-
12
- @mixin vi-mat-core($typography) {
13
- p {
14
- padding: 0;
15
- margin: 0;
16
- }
17
-
18
- body {
19
- margin: 0;
20
- padding: 0;
21
- }
22
-
23
- a:focus,
24
- div:focus,
25
- button:focus {
26
- outline: 0;
27
- }
28
-
29
- button {
30
- .fa {
31
- margin-right: 4px;
32
- &:last-child {
33
- margin-right: 0;
34
- }
35
- }
36
- }
37
-
38
- textarea {
39
- &.cdk-textarea-autosize {
40
- overflow-y: hidden !important;
41
- }
42
- }
43
-
44
- mat-dialog-container {
45
- padding: 0 !important;
46
- display: block !important;
47
- max-width: none !important;
48
- overflow: visible !important;
49
- min-height: inherit !important;
50
- max-height: inherit;
51
-
52
- &:hover:not(.minimized) {
53
- vi-window-resize-element {
54
- display: block !important;
55
- }
56
- }
57
-
58
- & > :first-child {
59
- height: 100%;
60
- border-radius: 4px;
61
- box-sizing: border-box;
62
- max-height: inherit;
63
- @include vertical-scroll-only();
64
- }
65
-
66
- vi-window-resize-element {
67
- width: 32px;
68
- right: -16px;
69
- bottom: -16px;
70
- display: none !important;
71
- pointer-events: none;
72
- }
73
- }
74
-
75
- mat-bottom-sheet-container {
76
- padding: 0 !important;
77
- display: block !important;
78
- overflow: visible !important;
79
- min-height: inherit !important;
80
- max-height: inherit;
81
-
82
- & > :first-child {
83
- height: 100%;
84
- box-sizing: border-box;
85
- max-height: inherit;
86
- @include vertical-scroll-only();
87
- }
88
- }
89
-
90
- mat-dialog-container,
91
- mat-bottom-sheet-container {
92
- vi-window-close-element,
93
- vi-window-expand-element,
94
- vi-window-minimize-element {
95
- top: -16px;
96
- width: 32px;
97
- }
98
- vi-window-close-element {
99
- right: -16px;
100
- }
101
- vi-window-expand-element,
102
- vi-window-minimize-element {
103
- right: 24px;
104
- }
105
- @include media-breakpoint-down(lg) {
106
- vi-window-close-element {
107
- right: 16px;
108
- }
109
- vi-window-expand-element,
110
- vi-window-minimize-element {
111
- right: 56px;
112
- }
113
- }
114
- }
115
-
116
- mat-progress-bar {
117
- &.border {
118
- height: 1px;
119
- border: none !important;
120
-
121
- svg {
122
- display: none;
123
- }
124
- }
125
-
126
- &.transparent {
127
- .mat-progress-bar-buffer {
128
- background-color: transparent !important;
129
- }
130
- svg {
131
- display: none;
132
- }
133
- }
134
- }
135
-
136
- mat-tab-group {
137
- outline: 0;
138
-
139
- .mat-tab-label-active {
140
- opacity: 1;
141
- }
142
-
143
- &.no-underline {
144
- .mat-tab-header {
145
- border-bottom: none;
146
- }
147
- }
148
- &.tabs-stretch {
149
- .mat-tab-label {
150
- min-width: 0;
151
- flex-grow: 1;
152
- }
153
- }
154
- }
155
-
156
- mat-select {
157
- &.text-title {
158
- .mat-select-arrow,
159
- .mat-select-value {
160
- color: inherit;
161
- }
162
- }
163
- }
164
-
165
- mat-expansion-panel {
166
- &:last-child {
167
- border-bottom: none !important;
168
- }
169
- &:not([class*='mat-elevation-z']) {
170
- box-shadow: none !important;
171
- }
172
- &.mat-expansion-panel-spacing {
173
- margin: 0 !important;
174
- }
175
- .mat-expansion-panel-body {
176
- padding: 0 !important;
177
- }
178
- }
179
-
180
- mat-expansion-panel-header {
181
- &.mat-expanded {
182
- height: 48px !important;
183
- }
184
- }
185
-
186
- mat-form-field {
187
- &.mat-focused {
188
- .mat-form-field-label {
189
- color: inherit !important;
190
- }
191
- }
192
- &.mat-form-field-disabled {
193
- .mat-form-field-underline {
194
- background-image: none !important;
195
- }
196
- }
197
-
198
- .mat-form-field-infix {
199
- width: inherit;
200
- }
201
-
202
- &.no-underline {
203
- .mat-form-field-wrapper {
204
- padding-bottom: 0.7em;
205
- }
206
- .mat-form-field-underline {
207
- display: none !important;
208
- }
209
- }
210
-
211
- &.text-center {
212
- input {
213
- text-align: center;
214
- }
215
- .mat-input-wrapper {
216
- text-align: center;
217
- }
218
- }
219
-
220
- mat-hint {
221
- @include mouse-inactive();
222
- }
223
- }
224
-
225
- mat-chip:focus {
226
- outline: 0;
227
- }
228
-
229
- mat-list-item,
230
- mat-selection-list {
231
- font-weight: inherit;
232
- }
233
-
234
- mat-table {
235
- background: transparent !important;
236
- }
237
-
238
- mat-paginator {
239
- background: none !important;
240
- }
241
-
242
- .cdk-global-scrollblock {
243
- overflow-y: auto;
244
- }
245
-
246
- .cdk-overlay-pane {
247
- &.vi-window,
248
- &.vi-notification {
249
- position: absolute !important;
250
- }
251
- &.vi-draggable,
252
- &.vi-resizeable {
253
- border-radius: 4px;
254
- }
255
- &.vi-window {
256
- border: 2px solid transparent;
257
- }
258
- &.minimized {
259
- height: auto !important;
260
- min-height: 40px !important;
261
- }
262
-
263
- .mat-menu-content {
264
- padding: 0 !important;
265
- }
266
- .mat-menu-panel {
267
- max-width: none !important;
268
- max-height: none !important;
269
- min-height: 0px !important;
270
- }
271
- }
272
-
273
- .cdk-overlay-backdrop {
274
- background-color: rgba(black, 0.5);
275
- }
276
-
277
- .mat-form-field-suffix {
278
- button {
279
- .fa {
280
- font-size: 12px;
281
- padding-bottom: 2px;
282
- }
283
- }
284
- }
285
-
286
- .mat-body,
287
- .mat-title,
288
- .mat-caption,
289
- .mat-headline,
290
- .mat-body-strong,
291
- .mat-display-1,
292
- .mat-display-2,
293
- .mat-display-3,
294
- .mat-display-4 {
295
- margin: 0;
296
- }
297
-
298
- .text-underline {
299
- text-decoration: underline !important;
300
- &.dashed {
301
- text-decoration-style: dashed !important;
302
- }
303
- &.double {
304
- text-decoration-style: double !important;
305
- }
306
- &.dotted {
307
- text-decoration-style: dotted !important;
308
- }
309
- }
310
- .text-highlight {
311
- color: inherit;
312
- white-space: pre-wrap;
313
- word-break: break-all;
314
- }
315
- .text-one-line {
316
- @include text-one-line();
317
- }
318
- .text-multi-line {
319
- @include text-word-wrap-break-word();
320
- @include text-word-break-break-all();
321
- }
322
- .text-word-wrap-break-word {
323
- @include text-word-wrap-break-word();
324
- }
325
- .text-word-break-break-all {
326
- @include text-word-break-break-all();
327
- }
328
- .scroll-no {
329
- @include scroll-no();
330
- }
331
- .scroll-auto {
332
- @include scroll-auto();
333
- }
334
- .scroll-vertical,
335
- .vertical-scroll-only {
336
- @include vertical-scroll-only();
337
- }
338
- .scroll-horizontal,
339
- .horizontal-scroll-only {
340
- @include horizontal-scroll-only();
341
- }
342
-
343
- .mouse-help {
344
- @include mouse-help();
345
- }
346
- .mouse-wait {
347
- @include mouse-wait();
348
- }
349
- .mouse-active {
350
- @include mouse-active();
351
- }
352
- .mouse-enabled {
353
- @include mouse-enabled();
354
- }
355
- .mouse-disabled {
356
- @include mouse-disabled();
357
- }
358
- .mouse-inactive {
359
- @include mouse-inactive();
360
- }
361
- .mouse-disabled {
362
- @include mouse-disabled();
363
- }
364
-
365
- ::-webkit-scrollbar {
366
- width: 14px;
367
- height: 14px;
368
- }
369
- ::-webkit-scrollbar-thumb {
370
- height: 6px;
371
- min-height: 16px;
372
- border: 4px solid;
373
- background-clip: padding-box;
374
- -webkit-border-radius: 7px;
375
- }
376
- ::-webkit-scrollbar-thumb {
377
- border-color: transparent;
378
- -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
379
- }
380
- ::-webkit-scrollbar-corner {
381
- background-color: transparent;
382
- }
383
- ::-webkit-scrollbar-button {
384
- width: 0;
385
- height: 0;
386
- display: none;
387
- }
388
- .IIV::-webkit-media-controls-play-button,
389
- video::-webkit-media-controls-start-playback-button {
390
- opacity: 0;
391
- pointer-events: none;
392
- }
393
- }
394
-
395
- @mixin vi-mat-theme($theme) {
396
- $primary: map-get($theme, primary);
397
- $foreground: map-get($theme, foreground);
398
- $background: map-get($theme, background);
399
- $border-color: map-get($foreground, divider);
400
-
401
- mat-tab-header {
402
- border-color: $border-color;
403
- }
404
-
405
- mat-form-field {
406
- .mat-form-field-underline {
407
- background-color: $border-color !important;
408
- }
409
- }
410
-
411
- mat-progress-bar {
412
- &.border {
413
- border: none !important;
414
- .mat-progress-bar-buffer {
415
- background-color: $border-color;
416
- }
417
- }
418
- }
419
-
420
- mat-expansion-panel {
421
- background-color: transparent !important;
422
- border-bottom: 1px solid $border-color;
423
- &:last-child {
424
- border-bottom: none !important;
425
- }
426
- &:not([class*='mat-elevation-z']) {
427
- box-shadow: none !important;
428
- }
429
- }
430
-
431
- mat-table {
432
- mat-row {
433
- border-color: $border-color;
434
- &:last-child {
435
- border-bottom: none;
436
- }
437
- }
438
- mat-cell {
439
- &.active {
440
- background-color: map-get($background, hover) !important;
441
- }
442
- }
443
- }
444
-
445
- .mat-color-base {
446
- color: map-get($foreground, base) !important;
447
- }
448
-
449
- .mat-menu-panel {
450
- color: mat-color($foreground, text);
451
- }
452
-
453
- .cdk-overlay-pane {
454
- &.vi-blink {
455
- border: 2px solid mat-color($primary);
456
- }
457
- }
458
-
459
- $thumb-color: rgba(0, 0, 0, 0.15);
460
-
461
- @if map-get($theme, is-dark) {
462
- $thumb-color: rgba(255, 255, 255, 0.1);
463
- .mat-drawer-backdrop.mat-drawer-shown {
464
- background-color: rgba(0, 0, 0, 0.8);
465
- }
466
- }
467
-
468
- ::-webkit-scrollbar-thumb {
469
- background-color: $thumb-color;
470
- }
471
- }
472
-
473
- @mixin vi-mat-checkbox-multiline() {
474
- .mat-checkbox-layout {
475
- white-space: normal !important;
476
- }
477
- .mat-checkbox-inner-container {
478
- margin-top: 3px !important;
479
- }
480
- }
481
-
482
- /*--------------------------------------------------------------------------
483
- //
484
- // Functions
485
- //
486
- //-------------------------------------------------------------------------*/
487
-
488
- @function vi-mat-theme-background-change($theme, $name, $value) {
489
- $modified-theme: $theme;
490
- $theme-color: map-get($theme, color);
491
- $color-background-palette: map-get($theme-color, background);
492
- @if $color-background-palette {
493
- $color-background-palette: map-merge(
494
- $color-background-palette,
495
- (
496
- $name: $value
497
- )
498
- );
499
- }
500
- @if $color-background-palette {
501
- $modified-theme: map-merge(
502
- $modified-theme,
503
- (
504
- color: (
505
- background: $color-background-palette
506
- )
507
- )
508
- );
509
- }
510
- $background-palette: map-get($theme, background);
511
- @if $background-palette {
512
- $background-palette: map-merge(
513
- $background-palette,
514
- (
515
- $name: $value
516
- )
517
- );
518
- }
519
- @if $background-palette {
520
- $modified-theme: map-merge(
521
- $modified-theme,
522
- (
523
- background: $background-palette
524
- )
525
- );
526
- }
527
- @return $modified-theme;
528
- }
529
-
530
- @function vi-mat-theme-foreground-change($theme, $name, $value) {
531
- $modified-theme: $theme;
532
- $theme-color: map-get($theme, color);
533
- $color-foreground-palette: map-get($theme-color, foreground);
534
- @if $color-foreground-palette {
535
- $color-foreground-palette: map-merge(
536
- $color-foreground-palette,
537
- (
538
- $name: $value
539
- )
540
- );
541
- }
542
- @if $color-foreground-palette {
543
- $modified-theme: map-merge(
544
- $modified-theme,
545
- (
546
- color: (
547
- foreground: $color-foreground-palette
548
- )
549
- )
550
- );
551
- }
552
- $foreground-palette: map-get($theme, foreground);
553
- @if $foreground-palette {
554
- $foreground-palette: map-merge(
555
- $foreground-palette,
556
- (
557
- $name: $value
558
- )
559
- );
560
- }
561
- @if $foreground-palette {
562
- $modified-theme: map-merge(
563
- $modified-theme,
564
- (
565
- foreground: $foreground-palette
566
- )
567
- );
568
- }
569
- @return $modified-theme;
570
- }
package/style/mixin.scss DELETED
@@ -1,69 +0,0 @@
1
- /*--------------------------------------------------------------------------
2
- //
3
- // Common
4
- //
5
- //-------------------------------------------------------------------------*/
6
-
7
- @mixin saturation($value) {
8
- @include grayscale();
9
- }
10
-
11
- @mixin filter-grayscale($value) {
12
- filter: none;
13
- -o-filter: grayscale($value);
14
- -ms-filter: grayscale($value);
15
- -moz-filter: grayscale($value);
16
- -webkit-filter: grayscale($value);
17
- }
18
-
19
- @mixin filter-invert($value) {
20
- filter: none;
21
- -o-filter: invert($value);
22
- -ms-filter: invert($value);
23
- -moz-filter: invert($value);
24
- -webkit-filter: invert($value);
25
- }
26
-
27
- @mixin scroll-no() {
28
- overflow-y: hidden;
29
- overflow-x: hidden;
30
- -webkit-overflow-scrolling: touch;
31
- }
32
-
33
- @mixin scroll-auto() {
34
- overflow-y: auto;
35
- overflow-x: auto;
36
- -webkit-overflow-scrolling: touch;
37
- }
38
-
39
- @mixin vertical-scroll-only() {
40
- overflow-y: auto;
41
- overflow-x: hidden;
42
- -webkit-overflow-scrolling: touch;
43
- }
44
-
45
- @mixin horizontal-scroll-only() {
46
- overflow-y: hidden;
47
- overflow-x: auto;
48
- -webkit-overflow-scrolling: touch;
49
- }
50
-
51
- /*--------------------------------------------------------------------------
52
- //
53
- // Text
54
- //
55
- //-------------------------------------------------------------------------*/
56
-
57
- @mixin text-word-wrap-break-word() {
58
- word-wrap: break-word;
59
- }
60
- @mixin text-word-break-break-all() {
61
- word-break: break-all;
62
- }
63
-
64
- @mixin text-one-line() {
65
- min-width: 0;
66
- overflow: hidden;
67
- white-space: nowrap;
68
- text-overflow: ellipsis;
69
- }
package/style/mouse.scss DELETED
@@ -1,47 +0,0 @@
1
- /*--------------------------------------------------------------------------
2
- //
3
- // Mixin
4
- //
5
- //-------------------------------------------------------------------------*/
6
-
7
- @mixin mouse-cursor-mixin($value) {
8
- cursor: $value !important;
9
- }
10
-
11
- @mixin mouse-pointer-events-mixin($value) {
12
- pointer-events: $value !important;
13
- }
14
-
15
- /*--------------------------------------------------------------------------
16
- //
17
- // Common
18
- //
19
- //-------------------------------------------------------------------------*/
20
-
21
- @mixin mouse-active() {
22
- @include mouse-cursor-mixin(pointer);
23
- }
24
-
25
- @mixin mouse-inactive() {
26
- @include mouse-cursor-mixin(default);
27
- }
28
-
29
- @mixin mouse-move(){
30
- @include mouse-cursor-mixin(move);
31
- }
32
-
33
- @mixin mouse-help(){
34
- @include mouse-cursor-mixin(help);
35
- }
36
-
37
- @mixin mouse-wait(){
38
- @include mouse-cursor-mixin(wait);
39
- }
40
-
41
- @mixin mouse-enabled() {
42
- @include mouse-pointer-events-mixin(auto);
43
- }
44
-
45
- @mixin mouse-disabled() {
46
- @include mouse-pointer-events-mixin(none);
47
- }