@firestitch/form 18.0.8 → 18.0.10
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/app/components/confirm-unsaved/confirm-unsaved.component.d.ts +1 -1
- package/app/directives/button.directive.d.ts +9 -14
- package/app/directives/form/form.directive.d.ts +12 -22
- package/app/directives/form-base/form-base.directive.d.ts +32 -0
- package/app/directives/form-base/index.d.ts +1 -0
- package/app/directives/form-group/form-group.directive.d.ts +12 -0
- package/app/directives/form-group/index.d.ts +1 -0
- package/app/directives/index.d.ts +3 -2
- package/app/fs-form.module.d.ts +2 -2
- package/app/interfaces/submit-event.d.ts +2 -2
- package/app/interfaces/submitted-event.d.ts +2 -5
- package/app/services/fsform.service.d.ts +3 -8
- package/esm2022/app/components/confirm-unsaved/confirm-unsaved.component.mjs +11 -6
- package/esm2022/app/components/form-dialog-actions/form-dialog-actions.component.mjs +1 -1
- package/esm2022/app/components/form-template/form-template.component.mjs +1 -1
- package/esm2022/app/components/form-template/index.mjs +1 -1
- package/esm2022/app/components/form-template-outlet/form-template-outlet.component.mjs +1 -1
- package/esm2022/app/components/form-template-outlet/index.mjs +1 -1
- package/esm2022/app/directives/button.directive.mjs +24 -52
- package/esm2022/app/directives/form/form.directive.mjs +94 -160
- package/esm2022/app/directives/form-base/form-base.directive.mjs +104 -0
- package/esm2022/app/directives/form-base/index.mjs +2 -0
- package/esm2022/app/directives/form-group/form-group.directive.mjs +32 -0
- package/esm2022/app/directives/form-group/index.mjs +2 -0
- package/esm2022/app/directives/index.mjs +4 -3
- package/esm2022/app/fs-form.module.mjs +8 -5
- package/esm2022/app/guards/form-deactivate.guard.mjs +2 -2
- package/esm2022/app/interfaces/submit-event.mjs +1 -1
- package/esm2022/app/interfaces/submitted-event.mjs +1 -1
- package/esm2022/app/services/fsform.service.mjs +12 -30
- package/esm2022/public_api.mjs +2 -1
- package/fesm2022/firestitch-form.mjs +301 -281
- package/fesm2022/firestitch-form.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/styles.scss +36 -32
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { FsForm } from './app/services/fsform.service';
|
|
|
3
3
|
export { FsFormGreaterDirective, FsFormGreaterEqualDirective, FsFormLesserEqualDirective, FsFormTemplateDirective } from './app/directives';
|
|
4
4
|
export { FsButtonDirective } from './app/directives/button.directive';
|
|
5
5
|
export { FsFormDialogCloseDirective } from './app/directives/form-dialog-close.directive';
|
|
6
|
+
export { FsFormGroupDirective } from './app/directives/form-group/form-group.directive';
|
|
6
7
|
export { FsFormDirective } from './app/directives/form/form.directive';
|
|
7
8
|
export { FsSubmitButtonDirective } from './app/directives/submit-button.directive';
|
|
8
9
|
export { FsFormCompareDirective } from './app/directives/validators/compare.directive';
|
package/styles.scss
CHANGED
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
but should not do that for simple matInputs, cuz since Material 18 its already added
|
|
7
7
|
by mat-form-field, this is why first selector is such complicated
|
|
8
8
|
*/
|
|
9
|
-
mat-label:not(:has(+ .mat-mdc-form-field-required-marker)),
|
|
9
|
+
mat-label:not(:has(+ .mat-mdc-form-field-required-marker)),
|
|
10
|
+
.fs-form-label {
|
|
10
11
|
&.fs-form-label-required:after {
|
|
11
|
-
content: "
|
|
12
|
-
|
|
12
|
+
content: "*";
|
|
13
|
+
margin-left: 1px;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
16
|
+
|
|
17
|
+
mat-label {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
}
|
|
15
20
|
|
|
16
21
|
.fs-form-wrapper.ng-invalid.ng-dirty .fs-form-label,
|
|
17
22
|
.ng-invalid.ng-dirty:not(form) .fs-form-label {
|
|
@@ -29,39 +34,36 @@
|
|
|
29
34
|
.mat-placeholder-required {
|
|
30
35
|
display: none;
|
|
31
36
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.mdc-button {
|
|
55
|
-
svg.svg-icon-process {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fs-form-submit-button-success,
|
|
40
|
+
.fs-form-submit-button-error,
|
|
41
|
+
.fs-form-submit-button-process {
|
|
42
|
+
transition: none;
|
|
43
|
+
cursor: wait;
|
|
44
|
+
color: transparent !important;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
|
|
47
|
+
svg {
|
|
48
|
+
height: 22px;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
width: 22px;
|
|
51
|
+
text-align: center;
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 50%;
|
|
54
|
+
left: 50%;
|
|
55
|
+
transform: translate(-50%, -50%);
|
|
56
|
+
animation: fadein 1s;
|
|
57
|
+
|
|
58
|
+
&.svg-icon-process {
|
|
56
59
|
stroke: #a3a3a3;
|
|
57
60
|
}
|
|
58
|
-
|
|
59
|
-
svg
|
|
60
|
-
svg
|
|
61
|
+
|
|
62
|
+
&.svg-icon-error path,
|
|
63
|
+
&.svg-icon-success path {
|
|
61
64
|
fill: #a3a3a3;
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
|
-
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
@keyframes fadein {
|
|
@@ -85,7 +87,9 @@
|
|
|
85
87
|
color: map-get($foreground, secondary-text);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
|
-
.fs-form
|
|
90
|
+
.fs-form-submit-button-success,
|
|
91
|
+
.fs-form-submit-button-error,
|
|
92
|
+
.fs-form-submit-button-process {
|
|
89
93
|
&.mdc-button,
|
|
90
94
|
&.mdc-button--raised:not([color='primary']),
|
|
91
95
|
&.mdc-button--unelevated:not([color='primary']) {
|