@ngxs/form-plugin
Advanced tools
Comparing version 3.8.2-dev.master-3d36414 to 3.8.2-dev.master-40cb2e6
154
index.d.ts
@@ -1,150 +0,4 @@ | ||
import * as i0 from '@angular/core'; | ||
import { OnInit, OnDestroy, ChangeDetectorRef, ModuleWithProviders, EnvironmentProviders } from '@angular/core'; | ||
import { FormGroupDirective } from '@angular/forms'; | ||
import { Actions, Store } from '@ngxs/store'; | ||
import { NgxsPlugin, NgxsNextPluginFn } from '@ngxs/store/plugins'; | ||
declare class NgxsFormDirective implements OnInit, OnDestroy { | ||
private _actions$; | ||
private _store; | ||
private _formGroupDirective; | ||
private _cd; | ||
path: string; | ||
set debounce(debounce: string | number); | ||
get debounce(): string | number; | ||
private _debounce; | ||
set clearDestroy(val: boolean); | ||
get clearDestroy(): boolean; | ||
private _clearDestroy; | ||
private _updating; | ||
private readonly _destroy$; | ||
constructor(_actions$: Actions, _store: Store, _formGroupDirective: FormGroupDirective, _cd: ChangeDetectorRef); | ||
ngOnInit(): void; | ||
updateFormStateWithRawValue(withFormStatus?: boolean): void; | ||
ngOnDestroy(): void; | ||
private debounceChange; | ||
private get form(); | ||
private getStateStream; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsFormDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxsFormDirective, "[ngxsForm]", never, { "path": { "alias": "ngxsForm"; "required": false; }; "debounce": { "alias": "ngxsFormDebounce"; "required": false; }; "clearDestroy": { "alias": "ngxsFormClearOnDestroy"; "required": false; }; }, {}, never, never, true, never>; | ||
} | ||
declare class NgxsFormPluginModule { | ||
static forRoot(): ModuleWithProviders<NgxsFormPluginModule>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsFormPluginModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsFormPluginModule, never, [typeof NgxsFormDirective], [typeof NgxsFormDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<NgxsFormPluginModule>; | ||
} | ||
declare function withNgxsFormPlugin(): EnvironmentProviders; | ||
declare class NgxsFormPlugin implements NgxsPlugin { | ||
handle(state: any, event: any, next: NgxsNextPluginFn): any; | ||
private joinPathWithPropertyPath; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsFormPlugin, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<NgxsFormPlugin>; | ||
} | ||
declare class UpdateFormStatus { | ||
payload: { | ||
status: string | null; | ||
path: string; | ||
}; | ||
static readonly type = "[Forms] Update Form Status"; | ||
constructor(payload: { | ||
status: string | null; | ||
path: string; | ||
}); | ||
} | ||
declare class UpdateFormValue { | ||
payload: { | ||
value: any; | ||
path: string; | ||
propertyPath?: string; | ||
}; | ||
static readonly type = "[Forms] Update Form Value"; | ||
constructor(payload: { | ||
value: any; | ||
path: string; | ||
propertyPath?: string; | ||
}); | ||
} | ||
declare class UpdateForm { | ||
payload: { | ||
value: any; | ||
errors: { | ||
[k: string]: string; | ||
} | null; | ||
dirty: boolean | null; | ||
status: string | null; | ||
path: string; | ||
}; | ||
static readonly type = "[Forms] Update Form"; | ||
constructor(payload: { | ||
value: any; | ||
errors: { | ||
[k: string]: string; | ||
} | null; | ||
dirty: boolean | null; | ||
status: string | null; | ||
path: string; | ||
}); | ||
} | ||
declare class UpdateFormDirty { | ||
payload: { | ||
dirty: boolean | null; | ||
path: string; | ||
}; | ||
static readonly type = "[Forms] Update Form Dirty"; | ||
constructor(payload: { | ||
dirty: boolean | null; | ||
path: string; | ||
}); | ||
} | ||
declare class SetFormDirty { | ||
payload: string; | ||
static readonly type = "[Forms] Set Form Dirty"; | ||
constructor(payload: string); | ||
} | ||
declare class SetFormPristine { | ||
payload: string; | ||
static readonly type = "[Forms] Set Form Pristine"; | ||
constructor(payload: string); | ||
} | ||
declare class UpdateFormErrors { | ||
payload: { | ||
errors: { | ||
[k: string]: string; | ||
} | null; | ||
path: string; | ||
}; | ||
static readonly type = "[Forms] Update Form Errors"; | ||
constructor(payload: { | ||
errors: { | ||
[k: string]: string; | ||
} | null; | ||
path: string; | ||
}); | ||
} | ||
declare class SetFormDisabled { | ||
payload: string; | ||
static readonly type = "[Forms] Set Form Disabled"; | ||
constructor(payload: string); | ||
} | ||
declare class SetFormEnabled { | ||
payload: string; | ||
static readonly type = "[Forms] Set Form Enabled"; | ||
constructor(payload: string); | ||
} | ||
declare class ResetForm { | ||
payload: { | ||
path: string; | ||
value?: any; | ||
}; | ||
static readonly type = "[Forms] Reset Form"; | ||
constructor(payload: { | ||
path: string; | ||
value?: any; | ||
}); | ||
} | ||
export { NgxsFormDirective, NgxsFormPlugin, NgxsFormPluginModule, ResetForm, SetFormDirty, SetFormDisabled, SetFormEnabled, SetFormPristine, UpdateForm, UpdateFormDirty, UpdateFormErrors, UpdateFormStatus, UpdateFormValue, withNgxsFormPlugin }; | ||
/** | ||
* The public api for consumers of @ngxs/form-plugin | ||
*/ | ||
export * from './src/public_api'; |
{ | ||
"name": "@ngxs/form-plugin", | ||
"description": "form plugin for @ngxs/store", | ||
"version": "3.8.2-dev.master-3d36414", | ||
"version": "3.8.2-dev.master-40cb2e6", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"@angular/core": ">=12.0.0 <18.0.0", | ||
"@angular/forms": ">=12.0.0 <18.0.0", | ||
"@angular/core": ">=12.0.0 <19.0.0", | ||
"@angular/forms": ">=12.0.0 <19.0.0", | ||
"@ngxs/store": "^3.8.2 || ^3.8.2-dev", | ||
@@ -10,0 +10,0 @@ "rxjs": ">=6.5.5" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86345
17
833