Skip to content

Commit

Permalink
Update to LitElement v3.0.0-pre.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd committed Dec 24, 2020
1 parent b087ffb commit ae655a3
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Note: If you need to add static files to the build, like the `images` folder or

```typescript
import { html } from 'lit-element';
import { customElement } from 'lit-element/lib/decorators';
import { customElement } from 'lit-element/decorators';

import { PageElement } from '../helpers/page-element';

Expand Down
20 changes: 13 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@vaadin/router": "^1.7.2",
"lit-element": "^3.0.0-pre.1",
"lit-element": "^3.0.0-pre.2",
"pwa-helper-components": "~0.2.10",
"tslib": "^2.0.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/app-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { LitElement, html, css } from 'lit-element';
import { customElement, query } from 'lit-element/lib/decorators';
import { customElement, query } from 'lit-element/decorators';

import config from '../config';
import { attachRouter, urlForName } from '../router';
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/page-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { LitElement } from 'lit-element';
import { internalProperty } from 'lit-element/lib/decorators';
import { state } from 'lit-element/decorators';
import type { PropertyValues } from 'lit-element';
import type { Route, RouterLocation } from '@vaadin/router';

Expand All @@ -23,7 +23,7 @@ declare module '@vaadin/router/dist/vaadin-router' {
}

export class PageElement extends LitElement {
@internalProperty()
@state()
protected location = {} as RouterLocation;

private defaultTitleTemplate = `%s | ${config.appName}`;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/page-about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { html, css } from 'lit-element';
import { customElement } from 'lit-element/lib/decorators';
import { customElement } from 'lit-element/decorators';

import { PageElement } from '../helpers/page-element';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/page-home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { html, css } from 'lit-element';
import { customElement } from 'lit-element/lib/decorators';
import { customElement } from 'lit-element/decorators';

import { PageElement } from '../helpers/page-element';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/page-not-found.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { html, css } from 'lit-element';
import { customElement } from 'lit-element/lib/decorators';
import { customElement } from 'lit-element/decorators';

import { urlForName } from '../router';

Expand Down

0 comments on commit ae655a3

Please sign in to comment.