From 0a823ddc52e52753293eceb6dc169b7faaa00f12 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 21 Aug 2018 05:41:08 +0200 Subject: [PATCH] fix(schematics): do not allow specifying native view encapsulation (#12632) No longer allows developers to specify the `--viewEncapsulation Native` when creating components through the Angular Material schematics. Since Angular Material does not work properly with Native / ShadowDom view encapsulation, we should not support these as valid schematic options. --- src/lib/schematics/address-form/schema.json | 2 +- src/lib/schematics/dashboard/schema.json | 2 +- src/lib/schematics/nav/schema.json | 2 +- src/lib/schematics/table/schema.json | 2 +- src/lib/schematics/tree/schema.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/schematics/address-form/schema.json b/src/lib/schematics/address-form/schema.json index 10b9d2edb3b..c0e9f3b2b32 100644 --- a/src/lib/schematics/address-form/schema.json +++ b/src/lib/schematics/address-form/schema.json @@ -39,7 +39,7 @@ }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], + "enum": ["Emulated", "None"], "type": "string", "alias": "v" }, diff --git a/src/lib/schematics/dashboard/schema.json b/src/lib/schematics/dashboard/schema.json index 2806d553632..28d3b0be9c0 100644 --- a/src/lib/schematics/dashboard/schema.json +++ b/src/lib/schematics/dashboard/schema.json @@ -39,7 +39,7 @@ }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], + "enum": ["Emulated", "None"], "type": "string", "alias": "v" }, diff --git a/src/lib/schematics/nav/schema.json b/src/lib/schematics/nav/schema.json index 2c73b0a35c5..db3c7423a11 100644 --- a/src/lib/schematics/nav/schema.json +++ b/src/lib/schematics/nav/schema.json @@ -39,7 +39,7 @@ }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], + "enum": ["Emulated", "None"], "type": "string", "alias": "v" }, diff --git a/src/lib/schematics/table/schema.json b/src/lib/schematics/table/schema.json index d12369c2916..ded294915e1 100644 --- a/src/lib/schematics/table/schema.json +++ b/src/lib/schematics/table/schema.json @@ -39,7 +39,7 @@ }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], + "enum": ["Emulated", "None"], "type": "string", "alias": "v" }, diff --git a/src/lib/schematics/tree/schema.json b/src/lib/schematics/tree/schema.json index 196de863380..a9e697b514c 100644 --- a/src/lib/schematics/tree/schema.json +++ b/src/lib/schematics/tree/schema.json @@ -39,7 +39,7 @@ }, "viewEncapsulation": { "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], + "enum": ["Emulated", "None"], "type": "string", "alias": "v" },