@ngxs/form-plugin
Advanced tools
Comparing version 3.8.2-dev.master-f242756 to 3.8.2-dev.master-f52c613
154
index.d.ts
@@ -1,4 +0,150 @@ | ||
/** | ||
* The public api for consumers of @ngxs/form-plugin | ||
*/ | ||
export * from './src/public_api'; | ||
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 }; |
{ | ||
"name": "@ngxs/form-plugin", | ||
"description": "form plugin for @ngxs/store", | ||
"version": "3.8.2-dev.master-f242756", | ||
"version": "3.8.2-dev.master-f52c613", | ||
"sideEffects": false, | ||
@@ -6,0 +6,0 @@ "peerDependencies": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
85900
0
12
822