ngx-t-forms-types 0.0.1 → 0.0.2
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.
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { FormColumnInputs } from '../formInput/BasicFormInputInterface';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FormListSection, FormStateErrors, IFormsInitStateInterface, LocalFormStateSelectorInterface } from '../Form/IFormsInitStateInterface';
|
|
5
|
+
import { DatabaseFormInterface } from '../Form/formInterface';
|
|
6
|
+
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
7
|
+
export interface ITowerStepColumn extends FormColumnInputs {
|
|
8
|
+
inputConfigErrors: {
|
|
9
|
+
key: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
3
13
|
export interface ITowerFormSteps {
|
|
4
14
|
label: string;
|
|
5
15
|
sectionId: string;
|
|
@@ -9,6 +19,28 @@ export interface ITowerFormSteps {
|
|
|
9
19
|
sectionFormErrorMessage: string;
|
|
10
20
|
activeSectionHasTour: boolean;
|
|
11
21
|
tourOptions: (string | undefined)[];
|
|
12
|
-
columns:
|
|
22
|
+
columns: ITowerStepColumn[];
|
|
13
23
|
isActive: boolean | undefined;
|
|
14
24
|
}
|
|
25
|
+
export interface FormsStoreSelectorsInterface {
|
|
26
|
+
state$: Observable<IFormsInitStateInterface>;
|
|
27
|
+
selectForms$: Observable<LocalFormStateSelectorInterface[]>;
|
|
28
|
+
selectFormInEdit$: Observable<DatabaseFormInterface | null>;
|
|
29
|
+
selectFormBuilderIsBusy$: Observable<boolean>;
|
|
30
|
+
selectLoadingForm$: Observable<boolean>;
|
|
31
|
+
selectLoadingForms$: Observable<boolean>;
|
|
32
|
+
selectFormId$: Observable<string | null>;
|
|
33
|
+
selectErrors$: Observable<{
|
|
34
|
+
[FormStateErrors.ArchiveForm]: string | undefined;
|
|
35
|
+
[FormStateErrors.CreateForm]: string | undefined;
|
|
36
|
+
[FormStateErrors.UpdateForm]: string | undefined;
|
|
37
|
+
[FormStateErrors.GetForm]: string | undefined;
|
|
38
|
+
[FormStateErrors.LoadForms]: string | undefined;
|
|
39
|
+
} | null>;
|
|
40
|
+
selectFormListSection$: Observable<FormListSection>;
|
|
41
|
+
selectFormUpdated$: Observable<string | Date | null>;
|
|
42
|
+
selectRouterState$: Observable<ActivatedRouteSnapshot | null>;
|
|
43
|
+
selectSubmittingForm$: Observable<boolean>;
|
|
44
|
+
selectFormInitialValues$: Observable<Record<string, any> | null>;
|
|
45
|
+
selectInputInEditId$: Observable<string | null>;
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { FormStateErrors } from '../Form/IFormsInitStateInterface';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ITowerFormSteps } from "./ITowerFormSteps";
|
|
2
|
-
export { ITowerFormSteps };
|
|
1
|
+
import { FormsStoreSelectorsInterface, ITowerFormSteps } from "./ITowerFormSteps";
|
|
2
|
+
export { ITowerFormSteps, FormsStoreSelectorsInterface };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-t-forms-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Typings and interfaces for the ngx-t-forms library for dynamic forms.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typings",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/mashegoTerrence/ngx-t-forms-typings/issues"
|
|
12
12
|
},
|
|
13
|
-
"publishConfig":{
|
|
13
|
+
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
@@ -55,7 +55,5 @@
|
|
|
55
55
|
"webpack": "^5.98.0",
|
|
56
56
|
"webpack-dev-server": "^5.2.0"
|
|
57
57
|
},
|
|
58
|
-
"dependencies": {
|
|
59
|
-
|
|
60
|
-
}
|
|
58
|
+
"dependencies": {}
|
|
61
59
|
}
|