Skip to content

Commit 3d87651

Browse files
committed
chore(): build & lint
1 parent 5629fd3 commit 3d87651

File tree

6 files changed

+60
-36
lines changed

6 files changed

+60
-36
lines changed

core/src/components.d.ts

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ export namespace Components {
174174
"cssClass"?: string | string[];
175175
"delegate"?: FrameworkDelegate;
176176
/**
177-
* Dismiss the action sheet overlay after it has been presented.
177+
* Dismiss the action sheet overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
178178
* @param data Any data to emit in the dismiss events.
179-
* @param role The role of the element that is dismissing the action sheet. This can be useful in a button handler for determining which button was clicked to dismiss the action sheet. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
179+
* @param role The role of the element that is dismissing the action sheet. This can be useful in a button handler for determining which button was clicked to dismiss the action sheet. Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
180180
*/
181181
"dismiss": (data?: any, role?: string) => Promise<boolean>;
182182
/**
@@ -262,9 +262,9 @@ export namespace Components {
262262
"cssClass"?: string | string[];
263263
"delegate"?: FrameworkDelegate;
264264
/**
265-
* Dismiss the alert overlay after it has been presented.
265+
* Dismiss the alert overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
266266
* @param data Any data to emit in the dismiss events.
267-
* @param role The role of the element that is dismissing the alert. This can be useful in a button handler for determining which button was clicked to dismiss the alert. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
267+
* @param role The role of the element that is dismissing the alert. This can be useful in a button handler for determining which button was clicked to dismiss the alert. Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
268268
*/
269269
"dismiss": (data?: any, role?: string) => Promise<boolean>;
270270
/**
@@ -340,6 +340,7 @@ export namespace Components {
340340
interface IonApp {
341341
/**
342342
* Used to set focus on an element that uses `ion-focusable`. Do not use this if focusing the element as a result of a keyboard event as the focus utility should handle this for us. This method should be used when we want to programmatically focus an element as a result of another user action. (Ex: We focus the first element inside of a popover when the user presents it, but the popover is not always presented as a result of keyboard action.)
343+
* @param elements An array of HTML elements to set focus on.
343344
*/
344345
"setFocus": (elements: HTMLElement[]) => Promise<void>;
345346
}
@@ -910,6 +911,7 @@ export namespace Components {
910911
interface IonDatetime {
911912
/**
912913
* Emits the ionCancel event and optionally closes the popover or modal that the datetime was presented in.
914+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
913915
*/
914916
"cancel": (closeOverlay?: boolean) => Promise<void>;
915917
/**
@@ -929,6 +931,7 @@ export namespace Components {
929931
"color"?: Color;
930932
/**
931933
* Confirms the selected datetime value, updates the `value` property, and optionally closes the popover or modal that the datetime was presented in.
934+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
932935
*/
933936
"confirm": (closeOverlay?: boolean) => Promise<void>;
934937
/**
@@ -1022,6 +1025,7 @@ export namespace Components {
10221025
"readonly": boolean;
10231026
/**
10241027
* Resets the internal state of the datetime but does not update the value. Passing a valid ISO-8601 string will reset the state of the component to the provided date. If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
1028+
* @param startDate a valid [ISO-8601 string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) to reset the datetime state to.
10251029
*/
10261030
"reset": (startDate?: string) => Promise<void>;
10271031
/**
@@ -1749,9 +1753,9 @@ export namespace Components {
17491753
"cssClass"?: string | string[];
17501754
"delegate"?: FrameworkDelegate;
17511755
/**
1752-
* Dismiss the loading overlay after it has been presented.
1756+
* Dismiss the loading overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
17531757
* @param data Any data to emit in the dismiss events.
1754-
* @param role The role of the element that is dismissing the loading. This can be useful in a button handler for determining which button was clicked to dismiss the loading. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
1758+
* @param role The role of the element that is dismissing the loading. This can be useful in a button handler for determining which button was clicked to dismiss the loading. Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
17551759
*/
17561760
"dismiss": (data?: any, role?: string) => Promise<boolean>;
17571761
/**
@@ -1828,6 +1832,8 @@ export namespace Components {
18281832
interface IonMenu {
18291833
/**
18301834
* Closes the menu. If the menu is already closed or it can't be closed, it returns `false`.
1835+
* @param animated If `true`, the menu will animate when closing. If `false`, the menu will close instantly without animation. Defaults to `true`.
1836+
* @param role The role of the element that is closing the menu. This can be useful in a button handler for determining which button was clicked to close the menu. Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
18311837
*/
18321838
"close": (animated?: boolean, role?: string) => Promise<boolean>;
18331839
/**
@@ -1840,7 +1846,7 @@ export namespace Components {
18401846
*/
18411847
"disabled": boolean;
18421848
/**
1843-
* Returns `true` is the menu is active. A menu is active when it can be opened or closed, meaning it's enabled and it's not part of a `ion-split-pane`.
1849+
* Returns `true` if the menu is active. A menu is active when it can be opened or closed, meaning it's enabled and it's not part of a `ion-split-pane`.
18441850
*/
18451851
"isActive": () => Promise<boolean>;
18461852
/**
@@ -1858,10 +1864,14 @@ export namespace Components {
18581864
"menuId"?: string;
18591865
/**
18601866
* Opens the menu. If the menu is already open or it can't be opened, it returns `false`.
1867+
* @param animated If `true`, the menu will animate when opening. If `false`, the menu will open instantly without animation. Defaults to `true`.
18611868
*/
18621869
"open": (animated?: boolean) => Promise<boolean>;
18631870
/**
1864-
* Opens or closes the button. If the operation can't be completed successfully, it returns `false`.
1871+
* Opens or closes the menu. If the operation can't be completed successfully, it returns `false`.
1872+
* @param shouldOpen If `true`, the menu will open. If `false`, the menu will close.
1873+
* @param animated If `true`, the menu will animate when opening/closing. If `false`, the menu will open/close instantly without animation.
1874+
* @param role The role of the element that is closing the menu.
18651875
*/
18661876
"setOpen": (shouldOpen: boolean, animated?: boolean, role?: string) => Promise<boolean>;
18671877
/**
@@ -1876,6 +1886,7 @@ export namespace Components {
18761886
"swipeGesture": boolean;
18771887
/**
18781888
* Toggles the menu. If the menu is already open, it will try to close, otherwise it will try to open it. If the operation can't be completed successfully, it returns `false`.
1889+
* @param animated If `true`, the menu will animate when opening/closing. If `false`, the menu will open/close instantly without animation. Defaults to `true`.
18791890
*/
18801891
"toggle": (animated?: boolean) => Promise<boolean>;
18811892
/**
@@ -1962,9 +1973,9 @@ export namespace Components {
19621973
"cssClass"?: string | string[];
19631974
"delegate"?: FrameworkDelegate;
19641975
/**
1965-
* Dismiss the modal overlay after it has been presented.
1976+
* Dismiss the modal overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
19661977
* @param data Any data to emit in the dismiss events.
1967-
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
1978+
* @param role The role of the element that is dismissing the modal. For example, `cancel` or `backdrop`.
19681979
*/
19691980
"dismiss": (data?: any, role?: string) => Promise<boolean>;
19701981
/**
@@ -2047,7 +2058,8 @@ export namespace Components {
20472058
*/
20482059
"presentingElement"?: HTMLElement;
20492060
/**
2050-
* Move a sheet style modal to a specific breakpoint. The breakpoint value must be a value defined in your `breakpoints` array.
2061+
* Move a sheet style modal to a specific breakpoint.
2062+
* @param breakpoint The breakpoint value to move the sheet modal to. Must be a value defined in your `breakpoints` array.
20512063
*/
20522064
"setCurrentBreakpoint": (breakpoint: number) => Promise<void>;
20532065
/**
@@ -2408,10 +2420,10 @@ export namespace Components {
24082420
"cssClass"?: string | string[];
24092421
"delegate"?: FrameworkDelegate;
24102422
/**
2411-
* Dismiss the popover overlay after it has been presented.
2423+
* Dismiss the popover overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
24122424
* @param data Any data to emit in the dismiss events.
2413-
* @param role The role of the element that is dismissing the popover. For example, 'cancel' or 'backdrop'.
2414-
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss a parent popover if this popover is nested. Defaults to `true`. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
2425+
* @param role The role of the element that is dismissing the popover. For example, `cancel` or `backdrop`.
2426+
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss a parent popover if this popover is nested. Defaults to `true`.
24152427
*/
24162428
"dismiss": (data?: any, role?: string, dismissParentPopover?: boolean) => Promise<boolean>;
24172429
/**
@@ -2479,6 +2491,7 @@ export namespace Components {
24792491
"overlayIndex": number;
24802492
/**
24812493
* Present the popover overlay after it has been created. Developers can pass a mouse, touch, or pointer event to position the popover relative to where that event was dispatched.
2494+
* @param event The event to position the popover relative to.
24822495
*/
24832496
"present": (event?: MouseEvent | TouchEvent | PointerEvent | CustomEvent) => Promise<void>;
24842497
/**
@@ -2770,7 +2783,7 @@ export namespace Components {
27702783
}
27712784
interface IonReorderGroup {
27722785
/**
2773-
* Completes the reorder operation. Must be called by the `ionItemReorder` event. If a list of items is passed, the list will be reordered and returned in the proper order. If no parameters are passed or if `true` is passed in, the reorder will complete and the item will remain in the position it was dragged to. If `false` is passed, the reorder will complete and the item will bounce back to its original position.
2786+
* Completes the reorder operation. Must be called by the `ionItemReorder` event. If a list of items is passed, the list will be reordered and returned in the proper order. If no parameters are passed or if `true` is passed in, the reorder will complete and the item will remain in the position it was dragged to. If `false` is passed, the reorder will complete and the item will bounce back to its original position.
27742787
* @param listOrReorder A list of items to be sorted and returned in the new order or a boolean of whether or not the reorder should reposition the item.
27752788
*/
27762789
"complete": (listOrReorder?: boolean | any[]) => Promise<any>;
@@ -2838,6 +2851,7 @@ export namespace Components {
28382851
* Navigate to the specified path.
28392852
* @param path The path to navigate to.
28402853
* @param direction The direction of the animation. Defaults to `"forward"`.
2854+
* @param animation A custom animation to use for the transition.
28412855
*/
28422856
"push": (path: string, direction?: RouterDirection, animation?: AnimationBuilder) => Promise<boolean>;
28432857
/**
@@ -2988,7 +3002,7 @@ export namespace Components {
29883002
*/
29893003
"searchIcon"?: string;
29903004
/**
2991-
* Sets focus on the native `input` in `ion-searchbar`. Use this method instead of the global `input.focus()`. Developers who wish to focus an input when a page enters should call `setFocus()` in the `ionViewDidEnter()` lifecycle method. Developers who wish to focus an input when an overlay is presented should call `setFocus` after `didPresent` has resolved. See [managing focus](/docs/developing/managing-focus) for more information.
3005+
* Sets focus on the native `input` in `ion-searchbar`. Use this method instead of the global `input.focus()`. Developers who wish to focus an input when a page enters should call `setFocus()` in the `ionViewDidEnter()` lifecycle method. Developers who wish to focus an input when an overlay is presented should call `setFocus` after `didPresent` has resolved. See [managing focus](/docs/developing/managing-focus) for more information.
29923006
*/
29933007
"setFocus": () => Promise<void>;
29943008
/**
@@ -3569,9 +3583,9 @@ export namespace Components {
35693583
"cssClass"?: string | string[];
35703584
"delegate"?: FrameworkDelegate;
35713585
/**
3572-
* Dismiss the toast overlay after it has been presented.
3586+
* Dismiss the toast overlay after it has been presented. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
35733587
* @param data Any data to emit in the dismiss events.
3574-
* @param role The role of the element that is dismissing the toast. This can be useful in a button handler for determining which button was clicked to dismiss the toast. Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`. This is a no-op if the overlay has not been presented yet. If you want to remove an overlay from the DOM that was never presented, use the [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
3588+
* @param role The role of the element that is dismissing the toast. This can be useful in a button handler for determining which button was clicked to dismiss the toast. Some examples include: `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
35753589
*/
35763590
"dismiss": (data?: any, role?: string) => Promise<boolean>;
35773591
/**

core/src/components/app/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class App implements ComponentInterface {
6868
* a result of another user action. (Ex: We focus the first element
6969
* inside of a popover when the user presents it, but the popover is not always
7070
* presented as a result of keyboard action.)
71-
*
71+
*
7272
* @param elements An array of HTML elements to set focus on.
7373
*/
7474
@Method()

core/src/components/datetime/datetime.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class Datetime implements ComponentInterface {
524524
* Confirms the selected datetime value, updates the
525525
* `value` property, and optionally closes the popover
526526
* or modal that the datetime was presented in.
527-
*
527+
*
528528
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
529529
*/
530530
@Method()
@@ -561,7 +561,7 @@ export class Datetime implements ComponentInterface {
561561
* Resets the internal state of the datetime but does not update the value.
562562
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
563563
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
564-
*
564+
*
565565
* @param startDate a valid [ISO-8601 string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) to reset the datetime state to.
566566
*/
567567
@Method()
@@ -574,7 +574,7 @@ export class Datetime implements ComponentInterface {
574574
* optionally closes the popover
575575
* or modal that the datetime was
576576
* presented in.
577-
*
577+
*
578578
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
579579
*/
580580
@Method()

0 commit comments

Comments
 (0)