1
1
declare module 'laravel-nova' {
2
+ export type AxiosResponse = import ( "axios" ) . AxiosResponse ;
2
3
import type { Errors as FormErrors } from 'laravel-nova-devtool'
3
4
4
- export namespace PreventsFormAbandonment { }
5
- export namespace PreventsModalAbandonment { }
6
- export namespace DependentFormField { }
7
- export namespace HandlesFormRequest { }
8
- export namespace HandlesUploads { }
9
- export namespace Localization { }
10
- export namespace MetricBehavior { }
5
+ export class Errors extends FormErrors { }
6
+
7
+ export namespace PreventsFormAbandonment {
8
+ function data ( ) : {
9
+ removeOnNavigationChangesEvent : any ;
10
+ removeOnBeforeUnloadEvent : any ;
11
+ navigateBackUsingHistory : boolean ;
12
+ } ;
13
+ namespace methods {
14
+ function updateFormStatus ( ) : void ;
15
+ function enableNavigateBackUsingHistory ( ) : void ;
16
+ function disableNavigateBackUsingHistory ( ) : void ;
17
+ function handlePreventFormAbandonment ( proceed : Function , revert : Function ) : void ;
18
+ function handlePreventFormAbandonmentOnInertia ( event : Event ) : void ;
19
+ function handlePreventFormAbandonmentOnPopState ( event : any ) : void ;
20
+ function handleProceedingToPreviousPage ( reset ?: boolean ) : void ;
21
+ function handleProceedingToNextPage ( ) : void ;
22
+ function proceedToPreviousPage ( url : string ) : void ;
23
+ let allowLeavingForm : import ( "vuex" ) . MutationMethod ;
24
+ let preventLeavingForm : import ( "vuex" ) . MutationMethod ;
25
+ let triggerPushState : import ( "vuex" ) . MutationMethod ;
26
+ let resetPushState : import ( "vuex" ) . MutationMethod ;
27
+ }
28
+ namespace computed {
29
+ let canLeaveForm : import ( "vuex" ) . Computed ;
30
+ let canLeaveFormToPreviousPage : import ( "vuex" ) . Computed ;
31
+ }
32
+ }
33
+ export namespace PreventsModalAbandonment {
34
+ namespace methods {
35
+ function updateModalStatus ( ) : void ;
36
+ function handlePreventModalAbandonment ( proceed : Function , revert : Function ) : void ;
37
+ let allowLeavingModal : import ( "vuex" ) . MutationMethod ;
38
+ let preventLeavingModal : import ( "vuex" ) . MutationMethod ;
39
+ }
40
+ namespace computed {
41
+ let canLeaveModal : import ( "vuex" ) . Computed ;
42
+ }
43
+ }
44
+ export namespace DependentFormField {
45
+ export function data ( ) : {
46
+ dependentFieldDebouncer : any ;
47
+ canceller : any ;
48
+ watchedFields : { } ;
49
+ watchedEvents : { } ;
50
+ syncedField : any ;
51
+ pivot : boolean ;
52
+ editMode : string ;
53
+ } ;
54
+ export namespace methods {
55
+ function setInitialValue ( ) : void ;
56
+ function fillIfVisible ( formData : FormData , attribute : string , value : any ) : void ;
57
+ function syncField ( ) : void ;
58
+ function onSyncedField ( ) : void ;
59
+ function emitOnSyncedFieldValueChange ( ) : void ;
60
+ function syncedFieldValueHasNotChanged ( ) : boolean ;
61
+ }
62
+ export namespace computed {
63
+ function currentField ( ) : object ;
64
+ function currentlyIsVisible ( ) : boolean ;
65
+ function currentlyIsReadonly ( ) : boolean ;
66
+ function dependsOn ( ) : string [ ] ;
67
+ function currentFieldValues ( ) : {
68
+ [ key : string ] : any ;
69
+ } ;
70
+ function dependentFieldValues ( ) : {
71
+ [ key : string ] : any ;
72
+ } ;
73
+ function encodedDependentFieldValues ( ) : string ;
74
+ function syncFieldEndpoint ( ) : string ;
75
+ }
76
+ }
77
+ export namespace HandlesFormRequest {
78
+ function data ( ) : {
79
+ validationErrors : Errors ;
80
+ } ;
81
+ namespace methods {
82
+ function handleResponseError ( error : AxiosResponse ) : void ;
83
+ function handleOnCreateResponseError ( error : AxiosResponse ) : void ;
84
+ function handleOnUpdateResponseError ( error : AxiosResponse ) : void ;
85
+ function resetErrors ( ) : void ;
86
+ }
87
+ }
88
+ export namespace HandlesUploads {
89
+ function data ( ) : {
90
+ isWorking : boolean ;
91
+ fileUploadsCount : number ;
92
+ } ;
93
+ namespace methods {
94
+ function handleFileUploadFinished ( ) : void ;
95
+ function handleFileUploadStarted ( ) : void ;
96
+ }
97
+ }
98
+ export namespace Localization {
99
+ namespace methods {
100
+ function __ ( key : string , replace : {
101
+ [ key : string ] : value ;
102
+ } ) : string ;
103
+ }
104
+ }
105
+ export namespace MetricBehavior {
106
+ namespace methods {
107
+ function fetch ( ) : void ;
108
+ function handleFetchCallback ( ) : ( ) => void ;
109
+ }
110
+ namespace computed {
111
+ function metricEndpoint ( ) : string ;
112
+ function metricPayload ( ) : {
113
+ [ key : string ] : value ;
114
+ } ;
115
+ }
116
+ }
11
117
export namespace FieldValue {
12
118
namespace methods {
13
119
function isEqualsToValue ( value : any ) : boolean ;
@@ -114,9 +220,8 @@ declare module 'laravel-nova' {
114
220
function copyValueToClipboard ( value : string ) : void ;
115
221
}
116
222
}
117
- export class Errors extends FormErrors { }
118
223
119
224
export function mapProps ( attributes : Array < string > ) : { [ key : string ] : any } ;
120
225
export function useLocalization ( ) : { __ : ( key : string , replace : { [ key : string ] :string } ) => string } ;
121
226
export function usesCopyValueToClipboard ( ) : { copyValueToClipboard : ( value : string ) => void } ;
122
- }
227
+ }
0 commit comments