Compare commits

..

1 Commits

Author SHA1 Message Date
Maria Hutt
1f0192d588 test(chip): update the basic preview 2024-06-28 16:07:11 -07:00
36 changed files with 3571 additions and 6869 deletions

View File

@@ -3,18 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
### Bug Fixes
* **dependencies:** use latest @stencil/core to remove DOMException errors ([#29685](https://github.com/ionic-team/ionic-framework/issues/29685)) ([d70ea4](https://github.com/ionic-team/ionic/commit/d70ea400a4713bd091af1393e196e10844a190b6)), closes [#29681](https://github.com/ionic-team/ionic/issues/29681)
* **vue:** add optional IonicConfig type parameter to IonicVue plugin ([#29637](https://github.com/ionic-team/ionic-framework/issues/29637)) ([90893f4](https://github.com/ionic-team/ionic-framework/commit/90893f46c930dbccd4251fa2f56bdde30b669158)), closes [#29659](https://github.com/ionic-team/ionic-framework/issues/29659)
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/core
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)

765
core/package-lock.json generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/core",
"version": "8.2.5",
"version": "8.2.4",
"description": "Base components for Ionic",
"keywords": [
"ionic",
@@ -31,7 +31,7 @@
"loader/"
],
"dependencies": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
},
@@ -48,7 +48,7 @@
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-virtual": "^2.0.3",
"@stencil/angular-output-target": "^0.8.4",
"@stencil/react-output-target": "0.0.1-dev.11721063914.1cb11145",
"@stencil/react-output-target": "^0.5.3",
"@stencil/sass": "^3.0.9",
"@stencil/vue-output-target": "^0.8.7",
"@types/jest": "^29.5.6",

View File

@@ -0,0 +1,74 @@
export async function createPlayground(componentTag, propDefinitions, innerContent = '') {
const playground = document.createElement('div');
const form = document.createElement('form');
const preview = document.createElement('div');
preview.classList.add('preview');
function renderComponent(props) {
const component = document.createElement(componentTag);
Object.keys(props).forEach(propName => {
if (props[propName] !== undefined && props[propName] !== '') {
component.setAttribute(propName, props[propName]);
}
});
// Set inner HTML content if provided
if (innerContent) {
component.innerHTML = innerContent;
}
preview.innerHTML = '';
preview.appendChild(component);
}
propDefinitions.forEach(prop => {
const label = document.createElement('label');
const labelText = document.createElement('span');
labelText.textContent = `${prop.name}: `;
const input = document.createElement('input');
input.type = prop.type === 'boolean' ? 'checkbox' : 'text';
input.name = prop.name;
input.value = prop.defaultValue || '';
if (prop.type === 'boolean') {
input.checked = prop.defaultValue === 'true';
}
input.addEventListener('input', () => {
const formData = new FormData(form);
const props = {};
formData.forEach((value, key) => {
const field = form.elements[key];
if (field.type === 'checkbox') {
props[key] = field.checked;
} else {
props[key] = value;
}
});
renderComponent(props);
});
label.appendChild(labelText);
label.appendChild(input);
form.appendChild(label);
form.appendChild(document.createElement('br'));
});
playground.appendChild(preview);
// add a divider
playground.appendChild(document.createElement('hr'));
playground.appendChild(form);
// Initial render with default props
const defaultProps = Object.fromEntries(
propDefinitions.map(prop => [prop.name, prop.defaultValue || ''])
);
renderComponent(defaultProps);
return playground;
}

View File

@@ -341,9 +341,7 @@ export class Alert implements ComponentInterface, OverlayInterface {
}
componentWillLoad() {
if (!this.htmlAttributes?.id) {
setOverlayId(this.el);
}
setOverlayId(this.el);
this.inputsChanged();
this.buttonsChanged();
}

View File

@@ -2,7 +2,6 @@ import { newSpecPage } from '@stencil/core/testing';
import { config } from '../../../global/config';
import { Alert } from '../alert';
import { h } from '@stencil/core';
describe('alert: custom html', () => {
it('should not allow for custom html by default', async () => {
@@ -39,15 +38,4 @@ describe('alert: custom html', () => {
expect(content.textContent).toContain('Custom Text');
expect(content.querySelector('button.custom-html')).toBe(null);
});
it('should not overwrite the id set in htmlAttributes', async () => {
const id = 'custom-id';
const page = await newSpecPage({
components: [Alert],
template: () => <ion-alert htmlAttributes={{ id }} overlayIndex={-1}></ion-alert>,
});
const alert = page.body.querySelector('ion-alert')!;
expect(alert.id).toBe(id);
});
});

View File

@@ -12,6 +12,21 @@
<script src="../../../../../scripts/testing/scripts.js"></script>
<script nomodule src="../../../../../dist/ionic/ionic.js"></script>
<script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
<style>
.preview {
min-height: 50px;
}
label {
display: flex;
align-items: center;
}
label span {
min-width: 100px;
text-align: left;
margin-inline-end: 10px;
}
</style>
</head>
<body>
@@ -21,86 +36,34 @@
<ion-title>Chip - Basic</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding" id="content" style="text-align: center">
<h2>Basic Chips</h2>
<ion-chip>
<ion-label>Default</ion-label>
</ion-chip>
<ion-chip style="border-radius: 4px">
<ion-label>Border Radius</ion-label>
</ion-chip>
<ion-chip>
<ion-icon name="checkmark-circle"></ion-icon>
<ion-label>With Icon</ion-label>
</ion-chip>
<ion-chip>
<ion-avatar>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjYzVkYmZmIiBkPSJNMCAwaDUxMnY1MTJIMHoiLz48cGF0aCBkPSJNMjU2IDMwNGM2MS42IDAgMTEyLTUwLjQgMTEyLTExMlMzMTcuNiA4MCAyNTYgODBzLTExMiA1MC40LTExMiAxMTIgNTAuNCAxMTIgMTEyIDExMnptMCA0MGMtNzQuMiAwLTIyNCAzNy44LTIyNCAxMTJ2NTZoNDQ4di01NmMwLTc0LjItMTQ5LjgtMTEyLTIyNC0xMTJ6IiBmaWxsPSIjODJhZWZmIi8+PC9zdmc+"
/>
</ion-avatar>
<ion-label>With Avatar</ion-label>
</ion-chip>
<ion-chip>
<ion-avatar>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjYzVkYmZmIiBkPSJNMCAwaDUxMnY1MTJIMHoiLz48cGF0aCBkPSJNMjU2IDMwNGM2MS42IDAgMTEyLTUwLjQgMTEyLTExMlMzMTcuNiA4MCAyNTYgODBzLTExMiA1MC40LTExMiAxMTIgNTAuNCAxMTIgMTEyIDExMnptMCA0MGMtNzQuMiAwLTIyNCAzNy44LTIyNCAxMTJ2NTZoNDQ4di01NmMwLTc0LjItMTQ5LjgtMTEyLTIyNC0xMTJ6IiBmaWxsPSIjODJhZWZmIi8+PC9zdmc+"
/>
</ion-avatar>
<ion-label>With Icon and Avatar</ion-label>
<ion-icon name="close-circle"></ion-icon>
</ion-chip>
<h2>Color Chips</h2>
<ion-chip color="primary">
<ion-label>Primary</ion-label>
</ion-chip>
<ion-chip color="danger">
<ion-label>Danger</ion-label>
</ion-chip>
<ion-chip color="tertiary">
<ion-icon name="checkmark-circle"></ion-icon>
<ion-label>Tertiary with Icon</ion-label>
</ion-chip>
<ion-chip color="primary">
<ion-avatar>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjYzVkYmZmIiBkPSJNMCAwaDUxMnY1MTJIMHoiLz48cGF0aCBkPSJNMjU2IDMwNGM2MS42IDAgMTEyLTUwLjQgMTEyLTExMlMzMTcuNiA4MCAyNTYgODBzLTExMiA1MC40LTExMiAxMTIgNTAuNCAxMTIgMTEyIDExMnptMCA0MGMtNzQuMiAwLTIyNCAzNy44LTIyNCAxMTJ2NTZoNDQ4di01NmMwLTc0LjItMTQ5LjgtMTEyLTIyNC0xMTJ6IiBmaWxsPSIjODJhZWZmIi8+PC9zdmc+"
/>
</ion-avatar>
<ion-label>Primary with Avatar</ion-label>
</ion-chip>
<ion-chip color="success">
<ion-label>Success with Icon</ion-label>
<ion-icon name="calendar"></ion-icon>
</ion-chip>
<h2>Outline Chips</h2>
<ion-chip outline>
<ion-label>Outline</ion-label>
</ion-chip>
<ion-chip outline color="danger">
<ion-label>Danger Outline</ion-label>
</ion-chip>
<ion-chip outline color="secondary">
<ion-icon name="checkmark-circle"></ion-icon>
<ion-label>Secondary Outline with Icon</ion-label>
</ion-chip>
<ion-chip outline color="primary">
<ion-label>Primary Outline with Avatar</ion-label>
<ion-avatar>
<img
src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjYzVkYmZmIiBkPSJNMCAwaDUxMnY1MTJIMHoiLz48cGF0aCBkPSJNMjU2IDMwNGM2MS42IDAgMTEyLTUwLjQgMTEyLTExMlMzMTcuNiA4MCAyNTYgODBzLTExMiA1MC40LTExMiAxMTIgNTAuNCAxMTIgMTEyIDExMnptMCA0MGMtNzQuMiAwLTIyNCAzNy44LTIyNCAxMTJ2NTZoNDQ4di01NmMwLTc0LjItMTQ5LjgtMTEyLTIyNC0xMTJ6IiBmaWxsPSIjODJhZWZmIi8+PC9zdmc+"
/>
</ion-avatar>
</ion-chip>
<ion-chip outline>
<ion-icon name="git-pull-request"></ion-icon>
<ion-label>Outline with Icon and Avatar</ion-label>
<ion-icon name="close-circle"></ion-icon>
</ion-chip>
<div id="playground"></div>
</ion-content>
</ion-app>
<script type="module">
import { createPlayground } from '../../../../../scripts/testing/createPlayground.js';
const chipProps = [
{
name: 'color',
type: 'string',
description:
'The color to use from your application\'s color palette. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark".',
defaultValue: 'primary',
},
{
name: 'outline',
type: 'boolean',
description: 'If true, the chip will have a basic style.',
defaultValue: 'false',
},
];
const innerContent = '<span>Hi</span>';
createPlayground('ion-chip', chipProps, innerContent).then((playground) => {
document.getElementById('playground').appendChild(playground);
});
</script>
</body>
</html>

View File

@@ -125,8 +125,11 @@ export const config: Config = {
],
outputTargets: [
reactOutputTarget({
outDir: '../packages/react/src/components',
hydrateModule: '@ionic/core/hydrate',
componentCorePackage,
includeImportCustomElements: true,
includePolyfills: false,
includeDefineCustomElements: false,
proxiesFile: '../packages/react/src/components/proxies.ts',
excludeComponents: [
// Routing
'ion-router',

View File

@@ -3,5 +3,5 @@
"core",
"packages/*"
],
"version": "8.2.5"
"version": "8.2.4"
}

3
package-lock.json generated
View File

@@ -9288,8 +9288,7 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz",
"integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==",
"dev": true,
"requires": {}
"dev": true
},
"@octokit/plugin-rest-endpoint-methods": {
"version": "6.6.2",

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/angular-server
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/angular-server

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/angular-server",
"version": "8.2.5",
"version": "8.2.4",
"description": "Angular SSR Module for Ionic",
"keywords": [
"ionic",
@@ -51,10 +51,12 @@
"@angular/platform-browser": "^16.0.0",
"@angular/platform-browser-dynamic": "^16.0.0",
"@angular/platform-server": "^16.0.0",
"@ionic/eslint-config": "^0.4.0",
"@ionic/eslint-config": "^0.3.0",
"@ionic/prettier-config": "^2.0.0",
"@types/node": "^20.14.9",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.2",
"ng-packagr": "^16.0.0",
"prettier": "^2.4.1",
"rxjs": "^7.8.0",
@@ -62,6 +64,6 @@
},
"prettier": "@ionic/prettier-config",
"dependencies": {
"@ionic/core": "^8.2.5"
"@ionic/core": "^8.2.4"
}
}

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/angular
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)

View File

@@ -1,15 +1,15 @@
{
"name": "@ionic/angular",
"version": "8.2.5",
"version": "8.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/angular",
"version": "8.2.5",
"version": "8.2.4",
"license": "MIT",
"dependencies": {
"@ionic/core": "^8.2.5",
"@ionic/core": "^8.2.4",
"ionicons": "^7.0.0",
"jsonc-parser": "^3.0.0",
"tslib": "^2.3.0"
@@ -1398,11 +1398,11 @@
"dev": true
},
"node_modules/@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"dependencies": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -2203,9 +2203,9 @@
}
},
"node_modules/@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g==",
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==",
"bin": {
"stencil": "bin/stencil"
},
@@ -9820,11 +9820,11 @@
"dev": true
},
"@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"requires": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -10375,9 +10375,9 @@
}
},
"@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g=="
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw=="
},
"@tootallnate/once": {
"version": "2.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/angular",
"version": "8.2.5",
"version": "8.2.4",
"description": "Angular specific wrappers for @ionic/core",
"keywords": [
"ionic",
@@ -47,7 +47,7 @@
}
},
"dependencies": {
"@ionic/core": "^8.2.5",
"@ionic/core": "^8.2.4",
"ionicons": "^7.0.0",
"jsonc-parser": "^3.0.0",
"tslib": "^2.3.0"

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/docs
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/docs

View File

@@ -1,12 +1,12 @@
{
"name": "@ionic/docs",
"version": "8.2.5",
"version": "8.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/docs",
"version": "8.2.5",
"version": "8.2.4",
"license": "MIT"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/docs",
"version": "8.2.5",
"version": "8.2.4",
"description": "Pre-packaged API documentation for the Ionic docs.",
"main": "core.json",
"types": "core.d.ts",

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/react-router
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/react-router

View File

@@ -1,15 +1,15 @@
{
"name": "@ionic/react-router",
"version": "8.2.5",
"version": "8.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/react-router",
"version": "8.2.5",
"version": "8.2.4",
"license": "MIT",
"dependencies": {
"@ionic/react": "^8.2.5",
"@ionic/react": "^8.2.4",
"tslib": "*"
},
"devDependencies": {
@@ -238,11 +238,11 @@
"dev": true
},
"node_modules/@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"dependencies": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -414,11 +414,11 @@
}
},
"node_modules/@ionic/react": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/react/-/react-8.2.5.tgz",
"integrity": "sha512-Iy5zM3R2InksH6Fh9AcBlgUGhz3YOV/2TDRvIdhT0wQIsDbCreAcGt8ST5x8YeKQPuChoDhmD2HQG9g7Fc9DhQ==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/react/-/react-8.2.4.tgz",
"integrity": "sha512-ELhVS+aom97BvlEPC33XIeFe9nwB+Nfp74au4lWpckl1ELqwq3nfzAPco1E7cYGLla5M0Rq/hgzn1NYlBI5Ryw==",
"dependencies": {
"@ionic/core": "8.2.5",
"@ionic/core": "8.2.4",
"ionicons": "^7.0.0",
"tslib": "*"
},
@@ -667,9 +667,9 @@
]
},
"node_modules/@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g==",
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==",
"bin": {
"stencil": "bin/stencil"
},
@@ -4057,11 +4057,11 @@
"dev": true
},
"@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"requires": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -4163,11 +4163,11 @@
"requires": {}
},
"@ionic/react": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/react/-/react-8.2.5.tgz",
"integrity": "sha512-Iy5zM3R2InksH6Fh9AcBlgUGhz3YOV/2TDRvIdhT0wQIsDbCreAcGt8ST5x8YeKQPuChoDhmD2HQG9g7Fc9DhQ==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/react/-/react-8.2.4.tgz",
"integrity": "sha512-ELhVS+aom97BvlEPC33XIeFe9nwB+Nfp74au4lWpckl1ELqwq3nfzAPco1E7cYGLla5M0Rq/hgzn1NYlBI5Ryw==",
"requires": {
"@ionic/core": "8.2.5",
"@ionic/core": "8.2.4",
"ionicons": "^7.0.0",
"tslib": "*"
}
@@ -4304,9 +4304,9 @@
"optional": true
},
"@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g=="
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw=="
},
"@types/estree": {
"version": "1.0.4",

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/react-router",
"version": "8.2.5",
"version": "8.2.4",
"description": "React Router wrapper for @ionic/react",
"keywords": [
"ionic",
@@ -36,7 +36,7 @@
"dist/"
],
"dependencies": {
"@ionic/react": "^8.2.5",
"@ionic/react": "^8.2.4",
"tslib": "*"
},
"peerDependencies": {

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/react
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/react

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/react",
"version": "8.2.5",
"version": "8.2.4",
"description": "React specific wrapper for @ionic/core",
"keywords": [
"ionic",
@@ -39,8 +39,7 @@
"css/"
],
"dependencies": {
"@ionic/core": "^8.2.5",
"@stencil/react-output-target": "0.0.1-dev.11721063914.1cb11145",
"@ionic/core": "^8.2.4",
"ionicons": "^7.0.0",
"tslib": "*"
},

View File

File diff suppressed because it is too large Load Diff

View File

@@ -89,7 +89,7 @@ export {
TransitionOptions,
} from '@ionic/core/components';
export * from './components';
export * from './proxies';
export * from './routing-proxies';
// createControllerComponent

View File

@@ -7,10 +7,10 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"lib": ["dom", "es2020"],
"lib": ["dom", "es2015"],
"importHelpers": true,
"module": "Node16",
"moduleResolution": "node16",
"module": "es2015",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,

View File

@@ -3,14 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
**Note:** Version bump only for package @ionic/vue-router
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/vue-router

View File

@@ -1,15 +1,15 @@
{
"name": "@ionic/vue-router",
"version": "8.2.5",
"version": "8.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/vue-router",
"version": "8.2.5",
"version": "8.2.4",
"license": "MIT",
"dependencies": {
"@ionic/vue": "^8.2.5"
"@ionic/vue": "^8.2.4"
},
"devDependencies": {
"@ionic/eslint-config": "^0.3.0",
@@ -661,11 +661,11 @@
"dev": true
},
"node_modules/@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"dependencies": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -852,11 +852,11 @@
}
},
"node_modules/@ionic/vue": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-8.2.5.tgz",
"integrity": "sha512-Is6ZwHlLltR0YF54cgd/Fc/eVTW2VDIOExm3paGkczcaka6Jut3UY9m0ukbILeuRG+phjet31QKKbcGSaooWyg==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-8.2.4.tgz",
"integrity": "sha512-0HVaV0temhEsxnaZTx2DibFEGe7QTy7COaL3dquT2/KapPpEcDkKXB/eyYjPbbxDbNmv5jFfmaV7YGJ7Ad2mmg==",
"dependencies": {
"@ionic/core": "8.2.5",
"@ionic/core": "8.2.4",
"ionicons": "^7.0.0"
}
},
@@ -1508,9 +1508,9 @@
}
},
"node_modules/@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g==",
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==",
"bin": {
"stencil": "bin/stencil"
},
@@ -7878,11 +7878,11 @@
"dev": true
},
"@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"requires": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -7993,11 +7993,11 @@
"requires": {}
},
"@ionic/vue": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-8.2.5.tgz",
"integrity": "sha512-Is6ZwHlLltR0YF54cgd/Fc/eVTW2VDIOExm3paGkczcaka6Jut3UY9m0ukbILeuRG+phjet31QKKbcGSaooWyg==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-8.2.4.tgz",
"integrity": "sha512-0HVaV0temhEsxnaZTx2DibFEGe7QTy7COaL3dquT2/KapPpEcDkKXB/eyYjPbbxDbNmv5jFfmaV7YGJ7Ad2mmg==",
"requires": {
"@ionic/core": "8.2.5",
"@ionic/core": "8.2.4",
"ionicons": "^7.0.0"
}
},
@@ -8461,9 +8461,9 @@
}
},
"@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g=="
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw=="
},
"@tootallnate/once": {
"version": "2.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/vue-router",
"version": "8.2.5",
"version": "8.2.4",
"description": "Vue Router integration for @ionic/vue",
"scripts": {
"test.spec": "jest",
@@ -44,7 +44,7 @@
},
"homepage": "https://github.com/ionic-team/ionic-framework#readme",
"dependencies": {
"@ionic/vue": "^8.2.5"
"@ionic/vue": "^8.2.4"
},
"devDependencies": {
"@ionic/eslint-config": "^0.3.0",

View File

@@ -3,17 +3,6 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [8.2.5](https://github.com/ionic-team/ionic-framework/compare/v8.2.4...v8.2.5) (2024-07-03)
### Bug Fixes
* **vue:** add optional IonicConfig type parameter to IonicVue plugin ([#29637](https://github.com/ionic-team/ionic-framework/issues/29637)) ([90893f4](https://github.com/ionic-team/ionic-framework/commit/90893f46c930dbccd4251fa2f56bdde30b669158)), closes [#29659](https://github.com/ionic-team/ionic-framework/issues/29659)
## [8.2.4](https://github.com/ionic-team/ionic-framework/compare/v8.2.2...v8.2.4) (2024-06-28)
**Note:** Version bump only for package @ionic/vue

View File

@@ -1,15 +1,15 @@
{
"name": "@ionic/vue",
"version": "8.2.5",
"version": "8.2.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@ionic/vue",
"version": "8.2.5",
"version": "8.2.4",
"license": "MIT",
"dependencies": {
"@ionic/core": "^8.2.5",
"@ionic/core": "^8.2.4",
"ionicons": "^7.0.0"
},
"devDependencies": {
@@ -208,11 +208,11 @@
"dev": true
},
"node_modules/@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"dependencies": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
}
@@ -628,9 +628,9 @@
]
},
"node_modules/@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g==",
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw==",
"bin": {
"stencil": "bin/stencil"
},
@@ -3959,11 +3959,11 @@
"dev": true
},
"@ionic/core": {
"version": "8.2.5",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.5.tgz",
"integrity": "sha512-NhK5KfP5NL5NITibj8sOUlfI/ARNCF5rBu5HdIEfFe25MJkd0IYBQWjVaESFhSk7aB8pXEP8DIx1AHbT9e3Sog==",
"version": "8.2.4",
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-8.2.4.tgz",
"integrity": "sha512-lCsPzSEVs/XQMF25/phHlwhDNUlz4gqotzY/fEbhq2PT6Z5w81NndRAPsLQ4JM2k4N2gjJNeUFZJi+W78z2qtA==",
"requires": {
"@stencil/core": "^4.19.2",
"@stencil/core": "^4.19.1",
"ionicons": "^7.2.2",
"tslib": "^2.1.0"
},
@@ -4203,9 +4203,9 @@
"optional": true
},
"@stencil/core": {
"version": "4.19.2",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.2.tgz",
"integrity": "sha512-ZdnbHmHEl8E5vN0GWDtONe5w6j3CrSqqxZM4hNLBPkV/aouWKug7D5/Mi6RazfYO5U4fmHQYLwMz60rHcx0G4g=="
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.19.1.tgz",
"integrity": "sha512-fjSBctHrobeSL2+XcuX7GVk/eaUhZ/lvIu21RJmzHAPcNyueuSAEv7J/Isn4UlYNk70o+yOK72H0FTlNkUibvw=="
},
"@types/estree": {
"version": "1.0.4",

View File

@@ -1,6 +1,6 @@
{
"name": "@ionic/vue",
"version": "8.2.5",
"version": "8.2.4",
"description": "Vue specific wrapper for @ionic/core",
"scripts": {
"eslint": "eslint src",
@@ -66,7 +66,7 @@
"vue-router": "^4.0.16"
},
"dependencies": {
"@ionic/core": "^8.2.5",
"@ionic/core": "^8.2.4",
"ionicons": "^7.0.0"
},
"vetur": {

View File

@@ -91,17 +91,8 @@ export const defineContainer = <Props, VModelType = string | number | boolean>(
const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
eventsNames.forEach((eventName: string) => {
el.addEventListener(eventName.toLowerCase(), (e: Event) => {
/**
* Only update the v-model binding if the event's target is the element we are
* listening on. For example, Component A could emit ionChange, but it could also
* have a descendant Component B that also emits ionChange. We only want to update
* the v-model for Component A when ionChange originates from that element and not
* when ionChange bubbles up from Component B.
*/
if (e.target.tagName === el.tagName) {
modelPropValue = (e?.target as any)[modelProp];
emit(UPDATE_VALUE_EVENT, modelPropValue);
}
modelPropValue = (e?.target as any)[modelProp];
emit(UPDATE_VALUE_EVENT, modelPropValue);
});
});
},