Skip to content

Commit b655067

Browse files
committed
chore: sync with main
2 parents 32244fb + 01fc9b4 commit b655067

Some content is hidden

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

57 files changed

+827
-234
lines changed

.github/CODEOWNERS

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
## Angular
1717

18-
/packages/angular/ @sean-perkins
19-
/packages/angular-server @sean-perkins
20-
/packages/angular/test
18+
/packages/angular/ @sean-perkins @thetaPC
19+
/packages/angular-server @sean-perkins @thetaPC
20+
/packages/angular/test @thetaPC
2121

2222
## React
2323

@@ -28,19 +28,23 @@
2828

2929
## Vue
3030

31-
/packages/vue/ @liamdebeasi
32-
/packages/vue-router/ @liamdebeasi
33-
/packages/vue/test/
34-
/packages/vue-router/__tests__
31+
/packages/vue/ @liamdebeasi @thetaPC
32+
/packages/vue-router/ @liamdebeasi @thetaPC
33+
/packages/vue/test/ @thetaPC
34+
/packages/vue-router/__tests__ @thetaPC
3535

3636
# Components
3737

3838
/core/src/components/accordion/ @liamdebeasi
3939
/core/src/components/accordion-group/ @liamdebeasi
4040

41+
/core/src/components/checkbox/ @amandaejohnston
42+
4143
/core/src/components/datetime/ @liamdebeasi @amandaejohnston @sean-perkins
4244
/core/src/components/datetime-button/ @liamdebeasi
4345

46+
/core/src/components/item/ @brandyscarney
47+
4448
/core/src/components/menu/ @amandaejohnston
4549
/core/src/components/menu-toggle/ @amandaejohnston
4650

@@ -50,9 +54,19 @@
5054
/core/src/components/picker-internal/ @liamdebeasi
5155
/core/src/components/picker-column-internal/ @liamdebeasi
5256

57+
/core/src/components/radio/ @amandaejohnston
58+
/core/src/components/radio-group/ @amandaejohnston
59+
5360
/core/src/components/refresher/ @liamdebeasi
5461
/core/src/components/refresher-content/ @liamdebeasi
5562

63+
/core/src/components/searchbar/ @brandyscarney
64+
65+
/core/src/components/segment/ @brandyscarney
66+
/core/src/components/segment-button/ @brandyscarney
67+
68+
/core/src/components/skeleton-text/ @brandyscarney
69+
5670
# Utilities
5771

5872
/core/src/utils/animation/ @liamdebeasi
@@ -64,3 +78,13 @@
6478
/core/src/utils/sanitization/ @liamdebeasi
6579
/core/src/utils/tap-click/ @liamdebeasi
6680
/core/src/utils/transition/ @liamdebeasi
81+
82+
/core/src/css/ @brandyscarney
83+
/core/src/themes/ @brandyscarney
84+
85+
# Tests
86+
87+
**/datetime.e2e.ts @mapsandapps
88+
**/datetime-button.e2e.ts @mapsandapps
89+
**/icon.e2e.ts @mapsandapps
90+
**/loading.e2e.ts @mapsandapps

.github/workflows/actions/test-core-clean-build/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ runs:
1313
path: ./core
1414
filename: CoreBuild.zip
1515
- name: Check Diff
16-
run: git diff --exit-code
16+
run: |
17+
git diff --exit-code || {
18+
echo -e "\033[1;31m⚠️ Error: Differences Detected ⚠️\033[0m"
19+
echo -e "\033[1;31mThere are uncommitted changes between the build outputs from CI and your branch.\033[0m"
20+
echo -e "\033[1;31mPlease ensure you have followed these steps:\033[0m"
21+
echo -e "\033[1;31m1. Run 'npm run build' locally to generate the latest build output.\033[0m"
22+
echo -e "\033[1;31m2. Commit and push all necessary changes to your branch.\033[0m"
23+
echo -e "\033[1;31m3. Compare and validate the differences before proceeding.\033[0m"
24+
exit 1
25+
}
1726
shell: bash
1827
working-directory: ./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+
## [7.3.1](https://github.com/ionic-team/ionic-framework/compare/v7.3.0...v7.3.1) (2023-08-23)
7+
8+
9+
### Bug Fixes
10+
11+
* **angular:** ionTabsWillChange is fired before tab activation ([#27991](https://github.com/ionic-team/ionic-framework/issues/27991)) ([bbfb8f8](https://github.com/ionic-team/ionic-framework/commit/bbfb8f81a61475d7e73b63743db5d6a0cd979d21)), closes [#27212](https://github.com/ionic-team/ionic-framework/issues/27212)
12+
* **input, textarea:** clearOnEdit does not clear when pressing Tab ([#28005](https://github.com/ionic-team/ionic-framework/issues/28005)) ([444acc1](https://github.com/ionic-team/ionic-framework/commit/444acc1f1bca348b62dfb398067cc087529f67f1)), closes [#27746](https://github.com/ionic-team/ionic-framework/issues/27746)
13+
* **react:** avoid multiple invocations of onDidDismiss and onWillPresent ([#28020](https://github.com/ionic-team/ionic-framework/issues/28020)) ([0ac3df3](https://github.com/ionic-team/ionic-framework/commit/0ac3df3f378bdefc3a927adc798ebd9ec7a54fee)), closes [#28010](https://github.com/ionic-team/ionic-framework/issues/28010)
14+
15+
16+
17+
18+
619
# [7.3.0](https://github.com/ionic-team/ionic-framework/compare/v7.2.4...v7.3.0) (2023-08-16)
720

821

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
| Project | Package | Version | Downloads| Links |
5656
| ------- | ------- | ------- | -------- |:-----:|
5757
| **Core** | [`@ionic/core`](https://www.npmjs.com/package/@ionic/core) | [![version](https://img.shields.io/npm/v/@ionic/core/latest.svg)](https://www.npmjs.com/package/@ionic/core) | <a href="https://www.npmjs.com/package/@ionic/core" target="_blank"><img src="https://img.shields.io/npm/dm/@ionic/core.svg" alt="NPM Downloads" /></a> | [`README.md`](core/README.md)
58-
| **Angular** | [`@ionic/angular`](https://www.npmjs.com/package/@ionic/angular) | [![version](https://img.shields.io/npm/v/@ionic/angular/latest.svg)](https://www.npmjs.com/package/@ionic/angular) | <a href="https://www.npmjs.com/package/@ionic/angular" target="_blank"><img src="https://img.shields.io/npm/dm/@ionic/angular.svg" alt="NPM Downloads" /></a> | [`README.md`](angular/README.md)
58+
| **Angular** | [`@ionic/angular`](https://www.npmjs.com/package/@ionic/angular) | [![version](https://img.shields.io/npm/v/@ionic/angular/latest.svg)](https://www.npmjs.com/package/@ionic/angular) | <a href="https://www.npmjs.com/package/@ionic/angular" target="_blank"><img src="https://img.shields.io/npm/dm/@ionic/angular.svg" alt="NPM Downloads" /></a> | [`README.md`](packages/angular/README.md)
5959
| **Vue** | [`@ionic/vue`](https://www.npmjs.com/package/@ionic/vue) | [![version](https://img.shields.io/npm/v/@ionic/vue/latest.svg)](https://www.npmjs.com/package/@ionic/vue) | <a href="https://www.npmjs.com/package/@ionic/vue" target="_blank"><img src="https://img.shields.io/npm/dm/@ionic/vue.svg" alt="NPM Downloads" /></a> | [`README.md`](packages/vue/README.md)
6060
| **React** | [`@ionic/react`](https://www.npmjs.com/package/@ionic/react) | [![version](https://img.shields.io/npm/v/@ionic/react/latest.svg)](https://www.npmjs.com/package/@ionic/react) | <a href="https://www.npmjs.com/package/@ionic/react" target="_blank"><img src="https://img.shields.io/npm/dm/@ionic/react.svg" alt="NPM Downloads" /></a> |[`README.md`](packages/react/README.md)
6161

core/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
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+
## [7.3.1](https://github.com/ionic-team/ionic-framework/compare/v7.3.0...v7.3.1) (2023-08-23)
7+
8+
9+
### Bug Fixes
10+
11+
* **input, textarea:** clearOnEdit does not clear when pressing Tab ([#28005](https://github.com/ionic-team/ionic-framework/issues/28005)) ([444acc1](https://github.com/ionic-team/ionic-framework/commit/444acc1f1bca348b62dfb398067cc087529f67f1)), closes [#27746](https://github.com/ionic-team/ionic-framework/issues/27746)
12+
13+
14+
15+
16+
617
# [7.3.0](https://github.com/ionic-team/ionic-framework/compare/v7.2.4...v7.3.0) (2023-08-16)
718

819

core/package-lock.json

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

core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ionic/core",
3-
"version": "7.3.0",
3+
"version": "7.3.1",
44
"description": "Base components for Ionic",
55
"keywords": [
66
"ionic",
@@ -31,20 +31,20 @@
3131
"loader/"
3232
],
3333
"dependencies": {
34-
"@stencil/core": "^4.0.3",
34+
"@stencil/core": "^4.1.0",
3535
"ionicons": "7.1.0",
3636
"tslib": "^2.1.0"
3737
},
3838
"devDependencies": {
3939
"@axe-core/playwright": "^4.7.3",
40-
"@capacitor/core": "^5.2.3",
40+
"@capacitor/core": "^5.3.0",
4141
"@capacitor/haptics": "^5.0.6",
4242
"@capacitor/keyboard": "^5.0.6",
4343
"@capacitor/status-bar": "^5.0.6",
4444
"@ionic/eslint-config": "^0.3.0",
4545
"@ionic/prettier-config": "^2.0.0",
4646
"@jest/core": "^27.5.1",
47-
"@playwright/test": "^1.37.0",
47+
"@playwright/test": "^1.37.1",
4848
"@rollup/plugin-node-resolve": "^8.4.0",
4949
"@rollup/plugin-virtual": "^2.0.3",
5050
"@stencil/angular-output-target": "^0.7.1",

core/src/components/button/button.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf
153153
*/
154154
@Event() ionBlur!: EventEmitter<void>;
155155

156+
/**
157+
* This is responsible for rendering a hidden native
158+
* button element inside the associated form. This allows
159+
* users to submit a form by pressing "Enter" when a text
160+
* field inside of the form is focused. The native button
161+
* rendered inside of `ion-button` is in the Shadow DOM
162+
* and therefore does not participate in form submission
163+
* which is why the following code is necessary.
164+
*/
156165
private renderHiddenButton() {
157166
const formEl = (this.formEl = this.findForm());
158167
if (formEl) {
@@ -323,6 +332,13 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf
323332
fill = this.inToolbar || this.inListHeader ? 'clear' : 'solid';
324333
}
325334

335+
/**
336+
* We call renderHiddenButton in the render function to account
337+
* for any properties being set async. For example, changing the
338+
* "type" prop from "button" to "submit" after the component has
339+
* loaded would warrant the hidden button being added to the
340+
* associated form.
341+
*/
326342
{
327343
type !== 'button' && this.renderHiddenButton();
328344
}

core/src/components/datetime/test/parse.spec.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,18 @@ describe('parseMinParts()', () => {
154154
minute: 30,
155155
});
156156
});
157+
it('should return undefined when given invalid info', () => {
158+
const today = {
159+
day: 14,
160+
month: 3,
161+
year: 2022,
162+
minute: 4,
163+
hour: 2,
164+
};
165+
expect(parseMinParts(undefined, today)).toEqual(undefined);
166+
expect(parseMinParts(null, today)).toEqual(undefined);
167+
expect(parseMinParts('foo', today)).toEqual(undefined);
168+
});
157169
});
158170

159171
describe('parseMaxParts()', () => {
@@ -205,4 +217,16 @@ describe('parseMaxParts()', () => {
205217
minute: 59,
206218
});
207219
});
220+
it('should return undefined when given invalid info', () => {
221+
const today = {
222+
day: 14,
223+
month: 3,
224+
year: 2022,
225+
minute: 4,
226+
hour: 2,
227+
};
228+
expect(parseMaxParts(undefined, today)).toEqual(undefined);
229+
expect(parseMaxParts(null, today)).toEqual(undefined);
230+
expect(parseMaxParts('foo', today)).toEqual(undefined);
231+
});
208232
});

0 commit comments

Comments
 (0)