@ionic/core 9.0.9 → 9.0.10-dev.11793383958.19a7d413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-input-otp.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-router.js +1 -1
- package/dist/cjs/ion-input-otp.cjs.entry.js +126 -10
- package/dist/cjs/ion-menu_3.cjs.entry.js +25 -7
- package/dist/cjs/ion-route_4.cjs.entry.js +121 -16
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/input-otp/input-otp.ios.css +30 -5
- package/dist/collection/components/input-otp/input-otp.js +191 -12
- package/dist/collection/components/input-otp/input-otp.md.css +30 -5
- package/dist/collection/components/menu/menu.js +25 -8
- package/dist/collection/components/route/route.js +9 -1
- package/dist/collection/components/route-redirect/route-redirect.js +1 -1
- package/dist/collection/components/router/utils/constants.js +2 -0
- package/dist/collection/components/router/utils/matching.js +97 -14
- package/dist/collection/components/router/utils/path.js +17 -3
- package/dist/docs.json +92 -3
- package/dist/esm/ion-input-otp.entry.js +128 -12
- package/dist/esm/ion-menu_3.entry.js +26 -8
- package/dist/esm/ion-route_4.entry.js +121 -16
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +10 -2
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-095da8ec.entry.js +4 -0
- package/dist/ionic/p-705759fd.entry.js +4 -0
- package/dist/ionic/p-99c518de.entry.js +4 -0
- package/dist/types/components/input-otp/input-otp-interface.d.ts +1 -0
- package/dist/types/components/input-otp/input-otp.d.ts +40 -2
- package/dist/types/components/menu/menu.d.ts +7 -0
- package/dist/types/components/route/route.d.ts +8 -0
- package/dist/types/components/route-redirect/route-redirect.d.ts +3 -1
- package/dist/types/components/router/utils/constants.d.ts +2 -0
- package/dist/types/components/router/utils/matching.d.ts +10 -0
- package/dist/types/components/router/utils/path.d.ts +5 -1
- package/dist/types/components.d.ts +32 -6
- package/hydrate/index.js +257 -33
- package/hydrate/index.mjs +257 -33
- package/package.json +1 -1
- package/dist/ionic/p-539d6c8e.entry.js +0 -4
- package/dist/ionic/p-7ce9c6f8.entry.js +0 -4
- package/dist/ionic/p-af11d3c6.entry.js +0 -4
|
@@ -18,7 +18,7 @@ import { ScrollBaseDetail, ScrollDetail } from "./components/content/content-int
|
|
|
18
18
|
import { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimeParts, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
19
19
|
import { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
20
20
|
import { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
21
|
-
import { InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail } from "./components/input-otp/input-otp-interface";
|
|
21
|
+
import { InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail, InputOtpLabelFormatter } from "./components/input-otp/input-otp-interface";
|
|
22
22
|
import { MenuChangeEventDetail, MenuCloseEventDetail, MenuType, Side } from "./components/menu/menu-interface";
|
|
23
23
|
import { ModalBreakpointChangeEventDetail, ModalDragEventDetail, ModalHandleBehavior } from "./components/modal/modal-interface";
|
|
24
24
|
import { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, SwipeGestureHandler, TransitionDoneFn, TransitionInstruction } from "./components/nav/nav-interface";
|
|
@@ -55,7 +55,7 @@ export { ScrollBaseDetail, ScrollDetail } from "./components/content/content-int
|
|
|
55
55
|
export { DatetimeChangeEventDetail, DatetimeHighlight, DatetimeHighlightCallback, DatetimeHourCycle, DatetimeParts, DatetimePresentation, FormatOptions, TitleSelectedDatesFormatter } from "./components/datetime/datetime-interface";
|
|
56
56
|
export { SpinnerTypes } from "./components/spinner/spinner-configs";
|
|
57
57
|
export { InputChangeEventDetail, InputInputEventDetail } from "./components/input/input-interface";
|
|
58
|
-
export { InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail } from "./components/input-otp/input-otp-interface";
|
|
58
|
+
export { InputOtpChangeEventDetail, InputOtpCompleteEventDetail, InputOtpInputEventDetail, InputOtpLabelFormatter } from "./components/input-otp/input-otp-interface";
|
|
59
59
|
export { MenuChangeEventDetail, MenuCloseEventDetail, MenuType, Side } from "./components/menu/menu-interface";
|
|
60
60
|
export { ModalBreakpointChangeEventDetail, ModalDragEventDetail, ModalHandleBehavior } from "./components/modal/modal-interface";
|
|
61
61
|
export { NavComponent, NavComponentWithProps, NavOptions, RouterOutletOptions, SwipeGestureHandler, TransitionDoneFn, TransitionInstruction } from "./components/nav/nav-interface";
|
|
@@ -1468,11 +1468,23 @@ export namespace Components {
|
|
|
1468
1468
|
* @default false
|
|
1469
1469
|
*/
|
|
1470
1470
|
"disabled": boolean;
|
|
1471
|
+
/**
|
|
1472
|
+
* Text that is placed under the input boxes and displayed when an error is detected.
|
|
1473
|
+
*/
|
|
1474
|
+
"errorText"?: string;
|
|
1471
1475
|
/**
|
|
1472
1476
|
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If `"outline"` the input boxes will be transparent with a border.
|
|
1473
1477
|
* @default 'outline'
|
|
1474
1478
|
*/
|
|
1475
1479
|
"fill"?: 'outline' | 'solid';
|
|
1480
|
+
/**
|
|
1481
|
+
* Text that is placed under the input boxes and displayed when no error is detected.
|
|
1482
|
+
*/
|
|
1483
|
+
"helperText"?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* A callback used to format the accessible name of each input box. It receives the 0-based `index` of the box and the total `length`. By default the name is "Input 1 of 4", or "PIN, 1 of 4" with an `aria-label` of "PIN". See https://ionicframework.com/docs/troubleshooting/runtime#accessing-this if you need to access `this` from within the callback.
|
|
1486
|
+
*/
|
|
1487
|
+
"inputLabelFormatter"?: InputOtpLabelFormatter;
|
|
1476
1488
|
/**
|
|
1477
1489
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`. For numbers (type="number"): "numeric" For text (type="text"): "text"
|
|
1478
1490
|
*/
|
|
@@ -2719,14 +2731,14 @@ export namespace Components {
|
|
|
2719
2731
|
*/
|
|
2720
2732
|
"componentProps"?: { [key: string]: any };
|
|
2721
2733
|
/**
|
|
2722
|
-
* Relative path that needs to match in order for this route to apply. Accepts paths similar to expressjs so that you can define parameters in the url /foo/:bar where bar would be available in incoming props.
|
|
2734
|
+
* Relative path that needs to match in order for this route to apply. Accepts paths similar to expressjs so that you can define parameters in the url /foo/:bar where bar would be available in incoming props. A url ending in `*`, such as `*` or `/admin/*`, matches any remaining path, including none, so `/admin/*` also matches `/admin`. It only wins over a route that matches the whole path when it has more fixed segments, so `/admin/*` wins over `/:section/:id` but not over `/admin/:id`. It always wins over a route that matches by ignoring trailing segments, such as `/admin` for `/admin/users`. The matched path is passed in the `pathMatch` prop without a leading `/`. A `*` on a route with child routes is ignored.
|
|
2723
2735
|
* @default ''
|
|
2724
2736
|
*/
|
|
2725
2737
|
"url": string;
|
|
2726
2738
|
}
|
|
2727
2739
|
interface IonRouteRedirect {
|
|
2728
2740
|
/**
|
|
2729
|
-
* A redirect route, redirects "from" a URL "to" another URL. This property is that "from" URL. It needs to be an exact match of the navigated URL in order to apply
|
|
2741
|
+
* A redirect route, redirects "from" a URL "to" another URL. This property is that "from" URL. It needs to be an exact match of the navigated URL in order to apply, unless it contains a `*`. A `*` matches the rest of the path from that segment on, as long as the path has at least as many segments as `from`, so `/admin/*` matches `/admin/posts` but not `/admin`. The path specified in this value is always an absolute path, even if the initial `/` slash is not specified.
|
|
2730
2742
|
*/
|
|
2731
2743
|
"from": string;
|
|
2732
2744
|
/**
|
|
@@ -6590,11 +6602,23 @@ declare namespace LocalJSX {
|
|
|
6590
6602
|
* @default false
|
|
6591
6603
|
*/
|
|
6592
6604
|
"disabled"?: boolean;
|
|
6605
|
+
/**
|
|
6606
|
+
* Text that is placed under the input boxes and displayed when an error is detected.
|
|
6607
|
+
*/
|
|
6608
|
+
"errorText"?: string;
|
|
6593
6609
|
/**
|
|
6594
6610
|
* The fill for the input boxes. If `"solid"` the input boxes will have a background. If `"outline"` the input boxes will be transparent with a border.
|
|
6595
6611
|
* @default 'outline'
|
|
6596
6612
|
*/
|
|
6597
6613
|
"fill"?: 'outline' | 'solid';
|
|
6614
|
+
/**
|
|
6615
|
+
* Text that is placed under the input boxes and displayed when no error is detected.
|
|
6616
|
+
*/
|
|
6617
|
+
"helperText"?: string;
|
|
6618
|
+
/**
|
|
6619
|
+
* A callback used to format the accessible name of each input box. It receives the 0-based `index` of the box and the total `length`. By default the name is "Input 1 of 4", or "PIN, 1 of 4" with an `aria-label` of "PIN". See https://ionicframework.com/docs/troubleshooting/runtime#accessing-this if you need to access `this` from within the callback.
|
|
6620
|
+
*/
|
|
6621
|
+
"inputLabelFormatter"?: InputOtpLabelFormatter;
|
|
6598
6622
|
/**
|
|
6599
6623
|
* A hint to the browser for which keyboard to display. Possible values: `"none"`, `"text"`, `"tel"`, `"url"`, `"email"`, `"numeric"`, `"decimal"`, and `"search"`. For numbers (type="number"): "numeric" For text (type="text"): "text"
|
|
6600
6624
|
*/
|
|
@@ -7781,14 +7805,14 @@ declare namespace LocalJSX {
|
|
|
7781
7805
|
*/
|
|
7782
7806
|
"onIonRouteDataChanged"?: (event: IonRouteCustomEvent<any>) => void;
|
|
7783
7807
|
/**
|
|
7784
|
-
* Relative path that needs to match in order for this route to apply. Accepts paths similar to expressjs so that you can define parameters in the url /foo/:bar where bar would be available in incoming props.
|
|
7808
|
+
* Relative path that needs to match in order for this route to apply. Accepts paths similar to expressjs so that you can define parameters in the url /foo/:bar where bar would be available in incoming props. A url ending in `*`, such as `*` or `/admin/*`, matches any remaining path, including none, so `/admin/*` also matches `/admin`. It only wins over a route that matches the whole path when it has more fixed segments, so `/admin/*` wins over `/:section/:id` but not over `/admin/:id`. It always wins over a route that matches by ignoring trailing segments, such as `/admin` for `/admin/users`. The matched path is passed in the `pathMatch` prop without a leading `/`. A `*` on a route with child routes is ignored.
|
|
7785
7809
|
* @default ''
|
|
7786
7810
|
*/
|
|
7787
7811
|
"url"?: string;
|
|
7788
7812
|
}
|
|
7789
7813
|
interface IonRouteRedirect {
|
|
7790
7814
|
/**
|
|
7791
|
-
* A redirect route, redirects "from" a URL "to" another URL. This property is that "from" URL. It needs to be an exact match of the navigated URL in order to apply
|
|
7815
|
+
* A redirect route, redirects "from" a URL "to" another URL. This property is that "from" URL. It needs to be an exact match of the navigated URL in order to apply, unless it contains a `*`. A `*` matches the rest of the path from that segment on, as long as the path has at least as many segments as `from`, so `/admin/*` matches `/admin/posts` but not `/admin`. The path specified in this value is always an absolute path, even if the initial `/` slash is not specified.
|
|
7792
7816
|
*/
|
|
7793
7817
|
"from": string;
|
|
7794
7818
|
/**
|
|
@@ -9060,7 +9084,9 @@ declare namespace LocalJSX {
|
|
|
9060
9084
|
"autocapitalize": string;
|
|
9061
9085
|
"color": Color;
|
|
9062
9086
|
"disabled": boolean;
|
|
9087
|
+
"errorText": string;
|
|
9063
9088
|
"fill": 'outline' | 'solid';
|
|
9089
|
+
"helperText": string;
|
|
9064
9090
|
"inputmode": 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
9065
9091
|
"length": number;
|
|
9066
9092
|
"pattern": string;
|