@firestitch/form 18.0.7 → 18.0.8
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/esm2022/app/components/confirm-unsaved/confirm-unsaved.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/form/form.directive.mjs +2 -2
- package/fesm2022/firestitch-form.mjs +2 -2
- package/fesm2022/firestitch-form.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.scss +12 -0
package/package.json
CHANGED
package/styles.scss
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
.fs-form {
|
|
4
|
+
/*
|
|
5
|
+
We should add '*' for mat-labels for components such as fs-autocomplete-chips,
|
|
6
|
+
but should not do that for simple matInputs, cuz since Material 18 its already added
|
|
7
|
+
by mat-form-field, this is why first selector is such complicated
|
|
8
|
+
*/
|
|
9
|
+
mat-label:not(:has(+ .mat-mdc-form-field-required-marker)), .fs-form-label {
|
|
10
|
+
&.fs-form-label-required:after {
|
|
11
|
+
content: " *";
|
|
12
|
+
white-space: pre-wrap;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
4
16
|
.fs-form-wrapper.ng-invalid.ng-dirty .fs-form-label,
|
|
5
17
|
.ng-invalid.ng-dirty:not(form) .fs-form-label {
|
|
6
18
|
color: #f44336;
|