@rdlabo/ionic-angular-kit 21.5.22 → 21.5.24
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/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-auth-firebase-social.mjs +27 -3
- package/fesm2022/rdlabo-ionic-angular-kit-auth-firebase-social.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-auth-firebase.mjs +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-auth-firebase.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs +3 -0
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit.mjs +27 -33
- package/fesm2022/rdlabo-ionic-angular-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/rdlabo-ionic-angular-kit.d.ts +0 -1
|
@@ -991,10 +991,6 @@ const kitPresentLanguageActionSheet = async (actionSheetCtrl, options) => {
|
|
|
991
991
|
* event. Storage is resolved lazily so the iOS mirror still works in apps without `@ionic/storage`.
|
|
992
992
|
*/
|
|
993
993
|
class KitAuthInputDirective {
|
|
994
|
-
#el;
|
|
995
|
-
#injector;
|
|
996
|
-
/** The Signal Forms field bound on this same element, if any (used to seed the prefill). */
|
|
997
|
-
#field;
|
|
998
994
|
constructor() {
|
|
999
995
|
this.#el = inject(ElementRef);
|
|
1000
996
|
this.#injector = inject(Injector);
|
|
@@ -1012,6 +1008,10 @@ class KitAuthInputDirective {
|
|
|
1012
1008
|
/** Whether clearing/invalidating the field forgets the stored email (`'email'` only). */
|
|
1013
1009
|
this.#forgetsOnClear = computed(() => this.kitAuthInput() === 'email', ...(ngDevMode ? [{ debugName: "#forgetsOnClear" }] : /* istanbul ignore next */ []));
|
|
1014
1010
|
}
|
|
1011
|
+
#el;
|
|
1012
|
+
#injector;
|
|
1013
|
+
/** The Signal Forms field bound on this same element, if any (used to seed the prefill). */
|
|
1014
|
+
#field;
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Register the iOS autofill workaround and, in `'email'` mode, seed the field from storage.
|
|
1017
1017
|
*/
|
|
@@ -1023,18 +1023,17 @@ class KitAuthInputDirective {
|
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
setTimeout(() => {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}, {
|
|
1030
|
-
capture: false,
|
|
1031
|
-
once: true,
|
|
1032
|
-
passive: true,
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
catch {
|
|
1036
|
-
/* empty */
|
|
1026
|
+
const input = this.#el.nativeElement.children[0];
|
|
1027
|
+
if (!input) {
|
|
1028
|
+
return;
|
|
1037
1029
|
}
|
|
1030
|
+
input.addEventListener('change', (e) => {
|
|
1031
|
+
this.#el.nativeElement.value = e.target.value;
|
|
1032
|
+
}, {
|
|
1033
|
+
capture: false,
|
|
1034
|
+
once: true,
|
|
1035
|
+
passive: true,
|
|
1036
|
+
});
|
|
1038
1037
|
}, 100); // Need some time for the ion-input to create the input element
|
|
1039
1038
|
}
|
|
1040
1039
|
/**
|
|
@@ -1102,7 +1101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1102
1101
|
selector: '[kitAuthInput]',
|
|
1103
1102
|
standalone: true,
|
|
1104
1103
|
}]
|
|
1105
|
-
}],
|
|
1104
|
+
}], propDecorators: { kitAuthInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "kitAuthInput", required: false }] }], onIonChange: [{
|
|
1106
1105
|
type: HostListener,
|
|
1107
1106
|
args: ['ionChange', ['$event']]
|
|
1108
1107
|
}] } });
|
|
@@ -1125,19 +1124,13 @@ const keyboardWillShow = (elementRef, type) => Keyboard.addListener('keyboardWil
|
|
|
1125
1124
|
elementRef.nativeElement.style.willChange = 'transform';
|
|
1126
1125
|
requestAnimationFrame(() => (elementRef.nativeElement.style.transform = `translateY(${info.keyboardHeight * -1 + safeArea}px)`));
|
|
1127
1126
|
}
|
|
1128
|
-
else if (type === 'offset') {
|
|
1129
|
-
requestAnimationFrame(() => {
|
|
1130
|
-
const keyboardOffset = elementRef.nativeElement.style.getPropertyValue('--keyboard-offset');
|
|
1131
|
-
if (!keyboardOffset || parseInt(keyboardOffset, 10) === 0) {
|
|
1132
|
-
elementRef.nativeElement.style.setProperty('--offset-bottom', `${info.keyboardHeight * -1}px`);
|
|
1133
|
-
}
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
1127
|
else {
|
|
1128
|
+
const property = type === 'offset' ? '--offset-bottom' : '--padding-bottom';
|
|
1129
|
+
const height = type === 'offset' ? info.keyboardHeight * -1 : info.keyboardHeight;
|
|
1137
1130
|
requestAnimationFrame(() => {
|
|
1138
1131
|
const keyboardOffset = elementRef.nativeElement.style.getPropertyValue('--keyboard-offset');
|
|
1139
1132
|
if (!keyboardOffset || parseInt(keyboardOffset, 10) === 0) {
|
|
1140
|
-
elementRef.nativeElement.style.setProperty(
|
|
1133
|
+
elementRef.nativeElement.style.setProperty(property, `${height}px`);
|
|
1141
1134
|
}
|
|
1142
1135
|
});
|
|
1143
1136
|
}
|
|
@@ -1155,11 +1148,9 @@ const keyboardWillHide = (elementRef, type) => Keyboard.addListener('keyboardWil
|
|
|
1155
1148
|
elementRef.nativeElement.style.transform = `translateY(0px)`;
|
|
1156
1149
|
elementRef.nativeElement.style.willChange = 'transform';
|
|
1157
1150
|
}
|
|
1158
|
-
else if (type === 'offset') {
|
|
1159
|
-
elementRef.nativeElement.style.setProperty('--offset-bottom', '0px');
|
|
1160
|
-
}
|
|
1161
1151
|
else {
|
|
1162
|
-
|
|
1152
|
+
const property = type === 'offset' ? '--offset-bottom' : '--padding-bottom';
|
|
1153
|
+
elementRef.nativeElement.style.setProperty(property, '0px');
|
|
1163
1154
|
}
|
|
1164
1155
|
});
|
|
1165
1156
|
const keyboardDidShow = (elementRef) => Keyboard.addListener('keyboardDidShow', () => {
|
|
@@ -2394,13 +2385,16 @@ class KitRealtimeConnection {
|
|
|
2394
2385
|
if (data === this.#options.pong) {
|
|
2395
2386
|
return;
|
|
2396
2387
|
}
|
|
2388
|
+
let events;
|
|
2397
2389
|
try {
|
|
2398
|
-
|
|
2399
|
-
this.#events$.next({ ...event, isSelf: event.originId === this.id });
|
|
2400
|
-
}
|
|
2390
|
+
events = this.parseMessage(data);
|
|
2401
2391
|
}
|
|
2402
2392
|
catch {
|
|
2403
2393
|
// Ignore malformed application messages while retaining the healthy socket.
|
|
2394
|
+
return;
|
|
2395
|
+
}
|
|
2396
|
+
for (const event of events) {
|
|
2397
|
+
this.#events$.next({ ...event, isSelf: event.originId === this.id });
|
|
2404
2398
|
}
|
|
2405
2399
|
};
|
|
2406
2400
|
socket.onerror = () => this.#connectionFailed(generation, socket);
|
|
@@ -2448,7 +2442,7 @@ class KitRealtimeConnection {
|
|
|
2448
2442
|
}
|
|
2449
2443
|
this.#reconnectPendingGeneration = generation;
|
|
2450
2444
|
void this.handleConnectionFailure()
|
|
2451
|
-
.catch(() =>
|
|
2445
|
+
.catch((error) => console.error('[kitRealtime] connection failure hook failed', error))
|
|
2452
2446
|
.finally(() => {
|
|
2453
2447
|
if (this.#reconnectPendingGeneration === generation) {
|
|
2454
2448
|
this.#reconnectPendingGeneration = null;
|