Skip to content

Commit

Permalink
chore: Fix more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
clepski committed Jul 22, 2024
1 parent 9bcee42 commit 720aef8
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
7 changes: 4 additions & 3 deletions packages/compas-open-scd/src/compas-wizards/scl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { html, TemplateResult } from 'lit-element';
import { get, translate } from 'lit-translate';

import {
cloneElement,
ComplexAction,
EditorAction,
getValue,
Wizard,
WizardActor,
WizardInputElement,
} from '@openscd/open-scd/src/foundation.js';

import { cloneElement } from '@openscd/xml';

import { ComplexAction, EditorAction } from "@openscd/core/foundation/deprecated/editor.js";

import '../compas/CompasLabelsField.js';

import {
Expand Down
6 changes: 3 additions & 3 deletions packages/compas-open-scd/src/compas/CompasImportFromApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { customElement, html, LitElement, TemplateResult } from 'lit-element';
import '@material/mwc-list/mwc-list-item';

import {
newOpenDocEvent,
newPendingStateEvent,
newWizardEvent,
} from '@openscd/open-scd/src/foundation.js';
import { newOpenDocEvent } from '@openscd/core/foundation/deprecated/open-event.js';
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';

import 'open-scd/src/filtered-list.js';
import '@openscd/open-scd/src/filtered-list.js';

import {
createLogEvent,
Expand Down
6 changes: 3 additions & 3 deletions packages/compas-open-scd/src/compas/CompasSclList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import '@material/mwc-icon';
import '@material/mwc-list';
import '@material/mwc-list/mwc-list-item';

import { SelectedItemsChangedEvent } from 'open-scd/src/oscd-filter-button.js';
import { SelectedItemsChangedEvent } from '@openscd/open-scd/src/oscd-filter-button.js';

import 'open-scd/src/filtered-list.js';
import 'open-scd/src/oscd-filter-button.js';
import '@openscd/open-scd/src/filtered-list.js';
import '@openscd/open-scd/src/oscd-filter-button.js';

import {
CompasSclDataService,
Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/compas/CompasUploadVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import '@material/mwc-list/mwc-list-item';
import '@material/mwc-button';

import {
newLogEvent,
newPendingStateEvent,
newWizardEvent,
Wizard,
WizardInputElement,
} from '@openscd/open-scd/src/foundation.js';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';

import 'open-scd/src/wizard-textfield.js';

Expand Down
3 changes: 2 additions & 1 deletion packages/compas-open-scd/src/compas/foundation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { get } from 'lit-translate';

import { newLogEvent, newOpenDocEvent } from '@openscd/open-scd/src/foundation.js';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
import { newOpenDocEvent } from '@openscd/core/foundation/deprecated/open-event.js';
import {
COMPAS_SCL_PRIVATE_TYPE,
getCompasSclFileType,
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/private.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SCL_NAMESPACE } from 'open-scd/src/schemas.js';
import { SCL_NAMESPACE } from '@openscd/open-scd/src/schemas.js';

export const COMPAS_NAMESPACE = 'https://www.lfenergy.org/compas/extension/v1';
export const COMPAS_PREFIX = 'compas';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import '@material/mwc-list';
import '@material/mwc-list/mwc-list-item';

import {newSubWizardEvent, newWizardEvent, Wizard, WizardInputElement} from '@openscd/open-scd/src/foundation.js';
import {isSCLNamespace} from "open-scd/src/schemas.js";
import {isSCLNamespace} from "@openscd/open-scd/src/schemas.js";
import {Nsdoc} from "@openscd/open-scd/src/foundation/nsdoc.js";

import {iedHeader, lDeviceHeader, LOCAMATION_MANUFACTURER, LOCAMATION_PRIVATE} from "./foundation.js";
Expand Down
6 changes: 3 additions & 3 deletions packages/compas-open-scd/src/locamation/LocamationLNEdit.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {css, customElement, html, LitElement, property, TemplateResult} from 'lit-element';
import {get, translate} from "lit-translate";

import {patterns} from "open-scd/src/wizards/foundation/limits.js";
import { patterns } from "@openscd/open-scd/src/foundation.js";
import { ComplexAction } from "@openscd/core/foundation/deprecated/editor.js";
import {
checkValidity,
ComplexAction,
Wizard,
WizardAction,
WizardInputElement,
wizardInputSelector
} from '@openscd/open-scd/src/foundation.js';
import {Nsdoc} from "@openscd/open-scd/src/foundation/nsdoc.js";

import 'open-scd/src/wizard-textfield.js';
import '@openscd/open-scd/src/wizard-textfield.js';

import {
createEditorAction,
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasAutoAlignment.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { html, LitElement, property } from 'lit-element';
import { get } from 'lit-translate';

import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';
import {
newPendingStateEvent,
newWizardEvent,
Wizard,
WizardInputElement,
Expand Down
8 changes: 3 additions & 5 deletions packages/compas-open-scd/src/menu/CompasCimMapping.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { css, html, LitElement, query, TemplateResult } from 'lit-element';

import {
newLogEvent,
newOpenDocEvent,
newPendingStateEvent,
} from '@openscd/open-scd/src/foundation.js';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
import { newOpenDocEvent } from '@openscd/core/foundation/deprecated/open-event.js';
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';
import { stripExtensionFromName } from '../compas/foundation.js';

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasImportIEDs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { html, query, TemplateResult } from 'lit-element';
import { translate } from 'lit-translate';

import { DocRetrievedEvent } from '../compas/CompasOpen.js';
import ImportingIedPlugin from 'open-scd/src/menu/ImportIEDs.js';
import ImportingIedPlugin from '@openscd/plugins/src/menu/ImportIEDs.js';

import '../compas/CompasOpen.js';
import { Dialog } from '@material/mwc-dialog';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, fixture, html } from '@open-wc/testing';

import 'open-scd/test/unit/mock-editor.js';
import { MockEditor } from 'open-scd/test/unit/mock-editor.js';
import '@openscd/open-scd/test/unit/mock-editor.js';
import { MockEditor } from '@openscd/open-scd/test/unit/mock-editor.js';
import '../../../src/compas-editors/autogen-substation.js';
import CompasAutogenerateSubstation from '../../../src/compas-editors/autogen-substation.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { expect, fixture, html } from '@open-wc/testing';
import { stub } from 'sinon';

import 'open-scd/test/unit/mock-editor.js';
import '@openscd/open-scd/test/unit/mock-editor.js';
import { SitipeBay } from '../../../src/compas-editors/sitipe/sitipe-bay.js';
import { MockEditor } from 'open-scd/test/unit/mock-editor.js';
import { MockEditor } from '@openscd/open-scd/test/unit/mock-editor.js';

describe('sitipe-bay-integration', () => {
if (customElements.get('sitipe-bay') === undefined) {
Expand Down

0 comments on commit 720aef8

Please sign in to comment.