@@ -9,6 +9,9 @@ ng_module(
9
9
module_name = "@angular/material/form-field" ,
10
10
assets = [
11
11
":form_field_css" ,
12
+ ":form_field_box_css" ,
13
+ ":form_field_legacy_css" ,
14
+ ":form_field_standard_css" ,
12
15
"//src/lib/input:input_css"
13
16
],
14
17
deps = [
@@ -19,14 +22,31 @@ ng_module(
19
22
tsconfig = ":tsconfig-build.json" ,
20
23
)
21
24
22
-
23
25
sass_binary (
24
26
name = "form_field_scss" ,
25
27
src = "form-field.scss" ,
26
28
deps = ["//src/lib/core:core_scss_lib" ],
27
29
)
28
30
29
- # TODO(jelbourn): remove this when sass_binary supports specifying an output filename and dir.
31
+ sass_binary (
32
+ name = "form_field_box_scss" ,
33
+ src = "form-field-box.scss" ,
34
+ deps = ["//src/lib/core:core_scss_lib" ],
35
+ )
36
+
37
+ sass_binary (
38
+ name = "form_field_legacy_scss" ,
39
+ src = "form-field-legacy.scss" ,
40
+ deps = ["//src/lib/core:core_scss_lib" ],
41
+ )
42
+
43
+ sass_binary (
44
+ name = "form_field_standard_scss" ,
45
+ src = "form-field-standard.scss" ,
46
+ deps = ["//src/lib/core:core_scss_lib" ],
47
+ )
48
+
49
+ # TODO(jelbourn): remove these when sass_binary supports specifying an output filename and dir.
30
50
# Copy the output of the sass_binary such that the filename and path match what we expect.
31
51
genrule (
32
52
name = "form_field_css" ,
@@ -35,3 +55,23 @@ genrule(
35
55
cmd = "cat $(locations :form_field_scss) > $@" ,
36
56
)
37
57
58
+ genrule (
59
+ name = "form_field_box_css" ,
60
+ srcs = [":form_field_box_scss" ],
61
+ outs = ["form-field-box.css" ],
62
+ cmd = "cat $(locations :form_field_box_scss) > $@" ,
63
+ )
64
+
65
+ genrule (
66
+ name = "form_field_legacy_css" ,
67
+ srcs = [":form_field_legacy_scss" ],
68
+ outs = ["form-field-legacy.css" ],
69
+ cmd = "cat $(locations :form_field_legacy_scss) > $@" ,
70
+ )
71
+
72
+ genrule (
73
+ name = "form_field_standard_css" ,
74
+ srcs = [":form_field_standard_scss" ],
75
+ outs = ["form-field-standard.css" ],
76
+ cmd = "cat $(locations :form_field_standard_scss) > $@" ,
77
+ )
0 commit comments