mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: create material-examples package (#4046)
This commit is contained in:
committed by
Jeremy Elbourn
parent
3545df7c4f
commit
abd2ac6489
@@ -39,7 +39,7 @@ OPTS=(
|
||||
|
||||
# List of path prefixes to be removed from ES6 & CommonJS modules.
|
||||
"--js_module_root=dist/packages"
|
||||
"--js_module_root=dist/release"
|
||||
"--js_module_root=dist/releases/material"
|
||||
"--js_module_root=node_modules/@angular/core"
|
||||
"--js_module_root=node_modules/@angular/common"
|
||||
"--js_module_root=node_modules/@angular/compiler"
|
||||
@@ -57,7 +57,7 @@ OPTS=(
|
||||
"--debug"
|
||||
|
||||
# Include the Material FESM bundle
|
||||
dist/release/@angular/material.js
|
||||
dist/releases/material/@angular/material.js
|
||||
|
||||
# Include all Angular FESM bundles.
|
||||
node_modules/@angular/core/@angular/core.js
|
||||
|
||||
@@ -8,7 +8,7 @@ set -e -o pipefail
|
||||
# Go to the project root directory
|
||||
cd $(dirname $0)/../..
|
||||
|
||||
buildDir="dist/release"
|
||||
buildDir="dist/releases/material"
|
||||
buildVersion=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
|
||||
|
||||
commitSha=$(git rev-parse --short HEAD)
|
||||
|
||||
@@ -103,7 +103,7 @@ export class OverlayRef implements PortalHost {
|
||||
}
|
||||
}
|
||||
|
||||
/** Updates the text direction of the overlay panel. **/
|
||||
/** Updates the text direction of the overlay panel. */
|
||||
private updateDirection() {
|
||||
this._pane.setAttribute('dir', this._state.direction);
|
||||
}
|
||||
|
||||
@@ -13,19 +13,19 @@ export class OverlayState {
|
||||
/** Whether the overlay has a backdrop. */
|
||||
hasBackdrop: boolean = false;
|
||||
|
||||
/** Custom class to add to the backdrop **/
|
||||
/** Custom class to add to the backdrop */
|
||||
backdropClass: string = 'cdk-overlay-dark-backdrop';
|
||||
|
||||
/** The width of the overlay panel. If a number is provided, pixel units are assumed. **/
|
||||
/** The width of the overlay panel. If a number is provided, pixel units are assumed. */
|
||||
width: number | string;
|
||||
|
||||
/** The height of the overlay panel. If a number is provided, pixel units are assumed. **/
|
||||
/** The height of the overlay panel. If a number is provided, pixel units are assumed. */
|
||||
height: number | string;
|
||||
|
||||
/** The min-width of the overlay panel. If a number is provided, pixel units are assumed. **/
|
||||
/** The min-width of the overlay panel. If a number is provided, pixel units are assumed. */
|
||||
minWidth: number | string;
|
||||
|
||||
/** The min-height of the overlay panel. If a number is provided, pixel units are assumed. **/
|
||||
/** The min-height of the overlay panel. If a number is provided, pixel units are assumed. */
|
||||
minHeight: number | string;
|
||||
|
||||
/** The direction of the text in the overlay panel. */
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {FormControl} from '@angular/forms';
|
||||
|
||||
import 'rxjs/add/operator/startWith';
|
||||
import 'rxjs/add/operator/map';
|
||||
|
||||
@Component({
|
||||
selector: 'autocomplete-overview-example',
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@angular/material-examples",
|
||||
"version": "2.0.0-beta.3",
|
||||
"description": "Angular Material Examples",
|
||||
"main": "./bundles/material-examples.umd.js",
|
||||
"module": "./@angular/material-examples.es5.js",
|
||||
"es2015": "./@angular/material-examples.js",
|
||||
"typings": "./material-examples.d.ts",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/angular/material2.git"
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
"material",
|
||||
"material design",
|
||||
"components"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/angular/material2/issues"
|
||||
},
|
||||
"homepage": "https://github.com/angular/material2#readme",
|
||||
"peerDependencies": {
|
||||
"@angular/core": "^4.0.0",
|
||||
"@angular/common": "^4.0.0",
|
||||
"@angular/http": "^4.0.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './example-data';
|
||||
export * from './example-module';
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user