diff --git a/docs/api/range.mdx b/docs/api/range.mdx index 34353f615b7..5e55165afae 100644 --- a/docs/api/range.mdx +++ b/docs/api/range.mdx @@ -107,7 +107,9 @@ import IonChangeEvent from '@site/static/usage/v9/range/ion-change-event/index.m ### Using `ionKnobMoveStart` and `ionKnobMoveEnd` {/* #using-ionknobmovestart-and-ionknobmoveend */} -The `ionKnobMoveStart` event emits when the Range knob begins dragging, whether through mouse drag, touch gesture or keyboard interaction. Inversely, `ionKnobMoveEnd` emits when the Range knob is released. Both events emit with the `RangeValue` type and work in combination with the `dualKnobs` property. +The `ionKnobMoveStart` event emits when the Range knob begins dragging, whether through mouse drag, touch gesture or keyboard interaction. Inversely, `ionKnobMoveEnd` emits when the Range knob is released. Both events emit a detail with the current `value` and work in combination with the `dualKnobs` property. + +The event detail also includes which knob moved, using the same static identity and dynamic position described in [CSS Shadow Parts](#css-shadow-parts). The `knob` property is the knob's static identity, `'A'` or `'B'`, and does not change if the knobs cross. The `position` property is whether that knob holds the `'lower'` or `'upper'` value. For `ionKnobMoveStart` it is the position before the knob moves, and for `ionKnobMoveEnd` it is the position after, so a knob that starts as the lower knob and is dragged past the other knob reports `'lower'` on start and `'upper'` on end. A Range without `dualKnobs` always reports a `knob` of `'A'` and a `position` of `'lower'`. import IonKnobMoveEvent from '@site/static/usage/v9/range/ion-knob-move-event/index.mdx'; @@ -148,6 +150,8 @@ interface RangeChangeEventDetail { ```typescript interface RangeKnobMoveStartEventDetail { value: RangeValue; + knob: RangeKnobName; + position: RangeKnobPosition; } ``` @@ -156,6 +160,8 @@ interface RangeKnobMoveStartEventDetail { ```typescript interface RangeKnobMoveEndEventDetail { value: RangeValue; + knob: RangeKnobName; + position: RangeKnobPosition; } ``` @@ -170,6 +176,28 @@ interface RangeCustomEvent extends CustomEvent { } ``` +### RangeKnobMoveStartCustomEvent {/* #rangeknobmovestartcustomevent */} + +While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with the `ionKnobMoveStart` event. + +```typescript +interface RangeKnobMoveStartCustomEvent extends CustomEvent { + detail: RangeKnobMoveStartEventDetail; + target: HTMLIonRangeElement; +} +``` + +### RangeKnobMoveEndCustomEvent {/* #rangeknobmoveendcustomevent */} + +While not required, this interface can be used in place of the `CustomEvent` interface for stronger typing with the `ionKnobMoveEnd` event. + +```typescript +interface RangeKnobMoveEndCustomEvent extends CustomEvent { + detail: RangeKnobMoveEndEventDetail; + target: HTMLIonRangeElement; +} +``` + ## Types {/* #types */} ### RangeValue {/* #rangevalue */} @@ -178,6 +206,18 @@ interface RangeCustomEvent extends CustomEvent { type RangeValue = number | { lower: number; upper: number }; ``` +### RangeKnobName {/* #rangeknobname */} + +```typescript +type RangeKnobName = 'A' | 'B'; +``` + +### RangeKnobPosition {/* #rangeknobposition */} + +```typescript +type RangeKnobPosition = 'lower' | 'upper'; +``` + ## Properties {/* #properties */} diff --git a/static/code/stackblitz/v9/angular/package-lock.json b/static/code/stackblitz/v9/angular/package-lock.json index 1370cb5c7f3..4b05f85b4c1 100644 --- a/static/code/stackblitz/v9/angular/package-lock.json +++ b/static/code/stackblitz/v9/angular/package-lock.json @@ -14,8 +14,8 @@ "@angular/platform-browser": "^22.0.0", "@angular/platform-browser-dynamic": "^22.0.0", "@angular/router": "^22.0.0", - "@ionic/angular": "9.0.11-dev.11794501674.16819717", - "@ionic/core": "9.0.11-dev.11794501674.16819717", + "@ionic/angular": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", "ionicons": "8.1.0", "rxjs": "^7.8.1", "tslib": "^2.5.0" @@ -2578,12 +2578,12 @@ } }, "node_modules/@ionic/angular": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-gXi70iVG13IzJ/PwKaGLT6G+Rz/4JcWPgNIupFMipMFZvQVAcC3sfmFQMfw+Y+K0X8p3H0tna7d8cTClNjpcTg==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-fxIfP6m9nDNDniKGbN2NnK6kWCLDq+60gOHEIfTyNsxn/j8rRVjliB5inxr0UOIwmOs+LN6k2t+RgplCqfFpcA==", "license": "MIT", "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", "ionicons": "^8.0.13", "jsonc-parser": "^3.0.0", "tslib": "^2.3.0" @@ -2602,12 +2602,12 @@ } }, "node_modules/@ionic/core": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-T4CZjVIis5w/CJL1QvI/6a8z29wI2nTAK5bHlFGTQv9T0TXCTqG6X8wm5AkPlNBAJ9jPzPZknG6zNqQHU9e8mQ==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-2F9QwrH2wlsE5tJUU0R0vgDJpFoFuMNf8toXRjNp7w0eVIVBDbrfCHuOfojw839DY2ww6r8N1kXqgft4n7M29A==", "license": "MIT", "dependencies": { - "@stencil/core": "^4.44.2", + "@stencil/core": "^4.45.4", "ionicons": "^8.1.0", "tslib": "^2.1.0" }, @@ -4233,9 +4233,9 @@ "license": "MIT" }, "node_modules/@stencil/core": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.44.2.tgz", - "integrity": "sha512-TNaYdlyHfy8UF7glvZwaY6pM0AhgCOXuW5Kx3+AO+ITeaipCHWXi5tkZ6P/3HCL+hUySc60lPKSnZ4xdYIFb4g==", + "version": "4.45.5", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.45.5.tgz", + "integrity": "sha512-tz6h9MI/s0WwNsfGbSguo9+xnerWam8NI8/U3VUS9MNMviTYyg3Ymz5XniSM9PGFnbd2xhhmyJhHHaFmy9mYog==", "license": "MIT", "bin": { "stencil": "bin/stencil" diff --git a/static/code/stackblitz/v9/angular/package.json b/static/code/stackblitz/v9/angular/package.json index a115df07694..b4456ce7f5a 100644 --- a/static/code/stackblitz/v9/angular/package.json +++ b/static/code/stackblitz/v9/angular/package.json @@ -15,8 +15,8 @@ "@angular/platform-browser": "^22.0.0", "@angular/platform-browser-dynamic": "^22.0.0", "@angular/router": "^22.0.0", - "@ionic/angular": "9.0.11-dev.11794501674.16819717", - "@ionic/core": "9.0.11-dev.11794501674.16819717", + "@ionic/angular": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", "ionicons": "8.1.0", "rxjs": "^7.8.1", "tslib": "^2.5.0" diff --git a/static/code/stackblitz/v9/html/package-lock.json b/static/code/stackblitz/v9/html/package-lock.json index 56c537eb894..585844a67bc 100644 --- a/static/code/stackblitz/v9/html/package-lock.json +++ b/static/code/stackblitz/v9/html/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "html-starter", "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", "ionicons": "8.1.0" }, "devDependencies": { @@ -16,12 +16,12 @@ } }, "node_modules/@ionic/core": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-T4CZjVIis5w/CJL1QvI/6a8z29wI2nTAK5bHlFGTQv9T0TXCTqG6X8wm5AkPlNBAJ9jPzPZknG6zNqQHU9e8mQ==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-2F9QwrH2wlsE5tJUU0R0vgDJpFoFuMNf8toXRjNp7w0eVIVBDbrfCHuOfojw839DY2ww6r8N1kXqgft4n7M29A==", "license": "MIT", "dependencies": { - "@stencil/core": "^4.44.2", + "@stencil/core": "^4.45.4", "ionicons": "^8.1.0", "tslib": "^2.1.0" }, @@ -136,9 +136,9 @@ ] }, "node_modules/@stencil/core": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.44.2.tgz", - "integrity": "sha512-TNaYdlyHfy8UF7glvZwaY6pM0AhgCOXuW5Kx3+AO+ITeaipCHWXi5tkZ6P/3HCL+hUySc60lPKSnZ4xdYIFb4g==", + "version": "4.45.5", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.45.5.tgz", + "integrity": "sha512-tz6h9MI/s0WwNsfGbSguo9+xnerWam8NI8/U3VUS9MNMviTYyg3Ymz5XniSM9PGFnbd2xhhmyJhHHaFmy9mYog==", "license": "MIT", "bin": { "stencil": "bin/stencil" diff --git a/static/code/stackblitz/v9/html/package.json b/static/code/stackblitz/v9/html/package.json index e6c64b5004d..c3a49f2f4c9 100644 --- a/static/code/stackblitz/v9/html/package.json +++ b/static/code/stackblitz/v9/html/package.json @@ -9,7 +9,7 @@ "start": "vite preview" }, "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", "ionicons": "8.1.0" }, "devDependencies": { diff --git a/static/code/stackblitz/v9/react/package-lock.json b/static/code/stackblitz/v9/react/package-lock.json index 1ed508d60ed..ea4d53cbbb6 100644 --- a/static/code/stackblitz/v9/react/package-lock.json +++ b/static/code/stackblitz/v9/react/package-lock.json @@ -8,8 +8,8 @@ "name": "vite-react-typescript", "version": "0.1.0", "dependencies": { - "@ionic/react": "9.0.11-dev.11794501674.16819717", - "@ionic/react-router": "9.0.11-dev.11794501674.16819717", + "@ionic/react": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/react-router": "9.0.13-dev.11795197602.11ba74b4", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", @@ -251,15 +251,17 @@ }, "node_modules/@emotion/unitless": { "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz", + "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==", "license": "MIT" }, "node_modules/@ionic/core": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-T4CZjVIis5w/CJL1QvI/6a8z29wI2nTAK5bHlFGTQv9T0TXCTqG6X8wm5AkPlNBAJ9jPzPZknG6zNqQHU9e8mQ==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-2F9QwrH2wlsE5tJUU0R0vgDJpFoFuMNf8toXRjNp7w0eVIVBDbrfCHuOfojw839DY2ww6r8N1kXqgft4n7M29A==", "license": "MIT", "dependencies": { - "@stencil/core": "^4.44.2", + "@stencil/core": "^4.45.4", "ionicons": "^8.1.0", "tslib": "^2.1.0" }, @@ -268,13 +270,13 @@ } }, "node_modules/@ionic/react": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/react/-/react-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-btyG8hsEGcBNoLoqh36QJDyWBJs3hLCGRJGAx32NvgbAb/X5q80B/TEaSTRtC0ziA2bWfRRs3yN8Hckab0jXTg==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/react/-/react-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-vEqxWTGziTdJjlfDQa81bctIhLyHVu54X12gfjFAjNGVstu++kjrCInbv9VcpfBouo9IriT8T25QliAJSsq+6w==", "license": "MIT", "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", - "@stencil/react-output-target": "^1.6.2", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", + "@stencil/react-output-target": "^1.7.0", "ionicons": "^8.0.13", "tslib": "*" }, @@ -284,22 +286,33 @@ } }, "node_modules/@ionic/react-router": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/react-router/-/react-router-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-MYG4xg+M14R0ESNaea3FQVdDUOSaFzJQJAAifJ57QIfQ4tFLZY/tSRIrEvSSyXBVinpBxvli3XaVr2graHmFnQ==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/react-router/-/react-router-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-xfEQHL8/7LUeWXmWhlIBH65HCibYOckADmRbGBJvz5/8z3jso+norvRtdvL+FhBWae2sUWTrdvuHzTd05lJJdw==", "license": "MIT", "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", - "@ionic/react": "9.0.11-dev.11794501674.16819717", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/react": "9.0.13-dev.11795197602.11ba74b4", "tslib": "*" }, "peerDependencies": { "react": "^18 || ^19", "react-dom": "^18 || ^19", - "react-router": ">=6.4.0 <7", - "react-router-dom": ">=6.4.0 <7" + "react-router": ">=6.4.0 <7 || >=7.15.0 <8", + "react-router-dom": ">=6.4.0 <7 || >=7.15.0 <8" + }, + "peerDependenciesMeta": { + "react-router": { + "optional": true + } } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "license": "MIT", @@ -337,6 +350,8 @@ }, "node_modules/@lit/react": { "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@lit/react/-/react-1.0.8.tgz", + "integrity": "sha512-p2+YcF+JE67SRX3mMlJ1TKCSTsgyOVdAwd/nxp3NuV1+Cb6MWALbN6nT7Ld4tpmYofcE5kcaSY1YBB9erY+6fw==", "license": "BSD-3-Clause", "peerDependencies": { "@types/react": "17 || 18 || 19" @@ -472,9 +487,9 @@ ] }, "node_modules/@stencil/core": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.44.2.tgz", - "integrity": "sha512-TNaYdlyHfy8UF7glvZwaY6pM0AhgCOXuW5Kx3+AO+ITeaipCHWXi5tkZ6P/3HCL+hUySc60lPKSnZ4xdYIFb4g==", + "version": "4.45.5", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.45.5.tgz", + "integrity": "sha512-tz6h9MI/s0WwNsfGbSguo9+xnerWam8NI8/U3VUS9MNMviTYyg3Ymz5XniSM9PGFnbd2xhhmyJhHHaFmy9mYog==", "license": "MIT", "bin": { "stencil": "bin/stencil" @@ -495,9 +510,9 @@ } }, "node_modules/@stencil/react-output-target": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-1.6.2.tgz", - "integrity": "sha512-hnN0EkF/aWIqIUZhJ4rUszqKzzS8TSThSXNxkK9xLtlKIUef/sep8ekRlHOelq7RiUBPP4eTBv6d5N3X4T35KQ==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@stencil/react-output-target/-/react-output-target-1.8.1.tgz", + "integrity": "sha512-6HWtiAoPjX6oJplkp+JoiUxbpDrDtF8NkdyE57pOucymdplEd1qSwtJjelNyjPQ9dV2V+AV5zjgpbNCQSp+zHw==", "license": "MIT", "dependencies": { "@lit/react": "^1.0.8", @@ -506,7 +521,7 @@ "ts-morph": "^28.0.0" }, "peerDependencies": { - "@stencil/core": ">=3 || >=4.0.0 || ^5.0.0 || >=5.0.0-alpha.17 <5.0.0-next.0", + "@stencil/core": ">=3 || >=4.0.0 || ^5.0.0 || >=5.0.0-beta.18", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, @@ -523,10 +538,12 @@ } }, "node_modules/@ts-morph/common": { - "version": "0.29.0", + "version": "0.29.1", + "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.29.1.tgz", + "integrity": "sha512-P6hGYQ+taPsxmoY4svs0uFNiaLdOPDE+F5FqTBwoA76x8HmEggQXbEhSo78ZsyrGzUxbQfdr/5P7lHYUHF0r2Q==", "license": "MIT", "dependencies": { - "minimatch": "^10.0.1", + "minimatch": "^11.0.1", "path-browserify": "^1.0.1", "tinyglobby": "^0.2.14" } @@ -615,6 +632,8 @@ }, "node_modules/balanced-match": { "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "license": "MIT", "engines": { "node": "18 || 20 || >=22" @@ -631,7 +650,9 @@ } }, "node_modules/brace-expansion": { - "version": "5.0.8", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz", + "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" @@ -698,6 +719,8 @@ }, "node_modules/code-block-writer": { "version": "13.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==", "license": "MIT" }, "node_modules/convert-source-map": { @@ -725,6 +748,8 @@ }, "node_modules/dom-serializer": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", "license": "MIT", "dependencies": { "domelementtype": "^2.3.0", @@ -737,6 +762,8 @@ }, "node_modules/dom-serializer/node_modules/entities": { "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "license": "BSD-2-Clause", "engines": { "node": ">=0.12" @@ -747,6 +774,8 @@ }, "node_modules/domelementtype": { "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", "funding": [ { "type": "github", @@ -757,6 +786,8 @@ }, "node_modules/domhandler": { "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", "license": "BSD-2-Clause", "dependencies": { "domelementtype": "^2.3.0" @@ -770,6 +801,8 @@ }, "node_modules/domutils": { "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", "license": "BSD-2-Clause", "dependencies": { "dom-serializer": "^2.0.0", @@ -786,6 +819,8 @@ }, "node_modules/entities": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", "license": "BSD-2-Clause", "engines": { "node": ">=0.12" @@ -850,6 +885,8 @@ }, "node_modules/html-dom-parser": { "version": "5.1.8", + "resolved": "https://registry.npmjs.org/html-dom-parser/-/html-dom-parser-5.1.8.tgz", + "integrity": "sha512-MCIUng//mF2qTtGHXJWr6OLfHWmg3Pm8ezpfiltF83tizPWY17JxT4dRLE8lykJ5bChJELoY3onQKPbufJHxYA==", "funding": [ { "type": "github", @@ -864,6 +901,8 @@ }, "node_modules/html-react-parser": { "version": "5.2.17", + "resolved": "https://registry.npmjs.org/html-react-parser/-/html-react-parser-5.2.17.tgz", + "integrity": "sha512-m+K/7Moq1jodAB4VL0RXSOmtwLUYoAsikZhwd+hGQe5Vtw2dbWfpFd60poxojMU0Tsh9w59mN1QLEcoHz0Dx9w==", "funding": [ { "type": "github", @@ -893,6 +932,8 @@ }, "node_modules/htmlparser2": { "version": "10.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz", + "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==", "funding": [ "https://github.com/fb55/htmlparser2?sponsor=1", { @@ -910,6 +951,8 @@ }, "node_modules/inline-style-parser": { "version": "0.2.7", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz", + "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==", "license": "MIT" }, "node_modules/ionicons": { @@ -953,13 +996,16 @@ } }, "node_modules/minimatch": { - "version": "10.2.6", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.8" + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -994,6 +1040,8 @@ }, "node_modules/path-browserify": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "license": "MIT" }, "node_modules/picocolors": { @@ -1059,6 +1107,8 @@ }, "node_modules/react-property": { "version": "2.0.2", + "resolved": "https://registry.npmjs.org/react-property/-/react-property-2.0.2.tgz", + "integrity": "sha512-+PbtI3VuDV0l6CleQMsx2gtK0JZbZKbpdu5ynr+lbsuvtmgbNcS3VM0tuY2QjFNOcWxvXeHjDpy42RO+4U2rug==", "license": "MIT" }, "node_modules/react-refresh": { @@ -1102,6 +1152,8 @@ }, "node_modules/react-style-stringify": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/react-style-stringify/-/react-style-stringify-1.2.0.tgz", + "integrity": "sha512-88JZckqgbfXJaGcDQoTFKRmBwHBF0Ddaxz3PL9Q+vywAJruBY+NdN+ZiKSBe7r/pWtjbt0naZdtH5oNI1X3FLA==", "license": "MIT", "dependencies": { "@emotion/unitless": "^0.10.0" @@ -1150,6 +1202,8 @@ }, "node_modules/style-to-js": { "version": "1.1.21", + "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz", + "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==", "license": "MIT", "dependencies": { "style-to-object": "1.0.14" @@ -1157,6 +1211,8 @@ }, "node_modules/style-to-object": { "version": "1.0.14", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz", + "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==", "license": "MIT", "dependencies": { "inline-style-parser": "0.2.7" @@ -1178,6 +1234,8 @@ }, "node_modules/ts-morph": { "version": "28.0.0", + "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-28.0.0.tgz", + "integrity": "sha512-Wp3tnZ2bzwxyTZMtgWVzXDfm7lB1Drz+y9DmmYH/L702PQhPyVrp3pkou3yIz4qjS14GY9kcpmLiOOMvl8oG1g==", "license": "MIT", "dependencies": { "@ts-morph/common": "~0.29.0", diff --git a/static/code/stackblitz/v9/react/package.json b/static/code/stackblitz/v9/react/package.json index 2aedeb207e2..57cb9bd734d 100644 --- a/static/code/stackblitz/v9/react/package.json +++ b/static/code/stackblitz/v9/react/package.json @@ -3,8 +3,8 @@ "version": "0.1.0", "private": true, "dependencies": { - "@ionic/react": "9.0.11-dev.11794501674.16819717", - "@ionic/react-router": "9.0.11-dev.11794501674.16819717", + "@ionic/react": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/react-router": "9.0.13-dev.11795197602.11ba74b4", "@types/node": "^24.0.0", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/static/code/stackblitz/v9/vue/package-lock.json b/static/code/stackblitz/v9/vue/package-lock.json index 26bf3713a54..2e50235dc1a 100644 --- a/static/code/stackblitz/v9/vue/package-lock.json +++ b/static/code/stackblitz/v9/vue/package-lock.json @@ -8,8 +8,8 @@ "name": "vite-vue-starter", "version": "0.0.0", "dependencies": { - "@ionic/vue": "9.0.11-dev.11794501674.16819717", - "@ionic/vue-router": "9.0.11-dev.11794501674.16819717", + "@ionic/vue": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/vue-router": "9.0.13-dev.11795197602.11ba74b4", "vue": "^3.2.25", "vue-router": "5.4.0" }, @@ -63,12 +63,12 @@ } }, "node_modules/@ionic/core": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-T4CZjVIis5w/CJL1QvI/6a8z29wI2nTAK5bHlFGTQv9T0TXCTqG6X8wm5AkPlNBAJ9jPzPZknG6zNqQHU9e8mQ==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/core/-/core-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-2F9QwrH2wlsE5tJUU0R0vgDJpFoFuMNf8toXRjNp7w0eVIVBDbrfCHuOfojw839DY2ww6r8N1kXqgft4n7M29A==", "license": "MIT", "dependencies": { - "@stencil/core": "^4.44.2", + "@stencil/core": "^4.45.4", "ionicons": "^8.1.0", "tslib": "^2.1.0" }, @@ -77,23 +77,23 @@ } }, "node_modules/@ionic/vue": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-JAr/1nMKT0E2m/0e1hjMcNhN48Zx0+mE2azzUbZtK16js1femzTOwGzd8OKc22uQwYCXAUZkwb5rmfBUaM0Q1A==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/vue/-/vue-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-rHyDPHHSxvcmH17yB3IzWPHneXvmpVQEVk1WdwFQUNkutWgSALKH4pIiRLvvMpbp4GcaFbwl9WNxtr2Q5I+CfQ==", "license": "MIT", "dependencies": { - "@ionic/core": "9.0.11-dev.11794501674.16819717", - "@stencil/vue-output-target": "0.14.2", + "@ionic/core": "9.0.13-dev.11795197602.11ba74b4", + "@stencil/vue-output-target": "0.14.7", "ionicons": "^8.0.13" } }, "node_modules/@ionic/vue-router": { - "version": "9.0.11-dev.11794501674.16819717", - "resolved": "https://registry.npmjs.org/@ionic/vue-router/-/vue-router-9.0.11-dev.11794501674.16819717.tgz", - "integrity": "sha512-1Ja2xXmMfF+skA/7msg72Qdjb6PpBljHqYAg08j4ojj/EWbmGhE+ztj/6Ipt+Qxu10VGI+01IXFkFSdQKzBQdg==", + "version": "9.0.13-dev.11795197602.11ba74b4", + "resolved": "https://registry.npmjs.org/@ionic/vue-router/-/vue-router-9.0.13-dev.11795197602.11ba74b4.tgz", + "integrity": "sha512-wo3SqRqT88WaLqxClTIXi37GzqLvntAUNPTyDNLeeWiIRl2JTJNHvM46VTraWb9kQcB4xqKPpK17q3UsraFAzw==", "license": "MIT", "dependencies": { - "@ionic/vue": "9.0.11-dev.11794501674.16819717" + "@ionic/vue": "9.0.13-dev.11795197602.11ba74b4" } }, "node_modules/@jridgewell/gen-mapping": { @@ -255,9 +255,9 @@ ] }, "node_modules/@stencil/core": { - "version": "4.44.2", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.44.2.tgz", - "integrity": "sha512-TNaYdlyHfy8UF7glvZwaY6pM0AhgCOXuW5Kx3+AO+ITeaipCHWXi5tkZ6P/3HCL+hUySc60lPKSnZ4xdYIFb4g==", + "version": "4.45.5", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.45.5.tgz", + "integrity": "sha512-tz6h9MI/s0WwNsfGbSguo9+xnerWam8NI8/U3VUS9MNMviTYyg3Ymz5XniSM9PGFnbd2xhhmyJhHHaFmy9mYog==", "license": "MIT", "bin": { "stencil": "bin/stencil" @@ -278,12 +278,12 @@ } }, "node_modules/@stencil/vue-output-target": { - "version": "0.14.2", - "resolved": "https://registry.npmjs.org/@stencil/vue-output-target/-/vue-output-target-0.14.2.tgz", - "integrity": "sha512-KF09dlRXvieXYEW7MnvnUoAWnQKm3JLori9UiB4xoTdJQeI987nRx5N5zzci+L3j4Ta+932D6+pJuWvHZJb+jA==", + "version": "0.14.7", + "resolved": "https://registry.npmjs.org/@stencil/vue-output-target/-/vue-output-target-0.14.7.tgz", + "integrity": "sha512-otE09Jzgd7+eRAApsvCsIIv+Yv+GakJrofd9gXA5dXbgIfK+nqWIMoYD4HlrXVKjI8KbUvPBuFdAQ8J3tqTVjg==", "license": "MIT", "peerDependencies": { - "@stencil/core": ">=2.0.0 || >=3 || >=4.0.0 || ^5.0.0 || >=5.0.0-alpha.17 <5.0.0-next.0", + "@stencil/core": ">=2.0.0 || >=3 || >=4.0.0 || ^5.0.0 || >=5.0.0-beta.18", "vue": "^3.4.38", "vue-router": "^4.5.0 || ^5.0.0" }, @@ -674,7 +674,7 @@ "node_modules/esbuild": { "name": "esbuild-wasm", "version": "0.28.1", - "devOptional": true, + "dev": true, "license": "MIT", "bin": { "esbuild": "bin/esbuild" @@ -710,6 +710,7 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -727,9 +728,9 @@ "license": "MIT" }, "node_modules/ionicons": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-8.1.0.tgz", - "integrity": "sha512-XSM2gYWTXxSYTwjmKWAoy4yR7AbAFDjpc5ZIivAiGXskM0fe5CdMPfs6InQRUcrYtVb2WZ/0HQ1/jeh3JW78SA==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/ionicons/-/ionicons-8.1.1.tgz", + "integrity": "sha512-VJjbZjjyzFmI0MAtlUKRprLpD4MbGbwcijk2aduu/a3jhGhlSUC/tQ2wM3p0/SF44/oDFdl0bdZMya3rZxnoyg==", "license": "MIT", "dependencies": { "@stencil/core": "^4.43.5" @@ -919,7 +920,7 @@ "node_modules/rollup": { "name": "@rollup/wasm-node", "version": "4.62.3", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "@types/estree": "1.0.9" @@ -963,12 +964,14 @@ } }, "node_modules/tslib": { - "version": "2.8.1", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", "license": "0BSD" }, "node_modules/typescript": { "version": "5.9.3", - "devOptional": true, + "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -1060,7 +1063,7 @@ "version": "7.3.7", "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.7.tgz", "integrity": "sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "esbuild": "^0.27.0 || ^0.28.0", diff --git a/static/code/stackblitz/v9/vue/package.json b/static/code/stackblitz/v9/vue/package.json index f11efcb7ac2..0d645e40b08 100644 --- a/static/code/stackblitz/v9/vue/package.json +++ b/static/code/stackblitz/v9/vue/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@ionic/vue": "9.0.11-dev.11794501674.16819717", - "@ionic/vue-router": "9.0.11-dev.11794501674.16819717", + "@ionic/vue": "9.0.13-dev.11795197602.11ba74b4", + "@ionic/vue-router": "9.0.13-dev.11795197602.11ba74b4", "vue": "^3.2.25", "vue-router": "5.4.0" }, diff --git a/static/usage/v9/range/ion-knob-move-event/angular/example_component_html.md b/static/usage/v9/range/ion-knob-move-event/angular/example_component_html.md index aa044d03b66..0eecfd98171 100644 --- a/static/usage/v9/range/ion-knob-move-event/angular/example_component_html.md +++ b/static/usage/v9/range/ion-knob-move-event/angular/example_component_html.md @@ -1,6 +1,8 @@ ```html diff --git a/static/usage/v9/range/ion-knob-move-event/angular/example_component_ts.md b/static/usage/v9/range/ion-knob-move-event/angular/example_component_ts.md index a59cac3ba11..ed497c8a6cb 100644 --- a/static/usage/v9/range/ion-knob-move-event/angular/example_component_ts.md +++ b/static/usage/v9/range/ion-knob-move-event/angular/example_component_ts.md @@ -1,6 +1,6 @@ ```ts import { Component } from '@angular/core'; -import { IonRange, RangeCustomEvent } from '@ionic/angular'; +import { IonRange, RangeKnobMoveEndCustomEvent, RangeKnobMoveStartCustomEvent } from '@ionic/angular'; @Component({ selector: 'app-example', @@ -9,12 +9,14 @@ import { IonRange, RangeCustomEvent } from '@ionic/angular'; imports: [IonRange], }) export class ExampleComponent { - onIonKnobMoveStart(event: RangeCustomEvent) { - console.log('ionKnobMoveStart:', event.detail.value); + onIonKnobMoveStart(event: RangeKnobMoveStartCustomEvent) { + const { knob, position, value } = event.detail; + console.log('ionKnobMoveStart:', knob, position, JSON.stringify(value)); } - onIonKnobMoveEnd(event: RangeCustomEvent) { - console.log('ionKnobMoveEnd:', event.detail.value); + onIonKnobMoveEnd(event: RangeKnobMoveEndCustomEvent) { + const { knob, position, value } = event.detail; + console.log('ionKnobMoveEnd:', knob, position, JSON.stringify(value)); } } ``` diff --git a/static/usage/v9/range/ion-knob-move-event/demo.html b/static/usage/v9/range/ion-knob-move-event/demo.html index 70e96b25da5..4629117fd0f 100644 --- a/static/usage/v9/range/ion-knob-move-event/demo.html +++ b/static/usage/v9/range/ion-knob-move-event/demo.html @@ -21,20 +21,24 @@
- +
diff --git a/static/usage/v9/range/ion-knob-move-event/javascript.md b/static/usage/v9/range/ion-knob-move-event/javascript.md index 5f7389814ba..cc7a921caa1 100644 --- a/static/usage/v9/range/ion-knob-move-event/javascript.md +++ b/static/usage/v9/range/ion-knob-move-event/javascript.md @@ -1,15 +1,19 @@ ```html - + ``` diff --git a/static/usage/v9/range/ion-knob-move-event/react.md b/static/usage/v9/range/ion-knob-move-event/react.md index 7085cc5c3b7..2ab7bc8e5c7 100644 --- a/static/usage/v9/range/ion-knob-move-event/react.md +++ b/static/usage/v9/range/ion-knob-move-event/react.md @@ -6,8 +6,17 @@ function Example() { return ( console.log('ionKnobMoveStart:', detail.value)} - onIonKnobMoveEnd={({ detail }) => console.log('ionKnobMoveEnd:', detail.value)} + dualKnobs={true} + value={{ + lower: 20, + upper: 80, + }} + onIonKnobMoveStart={({ detail }) => + console.log('ionKnobMoveStart:', detail.knob, detail.position, JSON.stringify(detail.value)) + } + onIonKnobMoveEnd={({ detail }) => + console.log('ionKnobMoveEnd:', detail.knob, detail.position, JSON.stringify(detail.value)) + } > ); } diff --git a/static/usage/v9/range/ion-knob-move-event/vue.md b/static/usage/v9/range/ion-knob-move-event/vue.md index 6c74d47b808..406c915b2b0 100644 --- a/static/usage/v9/range/ion-knob-move-event/vue.md +++ b/static/usage/v9/range/ion-knob-move-event/vue.md @@ -2,6 +2,8 @@