@@ -9,6 +9,9 @@ ng_module(
99 module_name = "@angular/material/form-field" ,
1010 assets = [
1111 ":form_field_css" ,
12+ ":form_field_box_css" ,
13+ ":form_field_legacy_css" ,
14+ ":form_field_standard_css" ,
1215 "//src/lib/input:input_css"
1316 ],
1417 deps = [
@@ -19,14 +22,31 @@ ng_module(
1922 tsconfig = ":tsconfig-build.json" ,
2023)
2124
22-
2325sass_binary (
2426 name = "form_field_scss" ,
2527 src = "form-field.scss" ,
2628 deps = ["//src/lib/core:core_scss_lib" ],
2729)
2830
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.
3050# Copy the output of the sass_binary such that the filename and path match what we expect.
3151genrule (
3252 name = "form_field_css" ,
@@ -35,3 +55,23 @@ genrule(
3555 cmd = "cat $(locations :form_field_scss) > $@" ,
3656)
3757
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