@ionic/core 8.7.17-dev.11770147425.1bfcd5e5 → 8.7.17-dev.11770319814.172b4f50
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-range.js +39 -97
- package/components/ion-refresher.js +32 -3
- package/components/ion-select.js +3 -2
- package/components/select-modal.js +6 -1
- package/dist/cjs/ion-range.cjs.entry.js +39 -95
- package/dist/cjs/ion-refresher_2.cjs.entry.js +32 -3
- package/dist/cjs/ion-select-modal.cjs.entry.js +5 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +3 -2
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/range/range.js +42 -116
- package/dist/collection/components/refresher/refresher.js +70 -4
- package/dist/collection/components/select/select.js +3 -2
- package/dist/collection/components/select-modal/select-modal.js +25 -1
- package/dist/docs.json +83 -137
- package/dist/esm/ion-range.entry.js +39 -95
- package/dist/esm/ion-refresher_2.entry.js +32 -3
- package/dist/esm/ion-select-modal.entry.js +5 -1
- package/dist/esm/ion-select_3.entry.js +3 -2
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +5 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-012212e4.entry.js +4 -0
- package/dist/ionic/p-88367362.entry.js +4 -0
- package/dist/ionic/p-90f2d3ff.entry.js +4 -0
- package/dist/ionic/p-d2489bf2.entry.js +4 -0
- package/dist/types/components/range/range-interface.d.ts +0 -1
- package/dist/types/components/range/range.d.ts +4 -24
- 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/select-modal/select-modal.d.ts +4 -0
- package/dist/types/components.d.ts +26 -5
- package/dist/types/interface.d.ts +1 -1
- package/hydrate/index.js +83 -122
- package/hydrate/index.mjs +83 -122
- package/package.json +1 -1
- package/dist/ionic/p-02d76786.entry.js +0 -4
- package/dist/ionic/p-639dd543.entry.js +0 -4
- package/dist/ionic/p-b0c2f1f1.entry.js +0 -4
- package/dist/ionic/p-eb024a5b.entry.js +0 -4
package/hydrate/index.mjs
CHANGED
|
@@ -28715,29 +28715,13 @@ const rangeMdCss = ":host{--knob-handle-size:calc(var(--knob-size) * 2);display:
|
|
|
28715
28715
|
* @slot start - Content is placed to the left of the range slider in LTR, and to the right in RTL.
|
|
28716
28716
|
* @slot end - Content is placed to the right of the range slider in LTR, and to the left in RTL.
|
|
28717
28717
|
*
|
|
28718
|
-
* @part label - The label text describing the range.
|
|
28719
28718
|
* @part tick - An inactive tick mark.
|
|
28720
28719
|
* @part tick-active - An active tick mark.
|
|
28720
|
+
* @part pin - The counter that appears above a knob.
|
|
28721
|
+
* @part knob - The handle that is used to drag the range.
|
|
28721
28722
|
* @part bar - The inactive part of the bar.
|
|
28722
28723
|
* @part bar-active - The active part of the bar.
|
|
28723
|
-
* @part
|
|
28724
|
-
* @part knob-handle-a - The container element for the first knob. Only available when `dualKnobs` is `true`.
|
|
28725
|
-
* @part knob-handle-b - The container element for the second knob. Only available when `dualKnobs` is `true`.
|
|
28726
|
-
* @part knob-handle-lower - The container element for the lower knob. Only available when `dualKnobs` is `true`.
|
|
28727
|
-
* @part knob-handle-upper - The container element for the upper knob. Only available when `dualKnobs` is `true`.
|
|
28728
|
-
* @part pin - The counter that appears above a knob.
|
|
28729
|
-
* @part pin-a - The counter that appears above the first knob. Only available when `dualKnobs` is `true`.
|
|
28730
|
-
* @part pin-b - The counter that appears above the second knob. Only available when `dualKnobs` is `true`.
|
|
28731
|
-
* @part pin-lower - The counter that appears above the lower knob. Only available when `dualKnobs` is `true`.
|
|
28732
|
-
* @part pin-upper - The counter that appears above the upper knob. Only available when `dualKnobs` is `true`.
|
|
28733
|
-
* @part knob - The visual knob element that appears on the range track.
|
|
28734
|
-
* @part knob-a - The visual knob element for the first knob. Only available when `dualKnobs` is `true`.
|
|
28735
|
-
* @part knob-b - The visual knob element for the second knob. Only available when `dualKnobs` is `true`.
|
|
28736
|
-
* @part knob-lower - The visual knob element for the lower knob. Only available when `dualKnobs` is `true`.
|
|
28737
|
-
* @part knob-upper - The visual knob element for the upper knob. Only available when `dualKnobs` is `true`.
|
|
28738
|
-
* @part pressed - Added to the knob-handle, knob, and pin that is currently being pressed to drag. Only one set has this part at a time when `dualKnobs` is `true`.
|
|
28739
|
-
* @part focused - Added to the knob-handle, knob, and pin that currently has focus. Only one set has this part at a time when `dualKnobs` is `true`.
|
|
28740
|
-
* @part hover - Added to the knob-handle, knob, and pin when the knob has hover. Only one set has this part at a time.
|
|
28724
|
+
* @part label - The label text describing the range.
|
|
28741
28725
|
*/
|
|
28742
28726
|
class Range {
|
|
28743
28727
|
constructor(hostRef) {
|
|
@@ -28755,7 +28739,6 @@ class Range {
|
|
|
28755
28739
|
this.inheritedAttributes = {};
|
|
28756
28740
|
this.contentEl = null;
|
|
28757
28741
|
this.initialContentScrollY = true;
|
|
28758
|
-
this.focusFromPointer = false;
|
|
28759
28742
|
this.ratioA = 0;
|
|
28760
28743
|
this.ratioB = 0;
|
|
28761
28744
|
/**
|
|
@@ -28887,7 +28870,6 @@ class Range {
|
|
|
28887
28870
|
this.onBlur = () => {
|
|
28888
28871
|
if (this.hasFocus) {
|
|
28889
28872
|
this.hasFocus = false;
|
|
28890
|
-
this.focusedKnob = undefined;
|
|
28891
28873
|
this.ionBlur.emit();
|
|
28892
28874
|
}
|
|
28893
28875
|
};
|
|
@@ -28898,20 +28880,21 @@ class Range {
|
|
|
28898
28880
|
}
|
|
28899
28881
|
};
|
|
28900
28882
|
this.onKnobFocus = (knob) => {
|
|
28901
|
-
// Clicking focuses the range which is needed for the keyboard,
|
|
28902
|
-
// but we only want to add the ion-focused class when focused via Tab.
|
|
28903
|
-
if (!this.focusFromPointer) {
|
|
28904
|
-
this.focusedKnob = knob;
|
|
28905
|
-
}
|
|
28906
|
-
else {
|
|
28907
|
-
this.focusFromPointer = false;
|
|
28908
|
-
this.focusedKnob = undefined;
|
|
28909
|
-
}
|
|
28910
|
-
// If the knob was not already focused, emit the focus event
|
|
28911
28883
|
if (!this.hasFocus) {
|
|
28912
28884
|
this.hasFocus = true;
|
|
28913
28885
|
this.ionFocus.emit();
|
|
28914
28886
|
}
|
|
28887
|
+
// Manually manage ion-focused class for dual knobs
|
|
28888
|
+
if (this.dualKnobs && this.el.shadowRoot) {
|
|
28889
|
+
const knobA = this.el.shadowRoot.querySelector('.range-knob-a');
|
|
28890
|
+
const knobB = this.el.shadowRoot.querySelector('.range-knob-b');
|
|
28891
|
+
// Remove ion-focused from both knobs first
|
|
28892
|
+
knobA === null || knobA === void 0 ? void 0 : knobA.classList.remove('ion-focused');
|
|
28893
|
+
knobB === null || knobB === void 0 ? void 0 : knobB.classList.remove('ion-focused');
|
|
28894
|
+
// Add ion-focused only to the focused knob
|
|
28895
|
+
const focusedKnobEl = knob === 'A' ? knobA : knobB;
|
|
28896
|
+
focusedKnobEl === null || focusedKnobEl === void 0 ? void 0 : focusedKnobEl.classList.add('ion-focused');
|
|
28897
|
+
}
|
|
28915
28898
|
};
|
|
28916
28899
|
this.onKnobBlur = () => {
|
|
28917
28900
|
// Check if focus is moving to another knob within the same range
|
|
@@ -28923,18 +28906,18 @@ class Range {
|
|
|
28923
28906
|
if (!isStillFocusedOnKnob) {
|
|
28924
28907
|
if (this.hasFocus) {
|
|
28925
28908
|
this.hasFocus = false;
|
|
28926
|
-
this.focusedKnob = undefined;
|
|
28927
28909
|
this.ionBlur.emit();
|
|
28928
28910
|
}
|
|
28911
|
+
// Remove ion-focused from both knobs when focus leaves the range
|
|
28912
|
+
if (this.dualKnobs && this.el.shadowRoot) {
|
|
28913
|
+
const knobA = this.el.shadowRoot.querySelector('.range-knob-a');
|
|
28914
|
+
const knobB = this.el.shadowRoot.querySelector('.range-knob-b');
|
|
28915
|
+
knobA === null || knobA === void 0 ? void 0 : knobA.classList.remove('ion-focused');
|
|
28916
|
+
knobB === null || knobB === void 0 ? void 0 : knobB.classList.remove('ion-focused');
|
|
28917
|
+
}
|
|
28929
28918
|
}
|
|
28930
28919
|
}, 0);
|
|
28931
28920
|
};
|
|
28932
|
-
this.onKnobMouseEnter = (knob) => {
|
|
28933
|
-
this.hoveredKnob = knob;
|
|
28934
|
-
};
|
|
28935
|
-
this.onKnobMouseLeave = () => {
|
|
28936
|
-
this.hoveredKnob = undefined;
|
|
28937
|
-
};
|
|
28938
28921
|
}
|
|
28939
28922
|
debounceChanged() {
|
|
28940
28923
|
const { ionInput, debounce, originalIonInput } = this;
|
|
@@ -29188,6 +29171,7 @@ class Range {
|
|
|
29188
29171
|
ratio = 1 - ratio;
|
|
29189
29172
|
}
|
|
29190
29173
|
this.pressedKnob = !this.dualKnobs || Math.abs(this.ratioA - ratio) < Math.abs(this.ratioB - ratio) ? 'A' : 'B';
|
|
29174
|
+
this.setFocus(this.pressedKnob);
|
|
29191
29175
|
}
|
|
29192
29176
|
get valA() {
|
|
29193
29177
|
return ratioToValue(this.ratioA, this.min, this.max, this.step);
|
|
@@ -29214,23 +29198,9 @@ class Range {
|
|
|
29214
29198
|
updateRatio() {
|
|
29215
29199
|
const value = this.getValue();
|
|
29216
29200
|
const { min, max } = this;
|
|
29217
|
-
/**
|
|
29218
|
-
* For dual knobs, value gives lower/upper but not which is A vs B.
|
|
29219
|
-
* Assign (lowerRatio, upperRatio) to (ratioA, ratioB) in the way that
|
|
29220
|
-
* minimizes change from the current ratios so the knobs don't swap.
|
|
29221
|
-
*/
|
|
29222
29201
|
if (this.dualKnobs) {
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
if (Math.abs(this.ratioA - lowerRatio) + Math.abs(this.ratioB - upperRatio) <=
|
|
29226
|
-
Math.abs(this.ratioA - upperRatio) + Math.abs(this.ratioB - lowerRatio)) {
|
|
29227
|
-
this.ratioA = lowerRatio;
|
|
29228
|
-
this.ratioB = upperRatio;
|
|
29229
|
-
}
|
|
29230
|
-
else {
|
|
29231
|
-
this.ratioA = upperRatio;
|
|
29232
|
-
this.ratioB = lowerRatio;
|
|
29233
|
-
}
|
|
29202
|
+
this.ratioA = valueToRatio(value.lower, min, max);
|
|
29203
|
+
this.ratioB = valueToRatio(value.upper, min, max);
|
|
29234
29204
|
}
|
|
29235
29205
|
else {
|
|
29236
29206
|
this.ratioA = valueToRatio(value, min, max);
|
|
@@ -29247,6 +29217,14 @@ class Range {
|
|
|
29247
29217
|
};
|
|
29248
29218
|
this.noUpdate = false;
|
|
29249
29219
|
}
|
|
29220
|
+
setFocus(knob) {
|
|
29221
|
+
if (this.el.shadowRoot) {
|
|
29222
|
+
const knobEl = this.el.shadowRoot.querySelector(knob === 'A' ? '.range-knob-a' : '.range-knob-b');
|
|
29223
|
+
if (knobEl) {
|
|
29224
|
+
knobEl.focus();
|
|
29225
|
+
}
|
|
29226
|
+
}
|
|
29227
|
+
}
|
|
29250
29228
|
/**
|
|
29251
29229
|
* Returns true if content was passed to the "start" slot
|
|
29252
29230
|
*/
|
|
@@ -29264,7 +29242,7 @@ class Range {
|
|
|
29264
29242
|
}
|
|
29265
29243
|
renderRangeSlider() {
|
|
29266
29244
|
var _a;
|
|
29267
|
-
const { min, max, step, handleKeyboard,
|
|
29245
|
+
const { min, max, step, handleKeyboard, pressedKnob, disabled, pin, ratioLower, ratioUpper, pinFormatter, inheritedAttributes, } = this;
|
|
29268
29246
|
let barStart = `${ratioLower * 100}%`;
|
|
29269
29247
|
let barEnd = `${100 - ratioUpper * 100}%`;
|
|
29270
29248
|
const rtl = isRTL$1(this.el);
|
|
@@ -29324,9 +29302,7 @@ class Range {
|
|
|
29324
29302
|
ticks.push(tick);
|
|
29325
29303
|
}
|
|
29326
29304
|
}
|
|
29327
|
-
return (hAsync("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl),
|
|
29328
|
-
this.focusFromPointer = true;
|
|
29329
|
-
},
|
|
29305
|
+
return (hAsync("div", { class: "range-slider", ref: (rangeEl) => (this.rangeSlider = rangeEl),
|
|
29330
29306
|
/**
|
|
29331
29307
|
* Since the gesture has a threshold, the value
|
|
29332
29308
|
* won't change until the user has dragged past
|
|
@@ -29339,7 +29315,6 @@ class Range {
|
|
|
29339
29315
|
* we need to listen for the "pointerUp" event.
|
|
29340
29316
|
*/
|
|
29341
29317
|
onPointerUp: (ev) => {
|
|
29342
|
-
this.focusFromPointer = false;
|
|
29343
29318
|
/**
|
|
29344
29319
|
* If the user drags the knob on the web
|
|
29345
29320
|
* version (does not occur on mobile),
|
|
@@ -29365,10 +29340,6 @@ class Range {
|
|
|
29365
29340
|
'has-ticks': ticks.length > 0,
|
|
29366
29341
|
}, role: "presentation", style: barStyle, part: "bar-active" })), renderKnob(rtl, {
|
|
29367
29342
|
knob: 'A',
|
|
29368
|
-
position: this.dualKnobs ? (this.ratioA <= this.ratioB ? 'lower' : 'upper') : 'lower',
|
|
29369
|
-
dualKnobs: this.dualKnobs,
|
|
29370
|
-
focused: focusedKnob === 'A',
|
|
29371
|
-
hovered: hoveredKnob === 'A',
|
|
29372
29343
|
pressed: pressedKnob === 'A',
|
|
29373
29344
|
value: this.valA,
|
|
29374
29345
|
ratio: this.ratioA,
|
|
@@ -29381,15 +29352,9 @@ class Range {
|
|
|
29381
29352
|
inheritedAttributes,
|
|
29382
29353
|
onKnobFocus: this.onKnobFocus,
|
|
29383
29354
|
onKnobBlur: this.onKnobBlur,
|
|
29384
|
-
onKnobMouseEnter: this.onKnobMouseEnter,
|
|
29385
|
-
onKnobMouseLeave: this.onKnobMouseLeave,
|
|
29386
29355
|
}), this.dualKnobs &&
|
|
29387
29356
|
renderKnob(rtl, {
|
|
29388
29357
|
knob: 'B',
|
|
29389
|
-
position: this.ratioB <= this.ratioA ? 'lower' : 'upper',
|
|
29390
|
-
dualKnobs: this.dualKnobs,
|
|
29391
|
-
focused: focusedKnob === 'B',
|
|
29392
|
-
hovered: hoveredKnob === 'B',
|
|
29393
29358
|
pressed: pressedKnob === 'B',
|
|
29394
29359
|
value: this.valB,
|
|
29395
29360
|
ratio: this.ratioB,
|
|
@@ -29402,8 +29367,6 @@ class Range {
|
|
|
29402
29367
|
inheritedAttributes,
|
|
29403
29368
|
onKnobFocus: this.onKnobFocus,
|
|
29404
29369
|
onKnobBlur: this.onKnobBlur,
|
|
29405
|
-
onKnobMouseEnter: this.onKnobMouseEnter,
|
|
29406
|
-
onKnobMouseLeave: this.onKnobMouseLeave,
|
|
29407
29370
|
})));
|
|
29408
29371
|
}
|
|
29409
29372
|
render() {
|
|
@@ -29429,11 +29392,10 @@ class Range {
|
|
|
29429
29392
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
29430
29393
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
29431
29394
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
29432
|
-
return (hAsync(Host, { key: '
|
|
29395
|
+
return (hAsync(Host, { key: 'ed646a42d51b8fe22012198c354cbcf5a389c108', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses$1(this.color, {
|
|
29433
29396
|
[mode]: true,
|
|
29434
29397
|
'in-item': inItem,
|
|
29435
29398
|
'range-disabled': disabled,
|
|
29436
|
-
'range-dual-knobs': dualKnobs,
|
|
29437
29399
|
'range-pressed': pressedKnob !== undefined,
|
|
29438
29400
|
'range-has-pin': pin,
|
|
29439
29401
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
@@ -29441,10 +29403,10 @@ class Range {
|
|
|
29441
29403
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
29442
29404
|
'range-value-min': valueAtMin,
|
|
29443
29405
|
'range-value-max': valueAtMax,
|
|
29444
|
-
}) }, hAsync("label", { key: '
|
|
29406
|
+
}) }, hAsync("label", { key: '3083e4f2a624e3b268396acb4415f7c6ac44d851', class: "range-wrapper", id: "range-label" }, hAsync("div", { key: '47b92f94d2a0381dd7c5cd3dda54ed2942096715', class: {
|
|
29445
29407
|
'label-text-wrapper': true,
|
|
29446
29408
|
'label-text-wrapper-hidden': !hasLabel,
|
|
29447
|
-
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '
|
|
29409
|
+
}, part: "label" }, label !== undefined ? hAsync("div", { class: "label-text" }, label) : hAsync("slot", { name: "label" })), hAsync("div", { key: '5341da8d19eb29091df680978a0e20cc8f2eec65', class: "native-wrapper" }, hAsync("slot", { key: '09f1437078032676695442d8c827a16faa7dffe2', name: "start" }), this.renderRangeSlider(), hAsync("slot", { key: '02b7781970ea4d44f10b5f4627a2ca36eca45f85', name: "end" })))));
|
|
29448
29410
|
}
|
|
29449
29411
|
get el() { return getElement(this); }
|
|
29450
29412
|
static get watchers() { return {
|
|
@@ -29482,8 +29444,6 @@ class Range {
|
|
|
29482
29444
|
"labelPlacement": [1, "label-placement"],
|
|
29483
29445
|
"ratioA": [32],
|
|
29484
29446
|
"ratioB": [32],
|
|
29485
|
-
"focusedKnob": [32],
|
|
29486
|
-
"hoveredKnob": [32],
|
|
29487
29447
|
"pressedKnob": [32]
|
|
29488
29448
|
},
|
|
29489
29449
|
"$listeners$": undefined,
|
|
@@ -29491,7 +29451,7 @@ class Range {
|
|
|
29491
29451
|
"$attrsToReflect$": [["color", "color"]]
|
|
29492
29452
|
}; }
|
|
29493
29453
|
}
|
|
29494
|
-
const renderKnob = (rtl, { knob,
|
|
29454
|
+
const renderKnob = (rtl, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard, pinFormatter, inheritedAttributes, onKnobFocus, onKnobBlur, }) => {
|
|
29495
29455
|
const start = rtl ? 'right' : 'left';
|
|
29496
29456
|
const knobStyle = () => {
|
|
29497
29457
|
const style = {};
|
|
@@ -29512,50 +29472,16 @@ const renderKnob = (rtl, { knob, position, dualKnobs, value, ratio, min, max, di
|
|
|
29512
29472
|
ev.preventDefault();
|
|
29513
29473
|
ev.stopPropagation();
|
|
29514
29474
|
}
|
|
29515
|
-
}, onFocus: () => onKnobFocus(knob), onBlur: onKnobBlur,
|
|
29475
|
+
}, onFocus: () => onKnobFocus(knob), onBlur: onKnobBlur, class: {
|
|
29516
29476
|
'range-knob-handle': true,
|
|
29517
|
-
'range-knob-
|
|
29518
|
-
'range-knob-
|
|
29477
|
+
'range-knob-a': knob === 'A',
|
|
29478
|
+
'range-knob-b': knob === 'B',
|
|
29519
29479
|
'range-knob-pressed': pressed,
|
|
29520
29480
|
'range-knob-min': value === min,
|
|
29521
29481
|
'range-knob-max': value === max,
|
|
29522
29482
|
'ion-activatable': true,
|
|
29523
29483
|
'ion-focusable': true,
|
|
29524
|
-
|
|
29525
|
-
}, part: [
|
|
29526
|
-
'knob-handle',
|
|
29527
|
-
dualKnobs && knob === 'A' && 'knob-handle-a',
|
|
29528
|
-
dualKnobs && knob === 'B' && 'knob-handle-b',
|
|
29529
|
-
dualKnobs && position === 'lower' && 'knob-handle-lower',
|
|
29530
|
-
dualKnobs && position === 'upper' && 'knob-handle-upper',
|
|
29531
|
-
pressed && 'pressed',
|
|
29532
|
-
focused && 'focused',
|
|
29533
|
-
hovered && 'hover',
|
|
29534
|
-
]
|
|
29535
|
-
.filter(Boolean)
|
|
29536
|
-
.join(' '), style: knobStyle(), role: "slider", tabindex: disabled ? -1 : 0, "aria-label": ariaLabel !== undefined ? ariaLabel : null, "aria-labelledby": ariaLabel === undefined ? 'range-label' : null, "aria-valuemin": min, "aria-valuemax": max, "aria-disabled": disabled ? 'true' : null, "aria-valuenow": value }, pin && (hAsync("div", { class: "range-pin", role: "presentation", part: [
|
|
29537
|
-
'pin',
|
|
29538
|
-
dualKnobs && knob === 'A' && 'pin-a',
|
|
29539
|
-
dualKnobs && knob === 'B' && 'pin-b',
|
|
29540
|
-
dualKnobs && position === 'lower' && 'pin-lower',
|
|
29541
|
-
dualKnobs && position === 'upper' && 'pin-upper',
|
|
29542
|
-
pressed && 'pressed',
|
|
29543
|
-
focused && 'focused',
|
|
29544
|
-
hovered && 'hover',
|
|
29545
|
-
]
|
|
29546
|
-
.filter(Boolean)
|
|
29547
|
-
.join(' ') }, pinFormatter(value))), hAsync("div", { class: "range-knob", role: "presentation", part: [
|
|
29548
|
-
'knob',
|
|
29549
|
-
dualKnobs && knob === 'A' && 'knob-a',
|
|
29550
|
-
dualKnobs && knob === 'B' && 'knob-b',
|
|
29551
|
-
dualKnobs && position === 'lower' && 'knob-lower',
|
|
29552
|
-
dualKnobs && position === 'upper' && 'knob-upper',
|
|
29553
|
-
pressed && 'pressed',
|
|
29554
|
-
focused && 'focused',
|
|
29555
|
-
hovered && 'hover',
|
|
29556
|
-
]
|
|
29557
|
-
.filter(Boolean)
|
|
29558
|
-
.join(' ') })));
|
|
29484
|
+
}, style: knobStyle(), role: "slider", tabindex: disabled ? -1 : 0, "aria-label": ariaLabel !== undefined ? ariaLabel : null, "aria-labelledby": ariaLabel === undefined ? 'range-label' : null, "aria-valuemin": min, "aria-valuemax": max, "aria-disabled": disabled ? 'true' : null, "aria-valuenow": value }, pin && (hAsync("div", { class: "range-pin", role: "presentation", part: "pin" }, pinFormatter(value))), hAsync("div", { class: "range-knob", role: "presentation", part: "knob" })));
|
|
29559
29485
|
};
|
|
29560
29486
|
const ratioToValue = (ratio, min, max, step) => {
|
|
29561
29487
|
let value = (max - min) * ratio;
|
|
@@ -29772,6 +29698,8 @@ class Refresher {
|
|
|
29772
29698
|
this.ionRefresh = createEvent(this, "ionRefresh", 7);
|
|
29773
29699
|
this.ionPull = createEvent(this, "ionPull", 7);
|
|
29774
29700
|
this.ionStart = createEvent(this, "ionStart", 7);
|
|
29701
|
+
this.ionPullStart = createEvent(this, "ionPullStart", 7);
|
|
29702
|
+
this.ionPullEnd = createEvent(this, "ionPullEnd", 7);
|
|
29775
29703
|
this.appliedStyles = false;
|
|
29776
29704
|
this.didStart = false;
|
|
29777
29705
|
this.progress = 0;
|
|
@@ -29826,8 +29754,8 @@ class Refresher {
|
|
|
29826
29754
|
* than `1`. The default value is `1` which is equal to the speed of the cursor.
|
|
29827
29755
|
* If a negative value is passed in, the factor will be `1` instead.
|
|
29828
29756
|
*
|
|
29829
|
-
* For example
|
|
29830
|
-
* `10` pixels, instead of `10` pixels the content will be pulled by `12` pixels
|
|
29757
|
+
* For example, If the value passed is `1.2` and the content is dragged by
|
|
29758
|
+
* `10` pixels, instead of `10` pixels, the content will be pulled by `12` pixels
|
|
29831
29759
|
* (an increase of 20 percent). If the value passed is `0.8`, the dragged amount
|
|
29832
29760
|
* will be `8` pixels, less than the amount the cursor has moved.
|
|
29833
29761
|
*
|
|
@@ -29877,6 +29805,9 @@ class Refresher {
|
|
|
29877
29805
|
this.animations = [];
|
|
29878
29806
|
this.progress = 0;
|
|
29879
29807
|
this.state = 1 /* RefresherState.Inactive */;
|
|
29808
|
+
this.ionPullEnd.emit({
|
|
29809
|
+
reason: state === 32 /* RefresherState.Completing */ ? 'complete' : 'cancel',
|
|
29810
|
+
});
|
|
29880
29811
|
}
|
|
29881
29812
|
async setupiOSNativeRefresher(pullingSpinner, refreshingSpinner) {
|
|
29882
29813
|
this.elementToTransform = this.scrollEl;
|
|
@@ -29909,6 +29840,7 @@ class Refresher {
|
|
|
29909
29840
|
if (!this.didStart) {
|
|
29910
29841
|
this.didStart = true;
|
|
29911
29842
|
this.ionStart.emit();
|
|
29843
|
+
this.ionPullStart.emit();
|
|
29912
29844
|
}
|
|
29913
29845
|
// emit "pulling" on every move
|
|
29914
29846
|
if (this.pointerDown) {
|
|
@@ -29984,6 +29916,7 @@ class Refresher {
|
|
|
29984
29916
|
this.lastVelocityY = ev.velocityY;
|
|
29985
29917
|
},
|
|
29986
29918
|
onEnd: () => {
|
|
29919
|
+
const hadStarted = this.didStart;
|
|
29987
29920
|
this.pointerDown = false;
|
|
29988
29921
|
this.didStart = false;
|
|
29989
29922
|
if (this.needsCompletion) {
|
|
@@ -29993,6 +29926,13 @@ class Refresher {
|
|
|
29993
29926
|
else if (this.didRefresh) {
|
|
29994
29927
|
readTask(() => translateElement(this.elementToTransform, `${this.el.clientHeight}px`));
|
|
29995
29928
|
}
|
|
29929
|
+
else if (hadStarted) {
|
|
29930
|
+
/**
|
|
29931
|
+
* User started pulling but released before reaching the refresh threshold.
|
|
29932
|
+
* Emit ionPullEnd to complete the event pair.
|
|
29933
|
+
*/
|
|
29934
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
29935
|
+
}
|
|
29996
29936
|
},
|
|
29997
29937
|
});
|
|
29998
29938
|
this.disabledChanged();
|
|
@@ -30039,6 +29979,7 @@ class Refresher {
|
|
|
30039
29979
|
ev.data.animation = animation;
|
|
30040
29980
|
animation.progressStart(false, 0);
|
|
30041
29981
|
this.ionStart.emit();
|
|
29982
|
+
this.ionPullStart.emit();
|
|
30042
29983
|
this.animations.push(animation);
|
|
30043
29984
|
return;
|
|
30044
29985
|
}
|
|
@@ -30061,6 +30002,7 @@ class Refresher {
|
|
|
30061
30002
|
this.animations = [];
|
|
30062
30003
|
this.gesture.enable(true);
|
|
30063
30004
|
this.state = 1 /* RefresherState.Inactive */;
|
|
30005
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
30064
30006
|
});
|
|
30065
30007
|
return;
|
|
30066
30008
|
}
|
|
@@ -30305,6 +30247,7 @@ class Refresher {
|
|
|
30305
30247
|
if (!this.didStart) {
|
|
30306
30248
|
this.didStart = true;
|
|
30307
30249
|
this.ionStart.emit();
|
|
30250
|
+
this.ionPullStart.emit();
|
|
30308
30251
|
}
|
|
30309
30252
|
// emit "pulling" on every move
|
|
30310
30253
|
this.ionPull.emit();
|
|
@@ -30348,6 +30291,15 @@ class Refresher {
|
|
|
30348
30291
|
* available right away.
|
|
30349
30292
|
*/
|
|
30350
30293
|
this.restoreOverflowStyle();
|
|
30294
|
+
/**
|
|
30295
|
+
* If ionPullStart was emitted, we need to emit ionPullEnd
|
|
30296
|
+
* even though the gesture was aborted before reaching the
|
|
30297
|
+
* pulling threshold.
|
|
30298
|
+
*/
|
|
30299
|
+
if (this.didStart) {
|
|
30300
|
+
this.didStart = false;
|
|
30301
|
+
this.ionPullEnd.emit({ reason: 'cancel' });
|
|
30302
|
+
}
|
|
30351
30303
|
}
|
|
30352
30304
|
}
|
|
30353
30305
|
beginRefresh() {
|
|
@@ -30394,6 +30346,9 @@ class Refresher {
|
|
|
30394
30346
|
if (this.contentFullscreen && this.backgroundContentEl) {
|
|
30395
30347
|
(_a = this.backgroundContentEl) === null || _a === void 0 ? void 0 : _a.style.removeProperty('--offset-top');
|
|
30396
30348
|
}
|
|
30349
|
+
this.ionPullEnd.emit({
|
|
30350
|
+
reason: state === 32 /* RefresherState.Completing */ ? 'complete' : 'cancel',
|
|
30351
|
+
});
|
|
30397
30352
|
}, 600);
|
|
30398
30353
|
// reset the styles on the scroll element
|
|
30399
30354
|
// set that the refresh is actively cancelling/completing
|
|
@@ -30447,7 +30402,7 @@ class Refresher {
|
|
|
30447
30402
|
}
|
|
30448
30403
|
render() {
|
|
30449
30404
|
const mode = getIonMode$1(this);
|
|
30450
|
-
return (hAsync(Host, { key: '
|
|
30405
|
+
return (hAsync(Host, { key: 'bed0c2f44c32ecac24b7d8326ac7c7ef1d12c44f', slot: "fixed", class: {
|
|
30451
30406
|
[mode]: true,
|
|
30452
30407
|
// Used internally for styling
|
|
30453
30408
|
[`refresher-${mode}`]: true,
|
|
@@ -34179,6 +34134,7 @@ class Select {
|
|
|
34179
34134
|
const mode = getIonMode$1(this);
|
|
34180
34135
|
const modalOpts = Object.assign(Object.assign({}, interfaceOptions), { mode, cssClass: ['select-modal', interfaceOptions.cssClass], component: 'ion-select-modal', componentProps: {
|
|
34181
34136
|
header: interfaceOptions.header,
|
|
34137
|
+
cancelText: this.cancelText,
|
|
34182
34138
|
multiple,
|
|
34183
34139
|
value,
|
|
34184
34140
|
options: this.createOverlaySelectOptions(this.childOpts, value),
|
|
@@ -34428,7 +34384,7 @@ class Select {
|
|
|
34428
34384
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
34429
34385
|
*/
|
|
34430
34386
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
34431
|
-
return (hAsync(Host, { key: '
|
|
34387
|
+
return (hAsync(Host, { key: 'b7fa907f8fbc54fd63e2d07a9bb5156d94fd5057', onClick: this.onClick, class: createColorClasses$1(this.color, {
|
|
34432
34388
|
[mode]: true,
|
|
34433
34389
|
'in-item': inItem,
|
|
34434
34390
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -34446,7 +34402,7 @@ class Select {
|
|
|
34446
34402
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
34447
34403
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
34448
34404
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
34449
|
-
}) }, hAsync("label", { key: '
|
|
34405
|
+
}) }, hAsync("label", { key: '11137e6a8b0374e93923ddb5a4629972ded5f43c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '99e3c09b5e6c2e7be493ed5834f991fffe45cfff', class: "select-wrapper-inner" }, hAsync("slot", { key: '740f0e5a913cb0209d5acae31c33a6ed8f672dfc', name: "start" }), hAsync("div", { key: 'b20e33c8b60915a5194948fcf8e22d7789f0b050', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), hAsync("slot", { key: '0199f338185d5fa2cdd977bb20516746bd9ddad5', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && hAsync("div", { key: '3b54de893cc8fc66df8588cee22e30d6f10850b3', class: "select-highlight" })), this.renderBottomContent()));
|
|
34450
34406
|
}
|
|
34451
34407
|
get el() { return getElement(this); }
|
|
34452
34408
|
static get watchers() { return {
|
|
@@ -34541,6 +34497,10 @@ const selectModalMdCss = ".sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-
|
|
|
34541
34497
|
class SelectModal {
|
|
34542
34498
|
constructor(hostRef) {
|
|
34543
34499
|
registerInstance(this, hostRef);
|
|
34500
|
+
/**
|
|
34501
|
+
* The text to display on the cancel button.
|
|
34502
|
+
*/
|
|
34503
|
+
this.cancelText = 'Close';
|
|
34544
34504
|
this.options = [];
|
|
34545
34505
|
}
|
|
34546
34506
|
closeModal() {
|
|
@@ -34607,7 +34567,7 @@ class SelectModal {
|
|
|
34607
34567
|
} }, option.text))));
|
|
34608
34568
|
}
|
|
34609
34569
|
render() {
|
|
34610
|
-
return (hAsync(Host, { key: '
|
|
34570
|
+
return (hAsync(Host, { key: '59ba79ffdbb69befe8e13745450c1071a1fe8c6c', class: getIonMode$1(this) }, hAsync("ion-header", { key: 'fa4d08ee43eec4b9add09d9ffabcba9ed13dd4af' }, hAsync("ion-toolbar", { key: 'b5e26cf092297c51c1dba3ce7963e7b03420393b' }, this.header !== undefined && hAsync("ion-title", { key: 'a8a93cdea4d119d3a17d8cef3878b8a1daa86e26' }, this.header), hAsync("ion-buttons", { key: 'bbc656713b41ef09099ed466f93a9cfbdaceecc1', slot: "end" }, hAsync("ion-button", { key: '80b8751fe4c96e06b620a0b9d17b2d9b3da2faa5', onClick: () => this.closeModal() }, this.cancelText)))), hAsync("ion-content", { key: 'a251fc00ae4cc7e6b3abe13caa10d95bb515558e' }, hAsync("ion-list", { key: 'bcaf38d6d91accfabb4a9d26783bc0e4801abe3c' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
34611
34571
|
}
|
|
34612
34572
|
get el() { return getElement(this); }
|
|
34613
34573
|
static get style() { return {
|
|
@@ -34620,6 +34580,7 @@ class SelectModal {
|
|
|
34620
34580
|
"$tagName$": "ion-select-modal",
|
|
34621
34581
|
"$members$": {
|
|
34622
34582
|
"header": [1],
|
|
34583
|
+
"cancelText": [1, "cancel-text"],
|
|
34623
34584
|
"multiple": [4],
|
|
34624
34585
|
"options": [16]
|
|
34625
34586
|
},
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as o,h as i,i as e,d as c,g as t}from"./p-C8IsBmNU.js";import{b as n}from"./p-BFvmZNyx.js";import{s as a}from"./p-DdR6rpbR.js";import{g as r}from"./p-DiVJyqlX.js";import"./p-ZjP4CjeZ.js";import"./p-CTfR9YZG.js";import"./p-B0q1YL7N.js";import"./p-D-eFFUkA.js";import"./p-BTEOs1at.js";const s=class{constructor(i){o(this,i),this.options=[]}closeModal(){const o=this.el.closest("ion-modal");o&&o.dismiss()}findOptionFromEvent(o){const{options:i}=this;return i.find((i=>i.value===o.target.value))}getValues(o){const{multiple:i,options:e}=this;if(i)return e.filter((o=>o.checked)).map((o=>o.value));const c=o?this.findOptionFromEvent(o):null;return c?c.value:void 0}callOptionHandler(o){const i=this.findOptionFromEvent(o),e=this.getValues(o);(null==i?void 0:i.handler)&&a(i.handler,e)}setChecked(o){const{multiple:i}=this,e=this.findOptionFromEvent(o);i&&e&&(e.checked=o.detail.checked)}renderRadioOptions(){const o=this.options.filter((o=>o.checked)).map((o=>o.value))[0];return i("ion-radio-group",{value:o,onIonChange:o=>this.callOptionHandler(o)},this.options.map((e=>i("ion-item",{lines:"none",class:Object.assign({"item-radio-checked":e.value===o},r(e.cssClass))},i("ion-radio",{value:e.value,disabled:e.disabled,justify:"start",labelPlacement:"end",onClick:()=>this.closeModal(),onKeyUp:o=>{" "===o.key&&this.closeModal()}},e.text)))))}renderCheckboxOptions(){return this.options.map((o=>i("ion-item",{class:Object.assign({"item-checkbox-checked":o.checked},r(o.cssClass))},i("ion-checkbox",{value:o.value,disabled:o.disabled,checked:o.checked,justify:"start",labelPlacement:"end",onIonChange:o=>{this.setChecked(o),this.callOptionHandler(o),e(this)}},o.text))))}render(){return i(c,{key:"b6c0dec240b2e41985b15fdf4e5a6d3a145c1567",class:n(this)},i("ion-header",{key:"cd177e85ee0f62a60a3a708342d6ab6eb19a44dc"},i("ion-toolbar",{key:"aee8222a5a4daa540ad202b2e4cac1ef93d9558c"},void 0!==this.header&&i("ion-title",{key:"5f8fecc764d97bf840d3d4cfddeeccd118ab4436"},this.header),i("ion-buttons",{key:"919033950d7c2b0101f96a9c9698219de9f568ea",slot:"end"},i("ion-button",{key:"34b571cab6dced4bde555a077a21e91800829931",onClick:()=>this.closeModal()},"Close")))),i("ion-content",{key:"3c9153d26ba7a5a03d3b20fcd628d0c3031661a7"},i("ion-list",{key:"e00b222c071bc97c82ad1bba4db95a8a5c43ed6d"},!0===this.multiple?this.renderCheckboxOptions():this.renderRadioOptions())))}get el(){return t(this)}};s.style={ionic:'.sc-ion-select-modal-ionic-h{height:100%}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(container),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="container"]{display:none}ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic::part(label),ion-list.sc-ion-select-modal-ionic ion-radio.sc-ion-select-modal-ionic [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-ionic{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-ionic{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-ionic{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}',ios:'.sc-ion-select-modal-ios-h{height:100%}ion-item.sc-ion-select-modal-ios{--inner-padding-end:0}ion-radio.sc-ion-select-modal-ios::after{bottom:0;position:absolute;width:calc(100% - 0.9375rem - 16px);border-width:0px 0px 0.55px 0px;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, var(--ion-background-color-step-250, #c8c7cc))));content:""}ion-radio.sc-ion-select-modal-ios::after{inset-inline-start:calc(0.9375rem + 16px)}',md:'.sc-ion-select-modal-md-h{height:100%}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(container),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="container"]{display:none}ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md::part(label),ion-list.sc-ion-select-modal-md ion-radio.sc-ion-select-modal-md [part~="label"]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-item.sc-ion-select-modal-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-modal-md{--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);--background-focused:var(--ion-color-primary, #0054e9);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #0054e9);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-modal-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #0054e9)}'};export{s as ion_select_modal}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{w as e,r,c as i,a as s,j as t,h as n,d as o,g as h,e as a}from"./p-C8IsBmNU.js";import{g as f}from"./p-hHmYLOfE.js";import{I as l,b as c,p,g as d}from"./p-CwgG81ZD.js";import{c as g,t as m,e as u,g as b,r as v}from"./p-CTfR9YZG.js";import{d as x,I as y}from"./p-CKvCXMs9.js";import{b as k}from"./p-BFvmZNyx.js";import{c as w}from"./p-DDb5r57F.js";import{E as j,a as C}from"./p-DbQ5QkTP.js";import{h as S,i as R}from"./p-DV3sJJW8.js";import{S as E}from"./p-D4RIp70E.js";import"./p-CIGNaXM1.js";import"./p-ZjP4CjeZ.js";const M=e=>{const r=e.querySelector("ion-spinner"),i=r.shadowRoot.querySelector("circle"),s=e.querySelector(".spinner-arrow-container"),t=e.querySelector(".arrow-container"),n=t?t.querySelector("ion-icon"):null,o=w().duration(1e3).easing("ease-out"),h=w().addElement(s).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),a=w().addElement(i).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),f=w().addElement(r).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(t&&n){const e=w().addElement(t).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),r=w().addElement(n).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([e,r])}return o.addAnimation([h,a,f])},N=(r,i,s=200)=>{if(!r)return Promise.resolve();const t=m(r,s);return e((()=>{r.style.setProperty("transition",`${s}ms all ease-out`),void 0===i?r.style.removeProperty("transform"):r.style.setProperty("transform",`translate3d(0px, ${i}, 0px)`)})),t},Y=()=>navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)"),D=async(e,r)=>{const i=e.querySelector("ion-refresher-content");if(!i)return Promise.resolve(!1);await new Promise((e=>g(i,e)));const s=e.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),t=e.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return null!==s&&null!==t&&("ios"===r&&Y()||"md"===r)},T=class{constructor(e){r(this,e),this.ionRefresh=i(this,"ionRefresh",7),this.ionPull=i(this,"ionPull",7),this.ionStart=i(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.contentFullscreen=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}async checkNativeRefresher(){const e=await D(this.el,k(this));if(e&&!this.nativeRefresher){const e=this.el.closest("ion-content");this.setupNativeRefresher(e)}else e||this.destroyNativeRefresher()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}async resetNativeRefresher(e,r){this.state=r,"ios"===k(this)?await N(e,void 0,300):await m(this.el.querySelector(".refresher-refreshing-icon"),200),this.didRefresh=!1,this.needsCompletion=!1,this.pointerDown=!1,this.animations.forEach((e=>e.destroy())),this.animations=[],this.progress=0,this.state=1}async setupiOSNativeRefresher(r,i){this.elementToTransform=this.scrollEl;const t=r.shadowRoot.querySelectorAll("svg");let n=.16*this.scrollEl.clientHeight;const o=t.length;e((()=>t.forEach((e=>e.style.setProperty("animation","none"))))),this.scrollListenerCallback=()=>{(this.pointerDown||1!==this.state)&&s((()=>{const r=this.scrollEl.scrollTop,s=this.el.clientHeight;if(r>0){if(8===this.state){const t=u(0,r/(.5*s),1);return void e((()=>{i.style.setProperty("opacity",(1-t).toString())}))}return}this.pointerDown&&(this.didStart||(this.didStart=!0,this.ionStart.emit()),this.pointerDown&&this.ionPull.emit());const h=this.didStart?30:0,a=this.progress=u(0,(Math.abs(r)-h)/n,1);if(8===this.state||1===a){if(this.pointerDown&&(f=i,l=this.lastVelocityY,e((()=>{f.style.setProperty("--refreshing-rotation-duration",l>=1?"0.5s":"2s"),f.style.setProperty("opacity","1")}))),!this.didRefresh){this.beginRefresh(),this.didRefresh=!0,x({style:y.Light});const e=document.activeElement;void 0!==(null==e?void 0:e.blur)&&e.blur(),this.pointerDown||N(this.elementToTransform,`${s}px`)}}else this.state=2,((r,i,s)=>{e((()=>{r.forEach(((e,r)=>{const t=r*(1/i),n=u(0,(s-t)/(1-t),1);e.style.setProperty("opacity",n.toString())}))}))})(t,o,a);var f,l}))},this.scrollEl.addEventListener("scroll",this.scrollListenerCallback),this.gesture=(await import("./p-Cl0B-RWe.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{this.pointerDown=!0,this.didRefresh||N(this.elementToTransform,"0px"),0===n&&(n=.16*this.scrollEl.clientHeight)},onMove:e=>{this.lastVelocityY=e.velocityY},onEnd:()=>{this.pointerDown=!1,this.didStart=!1,this.needsCompletion?(this.resetNativeRefresher(this.elementToTransform,32),this.needsCompletion=!1):this.didRefresh&&s((()=>N(this.elementToTransform,`${this.el.clientHeight}px`)))}}),this.disabledChanged()}async setupMDNativeRefresher(r,i,s){const t=b(i).querySelector("circle"),n=this.el.querySelector("ion-refresher-content .refresher-pulling-icon"),o=b(s).querySelector("circle");null!==t&&null!==o&&e((()=>{t.style.setProperty("animation","none"),s.style.setProperty("animation-delay","-655ms"),o.style.setProperty("animation-delay","-655ms")})),this.gesture=(await import("./p-Cl0B-RWe.js")).createGesture({el:this.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>8!==this.state&&32!==this.state&&0===this.scrollEl.scrollTop,onStart:e=>{this.progress=0,e.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:i=>{if(i.velocityY<0&&0===this.progress&&!i.data.didStart||i.data.cancelled)i.data.cancelled=!0;else{if(!i.data.didStart){i.data.didStart=!0,this.state=2;const{scrollEl:s}=this,t=s.matches(l)?"overflow":"--overflow";e((()=>s.style.setProperty(t,"hidden")));const o=(e=>{const r=e.previousElementSibling;return null!==r&&"ION-HEADER"===r.tagName?"translate":"scale"})(r),h=((e,r,i)=>"scale"===e?((e,r)=>{const i=r.clientHeight,s=w().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${i}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return M(e).addAnimation([s])})(r,i):((e,r)=>{const i=r.clientHeight,s=w().addElement(e).keyframes([{offset:0,transform:`translateY(-${i}px)`},{offset:1,transform:"translateY(100px)"}]);return M(e).addAnimation([s])})(r,i))(o,n,this.el);return i.data.animation=h,h.progressStart(!1,0),this.ionStart.emit(),void this.animations.push(h)}this.progress=u(0,i.deltaY/180*.5,1),i.data.animation.progressStep(this.progress),this.ionPull.emit()}},onEnd:r=>{if(!r.data.didStart)return;this.gesture.enable(!1);const{scrollEl:i}=this,s=i.matches(l)?"overflow":"--overflow";if(e((()=>i.style.removeProperty(s))),this.progress<=.4)return void r.data.animation.progressEnd(0,this.progress,500).onFinish((()=>{this.animations.forEach((e=>e.destroy())),this.animations=[],this.gesture.enable(!0),this.state=1}));const t=f([0,0],[0,0],[1,1],[1,1],this.progress)[0],o=(e=>w().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"))(n);this.animations.push(o),e((async()=>{n.style.setProperty("--ion-pulling-refresher-translate",100*t+"px"),r.data.animation.progressEnd(),await o.play(),this.beginRefresh(),r.data.animation.destroy(),this.gesture.enable(!0)}))}}),this.disabledChanged()}async setupNativeRefresher(e){if(this.scrollListenerCallback||!e||this.nativeRefresher||!this.scrollEl)return;this.setCss(0,"",!1,""),this.nativeRefresher=!0;const r=this.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),i=this.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");"ios"===k(this)?this.setupiOSNativeRefresher(r,i):this.setupMDNativeRefresher(e,r,i)}componentDidUpdate(){this.checkNativeRefresher()}async connectedCallback(){if("fixed"!==this.el.getAttribute("slot"))return void t('[ion-refresher] - Make sure you use: <ion-refresher slot="fixed">');const e=this.el.closest(c);e?g(e,(async()=>{const r=e.querySelector(l);this.scrollEl=await d(null!=r?r:e),this.backgroundContentEl=await e.getBackgroundElement(),this.contentFullscreen=e.fullscreen,await D(this.el,k(this))?this.setupNativeRefresher(e):(this.gesture=(await import("./p-Cl0B-RWe.js")).createGesture({el:e,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>this.canStart(),onStart:()=>this.onStart(),onMove:e=>this.onMove(e),onEnd:()=>this.onEnd()}),this.disabledChanged())})):p(this.el)}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}async complete(){this.nativeRefresher?(this.needsCompletion=!0,this.pointerDown||v((()=>v((()=>this.resetNativeRefresher(this.elementToTransform,32)))))):this.close(32,"120ms")}async cancel(){this.nativeRefresher?this.pointerDown||v((()=>v((()=>this.resetNativeRefresher(this.elementToTransform,16))))):this.close(16,"")}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||1!==this.state||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle(),this.contentFullscreen&&this.backgroundContentEl&&this.backgroundContentEl.style.setProperty("--offset-top","0px")}onMove(e){if(!this.scrollEl)return;const r=e.event;if(void 0!==r.touches&&r.touches.length>1)return;if(56&this.state)return;const i=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,s=e.deltaY*i;if(s<=0)return this.progress=0,this.state=1,this.appliedStyles?void this.setCss(0,"",!1,""):void 0;if(1===this.state){if(this.scrollEl.scrollTop>0)return void(this.progress=0);this.state=2}if(r.cancelable&&r.preventDefault(),this.setCss(s,"0ms",!0,""),0===s)return void(this.progress=0);const t=this.pullMin;this.progress=s/t,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),s<t?this.state=2:s>this.pullMax?this.beginRefresh():this.state=4}onEnd(){4===this.state?this.beginRefresh():2===this.state?this.cancel():1===this.state&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,"");const e=document.activeElement;void 0!==(null==e?void 0:e.blur)&&e.blur(),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,r){setTimeout((()=>{var e;this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0),this.contentFullscreen&&this.backgroundContentEl&&(null===(e=this.backgroundContentEl)||void 0===e||e.style.removeProperty("--offset-top"))}),600),this.state=e,this.setCss(0,this.closeDuration,!0,r)}setCss(r,i,s,t,n=!1){this.nativeRefresher||(this.appliedStyles=r>0,e((()=>{if(this.scrollEl&&this.backgroundContentEl){const e=this.scrollEl.style,n=this.backgroundContentEl.style;e.transform=n.transform=r>0?`translateY(${r}px) translateZ(0px)`:"",e.transitionDuration=n.transitionDuration=i,e.transitionDelay=n.transitionDelay=t,e.overflow=s?"hidden":""}n&&this.restoreOverflowStyle()})))}memoizeOverflowStyle(){if(this.scrollEl){const{overflow:e,overflowX:r,overflowY:i}=this.scrollEl.style;this.overflowStyles={overflow:null!=e?e:"",overflowX:null!=r?r:"",overflowY:null!=i?i:""}}}restoreOverflowStyle(){if(void 0!==this.overflowStyles&&void 0!==this.scrollEl){const{overflow:e,overflowX:r,overflowY:i}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=r,this.scrollEl.style.overflowY=i,this.overflowStyles=void 0}}render(){const e=k(this);return n(o,{key:"2d1bd880877b698604542ab2d602d38b9504d975",slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":1!==this.state,"refresher-pulling":2===this.state,"refresher-ready":4===this.state,"refresher-refreshing":8===this.state,"refresher-cancelling":16===this.state,"refresher-completing":32===this.state}})}get el(){return h(this)}static get watchers(){return{disabled:["disabledChanged"]}}};T.style={ios:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, var(--ion-background-color-step-450, #747577))}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",md:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}ion-refresher{inset-inline-start:0}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #0054e9)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #0054e9);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));background:var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}"};const P=class{constructor(e){r(this,e),this.customHTMLEnabled=a.get("innerHTMLTemplatesEnabled",j)}componentWillLoad(){if(void 0===this.pullingIcon){const e=Y(),r=k(this);this.pullingIcon=a.get("refreshingIcon","ios"===r&&e?a.get("spinner",e?"lines":S):"circular")}if(void 0===this.refreshingSpinner){const e=k(this);this.refreshingSpinner=a.get("refreshingSpinner",a.get("spinner","ios"===e?"lines":"circular"))}}renderPullingText(){const{customHTMLEnabled:e,pullingText:r}=this;return e?n("div",{class:"refresher-pulling-text",innerHTML:C(r)}):n("div",{class:"refresher-pulling-text"},r)}renderRefreshingText(){const{customHTMLEnabled:e,refreshingText:r}=this;return e?n("div",{class:"refresher-refreshing-text",innerHTML:C(r)}):n("div",{class:"refresher-refreshing-text"},r)}render(){const e=this.pullingIcon,r=null!=e&&void 0!==E[e],i=k(this);return n(o,{key:"e235f8a9a84070ece2e2066ced234a64663bfa1d",class:i},n("div",{key:"9121691818ddaa35801a5f442e144ac27686cf19",class:"refresher-pulling"},this.pullingIcon&&r&&n("div",{key:"c8d65d740f1575041bd3b752c789077927397fe4",class:"refresher-pulling-icon"},n("div",{key:"309dd904977eaa788b09ea95b7fa4996a73bec5b",class:"spinner-arrow-container"},n("ion-spinner",{key:"a2a1480f67775d56ca7822e76be1e9f983bca2f9",name:this.pullingIcon,paused:!0}),"md"===i&&"circular"===this.pullingIcon&&n("div",{key:"811d7e06d324bf4b6a18a31427a43e5177f3ae3a",class:"arrow-container"},n("ion-icon",{key:"86cc48e2e8dc054ff6ff1299094da35b524be63d",icon:R,"aria-hidden":"true"})))),this.pullingIcon&&!r&&n("div",{key:"464ae097dbc95c18a2dd7dfd03f8489153dab719",class:"refresher-pulling-icon"},n("ion-icon",{key:"ed6875978b9035add562caa743a68353743d978f",icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),void 0!==this.pullingText&&this.renderPullingText()),n("div",{key:"aff891924e44354543fec484e5cde1ca92e69904",class:"refresher-refreshing"},this.refreshingSpinner&&n("div",{key:"842d7ac4ff10a1058775493d62f31cbdcd34f7a0",class:"refresher-refreshing-icon"},n("ion-spinner",{key:"8c3e6195501e7e78d5cde1e3ad1fef90fd4a953f",name:this.refreshingSpinner})),void 0!==this.refreshingText&&this.renderRefreshingText()))}get el(){return h(this)}};export{T as ion_refresher,P as ion_refresher_content}
|