Skip to content

Commit

Permalink
Merge pull request #94 from explooosion/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
explooosion committed Jun 5, 2020
2 parents 7fc067c + 4c3dd17 commit 58942db
Show file tree
Hide file tree
Showing 48 changed files with 5,076 additions and 3,615 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,15 @@ npm install
```
```bash
npm run pack:build
npm run build
```
```bash
cd playground
npm run pack:lib
```
```bash
cd playground && npm install
```
```bash
Expand Down
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const FESM5_DIR = `${NPM_DIR}/fesm5`;
const BUNDLES_DIR = `${NPM_DIR}/bundles`;
const OUT_DIR = `${NPM_DIR}/package`;
const OUT_DIR_ESM5 = `${NPM_DIR}/package/esm5`;
const OUT_DIR_ESM5_ABS = `${__dirname}/${OUT_DIR_ESM5}`;

shell.echo(`Start building...`);

Expand Down Expand Up @@ -61,7 +62,7 @@ if (shell.exec(`rollup -c rollup.es.config.js -i ${NPM_DIR}/${PACKAGE}.js -o ${F
}

shell.echo(`Produce ESM5/FESM5 versions`);
shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5} --sourceMap`);
shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5_ABS} --sourceMap`);
shell.cp(`-Rf`, [`${OUT_DIR_ESM5}/src/`, `${OUT_DIR_ESM5}/*.js`, `${OUT_DIR_ESM5}/*.js.map`], `${ESM5_DIR}`);
if (shell.exec(`rollup -c rollup.es.config.js -i ${OUT_DIR_ESM5}/${PACKAGE}.js -o ${FESM5_DIR}/${PACKAGE}.js`).code !== 0) {
shell.echo(chalk.red(`Error: FESM5 version failed`));
Expand Down
14 changes: 8 additions & 6 deletions docs/classes/AppPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h3 id="methods">
<td class="col-md-4">

<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
<b>Returns : </b> <code>Promise&lt;string&gt;</code>

</div>
</td>
Expand Down Expand Up @@ -176,7 +176,7 @@ <h3 id="methods">
<td class="col-md-4">

<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
<b>Returns : </b> <code>Promise&lt;unknown&gt;</code>

</div>
</td>
Expand All @@ -196,12 +196,12 @@ <h3 id="methods">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { browser, by, element } from &#x27;protractor&#x27;;

export class AppPage {
navigateTo() {
return browser.get(browser.baseUrl) as Promise&lt;any&gt;;
navigateTo(): Promise&lt;unknown&gt; {
return browser.get(browser.baseUrl) as Promise&lt;unknown&gt;;
}

getTitleText() {
return element(by.css(&#x27;app-root h1&#x27;)).getText() as Promise&lt;string&gt;;
getTitleText(): Promise&lt;string&gt; {
return element(by.css(&#x27;app-root .content span&#x27;)).getText() as Promise&lt;string&gt;;
}
}
</code></pre>
Expand All @@ -210,6 +210,7 @@ <h3 id="methods">







Expand All @@ -232,6 +233,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'class';
var COMPODOC_CURRENT_PAGE_URL = 'AppPage.html';
var MAX_SEARCH_RESULTS = 15;
</script>

<script src="../js/libs/custom-elements.min.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions docs/components/AppComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ <h3 id="inputs">







Expand All @@ -513,6 +514,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'AppComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>

<script src="../js/libs/custom-elements.min.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions docs/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@






<ol class="breadcrumb">
Expand Down Expand Up @@ -186,6 +187,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'coverage';
var COMPODOC_CURRENT_PAGE_URL = 'coverage.html';
var MAX_SEARCH_RESULTS = 15;
</script>

<script src="./js/libs/custom-elements.min.js"></script>
Expand Down
14 changes: 12 additions & 2 deletions docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,30 @@



<ol class="breadcrumb">
<li>Dependencies</li>
</ol>
<ul class="dependencies-list">
<li>
<b>tslib</b> : ^1.10.0</li>
</ul>


<br/>
<ol class="breadcrumb">
<li>Peer dependencies</li>
</ol>
<ul class="dependencies-list">
<li>
<b>@agm/core</b> : ^1.0.0-beta.2</li>
<li>
<b>@angular/common</b> : &gt;&#x3D; 8.0.0</li>
<b>@angular/common</b> : ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0</li>
<li>
<b>@angular/core</b> : &gt;&#x3D; 8.0.0</li>
<b>@angular/core</b> : ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0</li>
<li>
<b>rxjs</b> : &gt;&#x3D; 6.4.0</li>
</ul>




Expand All @@ -80,6 +89,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'package-dependencies';
var COMPODOC_CURRENT_PAGE_URL = 'dependencies.html';
var MAX_SEARCH_RESULTS = 15;
</script>

<script src="./js/libs/custom-elements.min.js"></script>
Expand Down
27 changes: 16 additions & 11 deletions docs/directives/AgmDirection.html
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="319"
class="link-to-prism">src/directive/agm-direction.directive.ts:319</a></div>
<div class="io-line">Defined in <a href="" data-line="322"
class="link-to-prism">src/directive/agm-direction.directive.ts:322</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1087,8 +1087,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="308"
class="link-to-prism">src/directive/agm-direction.directive.ts:308</a></div>
<div class="io-line">Defined in <a href="" data-line="311"
class="link-to-prism">src/directive/agm-direction.directive.ts:311</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1130,8 +1130,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="291"
class="link-to-prism">src/directive/agm-direction.directive.ts:291</a></div>
<div class="io-line">Defined in <a href="" data-line="294"
class="link-to-prism">src/directive/agm-direction.directive.ts:294</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1757,11 +1757,14 @@ <h3 id="inputs">
this.sendInfoWindow.emit(this.infoWindow);
}
marker &#x3D; new google.maps.Marker(markerOpts);
marker.addListener(&#x27;click&#x27;, () &#x3D;&gt; {
const infowindoContent: string &#x3D; typeof markerOpts.infoWindow &#x3D;&#x3D;&#x3D; &#x27;undefined&#x27; ? content : markerOpts.infoWindow;
this.infoWindow.setContent(infowindoContent);
this.infoWindow.open(map, marker);
});
// https://developers.google.com/maps/documentation/javascript/reference/marker?hl&#x3D;zh-tw#MarkerOptions.clickable
if (marker.clickable) {
marker.addListener(&#x27;click&#x27;, () &#x3D;&gt; {
const infowindoContent: string &#x3D; typeof markerOpts.infoWindow &#x3D;&#x3D;&#x3D; &#x27;undefined&#x27; ? content : markerOpts.infoWindow;
this.infoWindow.setContent(infowindoContent);
this.infoWindow.open(map, marker);
});
}
return marker;
}

Expand Down Expand Up @@ -1835,6 +1838,7 @@ <h3 id="inputs">







Expand All @@ -1857,6 +1861,7 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'directive';
var COMPODOC_CURRENT_PAGE_URL = 'AgmDirection.html';
var MAX_SEARCH_RESULTS = 15;
</script>

<script src="../js/libs/custom-elements.min.js"></script>
Expand Down
Binary file added docs/fonts/roboto-v15-latin-italic.eot
Binary file not shown.
Loading

0 comments on commit 58942db

Please sign in to comment.