Skip to content

Commit 04ed860

Browse files
authored
Merge pull request #26157 from ionic-team/sync-feature-10-21
2 parents 70781e4 + 8f86251 commit 04ed860

File tree

99 files changed

+978
-752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+978
-752
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [6.3.2](https://github.com/ionic-team/ionic-framework/compare/v6.3.1...v6.3.2) (2022-10-17)
7+
8+
9+
### Bug Fixes
10+
11+
* **datetime:** header renders correct date ([#26120](https://github.com/ionic-team/ionic-framework/issues/26120)) ([04df45a](https://github.com/ionic-team/ionic-framework/commit/04df45a443e4faeea644daa76dc509fea0d24ca2)), closes [#26116](https://github.com/ionic-team/ionic-framework/issues/26116)
12+
* **datetime:** selecting days updates value ([#26121](https://github.com/ionic-team/ionic-framework/issues/26121)) ([d76a24d](https://github.com/ionic-team/ionic-framework/commit/d76a24dd9e485a2f3cc517231bbb1dab51fa1fd3))
13+
* **modal:** sheet modal dismisses correctly ([#26110](https://github.com/ionic-team/ionic-framework/issues/26110)) ([256b03f](https://github.com/ionic-team/ionic-framework/commit/256b03f12a57c2b5904d9017e4fa93b11eea8fc7)), closes [#26108](https://github.com/ionic-team/ionic-framework/issues/26108)
14+
* **vue:** routing components define child components ([#26107](https://github.com/ionic-team/ionic-framework/issues/26107)) ([d60973b](https://github.com/ionic-team/ionic-framework/commit/d60973b2449b29a982b752a98b10d2b043ecff2f))
15+
16+
17+
18+
19+
620
## [6.3.1](https://github.com/ionic-team/ionic-framework/compare/v6.3.0...v6.3.1) (2022-10-12)
721

822

angular/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [6.3.2](https://github.com/ionic-team/ionic/compare/v6.3.1...v6.3.2) (2022-10-17)
7+
8+
**Note:** Version bump only for package @ionic/angular
9+
10+
11+
12+
13+
614
## [6.3.1](https://github.com/ionic-team/ionic/compare/v6.3.0...v6.3.1) (2022-10-12)
715

816
**Note:** Version bump only for package @ionic/angular

angular/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ionic/angular",
3-
"version": "6.3.1",
3+
"version": "6.3.2",
44
"description": "Angular specific wrappers for @ionic/core",
55
"keywords": [
66
"ionic",
@@ -46,7 +46,7 @@
4646
"validate": "npm i && npm run lint && npm run test && npm run build"
4747
},
4848
"dependencies": {
49-
"@ionic/core": "^6.3.1",
49+
"@ionic/core": "6.3.2",
5050
"jsonc-parser": "^3.0.0",
5151
"tslib": "^2.0.0"
5252
},

angular/src/directives/control-value-accessors/value-accessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class ValueAccessor implements ControlValueAccessor, AfterViewInit, OnDes
1919

2020
writeValue(value: any): void {
2121
/**
22-
* TODO for Ionic 6:
22+
* TODO FW-2646
2323
* Change `value == null ? '' : value;`
2424
* to `value`. This was a fix for IE9, but IE9
2525
* is no longer supported; however, this change

core/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [6.3.2](https://github.com/ionic-team/ionic/compare/v6.3.1...v6.3.2) (2022-10-17)
7+
8+
9+
### Bug Fixes
10+
11+
* **datetime:** header renders correct date ([#26120](https://github.com/ionic-team/ionic/issues/26120)) ([04df45a](https://github.com/ionic-team/ionic/commit/04df45a443e4faeea644daa76dc509fea0d24ca2)), closes [#26116](https://github.com/ionic-team/ionic/issues/26116)
12+
* **datetime:** selecting days updates value ([#26121](https://github.com/ionic-team/ionic/issues/26121)) ([d76a24d](https://github.com/ionic-team/ionic/commit/d76a24dd9e485a2f3cc517231bbb1dab51fa1fd3))
13+
* **modal:** sheet modal dismisses correctly ([#26110](https://github.com/ionic-team/ionic/issues/26110)) ([256b03f](https://github.com/ionic-team/ionic/commit/256b03f12a57c2b5904d9017e4fa93b11eea8fc7)), closes [#26108](https://github.com/ionic-team/ionic/issues/26108)
14+
15+
16+
17+
18+
619
## [6.3.1](https://github.com/ionic-team/ionic/compare/v6.3.0...v6.3.1) (2022-10-12)
720

821

core/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ionic/core",
3-
"version": "6.3.1",
3+
"version": "6.3.2",
44
"description": "Base components for Ionic",
55
"keywords": [
66
"ionic",

core/src/components/datetime-button/datetime-button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export class DatetimeButton implements ComponentInterface {
160160
* to keep checking if the datetime value is `string` or `string[]`.
161161
*/
162162
private getParsedDateValues = (value?: string[] | string | null): string[] => {
163-
if (value === undefined || value === null) {
163+
// TODO FW-2646 Remove value === ''
164+
if (value === '' || value === undefined || value === null) {
164165
return [];
165166
}
166167

core/src/components/datetime/datetime.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export class Datetime implements ComponentInterface {
616616
};
617617

618618
private setActiveParts = (parts: DatetimeParts, removeDate = false) => {
619-
const { multiple, activePartsClone } = this;
619+
const { multiple, minParts, maxParts, activePartsClone } = this;
620620

621621
/**
622622
* When setting the active parts, it is possible
@@ -628,7 +628,7 @@ export class Datetime implements ComponentInterface {
628628
* Additionally, we need to update the working parts
629629
* too in the event that the validated parts are different.
630630
*/
631-
const validatedParts = validateParts(parts);
631+
const validatedParts = validateParts(parts, minParts, maxParts);
632632
this.setWorkingParts(validatedParts);
633633

634634
if (multiple) {
@@ -2131,12 +2131,8 @@ export class Datetime implements ComponentInterface {
21312131
</ion-popover>,
21322132
];
21332133
}
2134-
private renderCalendarViewHeader() {
2135-
const hasSlottedTitle = this.el.querySelector('[slot="title"]') !== null;
2136-
if (!hasSlottedTitle && !this.showDefaultTitle) {
2137-
return;
2138-
}
21392134

2135+
private getHeaderSelectedDateText() {
21402136
const { activeParts, multiple, titleSelectedDatesFormatter } = this;
21412137
const isArray = Array.isArray(activeParts);
21422138

@@ -2155,12 +2151,21 @@ export class Datetime implements ComponentInterface {
21552151
headerText = getMonthAndDay(this.locale, this.getDefaultPart());
21562152
}
21572153

2154+
return headerText;
2155+
}
2156+
2157+
private renderCalendarViewHeader(showExpandedHeader = true) {
2158+
const hasSlottedTitle = this.el.querySelector('[slot="title"]') !== null;
2159+
if (!hasSlottedTitle && !this.showDefaultTitle) {
2160+
return;
2161+
}
2162+
21582163
return (
21592164
<div class="datetime-header">
21602165
<div class="datetime-title">
21612166
<slot name="title">Select Date</slot>
21622167
</div>
2163-
<div class="datetime-selected-date">{headerText}</div>
2168+
{showExpandedHeader && <div class="datetime-selected-date">{this.getHeaderSelectedDateText()}</div>}
21642169
</div>
21652170
);
21662171
}
@@ -2207,7 +2212,7 @@ export class Datetime implements ComponentInterface {
22072212
*/
22082213
const hasWheelVariant = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
22092214
if (preferWheel && hasWheelVariant) {
2210-
return [this.renderWheelView(), this.renderFooter()];
2215+
return [this.renderCalendarViewHeader(false), this.renderWheelView(), this.renderFooter()];
22112216
}
22122217

22132218
switch (presentation) {

0 commit comments

Comments
 (0)