@ionic/core 9.0.11-dev.11793666452.109ac2a5 → 9.0.11-dev.11793719937.1e883321
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-action-sheet.js +1 -1
- package/components/ion-alert.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-modal.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/{p-B7ExaLVL.js → p-BCQSEpww.js} +1 -1
- package/components/{p-BCYVFy50.js → p-CseHeZbU.js} +1 -1
- package/components/p-Da8LCPwo.js +4 -0
- package/components/p-DibGn4gb.js +4 -0
- package/components/{p-1HReh-CB.js → p-DtZimz8H.js} +1 -1
- package/components/p-NZGZhPF5.js +4 -0
- package/components/p-PFwuhbqg.js +4 -0
- 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/css/ionic/global.bundle.ionic.css.map +1 -1
- package/css/ionic/link.ionic.css.map +1 -1
- package/css/ionic/typography.ionic.css.map +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +13 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -33
- package/dist/cjs/ion-datetime.cjs.entry.js +36 -345
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.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/action-sheet/action-sheet.ionic.css +1 -1
- package/dist/collection/components/alert/alert.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 -170
- package/dist/collection/components/datetime/datetime.ios.css +2 -125
- package/dist/collection/components/datetime/datetime.js +33 -398
- package/dist/collection/components/datetime/datetime.md.css +0 -111
- 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/modal/modal.ionic.css +2 -2
- package/dist/collection/components/popover/popover.ionic.css +2 -1
- package/dist/collection/components/toast/toast.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-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-app_8.entry.js +13 -5
- package/dist/esm/ion-datetime-button.entry.js +7 -34
- package/dist/esm/ion-datetime.entry.js +37 -346
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/ion-toast.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-1d87b153.entry.js +4 -0
- package/dist/ionic/p-39e3be74.entry.js +4 -0
- package/dist/ionic/{p-5a024b02.entry.js → p-3ddd32cc.entry.js} +1 -1
- package/dist/ionic/{p-CaOPF8Xt.js → p-BtccSO5J.js} +1 -1
- package/dist/ionic/p-a1555032.entry.js +4 -0
- package/dist/ionic/p-ad46d2fd.entry.js +4 -0
- package/dist/ionic/{p-3674a7de.entry.js → p-b076511a.entry.js} +1 -1
- package/dist/ionic/p-dbf53341.entry.js +4 -0
- package/dist/types/components/datetime/datetime-interface.d.ts +0 -4
- package/dist/types/components/datetime/datetime.d.ts +2 -66
- package/dist/types/components/datetime/utils/state.d.ts +2 -5
- package/dist/types/components.d.ts +0 -33
- package/hydrate/index.js +61 -397
- package/hydrate/index.mjs +61 -397
- package/package.json +2 -2
- package/components/p-ByE0slik.js +0 -4
- package/components/p-DgNvIX46.js +0 -4
- package/components/p-DmyvpOqm.js +0 -4
- package/components/p-mG85e2ek.js +0 -4
- package/dist/ionic/p-1b7efcc2.entry.js +0 -4
- package/dist/ionic/p-9cce1ed5.entry.js +0 -4
- package/dist/ionic/p-b30b468d.entry.js +0 -4
- package/dist/ionic/p-ceca04fb.entry.js +0 -4
- package/dist/ionic/p-d7da66b1.entry.js +0 -4
- package/dist/ionic/p-f02c29cd.entry.js +0 -4
|
@@ -349,99 +349,11 @@
|
|
|
349
349
|
|
|
350
350
|
:host .calendar-day-wrapper {
|
|
351
351
|
display: flex;
|
|
352
|
-
position: relative;
|
|
353
352
|
align-items: center;
|
|
354
353
|
justify-content: center;
|
|
355
354
|
min-width: 0;
|
|
356
355
|
min-height: 0;
|
|
357
356
|
overflow: visible;
|
|
358
|
-
/**
|
|
359
|
-
* Create a stacking context so the range track
|
|
360
|
-
* (::before with z-index: -1) stays behind the
|
|
361
|
-
* day button but above the host background.
|
|
362
|
-
*/
|
|
363
|
-
z-index: 0;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* Each day in the range draws its own piece of the track with a
|
|
368
|
-
* ::before. In-range days fill the cell, while the start and end
|
|
369
|
-
* caps cover the half between the pill center and the next day.
|
|
370
|
-
*
|
|
371
|
-
* Grid columns are `1fr`, so cell edges land on fractional pixels
|
|
372
|
-
* and a cell's track can fall a hairline short of its neighbor's.
|
|
373
|
-
* Each day therefore extends 1px toward the next day in the range,
|
|
374
|
-
* which the next day paints over except inside such a gap.
|
|
375
|
-
*
|
|
376
|
-
* @prop --range-background: The background color of the range selection track.
|
|
377
|
-
*/
|
|
378
|
-
:host .calendar-day-wrapper-in-range::before,
|
|
379
|
-
:host .calendar-day-wrapper-range-start::before,
|
|
380
|
-
:host .calendar-day-wrapper-range-end::before {
|
|
381
|
-
position: absolute;
|
|
382
|
-
top: 50%;
|
|
383
|
-
inset-inline-start: 0;
|
|
384
|
-
inset-inline-end: 0;
|
|
385
|
-
height: var(--range-track-height);
|
|
386
|
-
transform: translateY(-50%);
|
|
387
|
-
/**
|
|
388
|
-
* `--range-background` is translucent by default, so it is layered
|
|
389
|
-
* over the datetime background to paint an opaque track. Where two
|
|
390
|
-
* days overlap, the color stays the same instead of doubling up
|
|
391
|
-
* into a darker line.
|
|
392
|
-
*/
|
|
393
|
-
background: linear-gradient(var(--range-background), var(--range-background)), linear-gradient(var(--background), var(--background));
|
|
394
|
-
content: "";
|
|
395
|
-
z-index: -1;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
:host .calendar-day-wrapper-range-start::before {
|
|
399
|
-
inset-inline-start: 50%;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
:host .calendar-day-wrapper-range-end::before {
|
|
403
|
-
inset-inline-end: 50%;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
:host .calendar-day-wrapper-range-start:not(:nth-child(7n)):has(+ .calendar-day-wrapper-range-end)::before {
|
|
407
|
-
inset-inline-end: -1px;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* A range that continues onto the next week runs the track
|
|
412
|
-
* through the grid padding to the edge of the calendar.
|
|
413
|
-
*/
|
|
414
|
-
:host .calendar-day-wrapper-in-range:nth-child(7n)::before,
|
|
415
|
-
:host .calendar-day-wrapper-range-start:nth-child(7n)::before {
|
|
416
|
-
inset-inline-end: calc(var(--range-track-edge-overflow, 0px) * -1);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
:host .calendar-day-wrapper-in-range:nth-child(7n+1)::before,
|
|
420
|
-
:host .calendar-day-wrapper-range-end:nth-child(7n+1)::before {
|
|
421
|
-
inset-inline-start: calc(var(--range-track-edge-overflow, 0px) * -1);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* When a single day is both the start and end of the range,
|
|
426
|
-
* do not show a track since there is nothing to connect.
|
|
427
|
-
*/
|
|
428
|
-
:host .calendar-day-wrapper-range-start.calendar-day-wrapper-range-end::before {
|
|
429
|
-
display: none;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* When the component is disabled, fade the whole grid once instead of
|
|
434
|
-
* fading each day. Fading a day makes it its own compositing group, so
|
|
435
|
-
* the 1px that each day extends toward the next would be painted twice
|
|
436
|
-
* and read as a darker seam. The day buttons drop their own disabled
|
|
437
|
-
* opacity so the grid is the only thing applying it.
|
|
438
|
-
*/
|
|
439
|
-
:host(.datetime-disabled.datetime-range) .calendar-month-grid {
|
|
440
|
-
opacity: 0.4;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
:host(.datetime-disabled.datetime-range) .calendar-month-grid .calendar-day[disabled] {
|
|
444
|
-
opacity: 1;
|
|
445
357
|
}
|
|
446
358
|
|
|
447
359
|
/**
|
|
@@ -1068,12 +980,12 @@ ion-picker {
|
|
|
1068
980
|
}
|
|
1069
981
|
|
|
1070
982
|
.calendar-day.calendar-day-active {
|
|
1071
|
-
background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.
|
|
983
|
+
background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.2);
|
|
1072
984
|
font-size: min(1.375rem, 35.2px);
|
|
1073
985
|
}
|
|
1074
986
|
|
|
1075
987
|
:host(.ion-color) .calendar-day.calendar-day-active {
|
|
1076
|
-
background: rgba(var(--ion-color-base-rgb), 0.
|
|
988
|
+
background: rgba(var(--ion-color-base-rgb), 0.2);
|
|
1077
989
|
}
|
|
1078
990
|
|
|
1079
991
|
/**
|
|
@@ -1123,41 +1035,6 @@ ion-picker {
|
|
|
1123
1035
|
color: var(--ion-color-step-300, var(--ion-text-color-step-700, #b3b3b3));
|
|
1124
1036
|
}
|
|
1125
1037
|
|
|
1126
|
-
:host {
|
|
1127
|
-
--range-background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.12);
|
|
1128
|
-
--range-track-height: 40px;
|
|
1129
|
-
--range-track-edge-overflow: 8px;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
:host(.ion-color) {
|
|
1133
|
-
--range-background: rgba(var(--ion-color-base-rgb), 0.12);
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* The wrapper has `height: 0`, which makes `top: 50%` on the range
|
|
1138
|
-
* track resolve to 0 and pins the track to the top of the cell.
|
|
1139
|
-
* Override to `auto` so the track stays vertically centered. Apply
|
|
1140
|
-
* it to every wrapper in range mode so range rows are not taller
|
|
1141
|
-
* than the other rows.
|
|
1142
|
-
*/
|
|
1143
|
-
:host(.datetime-range) .calendar-day-wrapper {
|
|
1144
|
-
height: auto;
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
:host .calendar-day.calendar-day-range-start,
|
|
1148
|
-
:host .calendar-day.calendar-day-range-end {
|
|
1149
|
-
border-radius: 50%;
|
|
1150
|
-
background: var(--ion-color-primary, #0054e9);
|
|
1151
|
-
color: var(--ion-color-primary-contrast, #fff);
|
|
1152
|
-
font-weight: 600;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
:host(.ion-color) .calendar-day.calendar-day-range-start,
|
|
1156
|
-
:host(.ion-color) .calendar-day.calendar-day-range-end {
|
|
1157
|
-
background: var(--ion-color-base);
|
|
1158
|
-
color: var(--ion-color-contrast);
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
1038
|
:host .datetime-time {
|
|
1162
1039
|
-webkit-padding-start: 16px;
|
|
1163
1040
|
padding-inline-start: 16px;
|