@@ -8,14 +8,112 @@ declare module 'laravel-nova' {
8
8
export namespace HandlesUploads { }
9
9
export namespace Localization { }
10
10
export namespace MetricBehavior { }
11
- export namespace FieldValue { }
12
- export namespace FormEvents { }
13
- export namespace FormField { }
14
- export namespace HandlesFieldAttachments { }
15
- export namespace HandlesValidationErrors { }
16
- export namespace HasCards { }
17
- export namespace HandlesPanelVisibility { }
18
- export namespace CopiesToClipboard { }
11
+ export namespace FieldValue {
12
+ namespace methods {
13
+ function isEqualsToValue ( value : any ) : boolean ;
14
+ }
15
+ namespace computed {
16
+ function fieldAttribute ( ) : string ;
17
+ function fieldHasValue ( ) : boolean ;
18
+ function usesCustomizedDisplay ( ) : boolean ;
19
+ function fieldValue ( ) : string | null ;
20
+ function shouldDisplayAsHtml ( ) : string | null ;
21
+ }
22
+ }
23
+ export namespace FormEvents {
24
+ namespace methods {
25
+ function emitFieldValue ( attribute : string , value : any ) : void ;
26
+ function emitFieldValueChange ( attribute : string , value : any ) : void ;
27
+ function getFieldAttributeValueEventName ( attribute : string ) : string ;
28
+ function getFieldAttributeChangeEventName ( attribute : string ) : string ;
29
+ }
30
+ namespace computed {
31
+ function fieldAttribute ( ) : string ;
32
+ function hasFormUniqueId ( ) : boolean ;
33
+ function fieldAttributeValueEventName ( ) : string ;
34
+ function fieldAttributeChangeEventName ( ) : string ;
35
+ }
36
+ }
37
+ export namespace FormField {
38
+ export { FormEvents as extends } ;
39
+ export function data ( ) : {
40
+ value : any ;
41
+ } ;
42
+ export namespace methods {
43
+ function setInitialValue ( ) : void ;
44
+ function fieldDefaultValue ( ) : string ;
45
+ function fill ( formData : FormData ) : void ;
46
+ function fillIfVisible ( formData : FormData , attribute : string , value : any ) : void ;
47
+ function handleChange ( event : Event ) : void ;
48
+ function beforeRemove ( ) : void ;
49
+ function listenToValueChanges ( value : any ) : void ;
50
+ }
51
+ export namespace computed {
52
+ function currentField ( ) : object ;
53
+ function fullWidthContent ( ) : boolean ;
54
+ function placeholder ( ) : string ;
55
+ function isVisible ( ) : boolean ;
56
+ function isReadonly ( ) : boolean ;
57
+ function isActionRequest ( ) : boolean ;
58
+ }
59
+ }
60
+ export namespace HandlesFieldAttachments {
61
+ function data ( ) : {
62
+ draftId : string ;
63
+ files : any [ ] ;
64
+ filesToRemove : any [ ] ;
65
+ } ;
66
+ namespace methods {
67
+ function uploadAttachment ( file : any , { onUploadProgress, onCompleted, onFailure } : {
68
+ onUploadProgress ?: Function ;
69
+ onCompleted ?: Function ;
70
+ onFailure ?: Function ;
71
+ } ) : void ;
72
+ function flagFileForRemoval ( url : string ) : void ;
73
+ function unflagFileForRemoval ( url : string ) : void ;
74
+ function clearAttachments ( ) : void ;
75
+ function clearFilesMarkedForRemoval ( ) : void ;
76
+ function fillAttachmentDraftId ( formData : FormData ) : void ;
77
+ }
78
+ }
79
+ export namespace HandlesValidationErrors {
80
+ namespace computed {
81
+ function errorClasses ( ) : string [ ] ;
82
+ function fieldAttribute ( ) : string ;
83
+ function validationKey ( ) : string ;
84
+ function hasError ( ) : boolean ;
85
+ function firstError ( ) : string ;
86
+ function nestedAttribute ( ) : string | null ;
87
+ function nestedValidationKey ( ) : string | null ;
88
+ }
89
+ }
90
+ export namespace HasCards {
91
+ namespace methods {
92
+ function fetchCards ( ) : Promise < void > ;
93
+ }
94
+ namespace computed {
95
+ function shouldShowCards ( ) : boolean ;
96
+ function hasDetailOnlyCards ( ) : boolean ;
97
+ function extraCardParams ( ) : null ;
98
+ }
99
+ }
100
+ export namespace HandlesPanelVisibility {
101
+ function data ( ) : {
102
+ visibleFieldsForPanel : { [ key : string ] : boolean } ;
103
+ } ;
104
+ namespace methods {
105
+ function handleFieldShown ( field : string ) : void ;
106
+ function handleFieldHidden ( field : string ) : void ;
107
+ }
108
+ namespace computed {
109
+ function visibleFieldsCount ( ) : number ;
110
+ }
111
+ }
112
+ export namespace CopiesToClipboard {
113
+ namespace methods {
114
+ function copyValueToClipboard ( value : string ) : void ;
115
+ }
116
+ }
19
117
export class Errors extends FormErrors { }
20
118
21
119
export function mapProps ( attributes : Array < string > ) : { [ key : string ] : any } ;
0 commit comments