Skip to content

Commit ab35759

Browse files
committed
Ran modulizer to update the element and bumped version to 3.0.0
1 parent e2fd722 commit ab35759

File tree

11 files changed

+336
-290
lines changed

11 files changed

+336
-290
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
bower_components
1+
bower_components
2+
node_modules

.travis.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ addons:
77
firefox: latest
88
apt:
99
sources:
10-
- google-chrome
10+
- google-chrome
1111
packages:
12-
- google-chrome-stable
12+
- google-chrome-stable
1313
before_script:
14-
- npm install -g bower polylint web-component-tester
15-
- bower install
16-
- polylint
14+
- npm install -g polylint web-component-tester
15+
- polylint
1716
script:
18-
- xvfb-run wct --skip-plugin sauce
19-
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --plugin sauce --skip-plugin
20-
local; fi
17+
- xvfb-run wct --module-resolution=node --npm --skip-plugin sauce
18+
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --module-resolution=node --npm --plugin sauce --skip-plugin local; fi'
19+

demo/index.html

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,47 @@
44
<title>pmp-simple-date-input demo</title>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
7-
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
7+
<script src="../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
88

9-
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
10-
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
9+
<script type="module" src="../../../@polymer/iron-demo-helpers/demo-pages-shared-styles.js"></script>
10+
<script type="module" src="../../../@polymer/iron-demo-helpers/demo-snippet.js"></script>
1111

12-
<link rel="import" href="../pmp-simple-date-input.html">
12+
<script type="module" src="../pmp-simple-date-input.js"></script>
1313

14-
<style is="custom-style" include="demo-pages-shared-styles">
15-
</style>
14+
<!-- FIXME(polymer-modulizer):
15+
These imperative modules that innerHTML your HTML are
16+
a hacky way to be sure that any mixins in included style
17+
modules are ready before any elements that reference them are
18+
instantiated, otherwise the CSS @apply mixin polyfill won't be
19+
able to expand the underlying CSS custom properties.
20+
See: https://github.com/Polymer/polymer-modulizer/issues/154
21+
-->
22+
<script type="module">
23+
const $_documentContainer = document.createElement('template');
24+
25+
$_documentContainer.innerHTML = `<style is="custom-style" include="demo-pages-shared-styles">
26+
</style>`;
27+
28+
document.head.appendChild($_documentContainer.content);
29+
</script>
1630
</head>
1731
<body>
1832

19-
<div class="vertical-section-container centered">
33+
<script type="module">
34+
const $_documentContainer = document.createElement('template');
35+
36+
$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
2037
<h3>Basic pmp-simple-date-input Demo</h3>
2138
<demo-snippet>
2239
<template>
2340
24-
<pmp-simple-date-input auto-validate required></pmp-simple-date-input>
41+
<pmp-simple-date-input auto-validate="" required=""></pmp-simple-date-input>
2542
</template>
2643
</demo-snippet>
27-
</div>
44+
</div>`;
45+
46+
document.body.appendChild($_documentContainer.content);
47+
</script>
2848

2949
</body>
3050
</html>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<title>pmp-simple-date-input</title>
77
<meta charset="utf-8">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
10-
<link rel="import" href="../iron-component-page/iron-component-page.html">
9+
<script src="../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
10+
<script type="module" src="../../@polymer/iron-component-page/iron-component-page.js"></script>
1111
</head>
1212

1313
<body>

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@katapult/pmp-simple-date-input",
3+
"version": "3.0.0",
4+
"resolutions": {
5+
"inherits": "2.0.3",
6+
"samsam": "1.1.3",
7+
"supports-color": "3.1.2",
8+
"type-detect": "1.0.0"
9+
},
10+
"main": "pmp-simple-date-input.js",
11+
"dependencies": {
12+
"@polymer/iron-form-element-behavior": "^3.0.0",
13+
"@polymer/iron-input": "^3.0.0",
14+
"@polymer/paper-input": "^3.0.0",
15+
"@polymer/polymer": "^3.0.0",
16+
"moment": "^2.25.3"
17+
},
18+
"devDependencies": {
19+
"@polymer/iron-component-page": "^4.0.0",
20+
"@polymer/iron-demo-helpers": "^3.0.0",
21+
"wct-browser-legacy": "^1.0.1",
22+
"@webcomponents/webcomponentsjs": "^2.0.0",
23+
"@polymer/test-fixture": "^4.0.0"
24+
}
25+
}

pmp-moment.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

pmp-moment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'moment/min/moment.min.js';

pmp-simple-date-input.html

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)