@ionic/core 8.7.18-dev.11770238549.14c2a85f → 8.7.18-dev.11770316772.1e7b64e5
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-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +32 -3
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +2 -2
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +4 -4
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +33 -4
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +4 -4
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +70 -4
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +49 -4
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +33 -4
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/html.html-data.json +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-cc2a9936.entry.js → p-020af078.entry.js} +1 -1
- package/dist/ionic/{p-be263062.entry.js → p-02d76786.entry.js} +1 -1
- package/dist/ionic/{p-01e27965.entry.js → p-074839fc.entry.js} +1 -1
- package/dist/ionic/{p-530fcd71.entry.js → p-0dfa5a37.entry.js} +1 -1
- package/dist/ionic/{p-31db96da.entry.js → p-0e8c8a10.entry.js} +1 -1
- package/dist/ionic/{p-363d1209.entry.js → p-1647c46c.entry.js} +1 -1
- package/dist/ionic/{p-5d6fb6e3.entry.js → p-172a579f.entry.js} +1 -1
- package/dist/ionic/{p-e338f669.entry.js → p-1ccd6829.entry.js} +1 -1
- package/dist/ionic/{p-6f37536a.entry.js → p-2a939845.entry.js} +1 -1
- package/dist/ionic/{p-97eb0812.entry.js → p-2dbb90cb.entry.js} +1 -1
- package/dist/ionic/{p-221a3d8c.entry.js → p-316c0420.entry.js} +1 -1
- package/dist/ionic/{p-a4a9f5ae.entry.js → p-31f7095f.entry.js} +1 -1
- package/dist/ionic/{p-fbb00634.entry.js → p-370e4237.entry.js} +1 -1
- package/dist/ionic/{p-2668188b.entry.js → p-3a6caca9.entry.js} +1 -1
- package/dist/ionic/{p-72af946b.entry.js → p-4e41ea20.entry.js} +1 -1
- package/dist/ionic/p-51a60e0f.entry.js +4 -0
- package/dist/ionic/{p-eaf3f5ff.entry.js → p-6241ce47.entry.js} +1 -1
- package/dist/ionic/{p-82d5bb3d.entry.js → p-6d070558.entry.js} +1 -1
- package/dist/ionic/{p-5c8f7253.entry.js → p-72c38b88.entry.js} +1 -1
- package/dist/ionic/{p-b8551510.entry.js → p-86f53961.entry.js} +1 -1
- package/dist/ionic/p-90f2d3ff.entry.js +4 -0
- package/dist/ionic/{p-3ec563c1.entry.js → p-91840a80.entry.js} +1 -1
- package/dist/ionic/p-94de5cfa.entry.js +4 -0
- package/dist/ionic/{p-30333874.entry.js → p-a127bee2.entry.js} +1 -1
- package/dist/ionic/{p-42db6404.entry.js → p-c19af093.entry.js} +1 -1
- package/dist/ionic/{p-bce86e56.entry.js → p-d126e8d3.entry.js} +1 -1
- package/dist/ionic/{p-2bd1ea35.entry.js → p-d3014190.entry.js} +1 -1
- package/dist/ionic/{p-46a38cfd.entry.js → p-db82892c.entry.js} +1 -1
- package/dist/ionic/{p-652318c3.entry.js → p-dbbe606a.entry.js} +1 -1
- package/dist/ionic/p-dd1aef77.entry.js +4 -0
- package/dist/ionic/{p-4eec1a5e.entry.js → p-eb024a5b.entry.js} +1 -1
- package/dist/ionic/{p-fb0271ae.entry.js → p-f8f22cc0.entry.js} +1 -1
- package/dist/ionic/{p-bc293244.entry.js → p-f9061316.entry.js} +1 -1
- package/dist/types/components/refresher/refresher-interface.d.ts +7 -0
- package/dist/types/components/refresher/refresher.d.ts +16 -3
- package/dist/types/components.d.ts +16 -5
- package/dist/types/interface.d.ts +1 -1
- package/hydrate/index.js +125 -96
- package/hydrate/index.mjs +125 -96
- package/package.json +1 -1
- package/dist/ionic/p-0ca0fe9c.entry.js +0 -4
- package/dist/ionic/p-7f98e710.entry.js +0 -4
- package/dist/ionic/p-906bb44d.entry.js +0 -4
- package/dist/ionic/p-c175d792.entry.js +0 -4
|
@@ -212,6 +212,8 @@ const Refresher = class {
|
|
|
212
212
|
this.ionRefresh = createEvent(this, "ionRefresh", 7);
|
|
213
213
|
this.ionPull = createEvent(this, "ionPull", 7);
|
|
214
214
|
this.ionStart = createEvent(this, "ionStart", 7);
|
|
215
|
+
this.ionPullStart = createEvent(this, "ionPullStart", 7);
|
|
216
|
+
this.ionPullEnd = createEvent(this, "ionPullEnd", 7);
|
|
215
217
|
this.appliedStyles = false;
|
|
216
218
|
this.didStart = false;
|
|
217
219
|
this.progress = 0;
|
|
@@ -266,8 +268,8 @@ const Refresher = class {
|
|
|
266
268
|
* than `1`. The default value is `1` which is equal to the speed of the cursor.
|
|
267
269
|
* If a negative value is passed in, the factor will be `1` instead.
|
|
268
270
|
*
|
|
269
|
-
* For example
|
|
270
|
-
* `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels
|
|
271
|
+
* For example, If the value passed is `1.2` and the content is dragged by
|
|
272
|
+
* `10` pixels, instead of `10` pixels, the content will be pulled by `12` pixels
|
|
271
273
|
* (an increase of 20 percent). If the value passed is `0.8`, the dragged amount
|
|
272
274
|
* will be `8` pixels, less than the amount the cursor has moved.
|
|
273
275
|
*
|
|
@@ -317,6 +319,9 @@ const Refresher = class {
|
|
|
317
319
|
this.animations = [];
|
|
318
320
|
this.progress = 0;
|
|
319
321
|
this.state = 1 /* RefresherState.Inactive */;
|
|
322
|
+
this.ionPullEnd.emit({
|
|
323
|
+
reason: state === 32 /* RefresherState.Completing */ ? 'complete' : 'cancel',
|
|
324
|
+
});
|
|
320
325
|
}
|
|
321
326
|
async setupiOSNativeRefresher(pullingSpinner, refreshingSpinner) {
|
|
322
327
|
this.elementToTransform = this.scrollEl;
|
|
@@ -349,6 +354,7 @@ const Refresher = class {
|
|
|
349
354
|
if (!this.didStart) {
|
|
350
355
|
this.didStart = true;
|
|
351
356
|
this.ionStart.emit();
|
|
357
|
+
this.ionPullStart.emit();
|
|
352
358
|
}
|
|
353
359
|
// emit "pulling" on every move
|
|
354
360
|
if (this.pointerDown) {
|
|
@@ -424,6 +430,7 @@ const Refresher = class {
|
|
|
424
430
|
this.lastVelocityY = ev.velocityY;
|
|
425
431
|
},
|
|
426
432
|
onEnd: () => {
|
|
433
|
+
const hadStarted = this.didStart;
|
|
427
434
|
this.pointerDown = false;
|
|
428
435
|
this.didStart = false;
|
|
429
436
|
if (this.needsCompletion) {
|
|
@@ -433,6 +440,13 @@ const Refresher = class {
|
|
|
433
440
|
else if (this.didRefresh) {
|
|
434
441
|
readTask(() => translateElement(this.elementToTransform, `${this.el.clientHeight}px`));
|
|
435
442
|
}
|
|
443
|
+
else if (hadStarted) {
|
|
444
|
+
/**
|
|
445
|
+
* User started pulling but released before reaching the refresh threshold.
|
|
446
|
+
* Emit ionPullEnd to complete the event pair.
|
|
447
|
+
*/
|
|
448
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
449
|
+
}
|
|
436
450
|
},
|
|
437
451
|
});
|
|
438
452
|
this.disabledChanged();
|
|
@@ -479,6 +493,7 @@ const Refresher = class {
|
|
|
479
493
|
ev.data.animation = animation;
|
|
480
494
|
animation.progressStart(false, 0);
|
|
481
495
|
this.ionStart.emit();
|
|
496
|
+
this.ionPullStart.emit();
|
|
482
497
|
this.animations.push(animation);
|
|
483
498
|
return;
|
|
484
499
|
}
|
|
@@ -501,6 +516,7 @@ const Refresher = class {
|
|
|
501
516
|
this.animations = [];
|
|
502
517
|
this.gesture.enable(true);
|
|
503
518
|
this.state = 1 /* RefresherState.Inactive */;
|
|
519
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
504
520
|
});
|
|
505
521
|
return;
|
|
506
522
|
}
|
|
@@ -745,6 +761,7 @@ const Refresher = class {
|
|
|
745
761
|
if (!this.didStart) {
|
|
746
762
|
this.didStart = true;
|
|
747
763
|
this.ionStart.emit();
|
|
764
|
+
this.ionPullStart.emit();
|
|
748
765
|
}
|
|
749
766
|
// emit "pulling" on every move
|
|
750
767
|
this.ionPull.emit();
|
|
@@ -788,6 +805,15 @@ const Refresher = class {
|
|
|
788
805
|
* available right away.
|
|
789
806
|
*/
|
|
790
807
|
this.restoreOverflowStyle();
|
|
808
|
+
/**
|
|
809
|
+
* If ionPullStart was emitted, we need to emit ionPullEnd
|
|
810
|
+
* even though the gesture was aborted before reaching the
|
|
811
|
+
* pulling threshold.
|
|
812
|
+
*/
|
|
813
|
+
if (this.didStart) {
|
|
814
|
+
this.didStart = false;
|
|
815
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
816
|
+
}
|
|
791
817
|
}
|
|
792
818
|
}
|
|
793
819
|
beginRefresh() {
|
|
@@ -834,6 +860,9 @@ const Refresher = class {
|
|
|
834
860
|
if (this.contentFullscreen && this.backgroundContentEl) {
|
|
835
861
|
(_a = this.backgroundContentEl) === null || _a === void 0 ? void 0 : _a.style.removeProperty('--offset-top');
|
|
836
862
|
}
|
|
863
|
+
this.ionPullEnd.emit({
|
|
864
|
+
reason: state === 32 /* RefresherState.Completing */ ? 'complete' : 'cancel',
|
|
865
|
+
});
|
|
837
866
|
}, 600);
|
|
838
867
|
// reset the styles on the scroll element
|
|
839
868
|
// set that the refresh is actively cancelling/completing
|
|
@@ -887,7 +916,7 @@ const Refresher = class {
|
|
|
887
916
|
}
|
|
888
917
|
render() {
|
|
889
918
|
const mode = getIonMode(this);
|
|
890
|
-
return (h(Host, { key: '
|
|
919
|
+
return (h(Host, { key: 'bed0c2f44c32ecac24b7d8326ac7c7ef1d12c44f', slot: "fixed", class: {
|
|
891
920
|
[mode]: true,
|
|
892
921
|
// Used internally for styling
|
|
893
922
|
[`refresher-${mode}`]: true,
|
|
@@ -950,7 +979,7 @@ const RefresherContent = class {
|
|
|
950
979
|
const pullingIcon = this.pullingIcon;
|
|
951
980
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
952
981
|
const mode = getIonMode(this);
|
|
953
|
-
return (h(Host, { key: '
|
|
982
|
+
return (h(Host, { key: 'e235f8a9a84070ece2e2066ced234a64663bfa1d', class: mode }, h("div", { key: '9121691818ddaa35801a5f442e144ac27686cf19', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (h("div", { key: 'c8d65d740f1575041bd3b752c789077927397fe4', class: "refresher-pulling-icon" }, h("div", { key: '309dd904977eaa788b09ea95b7fa4996a73bec5b', class: "spinner-arrow-container" }, h("ion-spinner", { key: 'a2a1480f67775d56ca7822e76be1e9f983bca2f9', name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (h("div", { key: '811d7e06d324bf4b6a18a31427a43e5177f3ae3a', class: "arrow-container" }, h("ion-icon", { key: '86cc48e2e8dc054ff6ff1299094da35b524be63d', icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (h("div", { key: '464ae097dbc95c18a2dd7dfd03f8489153dab719', class: "refresher-pulling-icon" }, h("ion-icon", { key: 'ed6875978b9035add562caa743a68353743d978f', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), h("div", { key: 'aff891924e44354543fec484e5cde1ca92e69904', class: "refresher-refreshing" }, this.refreshingSpinner && (h("div", { key: '842d7ac4ff10a1058775493d62f31cbdcd34f7a0', class: "refresher-refreshing-icon" }, h("ion-spinner", { key: '8c3e6195501e7e78d5cde1e3ad1fef90fd4a953f', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
954
983
|
}
|
|
955
984
|
get el() { return getElement(this); }
|
|
956
985
|
};
|
|
@@ -30,7 +30,7 @@ const Reorder = class {
|
|
|
30
30
|
render() {
|
|
31
31
|
const mode = getIonMode(this);
|
|
32
32
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'e6807bb349725682e99e791ac65e729a360d64e8', class: mode }, h("slot", { key: '1c691cdbffa6427ba08dc12184c69559ed5d5506' }, h("ion-icon", { key: '8b4150302cdca475379582b2251737b5e74079b1', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
34
34
|
}
|
|
35
35
|
get el() { return getElement(this); }
|
|
36
36
|
};
|
|
@@ -293,7 +293,7 @@ const ReorderGroup = class {
|
|
|
293
293
|
}
|
|
294
294
|
render() {
|
|
295
295
|
const mode = getIonMode(this);
|
|
296
|
-
return (h(Host, { key: '
|
|
296
|
+
return (h(Host, { key: 'b9641f3061d67fbfe68317b901ec33267046e073', class: {
|
|
297
297
|
[mode]: true,
|
|
298
298
|
'reorder-enabled': !this.disabled,
|
|
299
299
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -72,7 +72,7 @@ const RippleEffect = class {
|
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
74
74
|
const mode = getIonMode(this);
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'ae9d3b1ed6773a9b9bb2267129f7e9af23b6c9fc', role: "presentation", class: {
|
|
76
76
|
[mode]: true,
|
|
77
77
|
unbounded: this.unbounded,
|
|
78
78
|
} }));
|
|
@@ -895,10 +895,10 @@ const RouterLink = class {
|
|
|
895
895
|
rel: this.rel,
|
|
896
896
|
target: this.target,
|
|
897
897
|
};
|
|
898
|
-
return (h(Host, { key: '
|
|
898
|
+
return (h(Host, { key: 'd7f2affcde45c5fbb6cb46cd1c30008ee92a68c5', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
899
899
|
[mode]: true,
|
|
900
900
|
'ion-activatable': true,
|
|
901
|
-
}) }, h("a", Object.assign({ key: '
|
|
901
|
+
}) }, h("a", Object.assign({ key: 'babafae85ca5c6429958d383feff0493ff8cf33e' }, attrs), h("slot", { key: '50314e9555bbf6dffa0c50c3f763009dee59b10b' }))));
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
904
|
RouterLink.style = routerLinkCss;
|
|
@@ -436,8 +436,8 @@ const Searchbar = class {
|
|
|
436
436
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
437
437
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
438
438
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
439
|
-
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '
|
|
440
|
-
return (h(Host, { key: '
|
|
439
|
+
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '19e18775856db87daeb4b9e3d7bca0461915a0df', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, h("div", { key: 'b3bbdcc033f3bd3441d619e4a252cef0dad4d07e', "aria-hidden": "true" }, mode === 'md' ? (h("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
440
|
+
return (h(Host, { key: '074aa60e051bfb3225e87d44bbb6346c59c73574', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
441
441
|
[mode]: true,
|
|
442
442
|
'searchbar-animated': animated,
|
|
443
443
|
'searchbar-disabled': this.disabled,
|
|
@@ -447,14 +447,14 @@ const Searchbar = class {
|
|
|
447
447
|
'searchbar-has-focus': this.focused,
|
|
448
448
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
449
449
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
450
|
-
}) }, h("div", { key: '
|
|
450
|
+
}) }, h("div", { key: '54f58a79fe36e85d9295157303f1be89c98bbdaf', class: "searchbar-input-container" }, h("input", Object.assign({ key: 'f991a37fcf54d26b7ad10d89084764e03d97b9de', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, h("ion-icon", { key: '8b44dd90a3292c5cf872ef16a8520675f5673494', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), h("button", { key: '79d9cfed8f01268044f82811a35d323a12dca749', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
451
451
|
/**
|
|
452
452
|
* This prevents mobile browsers from
|
|
453
453
|
* blurring the input when the clear
|
|
454
454
|
* button is activated.
|
|
455
455
|
*/
|
|
456
456
|
ev.preventDefault();
|
|
457
|
-
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: '
|
|
457
|
+
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: 'aa3b9fa8a61f853236783ac7bcd0b113ea65ece2', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
458
458
|
}
|
|
459
459
|
get el() { return getElement(this); }
|
|
460
460
|
static get watchers() { return {
|
|
@@ -10,7 +10,7 @@ const SegmentContent = class {
|
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'db6876f2aee7afa1ea8bc147337670faa68fae1c' }, h("slot", { key: 'bc05714a973a5655668679033f5809a1da6db8cc' })));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
SegmentContent.style = segmentContentCss;
|
|
@@ -106,10 +106,10 @@ const SegmentView = class {
|
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
108
|
const { disabled, isManualScroll } = this;
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'e180b67bb3143a5f4611fb358c037be6fc782a8f', class: {
|
|
110
110
|
'segment-view-disabled': disabled,
|
|
111
111
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
112
|
-
} }, h("slot", { key: '
|
|
112
|
+
} }, h("slot", { key: '41c11d6a7406a10f5c64a2e73abfc072afd8fc73' })));
|
|
113
113
|
}
|
|
114
114
|
get el() { return getElement(this); }
|
|
115
115
|
};
|
|
@@ -547,14 +547,14 @@ const Segment = class {
|
|
|
547
547
|
}
|
|
548
548
|
render() {
|
|
549
549
|
const mode = getIonMode(this);
|
|
550
|
-
return (h(Host, { key: '
|
|
550
|
+
return (h(Host, { key: 'e67ed512739cf2cfe657b0c44ebc3dfb1e9fbb79', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
|
|
551
551
|
[mode]: true,
|
|
552
552
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
553
553
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
554
554
|
'segment-activated': this.activated,
|
|
555
555
|
'segment-disabled': this.disabled,
|
|
556
556
|
'segment-scrollable': this.scrollable,
|
|
557
|
-
}) }, h("slot", { key: '
|
|
557
|
+
}) }, h("slot", { key: '804d8acfcb9abfeeee38244b015fbc5c36330b9e', onSlotchange: this.onSlottedItemsChange })));
|
|
558
558
|
}
|
|
559
559
|
get el() { return getElement(this); }
|
|
560
560
|
static get watchers() { return {
|
|
@@ -672,7 +672,7 @@ const SegmentButton = class {
|
|
|
672
672
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
673
673
|
const mode = getIonMode(this);
|
|
674
674
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
675
|
-
return (h(Host, { key: '
|
|
675
|
+
return (h(Host, { key: '26cb7ee90455bcaa6416125802d7e5729fa05b5b', class: {
|
|
676
676
|
[mode]: true,
|
|
677
677
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
678
678
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -688,7 +688,7 @@ const SegmentButton = class {
|
|
|
688
688
|
'ion-activatable': true,
|
|
689
689
|
'ion-activatable-instant': true,
|
|
690
690
|
'ion-focusable': true,
|
|
691
|
-
} }, h("button", Object.assign({ key: '
|
|
691
|
+
} }, h("button", Object.assign({ key: '75add37f11c107d1e2cfdb154e08004e9579e863', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), h("span", { key: '8e720d2a3e304903685bf09d226a64e944d78a22', class: "button-inner" }, h("slot", { key: 'c8e7b3ebf8f03042a1001155643b585283c73c65' })), mode === 'md' && h("ion-ripple-effect", { key: '3586ac317b8d82c92b0ccfbfae42f8778612321b' })), h("div", { key: '9cf93957da9e8dc333c8b05327bb903385b1c5f4', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: 'd3b6f0b3860ec6896b46703f64ed1cc8c75612e3', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
692
692
|
}
|
|
693
693
|
get el() { return getElement(this); }
|
|
694
694
|
static get watchers() { return {
|
|
@@ -88,7 +88,7 @@ const SelectModal = class {
|
|
|
88
88
|
} }, option.text))));
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: 'b6c0dec240b2e41985b15fdf4e5a6d3a145c1567', class: getIonMode(this) }, h("ion-header", { key: 'cd177e85ee0f62a60a3a708342d6ab6eb19a44dc' }, h("ion-toolbar", { key: 'aee8222a5a4daa540ad202b2e4cac1ef93d9558c' }, this.header !== undefined && h("ion-title", { key: '5f8fecc764d97bf840d3d4cfddeeccd118ab4436' }, this.header), h("ion-buttons", { key: '919033950d7c2b0101f96a9c9698219de9f568ea', slot: "end" }, h("ion-button", { key: '34b571cab6dced4bde555a077a21e91800829931', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: '3c9153d26ba7a5a03d3b20fcd628d0c3031661a7' }, h("ion-list", { key: 'e00b222c071bc97c82ad1bba4db95a8a5c43ed6d' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
92
92
|
}
|
|
93
93
|
get el() { return getElement(this); }
|
|
94
94
|
};
|
|
@@ -787,7 +787,7 @@ const Select = class {
|
|
|
787
787
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
788
788
|
*/
|
|
789
789
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
790
|
-
return (h(Host, { key: '
|
|
790
|
+
return (h(Host, { key: 'd8026835993d0e6dce747098f741a06ae4e4f54d', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
791
791
|
[mode]: true,
|
|
792
792
|
'in-item': inItem,
|
|
793
793
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -805,7 +805,7 @@ const Select = class {
|
|
|
805
805
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
806
806
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
807
807
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
808
|
-
}) }, h("label", { key: '
|
|
808
|
+
}) }, h("label", { key: 'fcfb40209d6d07d49c7fdca4884b31abf6ac2567', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: 'f191664f2290c3890bde1156157c83a6ff17dbe2', class: "select-wrapper-inner" }, h("slot", { key: '317a28d1115b4214f291e228ce0fe6fc782e57d5', name: "start" }), h("div", { key: 'db68e18abd5ca3a1023d7c7b58bf89893ae18073', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '4274e042267c2234a198b0f65c89477898d08130', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: '2e2eb1ee2b2791e0683d9afb186fde6e938ca59c', class: "select-highlight" })), this.renderBottomContent()));
|
|
809
809
|
}
|
|
810
810
|
get el() { return getElement(this); }
|
|
811
811
|
static get watchers() { return {
|
|
@@ -867,7 +867,7 @@ const SelectOption = class {
|
|
|
867
867
|
this.disabled = false;
|
|
868
868
|
}
|
|
869
869
|
render() {
|
|
870
|
-
return h(Host, { key: '
|
|
870
|
+
return h(Host, { key: '3a70eea9fa03a9acba582180761d18347c72acee', role: "option", id: this.inputId, class: getIonMode(this) });
|
|
871
871
|
}
|
|
872
872
|
get el() { return getElement(this); }
|
|
873
873
|
};
|
|
@@ -972,7 +972,7 @@ const SelectPopover = class {
|
|
|
972
972
|
render() {
|
|
973
973
|
const { header, message, options, subHeader } = this;
|
|
974
974
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
975
|
-
return (h(Host, { key: '
|
|
975
|
+
return (h(Host, { key: 'ab931b49b59283825bd2afa3f7f995b0e6e05bef', class: getIonMode(this) }, h("ion-list", { key: '3bd12b67832607596b912a73d5b3ae9b954b244d' }, header !== undefined && h("ion-list-header", { key: '97da930246edf7423a039c030d40e3ff7a5148a3' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: 'c579df6ea8fac07bb0c59d34c69b149656863224' }, h("ion-label", { key: 'af699c5f465710ccb13b8cf8e7be66f0e8acfad1', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: 'df9a936d42064b134e843c7229f314a2a3ec7e80' }, subHeader), message !== undefined && h("p", { key: '9c3ddad378df00f106afa94e9928cf68c17124dd' }, message)))), this.renderOptions(options))));
|
|
976
976
|
}
|
|
977
977
|
get el() { return getElement(this); }
|
|
978
978
|
};
|
|
@@ -42,7 +42,7 @@ const Spinner = class {
|
|
|
42
42
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'a33d6421fcc885995fbc7a348516525f68ca496c', class: createColorClasses(self.color, {
|
|
46
46
|
[mode]: true,
|
|
47
47
|
[`spinner-${spinnerName}`]: true,
|
|
48
48
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -126,12 +126,12 @@ const SplitPane = class {
|
|
|
126
126
|
}
|
|
127
127
|
render() {
|
|
128
128
|
const mode = getIonMode(this);
|
|
129
|
-
return (h(Host, { key: '
|
|
129
|
+
return (h(Host, { key: 'd5e30df12f1f1f855da4c66f98076b9dce762c59', class: {
|
|
130
130
|
[mode]: true,
|
|
131
131
|
// Used internally for styling
|
|
132
132
|
[`split-pane-${mode}`]: true,
|
|
133
133
|
'split-pane-visible': this.visible,
|
|
134
|
-
} }, h("slot", { key: '
|
|
134
|
+
} }, h("slot", { key: '3e30d7cf3bc1cf434e16876a0cb2a36377b8e00f' })));
|
|
135
135
|
}
|
|
136
136
|
get el() { return getElement(this); }
|
|
137
137
|
static get watchers() { return {
|
|
@@ -96,11 +96,11 @@ const TabBar = class {
|
|
|
96
96
|
const { color, translucent, keyboardVisible } = this;
|
|
97
97
|
const mode = getIonMode(this);
|
|
98
98
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '9daf4e2acaff6e3ce3878cf9dd5109fb1afbbebe', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
|
|
100
100
|
[mode]: true,
|
|
101
101
|
'tab-bar-translucent': translucent,
|
|
102
102
|
'tab-bar-hidden': shouldHide,
|
|
103
|
-
}) }, h("slot", { key: '
|
|
103
|
+
}) }, h("slot", { key: '1d15aa2da8501e8e7eff11ad4a491478be845c43' })));
|
|
104
104
|
}
|
|
105
105
|
get el() { return getElement(this); }
|
|
106
106
|
static get watchers() { return {
|
|
@@ -178,7 +178,7 @@ const TabButton = class {
|
|
|
178
178
|
rel,
|
|
179
179
|
target,
|
|
180
180
|
};
|
|
181
|
-
return (h(Host, { key: '
|
|
181
|
+
return (h(Host, { key: 'ce9d29ced0c781d6b2fa62cd5feb801c11fc42e8', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
182
182
|
[mode]: true,
|
|
183
183
|
'tab-selected': selected,
|
|
184
184
|
'tab-disabled': disabled,
|
|
@@ -190,7 +190,7 @@ const TabButton = class {
|
|
|
190
190
|
'ion-activatable': true,
|
|
191
191
|
'ion-selectable': true,
|
|
192
192
|
'ion-focusable': true,
|
|
193
|
-
} }, h("a", Object.assign({ key: '
|
|
193
|
+
} }, h("a", Object.assign({ key: '01cb0ed2e77c5c1a8abd48da1bb07ac1b305d0b6' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), h("span", { key: 'd0240c05f42217cfb186b86ff8a0c9cd70b9c8df', class: "button-inner" }, h("slot", { key: '0a20b84925037dbaa8bb4a495b813d3f7c2e58ac' })), mode === 'md' && h("ion-ripple-effect", { key: '4c92c27178cdac89d69cffef8d2c39c3644914e8', type: "unbounded" }))));
|
|
194
194
|
}
|
|
195
195
|
get el() { return getElement(this); }
|
|
196
196
|
};
|
|
@@ -43,10 +43,10 @@ const Tab = class {
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
const { tab, active, component } = this;
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'dbad8fe9f1566277d14647626308eaf1601ab01f', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
47
47
|
'ion-page': component === undefined,
|
|
48
48
|
'tab-hidden': !active,
|
|
49
|
-
} }, h("slot", { key: '
|
|
49
|
+
} }, h("slot", { key: '3be64f4e7161f6769aaf8e4dcb5293fcaa09af45' })));
|
|
50
50
|
}
|
|
51
51
|
get el() { return getElement(this); }
|
|
52
52
|
static get watchers() { return {
|
|
@@ -215,7 +215,7 @@ const Tabs = class {
|
|
|
215
215
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
|
-
return (h(Host, { key: '
|
|
218
|
+
return (h(Host, { key: '7b4b302f2942d8d131f6fc24e817989a8be08867', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '2c51cf14c0f17a8ddf2d879858c984cdf8fd3147', name: "top" }), h("div", { key: '7e9d6055092d41bd9bc80ae15965f77e216feb84', class: "tabs-inner" }, h("slot", { key: 'c308a787e37ff7f6653531d70deca597a7602d26' })), h("slot", { key: 'd5f5e693710c853570811602f859cf3e88272684', name: "bottom" })));
|
|
219
219
|
}
|
|
220
220
|
get el() { return getElement(this); }
|
|
221
221
|
};
|
|
@@ -13,9 +13,9 @@ const Text = class {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const mode = getIonMode(this);
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '361035eae7b92dc109794348d39bad2f596eb6be', class: createColorClasses(this.color, {
|
|
17
17
|
[mode]: true,
|
|
18
|
-
}) }, h("slot", { key: '
|
|
18
|
+
}) }, h("slot", { key: 'c7b8835cf485ba9ecd73298f0529276ce1ea0852' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
Text.style = textCss;
|
|
@@ -475,7 +475,7 @@ const Textarea = class {
|
|
|
475
475
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
476
476
|
*/
|
|
477
477
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
478
|
-
return (h(Host, { key: '
|
|
478
|
+
return (h(Host, { key: 'a70a62d7aae3831a50acd74f60b930925ada1326', class: createColorClasses(this.color, {
|
|
479
479
|
[mode]: true,
|
|
480
480
|
'has-value': hasValue,
|
|
481
481
|
'has-focus': hasFocus,
|
|
@@ -484,7 +484,7 @@ const Textarea = class {
|
|
|
484
484
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
485
485
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
486
486
|
'textarea-disabled': disabled,
|
|
487
|
-
}) }, h("label", { key: '
|
|
487
|
+
}) }, h("label", { key: '8a2dd59a60f7469df84018eb0ede3a9ec3862703', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: '1bfc368236e3da7a225a45118c27fbfc1fe5fa46', class: "textarea-wrapper-inner" }, h("div", { key: '215cbb2635ff52e31a8973376989b85e7245d40f', class: "start-slot-wrapper" }, h("slot", { key: '9f6b461cdee9d629deb695d2bea054ece2f32305', name: "start" })), h("div", { key: 'c1af35a2d5bc452bebe0b22a26d15ff52b4e9fc8', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: '69a69b3cf0932baafbe37e6e846f1a571608d3f2', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined }, this.inheritedAttributes), value)), h("div", { key: 'c053ea8b865d0e29763aed2e4939cc9c9e374c15', class: "end-slot-wrapper" }, h("slot", { key: '930aa641833b0df54b9ea10368fc2f46d5f491f6', name: "end" }))), shouldRenderHighlight && h("div", { key: '8d12597d15f5f429d80e8272ea99e64ed924e482', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
488
488
|
}
|
|
489
489
|
get el() { return getElement(this); }
|
|
490
490
|
static get watchers() { return {
|
|
@@ -849,9 +849,9 @@ const Toast = class {
|
|
|
849
849
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
850
850
|
printIonWarning('[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
851
851
|
}
|
|
852
|
-
return (h(Host, Object.assign({ key: '
|
|
852
|
+
return (h(Host, Object.assign({ key: 'd1ecd90c87700aad4685e230cdd430aa286b8791', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
853
853
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
854
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
854
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '4bfc863417324de69e222054d5cf9c452038b41e', class: wrapperClass }, h("div", { key: '3417940afec0392e81b7d54c7cb00f3ab6c30d47', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '6bf878fbc85c01e1e5faa9d97d46255a6511a952', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '54b500348a9c37660c3aff37436d9188e4374947', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
855
855
|
}
|
|
856
856
|
get el() { return getElement(this); }
|
|
857
857
|
static get watchers() { return {
|
|
@@ -284,7 +284,7 @@ const Toggle = class {
|
|
|
284
284
|
const value = this.getValue();
|
|
285
285
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
286
286
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
287
|
-
return (h(Host, { key: '
|
|
287
|
+
return (h(Host, { key: 'f569148edd89ee041a4719ffc4733c16b05229bd', role: "switch", "aria-checked": `${checked}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, "aria-labelledby": hasLabel ? inputLabelId : null, "aria-label": inheritedAttributes['aria-label'] || null, "aria-disabled": disabled ? 'true' : null, "aria-required": required ? 'true' : undefined, tabindex: disabled ? undefined : 0, onKeyDown: this.onKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, class: createColorClasses(color, {
|
|
288
288
|
[mode]: true,
|
|
289
289
|
'in-item': hostContext('ion-item', el),
|
|
290
290
|
'toggle-activated': activated,
|
|
@@ -294,10 +294,10 @@ const Toggle = class {
|
|
|
294
294
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
295
295
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
296
296
|
[`toggle-${rtl}`]: true,
|
|
297
|
-
}) }, h("label", { key: '
|
|
297
|
+
}) }, h("label", { key: '3027f2ac4be6de422a14486d847fbee77f615db1', class: "toggle-wrapper", htmlFor: inputId }, h("input", Object.assign({ key: '4b0304c9e879e432b80184b4e5de37d55c11b436', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, required: required }, inheritedAttributes)), h("div", { key: '8ef265ec942e7f01ff31cbb202ed146c6bf94e02', class: {
|
|
298
298
|
'label-text-wrapper': true,
|
|
299
299
|
'label-text-wrapper-hidden': !hasLabel,
|
|
300
|
-
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '
|
|
300
|
+
}, part: "label", id: inputLabelId, onClick: this.onDivLabelClick }, h("slot", { key: '7b162b7dd27199cca2a4c995276a18b9f8e44aaf' }), this.renderHintText()), h("div", { key: 'd13c34bd42fca01cc73ddb4ea7e471b33a282a3e', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
301
301
|
}
|
|
302
302
|
get el() { return getElement(this); }
|
|
303
303
|
static get watchers() { return {
|
package/dist/html.html-data.json
CHANGED
|
@@ -4767,7 +4767,7 @@
|
|
|
4767
4767
|
},
|
|
4768
4768
|
{
|
|
4769
4769
|
"name": "pull-factor",
|
|
4770
|
-
"description": "How much to multiply the pull speed by. To slow the pull animation down,\npass a number less than `1`. To speed up the pull, pass a number greater\nthan `1`. The default value is `1` which is equal to the speed of the cursor.\nIf a negative value is passed in, the factor will be `1` instead.\n\nFor example
|
|
4770
|
+
"description": "How much to multiply the pull speed by. To slow the pull animation down,\npass a number less than `1`. To speed up the pull, pass a number greater\nthan `1`. The default value is `1` which is equal to the speed of the cursor.\nIf a negative value is passed in, the factor will be `1` instead.\n\nFor example, If the value passed is `1.2` and the content is dragged by\n`10` pixels, instead of `10` pixels, the content will be pulled by `12` pixels\n(an increase of 20 percent). If the value passed is `0.8`, the dragged amount\nwill be `8` pixels, less than the amount the cursor has moved.\n\nDoes not apply when the refresher content uses a spinner,\nenabling the native refresher."
|
|
4771
4771
|
},
|
|
4772
4772
|
{
|
|
4773
4773
|
"name": "pull-max",
|