@ionic/core 8.6.2 → 8.6.3-dev.11750971489.140836b0
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/action-sheet.js +8 -9
- package/components/alert.js +7 -8
- package/components/ion-app.js +3 -1
- package/components/ion-datetime.js +8 -2
- package/components/ion-loading.js +7 -8
- package/components/ion-menu.js +27 -5
- package/components/ion-reorder-group.js +1 -2
- package/components/ion-router.js +1 -0
- package/components/ion-searchbar.js +4 -6
- package/components/ion-toast.js +6 -7
- package/components/modal.js +26 -10
- package/components/popover.js +8 -7
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -9
- package/dist/cjs/ion-alert.cjs.entry.js +7 -8
- package/dist/cjs/ion-app_8.cjs.entry.js +3 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +8 -2
- package/dist/cjs/ion-loading.cjs.entry.js +7 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +27 -5
- package/dist/cjs/ion-modal.cjs.entry.js +26 -10
- package/dist/cjs/ion-popover.cjs.entry.js +8 -7
- package/dist/cjs/ion-reorder_2.cjs.entry.js +1 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +1 -0
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -6
- package/dist/cjs/ion-toast.cjs.entry.js +6 -7
- package/dist/collection/components/action-sheet/action-sheet.js +11 -12
- package/dist/collection/components/alert/alert.js +10 -11
- package/dist/collection/components/app/app.js +8 -3
- package/dist/collection/components/datetime/datetime.js +23 -8
- package/dist/collection/components/loading/loading.js +10 -11
- package/dist/collection/components/menu/menu.js +62 -19
- package/dist/collection/components/modal/modal.js +35 -16
- package/dist/collection/components/popover/popover.js +18 -14
- package/dist/collection/components/reorder-group/reorder-group.js +2 -3
- package/dist/collection/components/router/router.js +5 -1
- package/dist/collection/components/searchbar/searchbar.js +5 -7
- package/dist/collection/components/toast/toast.js +9 -10
- package/dist/docs.json +138 -72
- package/dist/esm/ion-action-sheet.entry.js +8 -9
- package/dist/esm/ion-alert.entry.js +7 -8
- package/dist/esm/ion-app_8.entry.js +3 -1
- package/dist/esm/ion-datetime_3.entry.js +8 -2
- package/dist/esm/ion-loading.entry.js +7 -8
- package/dist/esm/ion-menu_3.entry.js +27 -5
- package/dist/esm/ion-modal.entry.js +26 -10
- package/dist/esm/ion-popover.entry.js +8 -7
- package/dist/esm/ion-reorder_2.entry.js +1 -2
- package/dist/esm/ion-route_4.entry.js +1 -0
- package/dist/esm/ion-searchbar.entry.js +4 -6
- package/dist/esm/ion-toast.entry.js +6 -7
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-96389029.entry.js → p-01123ecf.entry.js} +1 -1
- package/dist/ionic/{p-cb787a4b.entry.js → p-03d21728.entry.js} +1 -1
- package/dist/ionic/{p-9e699d4a.entry.js → p-0d131a02.entry.js} +1 -1
- package/dist/ionic/{p-6b666996.entry.js → p-2d0eccfb.entry.js} +1 -1
- package/dist/ionic/{p-ead42a37.entry.js → p-5f671887.entry.js} +1 -1
- package/dist/ionic/p-69f91268.entry.js +4 -0
- package/dist/ionic/p-9e32212d.entry.js +4 -0
- package/dist/ionic/{p-2020aa51.entry.js → p-b758a177.entry.js} +1 -1
- package/dist/ionic/p-b9ba04ca.entry.js +4 -0
- package/dist/ionic/{p-cd12ed1c.entry.js → p-d8429eb4.entry.js} +1 -1
- package/dist/ionic/{p-3a4feac2.entry.js → p-e37d6c67.entry.js} +1 -1
- package/dist/types/components/action-sheet/action-sheet.d.ts +5 -6
- package/dist/types/components/alert/alert.d.ts +5 -6
- package/dist/types/components/app/app.d.ts +2 -0
- package/dist/types/components/datetime/datetime.d.ts +6 -0
- package/dist/types/components/loading/loading.d.ts +5 -6
- package/dist/types/components/menu/menu.d.ts +25 -3
- package/dist/types/components/modal/modal.d.ts +14 -6
- package/dist/types/components/popover/popover.d.ts +6 -5
- package/dist/types/components/reorder-group/reorder-group.d.ts +0 -1
- package/dist/types/components/router/router.d.ts +1 -0
- package/dist/types/components/searchbar/searchbar.d.ts +0 -2
- package/dist/types/components/toast/toast.d.ts +4 -5
- package/dist/types/components.d.ts +32 -18
- package/hydrate/index.js +106 -65
- package/hydrate/index.mjs +106 -65
- package/package.json +1 -1
- package/dist/ionic/p-29759454.entry.js +0 -4
- package/dist/ionic/p-7149db7e.entry.js +0 -4
- package/dist/ionic/p-bec79123.entry.js +0 -4
|
@@ -794,6 +794,8 @@ export class Datetime {
|
|
|
794
794
|
* Confirms the selected datetime value, updates the
|
|
795
795
|
* `value` property, and optionally closes the popover
|
|
796
796
|
* or modal that the datetime was presented in.
|
|
797
|
+
*
|
|
798
|
+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
797
799
|
*/
|
|
798
800
|
async confirm(closeOverlay = false) {
|
|
799
801
|
const { isCalendarPicker, activeParts, preferWheel, workingParts } = this;
|
|
@@ -827,6 +829,8 @@ export class Datetime {
|
|
|
827
829
|
* Resets the internal state of the datetime but does not update the value.
|
|
828
830
|
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
|
|
829
831
|
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
|
|
832
|
+
*
|
|
833
|
+
* @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.
|
|
830
834
|
*/
|
|
831
835
|
async reset(startDate) {
|
|
832
836
|
this.processValue(startDate);
|
|
@@ -836,6 +840,8 @@ export class Datetime {
|
|
|
836
840
|
* optionally closes the popover
|
|
837
841
|
* or modal that the datetime was
|
|
838
842
|
* presented in.
|
|
843
|
+
*
|
|
844
|
+
* @param closeOverlay If `true`, closes the parent overlay. Defaults to `false`.
|
|
839
845
|
*/
|
|
840
846
|
async cancel(closeOverlay = false) {
|
|
841
847
|
this.ionCancel.emit();
|
|
@@ -1649,7 +1655,7 @@ export class Datetime {
|
|
|
1649
1655
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1650
1656
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1651
1657
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1652
|
-
return (h(Host, { key: '
|
|
1658
|
+
return (h(Host, { key: '79677f5bc0fb32fb68569636bd76e68238e62eb8', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1653
1659
|
[mode]: true,
|
|
1654
1660
|
['datetime-readonly']: readonly,
|
|
1655
1661
|
['datetime-disabled']: disabled,
|
|
@@ -1659,7 +1665,7 @@ export class Datetime {
|
|
|
1659
1665
|
[`datetime-size-${size}`]: true,
|
|
1660
1666
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1661
1667
|
[`datetime-grid`]: isGridStyle,
|
|
1662
|
-
})) }, h("div", { key: '
|
|
1668
|
+
})) }, h("div", { key: 'bf07b1e3c64af6e837663ff470bea93787a6e86f', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1663
1669
|
}
|
|
1664
1670
|
static get is() { return "ion-datetime"; }
|
|
1665
1671
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2475,7 +2481,7 @@ export class Datetime {
|
|
|
2475
2481
|
"parameters": [{
|
|
2476
2482
|
"name": "closeOverlay",
|
|
2477
2483
|
"type": "boolean",
|
|
2478
|
-
"docs": ""
|
|
2484
|
+
"docs": "If `true`, closes the parent overlay. Defaults to `false`."
|
|
2479
2485
|
}],
|
|
2480
2486
|
"references": {
|
|
2481
2487
|
"Promise": {
|
|
@@ -2487,7 +2493,10 @@ export class Datetime {
|
|
|
2487
2493
|
},
|
|
2488
2494
|
"docs": {
|
|
2489
2495
|
"text": "Confirms the selected datetime value, updates the\n`value` property, and optionally closes the popover\nor modal that the datetime was presented in.",
|
|
2490
|
-
"tags": [
|
|
2496
|
+
"tags": [{
|
|
2497
|
+
"name": "param",
|
|
2498
|
+
"text": "closeOverlay If `true`, closes the parent overlay. Defaults to `false`."
|
|
2499
|
+
}]
|
|
2491
2500
|
}
|
|
2492
2501
|
},
|
|
2493
2502
|
"reset": {
|
|
@@ -2496,7 +2505,7 @@ export class Datetime {
|
|
|
2496
2505
|
"parameters": [{
|
|
2497
2506
|
"name": "startDate",
|
|
2498
2507
|
"type": "string | undefined",
|
|
2499
|
-
"docs": ""
|
|
2508
|
+
"docs": "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."
|
|
2500
2509
|
}],
|
|
2501
2510
|
"references": {
|
|
2502
2511
|
"Promise": {
|
|
@@ -2508,7 +2517,10 @@ export class Datetime {
|
|
|
2508
2517
|
},
|
|
2509
2518
|
"docs": {
|
|
2510
2519
|
"text": "Resets the internal state of the datetime but does not update the value.\nPassing a valid ISO-8601 string will reset the state of the component to the provided date.\nIf no value is provided, the internal state will be reset to the clamped value of the min, max and today.",
|
|
2511
|
-
"tags": [
|
|
2520
|
+
"tags": [{
|
|
2521
|
+
"name": "param",
|
|
2522
|
+
"text": "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."
|
|
2523
|
+
}]
|
|
2512
2524
|
}
|
|
2513
2525
|
},
|
|
2514
2526
|
"cancel": {
|
|
@@ -2517,7 +2529,7 @@ export class Datetime {
|
|
|
2517
2529
|
"parameters": [{
|
|
2518
2530
|
"name": "closeOverlay",
|
|
2519
2531
|
"type": "boolean",
|
|
2520
|
-
"docs": ""
|
|
2532
|
+
"docs": "If `true`, closes the parent overlay. Defaults to `false`."
|
|
2521
2533
|
}],
|
|
2522
2534
|
"references": {
|
|
2523
2535
|
"Promise": {
|
|
@@ -2529,7 +2541,10 @@ export class Datetime {
|
|
|
2529
2541
|
},
|
|
2530
2542
|
"docs": {
|
|
2531
2543
|
"text": "Emits the ionCancel event and\noptionally closes the popover\nor modal that the datetime was\npresented in.",
|
|
2532
|
-
"tags": [
|
|
2544
|
+
"tags": [{
|
|
2545
|
+
"name": "param",
|
|
2546
|
+
"text": "closeOverlay If `true`, closes the parent overlay. Defaults to `false`."
|
|
2547
|
+
}]
|
|
2533
2548
|
}
|
|
2534
2549
|
}
|
|
2535
2550
|
};
|
|
@@ -129,16 +129,15 @@ export class Loading {
|
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
131
|
* Dismiss the loading overlay after it has been presented.
|
|
132
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
133
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
134
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
132
135
|
*
|
|
133
136
|
* @param data Any data to emit in the dismiss events.
|
|
134
137
|
* @param role The role of the element that is dismissing the loading.
|
|
135
138
|
* This can be useful in a button handler for determining which button was
|
|
136
|
-
* clicked to dismiss the loading.
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
140
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
141
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
139
|
+
* clicked to dismiss the loading. Some examples include:
|
|
140
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
142
141
|
*/
|
|
143
142
|
async dismiss(data, role) {
|
|
144
143
|
const unlock = await this.lockController.lock();
|
|
@@ -180,9 +179,9 @@ export class Loading {
|
|
|
180
179
|
* Otherwise, don't set aria-labelledby.
|
|
181
180
|
*/
|
|
182
181
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
183
|
-
return (h(Host, Object.assign({ key: '
|
|
182
|
+
return (h(Host, Object.assign({ key: '4497183ce220242abe19ae15f328f9a92ccafbbc', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
184
183
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
185
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
184
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '231dec84e424a2dc358ce95b84d6035cf43e4dea', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'c9af29b6e6bb49a217396a5c874bbfb8835a926c', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'a8659863743cdeccbe1ba810eaabfd3ebfcb86f3', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '3b346f39bc71691bd8686556a1e142198a7b12fa', class: "loading-spinner" }, h("ion-spinner", { key: '8dc2bf1556e5138e262827f1516c59ecd09f3520', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '054164c0dbae9a0e0973dd3c8e28f5b771820310', tabindex: "0", "aria-hidden": "true" })));
|
|
186
185
|
}
|
|
187
186
|
static get is() { return "ion-loading"; }
|
|
188
187
|
static get encapsulation() { return "scoped"; }
|
|
@@ -744,7 +743,7 @@ export class Loading {
|
|
|
744
743
|
}, {
|
|
745
744
|
"name": "role",
|
|
746
745
|
"type": "string | undefined",
|
|
747
|
-
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading
|
|
746
|
+
"docs": "The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading. Some examples include:\n`\"cancel\"`, `\"destructive\"`, `\"selected\"`, and `\"backdrop\"`."
|
|
748
747
|
}],
|
|
749
748
|
"references": {
|
|
750
749
|
"Promise": {
|
|
@@ -755,13 +754,13 @@ export class Loading {
|
|
|
755
754
|
"return": "Promise<boolean>"
|
|
756
755
|
},
|
|
757
756
|
"docs": {
|
|
758
|
-
"text": "Dismiss the loading overlay after it has been presented.",
|
|
757
|
+
"text": "Dismiss the loading overlay after it has been presented.\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.",
|
|
759
758
|
"tags": [{
|
|
760
759
|
"name": "param",
|
|
761
760
|
"text": "data Any data to emit in the dismiss events."
|
|
762
761
|
}, {
|
|
763
762
|
"name": "param",
|
|
764
|
-
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading
|
|
763
|
+
"text": "role The role of the element that is dismissing the loading.\nThis can be useful in a button handler for determining which button was\nclicked to dismiss the loading. Some examples include:\n`\"cancel\"`, `\"destructive\"`, `\"selected\"`, and `\"backdrop\"`."
|
|
765
764
|
}]
|
|
766
765
|
}
|
|
767
766
|
},
|
|
@@ -237,7 +237,7 @@ export class Menu {
|
|
|
237
237
|
return Promise.resolve(this._isOpen);
|
|
238
238
|
}
|
|
239
239
|
/**
|
|
240
|
-
* Returns `true`
|
|
240
|
+
* Returns `true` if the menu is active.
|
|
241
241
|
*
|
|
242
242
|
* A menu is active when it can be opened or closed, meaning it's enabled
|
|
243
243
|
* and it's not part of a `ion-split-pane`.
|
|
@@ -248,6 +248,10 @@ export class Menu {
|
|
|
248
248
|
/**
|
|
249
249
|
* Opens the menu. If the menu is already open or it can't be opened,
|
|
250
250
|
* it returns `false`.
|
|
251
|
+
*
|
|
252
|
+
* @param animated If `true`, the menu will animate when opening.
|
|
253
|
+
* If `false`, the menu will open instantly without animation.
|
|
254
|
+
* Defaults to `true`.
|
|
251
255
|
*/
|
|
252
256
|
open(animated = true) {
|
|
253
257
|
return this.setOpen(true, animated);
|
|
@@ -255,20 +259,38 @@ export class Menu {
|
|
|
255
259
|
/**
|
|
256
260
|
* Closes the menu. If the menu is already closed or it can't be closed,
|
|
257
261
|
* it returns `false`.
|
|
262
|
+
*
|
|
263
|
+
* @param animated If `true`, the menu will animate when closing. If `false`,
|
|
264
|
+
* the menu will close instantly without animation. Defaults to `true`.
|
|
265
|
+
* @param role The role of the element that is closing the menu.
|
|
266
|
+
* This can be useful in a button handler for determining which button was
|
|
267
|
+
* clicked to close the menu. Some examples include:
|
|
268
|
+
* `"cancel"`, `"destructive"`, `"selected"`, and `"backdrop"`.
|
|
258
269
|
*/
|
|
259
270
|
close(animated = true, role) {
|
|
260
271
|
return this.setOpen(false, animated, role);
|
|
261
272
|
}
|
|
262
273
|
/**
|
|
263
|
-
* Toggles the menu. If the menu is already open, it will try to close,
|
|
274
|
+
* Toggles the menu. If the menu is already open, it will try to close,
|
|
275
|
+
* otherwise it will try to open it.
|
|
264
276
|
* If the operation can't be completed successfully, it returns `false`.
|
|
277
|
+
*
|
|
278
|
+
* @param animated If `true`, the menu will animate when opening/closing.
|
|
279
|
+
* If `false`, the menu will open/close instantly without animation.
|
|
280
|
+
* Defaults to `true`.
|
|
265
281
|
*/
|
|
266
282
|
toggle(animated = true) {
|
|
267
283
|
return this.setOpen(!this._isOpen, animated);
|
|
268
284
|
}
|
|
269
285
|
/**
|
|
270
|
-
* Opens or closes the
|
|
286
|
+
* Opens or closes the menu.
|
|
271
287
|
* If the operation can't be completed successfully, it returns `false`.
|
|
288
|
+
*
|
|
289
|
+
* @param shouldOpen If `true`, the menu will open. If `false`, the menu
|
|
290
|
+
* will close.
|
|
291
|
+
* @param animated If `true`, the menu will animate when opening/closing.
|
|
292
|
+
* If `false`, the menu will open/close instantly without animation.
|
|
293
|
+
* @param role The role of the element that is closing the menu.
|
|
272
294
|
*/
|
|
273
295
|
setOpen(shouldOpen, animated = true, role) {
|
|
274
296
|
return menuController._setOpen(this, shouldOpen, animated, role);
|
|
@@ -633,14 +655,14 @@ export class Menu {
|
|
|
633
655
|
* the ionBackButton listener in the menu controller
|
|
634
656
|
* will handle closing the menu when Escape is pressed.
|
|
635
657
|
*/
|
|
636
|
-
return (h(Host, { key: '
|
|
658
|
+
return (h(Host, { key: 'a5c75aa40a34530b56ee3b98d706a5ac5ae300de', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
637
659
|
[mode]: true,
|
|
638
660
|
[`menu-type-${type}`]: true,
|
|
639
661
|
'menu-enabled': !disabled,
|
|
640
662
|
[`menu-side-${side}`]: true,
|
|
641
663
|
'menu-pane-visible': isPaneVisible,
|
|
642
664
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
643
|
-
} }, h("div", { key: '
|
|
665
|
+
} }, h("div", { key: '3f5f70acd4d3ed6bb445122f4f01d73db738a75f', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: '3161326c9330e7f7441299c428b87a91b31a83e9' })), h("ion-backdrop", { key: '917b50f38489bdf03d0c642af8b4e4e172c7dc4c', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
644
666
|
}
|
|
645
667
|
static get is() { return "ion-menu"; }
|
|
646
668
|
static get encapsulation() { return "shadow"; }
|
|
@@ -946,7 +968,7 @@ export class Menu {
|
|
|
946
968
|
"return": "Promise<boolean>"
|
|
947
969
|
},
|
|
948
970
|
"docs": {
|
|
949
|
-
"text": "Returns `true`
|
|
971
|
+
"text": "Returns `true` if the menu is active.\n\nA menu is active when it can be opened or closed, meaning it's enabled\nand it's not part of a `ion-split-pane`.",
|
|
950
972
|
"tags": []
|
|
951
973
|
}
|
|
952
974
|
},
|
|
@@ -956,7 +978,7 @@ export class Menu {
|
|
|
956
978
|
"parameters": [{
|
|
957
979
|
"name": "animated",
|
|
958
980
|
"type": "boolean",
|
|
959
|
-
"docs": ""
|
|
981
|
+
"docs": "If `true`, the menu will animate when opening.\nIf `false`, the menu will open instantly without animation.\nDefaults to `true`."
|
|
960
982
|
}],
|
|
961
983
|
"references": {
|
|
962
984
|
"Promise": {
|
|
@@ -968,7 +990,10 @@ export class Menu {
|
|
|
968
990
|
},
|
|
969
991
|
"docs": {
|
|
970
992
|
"text": "Opens the menu. If the menu is already open or it can't be opened,\nit returns `false`.",
|
|
971
|
-
"tags": [
|
|
993
|
+
"tags": [{
|
|
994
|
+
"name": "param",
|
|
995
|
+
"text": "animated If `true`, the menu will animate when opening.\nIf `false`, the menu will open instantly without animation.\nDefaults to `true`."
|
|
996
|
+
}]
|
|
972
997
|
}
|
|
973
998
|
},
|
|
974
999
|
"close": {
|
|
@@ -977,11 +1002,11 @@ export class Menu {
|
|
|
977
1002
|
"parameters": [{
|
|
978
1003
|
"name": "animated",
|
|
979
1004
|
"type": "boolean",
|
|
980
|
-
"docs": ""
|
|
1005
|
+
"docs": "If `true`, the menu will animate when closing. If `false`,\nthe menu will close instantly without animation. Defaults to `true`."
|
|
981
1006
|
}, {
|
|
982
1007
|
"name": "role",
|
|
983
1008
|
"type": "string | undefined",
|
|
984
|
-
"docs": ""
|
|
1009
|
+
"docs": "The role of the element that is closing the menu.\nThis can be useful in a button handler for determining which button was\nclicked to close the menu. Some examples include:\n`\"cancel\"`, `\"destructive\"`, `\"selected\"`, and `\"backdrop\"`."
|
|
985
1010
|
}],
|
|
986
1011
|
"references": {
|
|
987
1012
|
"Promise": {
|
|
@@ -993,7 +1018,13 @@ export class Menu {
|
|
|
993
1018
|
},
|
|
994
1019
|
"docs": {
|
|
995
1020
|
"text": "Closes the menu. If the menu is already closed or it can't be closed,\nit returns `false`.",
|
|
996
|
-
"tags": [
|
|
1021
|
+
"tags": [{
|
|
1022
|
+
"name": "param",
|
|
1023
|
+
"text": "animated If `true`, the menu will animate when closing. If `false`,\nthe menu will close instantly without animation. Defaults to `true`."
|
|
1024
|
+
}, {
|
|
1025
|
+
"name": "param",
|
|
1026
|
+
"text": "role The role of the element that is closing the menu.\nThis can be useful in a button handler for determining which button was\nclicked to close the menu. Some examples include:\n`\"cancel\"`, `\"destructive\"`, `\"selected\"`, and `\"backdrop\"`."
|
|
1027
|
+
}]
|
|
997
1028
|
}
|
|
998
1029
|
},
|
|
999
1030
|
"toggle": {
|
|
@@ -1002,7 +1033,7 @@ export class Menu {
|
|
|
1002
1033
|
"parameters": [{
|
|
1003
1034
|
"name": "animated",
|
|
1004
1035
|
"type": "boolean",
|
|
1005
|
-
"docs": ""
|
|
1036
|
+
"docs": "If `true`, the menu will animate when opening/closing.\nIf `false`, the menu will open/close instantly without animation.\nDefaults to `true`."
|
|
1006
1037
|
}],
|
|
1007
1038
|
"references": {
|
|
1008
1039
|
"Promise": {
|
|
@@ -1013,8 +1044,11 @@ export class Menu {
|
|
|
1013
1044
|
"return": "Promise<boolean>"
|
|
1014
1045
|
},
|
|
1015
1046
|
"docs": {
|
|
1016
|
-
"text": "Toggles the menu. If the menu is already open, it will try to close
|
|
1017
|
-
"tags": [
|
|
1047
|
+
"text": "Toggles the menu. If the menu is already open, it will try to close,\notherwise it will try to open it.\nIf the operation can't be completed successfully, it returns `false`.",
|
|
1048
|
+
"tags": [{
|
|
1049
|
+
"name": "param",
|
|
1050
|
+
"text": "animated If `true`, the menu will animate when opening/closing.\nIf `false`, the menu will open/close instantly without animation.\nDefaults to `true`."
|
|
1051
|
+
}]
|
|
1018
1052
|
}
|
|
1019
1053
|
},
|
|
1020
1054
|
"setOpen": {
|
|
@@ -1023,15 +1057,15 @@ export class Menu {
|
|
|
1023
1057
|
"parameters": [{
|
|
1024
1058
|
"name": "shouldOpen",
|
|
1025
1059
|
"type": "boolean",
|
|
1026
|
-
"docs": ""
|
|
1060
|
+
"docs": "If `true`, the menu will open. If `false`, the menu\nwill close."
|
|
1027
1061
|
}, {
|
|
1028
1062
|
"name": "animated",
|
|
1029
1063
|
"type": "boolean",
|
|
1030
|
-
"docs": ""
|
|
1064
|
+
"docs": "If `true`, the menu will animate when opening/closing.\nIf `false`, the menu will open/close instantly without animation."
|
|
1031
1065
|
}, {
|
|
1032
1066
|
"name": "role",
|
|
1033
1067
|
"type": "string | undefined",
|
|
1034
|
-
"docs": ""
|
|
1068
|
+
"docs": "The role of the element that is closing the menu."
|
|
1035
1069
|
}],
|
|
1036
1070
|
"references": {
|
|
1037
1071
|
"Promise": {
|
|
@@ -1042,8 +1076,17 @@ export class Menu {
|
|
|
1042
1076
|
"return": "Promise<boolean>"
|
|
1043
1077
|
},
|
|
1044
1078
|
"docs": {
|
|
1045
|
-
"text": "Opens or closes the
|
|
1046
|
-
"tags": [
|
|
1079
|
+
"text": "Opens or closes the menu.\nIf the operation can't be completed successfully, it returns `false`.",
|
|
1080
|
+
"tags": [{
|
|
1081
|
+
"name": "param",
|
|
1082
|
+
"text": "shouldOpen If `true`, the menu will open. If `false`, the menu\nwill close."
|
|
1083
|
+
}, {
|
|
1084
|
+
"name": "param",
|
|
1085
|
+
"text": "animated If `true`, the menu will animate when opening/closing.\nIf `false`, the menu will open/close instantly without animation."
|
|
1086
|
+
}, {
|
|
1087
|
+
"name": "param",
|
|
1088
|
+
"text": "role The role of the element that is closing the menu."
|
|
1089
|
+
}]
|
|
1047
1090
|
}
|
|
1048
1091
|
}
|
|
1049
1092
|
};
|
|
@@ -184,6 +184,17 @@ export class Modal {
|
|
|
184
184
|
el.dispatchEvent(ev);
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
+
/**
|
|
188
|
+
* When the modal receives focus directly, pass focus to the handle
|
|
189
|
+
* if it exists and is focusable, otherwise let the focus trap handle it.
|
|
190
|
+
*/
|
|
191
|
+
this.onModalFocus = (ev) => {
|
|
192
|
+
const { dragHandleEl, el } = this;
|
|
193
|
+
// Only handle focus if the modal itself was focused (not a child element)
|
|
194
|
+
if (ev.target === el && dragHandleEl && dragHandleEl.tabIndex !== -1) {
|
|
195
|
+
dragHandleEl.focus();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
187
198
|
}
|
|
188
199
|
onIsOpenChange(newValue, oldValue) {
|
|
189
200
|
if (newValue === true && oldValue === false) {
|
|
@@ -515,13 +526,13 @@ export class Modal {
|
|
|
515
526
|
}
|
|
516
527
|
/**
|
|
517
528
|
* Dismiss the modal overlay after it has been presented.
|
|
518
|
-
*
|
|
519
|
-
* @param data Any data to emit in the dismiss events.
|
|
520
|
-
* @param role The role of the element that is dismissing the modal. For example, 'cancel' or 'backdrop'.
|
|
521
|
-
*
|
|
522
529
|
* This is a no-op if the overlay has not been presented yet. If you want
|
|
523
530
|
* to remove an overlay from the DOM that was never presented, use the
|
|
524
531
|
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
532
|
+
*
|
|
533
|
+
* @param data Any data to emit in the dismiss events.
|
|
534
|
+
* @param role The role of the element that is dismissing the modal.
|
|
535
|
+
* For example, `cancel` or `backdrop`.
|
|
525
536
|
*/
|
|
526
537
|
async dismiss(data, role) {
|
|
527
538
|
var _a;
|
|
@@ -593,8 +604,10 @@ export class Modal {
|
|
|
593
604
|
return eventMethod(this.el, 'ionModalWillDismiss');
|
|
594
605
|
}
|
|
595
606
|
/**
|
|
596
|
-
* Move a sheet style modal to a specific breakpoint.
|
|
597
|
-
*
|
|
607
|
+
* Move a sheet style modal to a specific breakpoint.
|
|
608
|
+
*
|
|
609
|
+
* @param breakpoint The breakpoint value to move the sheet modal to.
|
|
610
|
+
* Must be a value defined in your `breakpoints` array.
|
|
598
611
|
*/
|
|
599
612
|
async setCurrentBreakpoint(breakpoint) {
|
|
600
613
|
if (!this.isSheetModal) {
|
|
@@ -653,18 +666,21 @@ export class Modal {
|
|
|
653
666
|
const mode = getIonMode(this);
|
|
654
667
|
const isCardModal = presentingElement !== undefined && mode === 'ios';
|
|
655
668
|
const isHandleCycle = handleBehavior === 'cycle';
|
|
656
|
-
|
|
669
|
+
const isSheetModalWithHandle = isSheetModal && showHandle;
|
|
670
|
+
return (h(Host, Object.assign({ key: '8add05bb43a2cdb5e3cf180147d31eb85a018fe0', "no-router": true,
|
|
671
|
+
// Allow the modal to be navigable when the handle is focusable
|
|
672
|
+
tabIndex: isHandleCycle && isSheetModalWithHandle ? 0 : -1 }, htmlAttributes, { style: {
|
|
657
673
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
658
|
-
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle }), h("ion-backdrop", { key: '
|
|
674
|
+
}, class: Object.assign({ [mode]: true, ['modal-default']: !isCardModal && !isSheetModal, [`modal-card`]: isCardModal, [`modal-sheet`]: isSheetModal, [`modal-no-expand-scroll`]: isSheetModal && !expandToScroll, 'overlay-hidden': true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonModalDidPresent: this.onLifecycle, onIonModalWillPresent: this.onLifecycle, onIonModalWillDismiss: this.onLifecycle, onIonModalDidDismiss: this.onLifecycle, onFocus: this.onModalFocus }), h("ion-backdrop", { key: '90a6605a9564a699d6f66cf71cf6b506796a2963', ref: (el) => (this.backdropEl = el), visible: this.showBackdrop, tappable: this.backdropDismiss, part: "backdrop" }), mode === 'ios' && h("div", { key: 'a97d071395333bf803c0a9347bda000cf7500d8d', class: "modal-shadow" }), h("div", Object.assign({ key: 'e7b7985c7414a13e3ba8dcecf497b76e92edf53e',
|
|
659
675
|
/*
|
|
660
676
|
role and aria-modal must be used on the
|
|
661
677
|
same element. They must also be set inside the
|
|
662
678
|
shadow DOM otherwise ion-button will not be highlighted
|
|
663
679
|
when using VoiceOver: https://bugs.webkit.org/show_bug.cgi?id=247134
|
|
664
680
|
*/
|
|
665
|
-
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '
|
|
681
|
+
role: "dialog" }, inheritedAttributes, { "aria-modal": "true", class: "modal-wrapper ion-overlay-wrapper", part: "content", ref: (el) => (this.wrapperEl = el) }), showHandle && (h("button", { key: '8258b65570b11a8ee9c9df2537d6419cd2e34536', class: "modal-handle",
|
|
666
682
|
// Prevents the handle from receiving keyboard focus when it does not cycle
|
|
667
|
-
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle" })), h("slot", { key: '
|
|
683
|
+
tabIndex: !isHandleCycle ? -1 : 0, "aria-label": "Activate to adjust the size of the dialog overlaying the screen", onClick: isHandleCycle ? this.onHandleClick : undefined, part: "handle", ref: (el) => (this.dragHandleEl = el) })), h("slot", { key: '394370d0ed03ee03152f8f8abae7ff7664ca5c13' }))));
|
|
668
684
|
}
|
|
669
685
|
static get is() { return "ion-modal"; }
|
|
670
686
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1452,7 +1468,7 @@ export class Modal {
|
|
|
1452
1468
|
}, {
|
|
1453
1469
|
"name": "role",
|
|
1454
1470
|
"type": "string | undefined",
|
|
1455
|
-
"docs": "The role of the element that is dismissing the modal
|
|
1471
|
+
"docs": "The role of the element that is dismissing the modal.\nFor example, `cancel` or `backdrop`."
|
|
1456
1472
|
}],
|
|
1457
1473
|
"references": {
|
|
1458
1474
|
"Promise": {
|
|
@@ -1467,13 +1483,13 @@ export class Modal {
|
|
|
1467
1483
|
"return": "Promise<boolean>"
|
|
1468
1484
|
},
|
|
1469
1485
|
"docs": {
|
|
1470
|
-
"text": "Dismiss the modal overlay after it has been presented.",
|
|
1486
|
+
"text": "Dismiss the modal overlay after it has been presented.\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.",
|
|
1471
1487
|
"tags": [{
|
|
1472
1488
|
"name": "param",
|
|
1473
1489
|
"text": "data Any data to emit in the dismiss events."
|
|
1474
1490
|
}, {
|
|
1475
1491
|
"name": "param",
|
|
1476
|
-
"text": "role The role of the element that is dismissing the modal
|
|
1492
|
+
"text": "role The role of the element that is dismissing the modal.\nFor example, `cancel` or `backdrop`."
|
|
1477
1493
|
}]
|
|
1478
1494
|
}
|
|
1479
1495
|
},
|
|
@@ -1535,7 +1551,7 @@ export class Modal {
|
|
|
1535
1551
|
"parameters": [{
|
|
1536
1552
|
"name": "breakpoint",
|
|
1537
1553
|
"type": "number",
|
|
1538
|
-
"docs": ""
|
|
1554
|
+
"docs": "The breakpoint value to move the sheet modal to.\nMust be a value defined in your `breakpoints` array."
|
|
1539
1555
|
}],
|
|
1540
1556
|
"references": {
|
|
1541
1557
|
"Promise": {
|
|
@@ -1546,8 +1562,11 @@ export class Modal {
|
|
|
1546
1562
|
"return": "Promise<void>"
|
|
1547
1563
|
},
|
|
1548
1564
|
"docs": {
|
|
1549
|
-
"text": "Move a sheet style modal to a specific breakpoint.
|
|
1550
|
-
"tags": [
|
|
1565
|
+
"text": "Move a sheet style modal to a specific breakpoint.",
|
|
1566
|
+
"tags": [{
|
|
1567
|
+
"name": "param",
|
|
1568
|
+
"text": "breakpoint The breakpoint value to move the sheet modal to.\nMust be a value defined in your `breakpoints` array."
|
|
1569
|
+
}]
|
|
1551
1570
|
}
|
|
1552
1571
|
},
|
|
1553
1572
|
"getCurrentBreakpoint": {
|
|
@@ -309,6 +309,8 @@ export class Popover {
|
|
|
309
309
|
* Developers can pass a mouse, touch, or pointer event
|
|
310
310
|
* to position the popover relative to where that event
|
|
311
311
|
* was dispatched.
|
|
312
|
+
*
|
|
313
|
+
* @param event The event to position the popover relative to.
|
|
312
314
|
*/
|
|
313
315
|
async present(event) {
|
|
314
316
|
const unlock = await this.lockController.lock();
|
|
@@ -372,15 +374,14 @@ export class Popover {
|
|
|
372
374
|
}
|
|
373
375
|
/**
|
|
374
376
|
* Dismiss the popover overlay after it has been presented.
|
|
377
|
+
* This is a no-op if the overlay has not been presented yet. If you want
|
|
378
|
+
* to remove an overlay from the DOM that was never presented, use the
|
|
379
|
+
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
375
380
|
*
|
|
376
381
|
* @param data Any data to emit in the dismiss events.
|
|
377
|
-
* @param role The role of the element that is dismissing the popover. For example,
|
|
382
|
+
* @param role The role of the element that is dismissing the popover. For example, `cancel` or `backdrop`.
|
|
378
383
|
* @param dismissParentPopover If `true`, dismissing this popover will also dismiss
|
|
379
384
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
380
|
-
*
|
|
381
|
-
* This is a no-op if the overlay has not been presented yet. If you want
|
|
382
|
-
* to remove an overlay from the DOM that was never presented, use the
|
|
383
|
-
* [remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.
|
|
384
385
|
*/
|
|
385
386
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
386
387
|
const unlock = await this.lockController.lock();
|
|
@@ -432,9 +433,9 @@ export class Popover {
|
|
|
432
433
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
433
434
|
const desktop = isPlatform('desktop');
|
|
434
435
|
const enableArrow = arrow && !parentPopover;
|
|
435
|
-
return (h(Host, Object.assign({ key: '
|
|
436
|
+
return (h(Host, Object.assign({ key: '16866c02534968c982cf4730d2936d03a5107c8b', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
436
437
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
437
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: '
|
|
438
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: '0df258601a4d30df3c27aa8234a7d5e056c3ecbb', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: 'f94e80ed996b957b5cd09b826472b4f60e8fcc78', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { key: '185ce22f6386e8444a9cc7b8818dbfc16c463c99', class: "popover-arrow", part: "arrow" }), h("div", { key: '206202b299404e110de5397b229678cca18568d3', class: "popover-content", part: "content" }, h("slot", { key: 'ee543a0b92d6e35a837c0a0e4617c7b0fc4ad0b0' })))));
|
|
438
439
|
}
|
|
439
440
|
static get is() { return "ion-popover"; }
|
|
440
441
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1259,7 +1260,7 @@ export class Popover {
|
|
|
1259
1260
|
"parameters": [{
|
|
1260
1261
|
"name": "event",
|
|
1261
1262
|
"type": "MouseEvent | PointerEvent | TouchEvent | CustomEvent<any> | undefined",
|
|
1262
|
-
"docs": ""
|
|
1263
|
+
"docs": "The event to position the popover relative to."
|
|
1263
1264
|
}],
|
|
1264
1265
|
"references": {
|
|
1265
1266
|
"Promise": {
|
|
@@ -1291,7 +1292,10 @@ export class Popover {
|
|
|
1291
1292
|
},
|
|
1292
1293
|
"docs": {
|
|
1293
1294
|
"text": "Present the popover overlay after it has been created.\nDevelopers can pass a mouse, touch, or pointer event\nto position the popover relative to where that event\nwas dispatched.",
|
|
1294
|
-
"tags": [
|
|
1295
|
+
"tags": [{
|
|
1296
|
+
"name": "param",
|
|
1297
|
+
"text": "event The event to position the popover relative to."
|
|
1298
|
+
}]
|
|
1295
1299
|
}
|
|
1296
1300
|
},
|
|
1297
1301
|
"dismiss": {
|
|
@@ -1304,11 +1308,11 @@ export class Popover {
|
|
|
1304
1308
|
}, {
|
|
1305
1309
|
"name": "role",
|
|
1306
1310
|
"type": "string | undefined",
|
|
1307
|
-
"docs": "The role of the element that is dismissing the popover. For example,
|
|
1311
|
+
"docs": "The role of the element that is dismissing the popover. For example, `cancel` or `backdrop`."
|
|
1308
1312
|
}, {
|
|
1309
1313
|
"name": "dismissParentPopover",
|
|
1310
1314
|
"type": "boolean",
|
|
1311
|
-
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1315
|
+
"docs": "If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`."
|
|
1312
1316
|
}],
|
|
1313
1317
|
"references": {
|
|
1314
1318
|
"Promise": {
|
|
@@ -1323,16 +1327,16 @@ export class Popover {
|
|
|
1323
1327
|
"return": "Promise<boolean>"
|
|
1324
1328
|
},
|
|
1325
1329
|
"docs": {
|
|
1326
|
-
"text": "Dismiss the popover overlay after it has been presented.",
|
|
1330
|
+
"text": "Dismiss the popover overlay after it has been presented.\nThis is a no-op if the overlay has not been presented yet. If you want\nto remove an overlay from the DOM that was never presented, use the\n[remove](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove) method.",
|
|
1327
1331
|
"tags": [{
|
|
1328
1332
|
"name": "param",
|
|
1329
1333
|
"text": "data Any data to emit in the dismiss events."
|
|
1330
1334
|
}, {
|
|
1331
1335
|
"name": "param",
|
|
1332
|
-
"text": "role The role of the element that is dismissing the popover. For example,
|
|
1336
|
+
"text": "role The role of the element that is dismissing the popover. For example, `cancel` or `backdrop`."
|
|
1333
1337
|
}, {
|
|
1334
1338
|
"name": "param",
|
|
1335
|
-
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true
|
|
1339
|
+
"text": "dismissParentPopover If `true`, dismissing this popover will also dismiss\na parent popover if this popover is nested. Defaults to `true`."
|
|
1336
1340
|
}]
|
|
1337
1341
|
}
|
|
1338
1342
|
},
|
|
@@ -54,7 +54,6 @@ export class ReorderGroup {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Completes the reorder operation. Must be called by the `ionItemReorder` event.
|
|
57
|
-
*
|
|
58
57
|
* If a list of items is passed, the list will be reordered and returned in the
|
|
59
58
|
* proper order.
|
|
60
59
|
*
|
|
@@ -241,7 +240,7 @@ export class ReorderGroup {
|
|
|
241
240
|
}
|
|
242
241
|
render() {
|
|
243
242
|
const mode = getIonMode(this);
|
|
244
|
-
return (h(Host, { key: '
|
|
243
|
+
return (h(Host, { key: 'dfcdc3a6aa1b2fba15f861ec868d6a11e667c9de', class: {
|
|
245
244
|
[mode]: true,
|
|
246
245
|
'reorder-enabled': !this.disabled,
|
|
247
246
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -330,7 +329,7 @@ export class ReorderGroup {
|
|
|
330
329
|
"return": "Promise<any>"
|
|
331
330
|
},
|
|
332
331
|
"docs": {
|
|
333
|
-
"text": "Completes the reorder operation. Must be called by the `ionItemReorder` event.\
|
|
332
|
+
"text": "Completes the reorder operation. Must be called by the `ionItemReorder` event.\nIf a list of items is passed, the list will be reordered and returned in the\nproper order.\n\nIf no parameters are passed or if `true` is passed in, the reorder will complete\nand the item will remain in the position it was dragged to. If `false` is passed,\nthe reorder will complete and the item will bounce back to its original position.",
|
|
334
333
|
"tags": [{
|
|
335
334
|
"name": "param",
|
|
336
335
|
"text": "listOrReorder A list of items to be sorted and returned in the new order or a\nboolean of whether or not the reorder should reposition the item."
|