@rxap/form-window-system 21.0.1-dev.1 → 22.0.0-dev.0
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/CHANGELOG.md +32 -0
- package/compodoc/changelog.html +30 -0
- package/compodoc/dependencies.html +11 -11
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +423 -469
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/CloseWindowAfterSubmitDirective.html +3 -3
- package/docs/html/classes/FormWindowFooterDirective.html +3 -3
- package/docs/html/classes/FormWindowRef.html +3 -3
- package/docs/html/classes/FormWindowService.html +2 -2
- package/docs/html/classes/OpenFormDirective.html +3 -3
- package/docs/html/classes/OpenFormWindowMethod.html +2 -2
- package/docs/html/classes/OpenFormWindowMethodDirective.html +4 -4
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/FormWindowFooterTemplateContext.html +2 -2
- package/docs/html/interfaces/FormWindowOptions.html +3 -4
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.html +1 -1
- package/docs/html/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/CloseWindowAfterSubmitDirective.md +4 -4
- package/docs/markdown/classes/FormWindowFooterDirective.md +4 -4
- package/docs/markdown/classes/FormWindowRef.md +8 -8
- package/docs/markdown/classes/FormWindowService.md +3 -3
- package/docs/markdown/classes/OpenFormDirective.md +20 -20
- package/docs/markdown/classes/OpenFormWindowMethod.md +3 -3
- package/docs/markdown/classes/OpenFormWindowMethodDirective.md +18 -18
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/FormWindowFooterTemplateContext.md +5 -5
- package/docs/markdown/interfaces/FormWindowOptions.md +31 -43
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.md +2 -2
- package/docs/markdown/variables/RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.md +2 -2
- package/docs/wiki/Class.CloseWindowAfterSubmitDirective.md +3 -3
- package/docs/wiki/Class.FormWindowFooterDirective.md +3 -3
- package/docs/wiki/Class.FormWindowRef.md +7 -7
- package/docs/wiki/Class.FormWindowService.md +2 -2
- package/docs/wiki/Class.OpenFormDirective.md +19 -19
- package/docs/wiki/Class.OpenFormWindowMethod.md +2 -2
- package/docs/wiki/Class.OpenFormWindowMethodDirective.md +17 -17
- package/docs/wiki/Interface.FormWindowFooterTemplateContext.md +4 -4
- package/docs/wiki/Interface.FormWindowOptions.md +30 -42
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS.md +1 -1
- package/docs/wiki/Variable.RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-form-window-system.mjs +701 -371
- package/fesm2022/rxap-form-window-system.mjs.map +1 -1
- package/package.json +40 -40
- package/types/rxap-form-window-system.d.ts +216 -140
|
@@ -1,157 +1,233 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import { InjectionToken, OnDestroy, OnInit, StaticProvider } from "@angular/core";
|
|
6
|
+
import { WindowConfig, WindowRef } from "@rxap/window-system";
|
|
7
|
+
import { FormDefinition, FormDirective, FormLoadMethod, FormSubmitMethod, FormSubmitSuccessfulMethod, FormType } from "@rxap/forms";
|
|
8
|
+
import { Constructor, IconConfig } from "@rxap/utilities";
|
|
9
|
+
import { CounterSubject } from "@rxap/rxjs";
|
|
10
|
+
import { Method } from "@rxap/pattern";
|
|
11
|
+
import { ConfirmClick } from "@rxap/directives";
|
|
12
|
+
export declare class CloseWindowAfterSubmitDirective implements OnInit, OnDestroy {
|
|
13
|
+
private readonly formSubmit;
|
|
14
|
+
private readonly windowRef;
|
|
15
|
+
private _subscription?;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CloseWindowAfterSubmitDirective, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CloseWindowAfterSubmitDirective, "[rxapFormSubmit][rxapCloseWindowAfterSubmit]", never, {}, {}, never, never, true, never>;
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
formDefinition: FormDefinition<Data>;
|
|
21
|
+
export interface FormWindowFooterTemplateContext<Data = any> {
|
|
22
|
+
$implicit: WindowRef;
|
|
23
|
+
formDirective: FormDirective<Data>;
|
|
24
|
+
formDefinition: FormDefinition<Data>;
|
|
24
25
|
}
|
|
25
|
-
declare class FormWindowFooterDirective<Data> implements OnInit {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
export declare class FormWindowFooterDirective<Data> implements OnInit {
|
|
27
|
+
private readonly formDirective;
|
|
28
|
+
private readonly windowRef;
|
|
29
|
+
private readonly template;
|
|
30
|
+
private readonly viewContainerRef;
|
|
31
|
+
/**
|
|
32
|
+
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
33
|
+
*
|
|
34
|
+
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
35
|
+
* `NgForOf` structural directive renders its template with a specific context type.
|
|
36
|
+
*/
|
|
37
|
+
static ngTemplateContextGuard<T>(dir: FormWindowFooterDirective<T>, ctx: any): ctx is FormWindowFooterTemplateContext<T>;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormWindowFooterDirective<any>, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormWindowFooterDirective<any>, "[rxapFormWindowFooter]", never, {}, {}, never, never, true, never>;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
42
|
/**
|
|
43
43
|
* @deprecated removed
|
|
44
44
|
*/
|
|
45
|
-
declare class FormWindowRef<Data = any> {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
export declare class FormWindowRef<Data = any> {
|
|
46
|
+
readonly formDefinition: FormDefinition;
|
|
47
|
+
readonly windowRef: WindowRef;
|
|
48
|
+
constructor(formDefinition: FormDefinition, windowRef: WindowRef);
|
|
49
|
+
submit(): void;
|
|
50
|
+
reset(): void;
|
|
51
|
+
close(result?: any): void;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
context?: any;
|
|
53
|
+
export interface FormWindowOptions<FormData, D = any, T = any> extends WindowConfig<D, T> {
|
|
54
|
+
initial?: Partial<FormData>;
|
|
55
|
+
submitMethod?: FormSubmitMethod<FormData>;
|
|
56
|
+
submitSuccessfulMethod?: FormSubmitSuccessfulMethod;
|
|
57
|
+
providers?: StaticProvider[];
|
|
58
|
+
resetLoad?: boolean;
|
|
59
|
+
resetSubmit?: boolean;
|
|
60
|
+
loadMethod?: FormLoadMethod<FormData>;
|
|
61
|
+
/**
|
|
62
|
+
* Stores the context of the form window.
|
|
63
|
+
* Can be used to transfer the id or uuid of the
|
|
64
|
+
* document the is currently edited
|
|
65
|
+
*/
|
|
66
|
+
context?: any;
|
|
68
67
|
}
|
|
69
|
-
declare class FormWindowService {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
export declare class FormWindowService {
|
|
69
|
+
private readonly windowService;
|
|
70
|
+
private readonly injector;
|
|
71
|
+
open<FormData>(formDefinitionConstructor: Constructor<FormType<any>>, options?: FormWindowOptions<FormData>): WindowRef<FormDefinition, FormData>;
|
|
72
|
+
private extractFormComponent;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormWindowService, never>;
|
|
74
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
76
75
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
76
|
+
export declare class OpenFormWindowMethodDirective<FormData extends Record<string, any> = Record<string, any>, Initial extends Partial<Record<string, any>> = Partial<Record<string, any>>> implements OnDestroy {
|
|
77
|
+
private readonly injector;
|
|
78
|
+
readonly method: import("@angular/core").InputSignal<Method<WindowRef<FormDefinition<any, any, any>, FormData>, Initial>>;
|
|
79
|
+
readonly initial: import("@angular/core").InputSignal<Initial | undefined>;
|
|
80
|
+
readonly failure$: import("@angular/core").OutputEmitterRef<Error>;
|
|
81
|
+
readonly completed$: import("@angular/core").OutputEmitterRef<void>;
|
|
82
|
+
readonly submitted$: import("@angular/core").OutputEmitterRef<FormData>;
|
|
83
|
+
/**
|
|
84
|
+
* true - a remote method call is in progress
|
|
85
|
+
*/
|
|
86
|
+
executing$: CounterSubject;
|
|
87
|
+
readonly providers: import("@angular/core").InputSignal<StaticProvider[] | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* Set of all active window ref instances.
|
|
90
|
+
*
|
|
91
|
+
* Used to distory all windows of the directive is
|
|
92
|
+
* destroyed
|
|
93
|
+
* @protected
|
|
94
|
+
*/
|
|
95
|
+
protected _windowRefInstance: Set<WindowRef<FormDefinition<any, any, any>, FormData>>;
|
|
96
|
+
readonly hasConfirmDirective: import("@angular/core").InputSignalWithTransform<boolean, any>;
|
|
97
|
+
ngOnDestroy(): void;
|
|
98
|
+
onConfirmed(): void;
|
|
99
|
+
onClick(): void;
|
|
100
|
+
execute(): void;
|
|
101
|
+
protected submitted(value: FormData): void;
|
|
102
|
+
protected failure(error: Error): void;
|
|
103
|
+
protected completed(): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenFormWindowMethodDirective<any, any>, never>;
|
|
105
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OpenFormWindowMethodDirective<any, any>, "[rxapOpenFormWindowMethod]", never, {
|
|
106
|
+
"method": {
|
|
107
|
+
"alias": "rxapOpenFormWindowMethod";
|
|
108
|
+
"required": true;
|
|
109
|
+
"isSignal": true;
|
|
110
|
+
};
|
|
111
|
+
"initial": {
|
|
112
|
+
"alias": "initial";
|
|
113
|
+
"required": false;
|
|
114
|
+
"isSignal": true;
|
|
115
|
+
};
|
|
116
|
+
"providers": {
|
|
117
|
+
"alias": "providers";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
121
|
+
"hasConfirmDirective": {
|
|
122
|
+
"alias": "rxapConfirm";
|
|
123
|
+
"required": false;
|
|
124
|
+
"isSignal": true;
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
"failure$": "failure";
|
|
128
|
+
"completed$": "completed";
|
|
129
|
+
"submitted$": "submitted";
|
|
130
|
+
}, never, never, true, never>;
|
|
108
131
|
}
|
|
109
|
-
|
|
110
|
-
declare const
|
|
111
|
-
declare const
|
|
112
|
-
declare
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<OpenFormWindowMethod<any>>;
|
|
132
|
+
export declare const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFINITION_CONSTRUCTOR: InjectionToken<unknown>;
|
|
133
|
+
export declare const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS: InjectionToken<unknown>;
|
|
134
|
+
export declare const RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_COMPONENT: InjectionToken<unknown>;
|
|
135
|
+
export declare class OpenFormWindowMethod<FormData extends Record<string, any> = Record<string, any>> implements Method<WindowRef<FormDefinition, FormData>, Partial<FormData>> {
|
|
136
|
+
private readonly formWindowService;
|
|
137
|
+
private readonly formDefinitionConstructor;
|
|
138
|
+
private readonly injector;
|
|
139
|
+
private readonly formComponent;
|
|
140
|
+
private readonly defaultOptions;
|
|
141
|
+
call(initial?: Partial<FormData>, options?: Partial<FormWindowOptions<FormData>>): WindowRef<FormDefinition, FormData>;
|
|
142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenFormWindowMethod<any>, never>;
|
|
143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
122
144
|
}
|
|
123
|
-
|
|
124
145
|
/**
|
|
125
146
|
* @deprecated
|
|
126
147
|
*/
|
|
127
|
-
declare const RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR: InjectionToken<unknown>;
|
|
148
|
+
export declare const RXAP_WINDOW_FORM_SYSTEM_OPEN_FORM_CONSTRUCTOR: InjectionToken<unknown>;
|
|
128
149
|
/**
|
|
129
150
|
* @deprecated
|
|
130
151
|
*/
|
|
131
|
-
declare class OpenFormDirective<Data, Result = Data> extends ConfirmClick implements OnDestroy {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
export declare class OpenFormDirective<Data, Result = Data> extends ConfirmClick implements OnDestroy {
|
|
153
|
+
private readonly formWindowService;
|
|
154
|
+
private readonly injector;
|
|
155
|
+
readonly type: import("@angular/core").InputSignal<string>;
|
|
156
|
+
readonly submitted: import("@angular/core").OutputEmitterRef<Result>;
|
|
157
|
+
readonly initial: import("@angular/core").InputSignal<Partial<Data> | undefined>;
|
|
158
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
159
|
+
readonly icon: import("@angular/core").InputSignal<IconConfig | undefined>;
|
|
160
|
+
readonly width: import("@angular/core").InputSignal<string | undefined>;
|
|
161
|
+
readonly height: import("@angular/core").InputSignal<string | undefined>;
|
|
162
|
+
readonly resizeable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
163
|
+
readonly draggable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
164
|
+
readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
|
|
165
|
+
private _formWindowRef?;
|
|
166
|
+
private readonly defaultFormDefinitionConstructor;
|
|
167
|
+
readonly formDefinitionConstructorInput: import("@angular/core").InputSignal<"" | Constructor<FormType<any>>>;
|
|
168
|
+
private readonly formDefinitionConstructor;
|
|
169
|
+
readonly onSubmit: import("@angular/core").InputSignal<(value: Data) => any | Promise<any>>;
|
|
170
|
+
onSubmitSuccessful(result: Result): void;
|
|
171
|
+
ngOnDestroy(): void;
|
|
172
|
+
protected execute(): void;
|
|
173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenFormDirective<any, any>, never>;
|
|
174
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OpenFormDirective<any, any>, "[rxapOpenForm]", never, {
|
|
175
|
+
"type": {
|
|
176
|
+
"alias": "type";
|
|
177
|
+
"required": false;
|
|
178
|
+
"isSignal": true;
|
|
179
|
+
};
|
|
180
|
+
"initial": {
|
|
181
|
+
"alias": "initial";
|
|
182
|
+
"required": false;
|
|
183
|
+
"isSignal": true;
|
|
184
|
+
};
|
|
185
|
+
"title": {
|
|
186
|
+
"alias": "title";
|
|
187
|
+
"required": false;
|
|
188
|
+
"isSignal": true;
|
|
189
|
+
};
|
|
190
|
+
"icon": {
|
|
191
|
+
"alias": "icon";
|
|
192
|
+
"required": false;
|
|
193
|
+
"isSignal": true;
|
|
194
|
+
};
|
|
195
|
+
"width": {
|
|
196
|
+
"alias": "width";
|
|
197
|
+
"required": false;
|
|
198
|
+
"isSignal": true;
|
|
199
|
+
};
|
|
200
|
+
"height": {
|
|
201
|
+
"alias": "height";
|
|
202
|
+
"required": false;
|
|
203
|
+
"isSignal": true;
|
|
204
|
+
};
|
|
205
|
+
"resizeable": {
|
|
206
|
+
"alias": "resizeable";
|
|
207
|
+
"required": false;
|
|
208
|
+
"isSignal": true;
|
|
209
|
+
};
|
|
210
|
+
"draggable": {
|
|
211
|
+
"alias": "draggable";
|
|
212
|
+
"required": false;
|
|
213
|
+
"isSignal": true;
|
|
214
|
+
};
|
|
215
|
+
"panelClass": {
|
|
216
|
+
"alias": "panelClass";
|
|
217
|
+
"required": false;
|
|
218
|
+
"isSignal": true;
|
|
219
|
+
};
|
|
220
|
+
"formDefinitionConstructorInput": {
|
|
221
|
+
"alias": "rxapOpenForm";
|
|
222
|
+
"required": false;
|
|
223
|
+
"isSignal": true;
|
|
224
|
+
};
|
|
225
|
+
"onSubmit": {
|
|
226
|
+
"alias": "onSubmit";
|
|
227
|
+
"required": false;
|
|
228
|
+
"isSignal": true;
|
|
229
|
+
};
|
|
230
|
+
}, {
|
|
231
|
+
"submitted": "submitted";
|
|
232
|
+
}, never, never, true, never>;
|
|
233
|
+
}
|