Skip to content

Commit

Permalink
Updated Lit to 2.2.7 (#1376)
Browse files Browse the repository at this point in the history
* Chore: Updated Lit to 2.2.7

* Fix: Added package-lock

* Fix: Updated package-lock
  • Loading branch information
pascalwilbrink authored Dec 12, 2023
1 parent cebcd37 commit a3f2f5c
Show file tree
Hide file tree
Showing 8 changed files with 23,641 additions and 56,120 deletions.
47,260 changes: 23,630 additions & 23,630 deletions package-lock.json

Large diffs are not rendered by default.

32,472 changes: 0 additions & 32,472 deletions packages/open-scd/package-lock.json

This file was deleted.

3 changes: 1 addition & 2 deletions packages/open-scd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"@material/mwc-textfield": "0.22.1",
"@material/mwc-top-app-bar-fixed": "0.22.1",
"ace-custom-element": "^1.6.5",
"lit-element": "2.5.1",
"lit-html": "1.4.1",
"lit": "^2.2.7",
"lit-translate": "^1.2.1",
"marked": "^4.0.10",
"panzoom": "^9.4.2"
Expand Down
10 changes: 2 additions & 8 deletions packages/open-scd/src/Historing.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
html,
internalProperty,
property,
query,
TemplateResult,
} from 'lit-element';
import { html, state, property, query, TemplateResult } from 'lit-element';
import { ifDefined } from 'lit-html/directives/if-defined';
import { get, translate } from 'lit-translate';

Expand Down Expand Up @@ -85,7 +79,7 @@ export function Historing<TBase extends LitElementConstructor>(Base: TBase) {
editCount = -1;
@property()
diagnoses = new Map<string, IssueDetail[]>();
@internalProperty()
@state()
latestIssue!: IssueDetail;

@query('#log') logUI!: Dialog;
Expand Down
4 changes: 2 additions & 2 deletions packages/open-scd/src/Wizarding.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html, internalProperty, TemplateResult, query } from 'lit-element';
import { html, state, TemplateResult, query } from 'lit-element';
import {
ifImplemented,
LitElementConstructor,
Expand All @@ -17,7 +17,7 @@ export type WizardingElement = Mixin<typeof Wizarding>;
export function Wizarding<TBase extends LitElementConstructor>(Base: TBase) {
class WizardingElement extends Base {
/** FIFO queue of [[`Wizard`]]s to display. */
@internalProperty()
@state()
workflow: WizardFactory[] = [];

@query('wizard-dialog') wizardUI!: WizardDialog;
Expand Down
4 changes: 2 additions & 2 deletions packages/open-scd/src/wizard-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
queryAll,
LitElement,
property,
internalProperty,
state,
TemplateResult,
html,
query,
Expand Down Expand Up @@ -145,7 +145,7 @@ export class WizardDialog extends LitElement {
@property({ type: Array })
wizard: Wizard = [];
/** Index of the currently active [[`WizardPage`]] */
@internalProperty()
@state()
pageIndex = 0;

@queryAll('mwc-dialog') dialogs!: NodeListOf<Dialog>;
Expand Down
4 changes: 2 additions & 2 deletions packages/open-scd/src/wizard-select.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
internalProperty,
state,
property,
query,
TemplateResult,
Expand All @@ -20,7 +20,7 @@ export class WizardSelect extends Select {
@property({ type: Boolean })
nullable = false;
private isNull = false;
@internalProperty()
@state()
private get null(): boolean {
return this.nullable && this.isNull;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/open-scd/src/wizard-textfield.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
internalProperty,
state,
property,
query,
TemplateResult,
Expand Down Expand Up @@ -48,7 +48,7 @@ export class WizardTextField extends TextField {
@property({ type: String })
unit = '';
private isNull = false;
@internalProperty()
@state()
private get null(): boolean {
return this.nullable && this.isNull;
}
Expand Down

0 comments on commit a3f2f5c

Please sign in to comment.