diff --git a/core/api.txt b/core/api.txt index 745d82786af..cfc822a1e6c 100644 --- a/core/api.txt +++ b/core/api.txt @@ -703,8 +703,8 @@ ion-infinite-scroll-content,prop,loadingText,IonicSafeString | string | undefine ion-input,scoped ion-input,prop,autocapitalize,string,'off',false,false -ion-input,prop,autocomplete,"name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false -ion-input,prop,autocorrect,"off" | "on",'off',false,false +ion-input,prop,autocomplete,"name" | "on" | "off" | "email" | "tel" | "url" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false +ion-input,prop,autocorrect,boolean,false,false,false ion-input,prop,autofocus,boolean,false,false,false ion-input,prop,clearInput,boolean,false,false,false ion-input,prop,clearInputIcon,string | undefined,undefined,false,false @@ -1557,8 +1557,8 @@ ion-row,shadow ion-searchbar,scoped ion-searchbar,prop,animated,boolean,false,false,false ion-searchbar,prop,autocapitalize,string,'off',false,false -ion-searchbar,prop,autocomplete,"name" | "email" | "tel" | "url" | "on" | "off" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false -ion-searchbar,prop,autocorrect,"off" | "on",'off',false,false +ion-searchbar,prop,autocomplete,"name" | "on" | "off" | "email" | "tel" | "url" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo",'off',false,false +ion-searchbar,prop,autocorrect,boolean,false,false,false ion-searchbar,prop,cancelButtonIcon,string,config.get('backButtonIcon', arrowBackSharp) as string,false,false ion-searchbar,prop,cancelButtonText,string,'Cancel',false,false ion-searchbar,prop,clearIcon,string | undefined,undefined,false,false diff --git a/core/package-lock.json b/core/package-lock.json index 8e272ea0493..b859c857327 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -9,7 +9,7 @@ "version": "8.7.9", "license": "MIT", "dependencies": { - "@stencil/core": "4.38.0", + "@stencil/core": "^4.38.3-dev.1762459485.1816def", "ionicons": "^8.0.13", "tslib": "^2.1.0" }, @@ -30,7 +30,7 @@ "@stencil/sass": "^3.0.9", "@stencil/vue-output-target": "0.10.8", "@types/jest": "^29.5.6", - "@types/node": "^14.6.0", + "@types/node": "^24.10.0", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "chalk": "^5.3.0", @@ -1914,9 +1914,10 @@ } }, "node_modules/@stencil/core": { - "version": "4.38.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.38.0.tgz", - "integrity": "sha512-oC3QFKO0X1yXVvETgc8OLY525MNKhn9vISBrbtKnGoPlokJ6rI8Vk1RK22TevnNrHLI4SExNLbcDnqilKR35JQ==", + "version": "4.38.3", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.38.3.tgz", + "integrity": "sha512-rSDzGUfi58X8K79ySjlM6KlY+mq7D+ittzgNAdYHcsXHc70sBpdatFhnbOg25uVDiMf7xRAH9slP38pPdXnZOQ==", + "license": "MIT", "bin": { "stencil": "bin/stencil" }, @@ -2111,10 +2112,14 @@ "dev": true }, "node_modules/@types/node": { - "version": "14.14.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.22.tgz", - "integrity": "sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw==", - "dev": true + "version": "24.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz", + "integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.16.0" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -10173,6 +10178,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true, + "license": "MIT" + }, "node_modules/unified": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", @@ -11983,9 +11995,9 @@ "requires": {} }, "@stencil/core": { - "version": "4.38.0", - "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.38.0.tgz", - "integrity": "sha512-oC3QFKO0X1yXVvETgc8OLY525MNKhn9vISBrbtKnGoPlokJ6rI8Vk1RK22TevnNrHLI4SExNLbcDnqilKR35JQ==", + "version": "4.38.3", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-4.38.3.tgz", + "integrity": "sha512-rSDzGUfi58X8K79ySjlM6KlY+mq7D+ittzgNAdYHcsXHc70sBpdatFhnbOg25uVDiMf7xRAH9slP38pPdXnZOQ==", "requires": { "@rollup/rollup-darwin-arm64": "4.34.9", "@rollup/rollup-darwin-x64": "4.34.9", @@ -12145,10 +12157,13 @@ "dev": true }, "@types/node": { - "version": "14.14.22", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.22.tgz", - "integrity": "sha512-g+f/qj/cNcqKkc3tFqlXOYjrmZA+jNBiDzbP3kH+B+otKFqAdPgVTGP1IeKRdMml/aE69as5S4FqtxAbl+LaMw==", - "dev": true + "version": "24.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz", + "integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==", + "dev": true, + "requires": { + "undici-types": "~7.16.0" + } }, "@types/normalize-package-data": { "version": "2.4.0", @@ -17986,6 +18001,12 @@ "which-boxed-primitive": "^1.0.2" } }, + "undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "dev": true + }, "unified": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/unified/-/unified-9.2.0.tgz", diff --git a/core/package.json b/core/package.json index 2e85755679e..949777a25f7 100644 --- a/core/package.json +++ b/core/package.json @@ -31,7 +31,7 @@ "loader/" ], "dependencies": { - "@stencil/core": "4.38.0", + "@stencil/core": "^4.38.3-dev.1762459485.1816def", "ionicons": "^8.0.13", "tslib": "^2.1.0" }, @@ -52,7 +52,7 @@ "@stencil/sass": "^3.0.9", "@stencil/vue-output-target": "0.10.8", "@types/jest": "^29.5.6", - "@types/node": "^14.6.0", + "@types/node": "^24.10.0", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "chalk": "^5.3.0", diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 7721801eb60..2e31b5febb0 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -1291,9 +1291,9 @@ export namespace Components { "autocomplete": AutocompleteTypes; /** * Whether auto correction should be enabled when the user is entering/editing the text value. - * @default 'off' + * @default false */ - "autocorrect": 'on' | 'off'; + "autocorrect": boolean; /** * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load. See [managing focus](/docs/developing/managing-focus) for more information. * @default false @@ -2933,9 +2933,9 @@ export namespace Components { "autocomplete": AutocompleteTypes; /** * Set the input's autocorrect property. - * @default 'off' + * @default false */ - "autocorrect": 'on' | 'off'; + "autocorrect": boolean; /** * Set the cancel button icon. Only applies to `md` mode. Defaults to `arrow-back-sharp`. * @default config.get('backButtonIcon', arrowBackSharp) as string @@ -6565,9 +6565,9 @@ declare namespace LocalJSX { "autocomplete"?: AutocompleteTypes; /** * Whether auto correction should be enabled when the user is entering/editing the text value. - * @default 'off' + * @default false */ - "autocorrect"?: 'on' | 'off'; + "autocorrect"?: boolean; /** * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load. See [managing focus](/docs/developing/managing-focus) for more information. * @default false @@ -8209,9 +8209,9 @@ declare namespace LocalJSX { "autocomplete"?: AutocompleteTypes; /** * Set the input's autocorrect property. - * @default 'off' + * @default false */ - "autocorrect"?: 'on' | 'off'; + "autocorrect"?: boolean; /** * Set the cancel button icon. Only applies to `md` mode. Defaults to `arrow-back-sharp`. * @default config.get('backButtonIcon', arrowBackSharp) as string diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 19c5a9d406f..19c9df99b66 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -109,7 +109,7 @@ export class Input implements ComponentInterface { /** * Whether auto correction should be enabled when the user is entering/editing the text value. */ - @Prop() autocorrect: 'on' | 'off' = 'off'; + @Prop() autocorrect: boolean = false; /** * Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. @@ -871,7 +871,7 @@ export class Input implements ComponentInterface { disabled={disabled} autoCapitalize={this.autocapitalize} autoComplete={this.autocomplete} - autoCorrect={this.autocorrect} + autoCorrect={this.autocorrect? 'on' : 'off'} autoFocus={this.autofocus} enterKeyHint={this.enterkeyhint} inputMode={this.inputmode} diff --git a/core/src/components/searchbar/searchbar.tsx b/core/src/components/searchbar/searchbar.tsx index 0c038962a53..aeee1aa58e5 100644 --- a/core/src/components/searchbar/searchbar.tsx +++ b/core/src/components/searchbar/searchbar.tsx @@ -92,7 +92,7 @@ export class Searchbar implements ComponentInterface { /** * Set the input's autocorrect property. */ - @Prop() autocorrect: 'on' | 'off' = 'off'; + @Prop() autocorrect: boolean = false; /** * Set the cancel button icon. Only applies to `md` mode. @@ -670,7 +670,7 @@ export class Searchbar implements ComponentInterface { value={this.getValue()} autoCapitalize={autocapitalize === 'default' ? undefined : autocapitalize} autoComplete={this.autocomplete} - autoCorrect={this.autocorrect} + autoCorrect={this.autocorrect? 'on' : 'off'} spellcheck={this.spellcheck} {...this.inheritedAttributes} />