@ionic/core 9.0.11-dev.11793728481.1fc40367 → 9.0.11-dev.11793792571.1765ff65
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/components/ion-badge.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/{p-B7ExaLVL.js → p-BCQSEpww.js} +1 -1
- package/components/p-Da8LCPwo.js +4 -0
- package/components/p-DirxxGzo.js +4 -0
- package/components/{p-BCYVFy50.js → p-py1vB-7U.js} +1 -1
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +13 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -33
- package/dist/cjs/ion-datetime.cjs.entry.js +36 -353
- package/dist/cjs/ion-item-option_3.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/badge/badge.ionic.css +1 -1
- package/dist/collection/components/button/button.ionic.css +1 -1
- package/dist/collection/components/content/content.ionic.css +352 -0
- package/dist/collection/components/content/{content.css → content.ios.css} +65 -41
- package/dist/collection/components/content/content.js +9 -5
- package/dist/collection/components/content/content.md.css +347 -0
- package/dist/collection/components/datetime/datetime.ionic.css +5 -179
- package/dist/collection/components/datetime/datetime.ios.css +2 -134
- package/dist/collection/components/datetime/datetime.js +33 -406
- package/dist/collection/components/datetime/datetime.md.css +0 -120
- package/dist/collection/components/datetime/utils/state.js +1 -18
- package/dist/collection/components/datetime-button/datetime-button.js +6 -34
- package/dist/collection/components/item-option/item-option.ionic.css +1 -1
- package/dist/docs.json +127 -160
- package/dist/esm/{format-DUHrIiJq.js → format-NT7iHsbA.js} +1 -1
- package/dist/esm/ion-app_8.entry.js +13 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +7 -34
- package/dist/esm/ion-datetime.entry.js +37 -354
- package/dist/esm/ion-item-option_3.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +0 -20
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0743a26a.entry.js +4 -0
- package/dist/ionic/p-1d709b26.entry.js +4 -0
- package/dist/ionic/p-39e3be74.entry.js +4 -0
- package/dist/ionic/p-6e4ee264.entry.js +4 -0
- package/dist/ionic/{p-CaOPF8Xt.js → p-BtccSO5J.js} +1 -1
- package/dist/ionic/p-ad46d2fd.entry.js +4 -0
- package/dist/ionic/{p-8231e914.entry.js → p-b51eb274.entry.js} +1 -1
- package/dist/types/components/datetime/datetime-interface.d.ts +0 -4
- package/dist/types/components/datetime/datetime.d.ts +2 -71
- package/dist/types/components/datetime/utils/state.d.ts +2 -5
- package/dist/types/components.d.ts +0 -33
- package/hydrate/index.js +59 -403
- package/hydrate/index.mjs +59 -403
- package/package.json +1 -1
- package/components/p-ByE0slik.js +0 -4
- package/components/p-DktrWeJE.js +0 -4
- package/dist/ionic/p-41680415.entry.js +0 -4
- package/dist/ionic/p-56d77e95.entry.js +0 -4
- package/dist/ionic/p-a52cba2f.entry.js +0 -4
- package/dist/ionic/p-b30b468d.entry.js +0 -4
- package/dist/ionic/p-ceca04fb.entry.js +0 -4
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A heuristic that applies CSS to tablet
|
|
3
|
+
* viewports.
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* @include tablet-viewport() {
|
|
7
|
+
* :host {
|
|
8
|
+
* background-color: green;
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A heuristic that applies CSS to mobile
|
|
14
|
+
* viewports (i.e. phones, not tablets).
|
|
15
|
+
*
|
|
16
|
+
* Usage:
|
|
17
|
+
* @include mobile-viewport() {
|
|
18
|
+
* :host {
|
|
19
|
+
* background-color: blue;
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Convert a pixels given value into rem
|
|
25
|
+
*
|
|
26
|
+
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
27
|
+
* @param context (optional) - Baseline value
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Convert a font size to a dynamic font size.
|
|
31
|
+
* Fonts that participate in Dynamic Type should use
|
|
32
|
+
* dynamic font sizes.
|
|
33
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
34
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
35
|
+
* convert to a unit other than $baselineUnit.
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Convert a font size to a dynamic font size but impose
|
|
39
|
+
* a maximum font size.
|
|
40
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
41
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
42
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
43
|
+
* convert to a unit other than $baselineUnit.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Convert a font size to a dynamic font size but impose
|
|
47
|
+
* a minimum font size.
|
|
48
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
49
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
50
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
51
|
+
* convert to a unit other than $baselineUnit.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Convert a font size to a dynamic font size but impose
|
|
55
|
+
* maximum and minimum font sizes.
|
|
56
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
57
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
58
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
59
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
60
|
+
* convert to a unit other than $baselineUnit.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* A heuristic that applies CSS to tablet
|
|
64
|
+
* viewports.
|
|
65
|
+
*
|
|
66
|
+
* Usage:
|
|
67
|
+
* @include tablet-viewport() {
|
|
68
|
+
* :host {
|
|
69
|
+
* background-color: green;
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* A heuristic that applies CSS to mobile
|
|
75
|
+
* viewports (i.e. phones, not tablets).
|
|
76
|
+
*
|
|
77
|
+
* Usage:
|
|
78
|
+
* @include mobile-viewport() {
|
|
79
|
+
* :host {
|
|
80
|
+
* background-color: blue;
|
|
81
|
+
* }
|
|
82
|
+
* }
|
|
83
|
+
*/
|
|
84
|
+
:host {
|
|
85
|
+
/**
|
|
86
|
+
* @prop --background: Background of the content
|
|
87
|
+
*
|
|
88
|
+
* @prop --color: Color of the content
|
|
89
|
+
*
|
|
90
|
+
* @prop --padding-top: Top padding of the content
|
|
91
|
+
* @prop --padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content
|
|
92
|
+
* @prop --padding-bottom: Bottom padding of the content
|
|
93
|
+
* @prop --padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content
|
|
94
|
+
*
|
|
95
|
+
* @prop --keyboard-offset: Keyboard offset of the content
|
|
96
|
+
*
|
|
97
|
+
* @prop --offset-top: Offset top of the content
|
|
98
|
+
* @prop --offset-bottom: Offset bottom of the content
|
|
99
|
+
*/
|
|
100
|
+
--padding-top: 0px;
|
|
101
|
+
--padding-bottom: 0px;
|
|
102
|
+
--padding-start: 0px;
|
|
103
|
+
--padding-end: 0px;
|
|
104
|
+
--keyboard-offset: 0px;
|
|
105
|
+
--offset-top: 0px;
|
|
106
|
+
--offset-bottom: 0px;
|
|
107
|
+
--overflow: auto;
|
|
108
|
+
display: block;
|
|
109
|
+
position: relative;
|
|
110
|
+
flex: 1;
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
/* stylelint-disable */
|
|
114
|
+
margin: 0 !important;
|
|
115
|
+
padding: 0 !important;
|
|
116
|
+
/* stylelint-enable */
|
|
117
|
+
font-family: var(--ion-font-family, inherit);
|
|
118
|
+
contain: size style;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host(.ion-color) .inner-scroll {
|
|
122
|
+
background: var(--ion-color-base);
|
|
123
|
+
color: var(--ion-color-contrast);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#background-content {
|
|
127
|
+
right: 0px;
|
|
128
|
+
left: 0px;
|
|
129
|
+
top: calc(var(--offset-top) * -1);
|
|
130
|
+
bottom: calc(var(--offset-bottom) * -1);
|
|
131
|
+
position: absolute;
|
|
132
|
+
background: var(--background);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.inner-scroll {
|
|
136
|
+
right: 0px;
|
|
137
|
+
left: 0px;
|
|
138
|
+
top: calc(var(--offset-top) * -1);
|
|
139
|
+
bottom: calc(var(--offset-bottom) * -1);
|
|
140
|
+
-webkit-padding-start: var(--padding-start);
|
|
141
|
+
padding-inline-start: var(--padding-start);
|
|
142
|
+
-webkit-padding-end: var(--padding-end);
|
|
143
|
+
padding-inline-end: var(--padding-end);
|
|
144
|
+
padding-top: calc(var(--padding-top) + var(--offset-top));
|
|
145
|
+
padding-bottom: calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));
|
|
146
|
+
position: absolute;
|
|
147
|
+
color: var(--color);
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
/**
|
|
151
|
+
* touch-action: manipulation is an alias
|
|
152
|
+
* for this, but WebKit has an issue
|
|
153
|
+
* where pointercancel events are not fired
|
|
154
|
+
* when scrolling: https://bugs.webkit.org/show_bug.cgi?id=240917
|
|
155
|
+
* Using the long form below avoids the issue.
|
|
156
|
+
*/
|
|
157
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.scroll-y,
|
|
161
|
+
.scroll-x {
|
|
162
|
+
-webkit-overflow-scrolling: touch;
|
|
163
|
+
/**
|
|
164
|
+
* This adds `.inner-scroll` as part of the
|
|
165
|
+
* stacking context in WebKit. Without it,
|
|
166
|
+
* children of ion-content are treated as
|
|
167
|
+
* siblings rather than descendants. This
|
|
168
|
+
* can result in the children being put
|
|
169
|
+
* into their own layers, degrading
|
|
170
|
+
* scrolling performance.
|
|
171
|
+
*
|
|
172
|
+
* An optimization called "layer backing
|
|
173
|
+
* sharing" usually kicks in to prevent
|
|
174
|
+
* this, but having translate3d defeats
|
|
175
|
+
* this optimization.
|
|
176
|
+
*
|
|
177
|
+
* See: https://bugs.webkit.org/show_bug.cgi?id=216701
|
|
178
|
+
*/
|
|
179
|
+
z-index: 0;
|
|
180
|
+
will-change: scroll-position;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.scroll-y {
|
|
184
|
+
overflow-y: var(--overflow);
|
|
185
|
+
overscroll-behavior-y: contain;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.scroll-x {
|
|
189
|
+
overflow-x: var(--overflow);
|
|
190
|
+
overscroll-behavior-x: contain;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.overscroll::before,
|
|
194
|
+
.overscroll::after {
|
|
195
|
+
position: absolute;
|
|
196
|
+
width: 1px;
|
|
197
|
+
height: 1px;
|
|
198
|
+
content: "";
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.overscroll::before {
|
|
202
|
+
bottom: -1px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.overscroll::after {
|
|
206
|
+
top: -1px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:host(.content-sizing) {
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
/**
|
|
213
|
+
* This resolves a sizing issue in popovers where extra long content
|
|
214
|
+
* would overflow the popover's height, preventing scrolling. It's a
|
|
215
|
+
* quirk of flexbox that forces the content to shrink to fit.
|
|
216
|
+
*
|
|
217
|
+
* overflow: hidden can't be used here because it prevents the visual
|
|
218
|
+
* effect from showing on translucent headers.
|
|
219
|
+
*/
|
|
220
|
+
min-height: 0;
|
|
221
|
+
contain: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
:host(.content-sizing) .inner-scroll {
|
|
225
|
+
position: relative;
|
|
226
|
+
/**
|
|
227
|
+
* Because the outer content has display: flex here (to help enable
|
|
228
|
+
* scrolling in a popover), offsetting via `top` (such as when using
|
|
229
|
+
* a translucent header) creates white space under the content. Use
|
|
230
|
+
* a negative margin instead to keep the bottom in place. (A similar
|
|
231
|
+
* thing happens with `bottom` and footers.)
|
|
232
|
+
*/
|
|
233
|
+
top: 0;
|
|
234
|
+
bottom: 0;
|
|
235
|
+
margin-top: calc(var(--offset-top) * -1);
|
|
236
|
+
margin-bottom: calc(var(--offset-bottom) * -1);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.transition-effect {
|
|
240
|
+
display: none;
|
|
241
|
+
position: absolute;
|
|
242
|
+
width: 100%;
|
|
243
|
+
height: 100vh;
|
|
244
|
+
opacity: 0;
|
|
245
|
+
pointer-events: none;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host(.content-ltr) .transition-effect {
|
|
249
|
+
/* stylelint-disable property-disallowed-list */
|
|
250
|
+
left: -100%;
|
|
251
|
+
/* stylelint-enable property-disallowed-list */
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
:host(.content-rtl) .transition-effect {
|
|
255
|
+
/* stylelint-disable property-disallowed-list */
|
|
256
|
+
right: -100%;
|
|
257
|
+
/* stylelint-enable property-disallowed-list */
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.transition-cover {
|
|
261
|
+
position: absolute;
|
|
262
|
+
/* stylelint-disable property-disallowed-list */
|
|
263
|
+
right: 0;
|
|
264
|
+
/* stylelint-enable property-disallowed-list */
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
background: black;
|
|
268
|
+
opacity: 0.1;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.transition-shadow {
|
|
272
|
+
display: block;
|
|
273
|
+
position: absolute;
|
|
274
|
+
width: 100%;
|
|
275
|
+
height: 100%;
|
|
276
|
+
box-shadow: inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
:host(.content-ltr) .transition-shadow {
|
|
280
|
+
/* stylelint-disable property-disallowed-list */
|
|
281
|
+
right: 0;
|
|
282
|
+
/* stylelint-enable property-disallowed-list */
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:host(.content-rtl) .transition-shadow {
|
|
286
|
+
/* stylelint-disable property-disallowed-list */
|
|
287
|
+
left: 0;
|
|
288
|
+
/* stylelint-enable property-disallowed-list */
|
|
289
|
+
transform: scaleX(-1);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
::slotted([slot=fixed]) {
|
|
293
|
+
position: absolute;
|
|
294
|
+
/**
|
|
295
|
+
* When presenting ion-content inside of an ion-modal, the .inner-scroll
|
|
296
|
+
* element is composited. In WebKit, the fixed content is not composited
|
|
297
|
+
* causing it to appear under the main scrollable content as a result.
|
|
298
|
+
* The fixed content is correctly composited in other browsers. Adding
|
|
299
|
+
* the translateZ forces the fixed content to be composited so it correctly
|
|
300
|
+
* shows on top of the scrollable content. Setting a negative z-index will
|
|
301
|
+
* still allow the fixed content to appear under the scroll content if specified.
|
|
302
|
+
*/
|
|
303
|
+
transform: translateZ(0);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
307
|
+
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll {
|
|
311
|
+
height: calc(100% + var(--internal-header-hide-height, 0px));
|
|
312
|
+
transform: translateY(calc(-1 * var(--internal-header-hide-height, 0px)));
|
|
313
|
+
transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
317
|
+
transition: height 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll {
|
|
321
|
+
height: calc(100% + var(--internal-footer-hide-height, 0px));
|
|
322
|
+
transition: height 350ms cubic-bezier(0.4, 0, 1, 1);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll {
|
|
326
|
+
transition: height 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
|
|
330
|
+
height: calc(100% + var(--internal-tab-bar-hide-height, 0px));
|
|
331
|
+
transition: height 350ms cubic-bezier(0.4, 0, 1, 1);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@media (prefers-reduced-motion: reduce) {
|
|
335
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
336
|
+
:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,
|
|
337
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
338
|
+
:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,
|
|
339
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,
|
|
340
|
+
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
|
|
341
|
+
transition: none;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
:host {
|
|
345
|
+
--background: var(--ion-background-color, var(--token-bg-body, var(--token-primitives-base-white, #ffffff)));
|
|
346
|
+
/**
|
|
347
|
+
* Inherit the text color set on `body`
|
|
348
|
+
* (or any closer ancestor) instead of
|
|
349
|
+
* resetting it.
|
|
350
|
+
*/
|
|
351
|
+
--color: currentColor;
|
|
352
|
+
}
|
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert a pixels given value into rem
|
|
3
|
-
*
|
|
4
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
5
|
-
* @param context (optional) - Baseline value
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Convert a font size to a dynamic font size.
|
|
9
|
-
* Fonts that participate in Dynamic Type should use
|
|
10
|
-
* dynamic font sizes.
|
|
11
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
12
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
13
|
-
* convert to a unit other than $baselineUnit.
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Convert a font size to a dynamic font size but impose
|
|
17
|
-
* a maximum font size.
|
|
18
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
19
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
20
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
21
|
-
* convert to a unit other than $baselineUnit.
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Convert a font size to a dynamic font size but impose
|
|
25
|
-
* a minimum font size.
|
|
26
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
27
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
28
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
29
|
-
* convert to a unit other than $baselineUnit.
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Convert a font size to a dynamic font size but impose
|
|
33
|
-
* maximum and minimum font sizes.
|
|
34
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
35
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
36
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
37
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
38
|
-
* convert to a unit other than $baselineUnit.
|
|
39
|
-
*/
|
|
40
1
|
/**
|
|
41
2
|
* A heuristic that applies CSS to tablet
|
|
42
3
|
* viewports.
|
|
@@ -75,8 +36,6 @@
|
|
|
75
36
|
* @prop --offset-top: Offset top of the content
|
|
76
37
|
* @prop --offset-bottom: Offset bottom of the content
|
|
77
38
|
*/
|
|
78
|
-
--background: var(--ion-background-color, #fff);
|
|
79
|
-
--color: var(--ion-text-color, #000);
|
|
80
39
|
--padding-top: 0px;
|
|
81
40
|
--padding-bottom: 0px;
|
|
82
41
|
--padding-start: 0px;
|
|
@@ -320,4 +279,69 @@
|
|
|
320
279
|
:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll {
|
|
321
280
|
transition: none;
|
|
322
281
|
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Convert a pixels given value into rem
|
|
285
|
+
*
|
|
286
|
+
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
287
|
+
* @param context (optional) - Baseline value
|
|
288
|
+
*/
|
|
289
|
+
/**
|
|
290
|
+
* Convert a font size to a dynamic font size.
|
|
291
|
+
* Fonts that participate in Dynamic Type should use
|
|
292
|
+
* dynamic font sizes.
|
|
293
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
294
|
+
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
295
|
+
* convert to a unit other than $baselineUnit.
|
|
296
|
+
*/
|
|
297
|
+
/**
|
|
298
|
+
* Convert a font size to a dynamic font size but impose
|
|
299
|
+
* a maximum font size.
|
|
300
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
301
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
302
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
303
|
+
* convert to a unit other than $baselineUnit.
|
|
304
|
+
*/
|
|
305
|
+
/**
|
|
306
|
+
* Convert a font size to a dynamic font size but impose
|
|
307
|
+
* a minimum font size.
|
|
308
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
309
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
310
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
311
|
+
* convert to a unit other than $baselineUnit.
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* Convert a font size to a dynamic font size but impose
|
|
315
|
+
* maximum and minimum font sizes.
|
|
316
|
+
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
317
|
+
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
318
|
+
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
319
|
+
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
320
|
+
* convert to a unit other than $baselineUnit.
|
|
321
|
+
*/
|
|
322
|
+
/**
|
|
323
|
+
* A heuristic that applies CSS to tablet
|
|
324
|
+
* viewports.
|
|
325
|
+
*
|
|
326
|
+
* Usage:
|
|
327
|
+
* @include tablet-viewport() {
|
|
328
|
+
* :host {
|
|
329
|
+
* background-color: green;
|
|
330
|
+
* }
|
|
331
|
+
* }
|
|
332
|
+
*/
|
|
333
|
+
/**
|
|
334
|
+
* A heuristic that applies CSS to mobile
|
|
335
|
+
* viewports (i.e. phones, not tablets).
|
|
336
|
+
*
|
|
337
|
+
* Usage:
|
|
338
|
+
* @include mobile-viewport() {
|
|
339
|
+
* :host {
|
|
340
|
+
* background-color: blue;
|
|
341
|
+
* }
|
|
342
|
+
* }
|
|
343
|
+
*/
|
|
344
|
+
:host {
|
|
345
|
+
--background: var(--ion-background-color, #fff);
|
|
346
|
+
--color: var(--ion-text-color, #000);
|
|
323
347
|
}
|
|
@@ -471,7 +471,7 @@ export class Content {
|
|
|
471
471
|
const forceOverscroll = this.shouldForceOverscroll(mode);
|
|
472
472
|
const transitionShadow = theme === 'ios';
|
|
473
473
|
this.resize();
|
|
474
|
-
return (h(Host, { key: '
|
|
474
|
+
return (h(Host, { key: '6cdef99e2396f9b451240ee739800b6d4a0df9fa', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
475
475
|
[theme]: true,
|
|
476
476
|
'content-fullscreen': this.fullscreen,
|
|
477
477
|
'content-sizing': this.sizeToContent,
|
|
@@ -480,23 +480,27 @@ export class Content {
|
|
|
480
480
|
}), style: {
|
|
481
481
|
'--offset-top': `${this.cTop}px`,
|
|
482
482
|
'--offset-bottom': `${this.cBottom}px`,
|
|
483
|
-
}, ...inheritedAttributes }, h("div", { key: '
|
|
483
|
+
}, ...inheritedAttributes }, h("div", { key: 'bbd9b4bf3fc97404cd42bb7824fc20e031f77922', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: '4d4747e2495645da20a0718275a77f44fdbdd82d', class: {
|
|
484
484
|
'inner-scroll': true,
|
|
485
485
|
'scroll-x': scrollX,
|
|
486
486
|
'scroll-y': scrollY,
|
|
487
487
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
488
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
488
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: 'fbafdcfd579732945a3f375fb6cc9777651f41f5' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
|
|
489
489
|
}
|
|
490
490
|
static get is() { return "ion-content"; }
|
|
491
491
|
static get encapsulation() { return "shadow"; }
|
|
492
492
|
static get originalStyleUrls() {
|
|
493
493
|
return {
|
|
494
|
-
"
|
|
494
|
+
"ios": ["content.ios.scss"],
|
|
495
|
+
"md": ["content.md.scss"],
|
|
496
|
+
"ionic": ["content.ionic.scss"]
|
|
495
497
|
};
|
|
496
498
|
}
|
|
497
499
|
static get styleUrls() {
|
|
498
500
|
return {
|
|
499
|
-
"
|
|
501
|
+
"ios": ["content.ios.css"],
|
|
502
|
+
"md": ["content.md.css"],
|
|
503
|
+
"ionic": ["content.ionic.css"]
|
|
500
504
|
};
|
|
501
505
|
}
|
|
502
506
|
static get properties() {
|