@ptsecurity/mosaic 14.2.3 → 14.2.5

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/_theming.scss CHANGED
@@ -1,4 +1,244 @@
1
1
  // Import all the theming
2
+ // We want overlays to always appear over user content, so set a baseline
3
+ // very high z-index for the overlay container, which is where we create the new
4
+ // stacking context for all overlays.
5
+ $overlay-container-z-index: 1000 !default;
6
+ $overlay-z-index: 1000 !default;
7
+ $overlay-backdrop-z-index: 1000 !default;
8
+
9
+ // Background color for all of the backdrops
10
+ $overlay-backdrop-color: rgba(0, 0, 0, 0.32) !default;
11
+
12
+ // Default backdrop animation is based on the Material Design swift-ease-out.
13
+ $backdrop-animation-duration: 400ms !default;
14
+ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
15
+
16
+ /// Emits structural styles required for cdk/overlay to function.
17
+ @mixin overlay() {
18
+ .cdk-overlay-container, .cdk-global-overlay-wrapper {
19
+ // Disable events from being captured on the overlay container.
20
+ pointer-events: none;
21
+
22
+ // The container should be the size of the viewport.
23
+ top: 0;
24
+ left: 0;
25
+ height: 100%;
26
+ width: 100%;
27
+ }
28
+
29
+ // The overlay-container is an invisible element which contains all individual overlays.
30
+ .cdk-overlay-container {
31
+ position: fixed;
32
+ z-index: $overlay-container-z-index;
33
+
34
+ &:empty {
35
+ // Hide the element when it doesn't have any child nodes. This doesn't
36
+ // include overlays that have been detached, rather than disposed.
37
+ display: none;
38
+ }
39
+ }
40
+
41
+ // We use an extra wrapper element in order to use make the overlay itself a flex item.
42
+ // This makes centering the overlay easy without running into the subpixel rendering
43
+ // problems tied to using `transform` and without interfering with the other position
44
+ // strategies.
45
+ .cdk-global-overlay-wrapper {
46
+ display: flex;
47
+ position: absolute;
48
+ z-index: $overlay-z-index;
49
+ }
50
+
51
+ // A single overlay pane.
52
+ .cdk-overlay-pane {
53
+ // Note: it's important for this one to start off `absolute`,
54
+ // in order for us to be able to measure it correctly.
55
+ position: absolute;
56
+ pointer-events: auto;
57
+ box-sizing: border-box;
58
+ z-index: $overlay-z-index;
59
+
60
+ // For connected-position overlays, we set `display: flex` in
61
+ // order to force `max-width` and `max-height` to take effect.
62
+ display: flex;
63
+ max-width: 100%;
64
+ max-height: 100%;
65
+ }
66
+
67
+ .cdk-overlay-backdrop {
68
+ // TODO(jelbourn): reuse sidenav fullscreen mixin.
69
+ position: absolute;
70
+ top: 0;
71
+ bottom: 0;
72
+ left: 0;
73
+ right: 0;
74
+
75
+ z-index: $overlay-backdrop-z-index;
76
+ pointer-events: auto;
77
+ -webkit-tap-highlight-color: transparent;
78
+ transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
79
+ opacity: 0;
80
+
81
+ &.cdk-overlay-backdrop-showing {
82
+ opacity: 1;
83
+
84
+ // Note that we can't import and use the `high-contrast` mixin from `_a11y.scss`, because
85
+ // this file will be copied to the top-level `cdk` package when putting together the files
86
+ // for npm. Any relative import paths we use here will become invalid once the file is copied.
87
+ .cdk-high-contrast-active & {
88
+ // In high contrast mode the rgba background will become solid
89
+ // so we need to fall back to making it opaque using `opacity`.
90
+ opacity: 0.6;
91
+ }
92
+ }
93
+ }
94
+
95
+ .cdk-overlay-dark-backdrop {
96
+ background: $overlay-backdrop-color;
97
+ }
98
+
99
+ .cdk-overlay-transparent-backdrop {
100
+ // Define a transition on the visibility so that the `transitionend` event can fire immediately.
101
+ transition: visibility 1ms linear, opacity 1ms linear;
102
+ visibility: hidden;
103
+ opacity: 1;
104
+
105
+ // Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
106
+ // capturing the user's mouse scroll events. Since we also can't use something like
107
+ // `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
108
+ // all and using `opacity` to make the element transparent.
109
+ &.cdk-overlay-backdrop-showing {
110
+ opacity: 0;
111
+ visibility: visible;
112
+ }
113
+ }
114
+
115
+ .cdk-overlay-backdrop-noop-animation {
116
+ transition: none;
117
+ }
118
+
119
+ // Overlay parent element used with the connected position strategy. Used to constrain the
120
+ // overlay element's size to fit within the viewport.
121
+ .cdk-overlay-connected-position-bounding-box {
122
+ position: absolute;
123
+ z-index: $overlay-z-index;
124
+
125
+ // We use `display: flex` on this element exclusively for centering connected overlays.
126
+ // When *not* centering, a top/left/bottom/right will be set which overrides the normal
127
+ // flex layout.
128
+ display: flex;
129
+
130
+ // We use the `column` direction here to avoid some flexbox issues in Edge
131
+ // when using the "grow after open" options.
132
+ flex-direction: column;
133
+
134
+ // Add some dimensions so the element has an `innerText` which some people depend on in tests.
135
+ min-width: 1px;
136
+ min-height: 1px;
137
+ }
138
+
139
+ // Used when disabling global scrolling.
140
+ .cdk-global-scrollblock {
141
+ position: fixed;
142
+
143
+ // Necessary for the content not to lose its width. Note that we're using 100%, instead of
144
+ // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
145
+ // that the element had before we made it `fixed`.
146
+ width: 100%;
147
+
148
+ // Note: this will always add a scrollbar to whatever element it is on, which can
149
+ // potentially result in double scrollbars. It shouldn't be an issue, because we won't
150
+ // block scrolling on a page that doesn't have a scrollbar in the first place.
151
+ overflow-y: scroll;
152
+ }
153
+ }
154
+
155
+ @mixin cdk-a11y {
156
+ .cdk-visually-hidden {
157
+ border: 0;
158
+ clip: rect(0 0 0 0);
159
+ height: 1px;
160
+ margin: -1px;
161
+ overflow: hidden;
162
+ padding: 0;
163
+ position: absolute;
164
+ width: 1px;
165
+
166
+ // Avoid browsers rendering the focus ring in some cases.
167
+ outline: 0;
168
+
169
+ // Avoid some cases where the browser will still render the native controls (see #9049).
170
+ -webkit-appearance: none;
171
+ -moz-appearance: none;
172
+ }
173
+ }
174
+
175
+ /// Emits the mixin's content nested under `$selector-context` if `$selector-context`
176
+ /// is non-empty.
177
+ /// @param selector-context The selector under which to nest the mixin's content.
178
+ @mixin _cdk-optionally-nest-content($selector-context) {
179
+ @if ($selector-context == '') {
180
+ @content;
181
+ }
182
+ @else {
183
+ #{$selector-context} {
184
+ @content;
185
+ }
186
+ }
187
+ }
188
+
189
+ /// Applies styles for users in high contrast mode. Note that this only applies
190
+ /// to Microsoft browsers. Chrome can be included by checking for the `html[hc]`
191
+ /// attribute, however Chrome handles high contrast differently.
192
+ ///
193
+ /// @param target Which kind of high contrast setting to target. Defaults to `active`, can be
194
+ /// `white-on-black` or `black-on-white`.
195
+ /// @param encapsulation Whether to emit styles for view encapsulation. Values are:
196
+ /// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
197
+ /// * `off` - works for `None`
198
+ /// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
199
+ @mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
200
+ @if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
201
+ @error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
202
+ 'Allowed values are "active", "black-on-white", and "white-on-black"';
203
+ }
204
+
205
+ @if ($encapsulation != 'on' and $encapsulation != 'off' and $encapsulation != 'any') {
206
+ @error 'Unknown cdk-high-contrast encapsulation "#{$encapsulation}" provided. ' +
207
+ 'Allowed values are "on", "off", and "any"';
208
+ }
209
+
210
+ // If the selector context has multiple parts, such as `.section, .region`, just doing
211
+ // `.cdk-high-contrast-xxx #{&}` will only apply the parent selector to the first part of the
212
+ // context. We address this by nesting the selector context under .cdk-high-contrast.
213
+ @at-root {
214
+ $selector-context: #{&};
215
+
216
+ @if ($encapsulation != 'on') {
217
+ .cdk-high-contrast-#{$target} {
218
+ @include _cdk-optionally-nest-content($selector-context) {
219
+ @content;
220
+ }
221
+ }
222
+ }
223
+
224
+ @if ($encapsulation != 'off') {
225
+ .cdk-high-contrast-#{$target} :host {
226
+ @include _cdk-optionally-nest-content($selector-context) {
227
+ @content;
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+
234
+
235
+
236
+ // Mixin that renders all of the core styles that are not theme-dependent.
237
+ @mixin mc-core() {
238
+ @include cdk-a11y();
239
+ @include overlay();
240
+ }
241
+
2
242
 
3
243
  // Do not edit directly
4
244
 
@@ -1,3 +1,3 @@
1
1
  import { Version } from '@angular/core';
2
- export const VERSION = new Version('14.2.3+sha-1460f10');
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL21vc2FpYy9jb3JlL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUd4QyxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsb0JBQW9CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFZlcnNpb24gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcxNC4yLjMrc2hhLTE0NjBmMTAnKTtcbiJdfQ==
2
+ export const VERSION = new Version('14.2.5+sha-3370ed8');
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL21vc2FpYy9jb3JlL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUd4QyxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsb0JBQW9CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFZlcnNpb24gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcxNC4yLjUrc2hhLTMzNzBlZDgnKTtcbiJdfQ==
@@ -17,7 +17,7 @@ import { takeUntil, distinctUntilChanged, delay } from 'rxjs/operators';
17
17
  import * as i1$1 from '@angular/cdk/a11y';
18
18
  import { ComponentPortal } from '@angular/cdk/portal';
19
19
 
20
- const VERSION = new Version('14.2.3+sha-1460f10');
20
+ const VERSION = new Version('14.2.5+sha-3370ed8');
21
21
 
22
22
  function isBoolean(val) { return typeof val === 'boolean'; }
23
23
  function toBoolean(value) {