@rdlabo/ionic-angular-kit 21.2.0-7 → 21.2.0-8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "21.2.0-7",
3
+ "version": "21.2.0-8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-team/ionic-angular-library.git"
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EnvironmentProviders, InputSignalWithTransform, OnInit, ElementRef, WritableSignal, InputSignal, Signal } from '@angular/core';
2
+ import { InjectionToken, EnvironmentProviders, InputSignalWithTransform, OnInit, ElementRef, WritableSignal, InputSignal, Signal, OutputEmitterRef } from '@angular/core';
3
3
  import { ModalOptions, PopoverOptions, ToastOptions, LoadingOptions, AlertController, ActionSheetController } from '@ionic/angular/standalone';
4
4
  import { PluginListenerHandle } from '@capacitor/core';
5
5
  import { RouterStateSnapshot, UrlTree, CanActivateFn } from '@angular/router';
@@ -1451,15 +1451,15 @@ declare const kitChangeEventDisabled: (completeEvent: WritableSignal<HTMLIonInfi
1451
1451
  declare const kitCreateDidEnter: (el: ElementRef) => Observable<boolean>;
1452
1452
 
1453
1453
  /**
1454
- * Component のうち Signal(computed / input / viewChild 等)だけを ViewModel から見えるようにする型。
1455
- * `vm` は循環参照になるため除外する。
1454
+ * Component のうち Signal(computed / input / viewChild 等)と `output()` だけを
1455
+ * ViewModel から見えるようにする型。`vm` は循環参照になるため除外する。
1456
1456
  *
1457
1457
  * 注意: `new ViewModel(this)` の引数型に直接使うと、vm 依存 computed の推論と循環する。
1458
1458
  * ViewModel 側は constructor(host: Component) で受け、フィールドを `ReactiveHost<Component>` に
1459
1459
  * 絞り込むこと(呼び出し点では ReactiveHost を展開しない)。
1460
1460
  */
1461
1461
  type ReactiveHost<T> = Pick<T, {
1462
- [K in Exclude<keyof T, 'vm'>]-?: T[K] extends Signal<unknown> ? K : never;
1462
+ [K in Exclude<keyof T, 'vm'>]-?: T[K] extends Signal<unknown> ? K : T[K] extends OutputEmitterRef<any> ? K : never;
1463
1463
  }[Exclude<keyof T, 'vm'>]>;
1464
1464
  /**
1465
1465
  * Modal / page に渡す props オブジェクトを、Angular `input()` の InputSignal 形に写す型。