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 18, 2024
1 parent a9d97f2 commit 9bcee42
Show file tree
Hide file tree
Showing 31 changed files with 56 additions and 53 deletions.
3 changes: 2 additions & 1 deletion packages/compas-open-scd/src/Hosting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { Drawer } from '@material/mwc-drawer';
import { ActionDetail, List } from '@material/mwc-list';
import { ListItem } from '@material/mwc-list/mwc-list-item';

import { Mixin, newPendingStateEvent } from 'open-scd/src/foundation.js';
import { Mixin } from '@openscd/open-scd/src/foundation.js';
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';
import { UserInfoEvent } from './compas/foundation.js';
import { HistoringElement } from './Historing.js';
import { PluggingElement, Plugin, pluginIcons } from './Plugging.js';
Expand Down
20 changes: 9 additions & 11 deletions packages/compas-open-scd/src/compas-editors/sitipe/sitipe-bay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@ import '@material/mwc-icon-button';

import { IconButton } from '@material/mwc-icon-button';

import {
ComplexAction,
createElement,
isPublic,
newActionEvent,
newLogEvent,
SimpleAction,
} from 'open-scd/src/foundation.js';
import { isPublic } from '@openscd/open-scd/src/foundation.js';
import { newActionEvent } from '@openscd/core/foundation/deprecated/editor.js';
import { createElement } from '@openscd/xml';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';

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

import 'open-scd/src/action-pane.js';
import 'open-scd/src/action-icon.js';
import '@openscd/open-scd/src/action-pane.js';
import '@openscd/open-scd/src/action-icon.js';

import {
SIEMENS_SITIPE_IED_REF,
Expand All @@ -45,7 +43,7 @@ import {
} from './sitipe-service.js';
import { defaultNamingStrategy, NamingStrategy } from './sitipe-substation.js';
import { get } from 'lit-translate';
import { updateReferences } from 'open-scd/src/wizards/foundation/references.js';
import { updateReferences } from '@openscd/plugins/src/wizards/foundation/references.js';

/**
* Transfer namespaces from one element to another
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas-services/Websocket.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { newPendingStateEvent } from 'open-scd/src/foundation.js';
import { newPendingStateEvent } from '@openscd/core/foundation/deprecated/waiter.js';
import {
APPLICATION_ERROR,
extractErrorMessage,
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas-services/foundation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { get } from 'lit-translate';
import { newLogEvent } from 'open-scd/src/foundation.js';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';

export const NOT_FOUND_ERROR = 'NotFoundError';
export const APPLICATION_ERROR = 'ApplicationError';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas-wizards/scl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Wizard,
WizardActor,
WizardInputElement,
} from 'open-scd/src/foundation.js';
} from '@openscd/open-scd/src/foundation.js';

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

Expand Down
4 changes: 3 additions & 1 deletion packages/compas-open-scd/src/compas/CompasAutoAlignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import { get, translate } from 'lit-translate';
import '@material/mwc-list';
import '@material/mwc-list/mwc-check-list-item';

import { newLogEvent, newOpenDocEvent, newWizardEvent } from 'open-scd/src/foundation.js';
import { newWizardEvent } 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 { CompasSclAutoAlignmentService } from '../compas-services/CompasSclAutoAlignmentService.js';
import { createLogEvent } from '../compas-services/foundation.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/compas/CompasComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
LitElement,
TemplateResult,
} from 'lit-element';
import { WizardTextField } from 'open-scd/src/wizard-textfield.js';
import { WizardTextField } from "@openscd/open-scd/src/wizard-textfield.js";
import { translate } from 'lit-translate';

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

@customElement('compas-comment')
export class CompasCommentElement extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/CompasExistsIn.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { property, PropertyValues, state } from 'lit-element';

import { LitElementConstructor, Mixin } from 'open-scd/src/foundation.js';
import { LitElementConstructor, Mixin } from '@openscd/open-scd/src/foundation.js';

import { getTypeFromDocName } from './foundation.js';
import { CompasSclDataService } from '../compas-services/CompasSclDataService.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/CompasImportFromApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
newOpenDocEvent,
newPendingStateEvent,
newWizardEvent,
} from 'open-scd/src/foundation.js';
} from '@openscd/open-scd/src/foundation.js';

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

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

import { WizardTextField } from 'open-scd/src/wizard-textfield.js';
import { WizardTextField } from "@openscd/open-scd/src/wizard-textfield.js";

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

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

import '@material/mwc-button';

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

import { CompasSclDataService } from '../compas-services/CompasSclDataService.js';
import { createLogEvent } from '../compas-services/foundation.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/CompasSave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TextFieldBase } from '@material/mwc-textfield/mwc-textfield-base';
import '@material/mwc-textfield';
import '@material/mwc-button';

import { newLogEvent } from 'open-scd/src/foundation.js';
import { newLogEvent } from '@openscd/core/foundation/deprecated/history.js';
import { saveDocumentToFile } from '../file.js';

import 'open-scd/src/WizardDivider.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/CompasSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { translate } from 'lit-translate';
import '@material/mwc-textfield';
import '@material/mwc-button';

import { newWizardEvent } from 'open-scd/src/foundation.js';
import { newWizardEvent } from '@openscd/open-scd/src/foundation.js';
import { TextFieldBase } from '@material/mwc-textfield/mwc-textfield-base';
import { Switch } from '@material/mwc-switch';

Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/compas/CompasUploadVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
newWizardEvent,
Wizard,
WizardInputElement,
} from 'open-scd/src/foundation.js';
} from '@openscd/open-scd/src/foundation.js';

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

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

import { newLogEvent, newOpenDocEvent } from 'open-scd/src/foundation.js';
import { newLogEvent, newOpenDocEvent } from '@openscd/open-scd/src/foundation.js';
import {
COMPAS_SCL_PRIVATE_TYPE,
getCompasSclFileType,
Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/locamation/LocamationIEDList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {get, translate} from "lit-translate";
import '@material/mwc-list';
import '@material/mwc-list/mwc-list-item';

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

import {iedHeader, lDeviceHeader, LOCAMATION_MANUFACTURER, LOCAMATION_PRIVATE} from "./foundation.js";
import {locamationLNListWizard} from "./LocamationLNList.js";
Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/locamation/LocamationLNEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
WizardAction,
WizardInputElement,
wizardInputSelector
} from 'open-scd/src/foundation.js';
import {Nsdoc} from "open-scd/src/foundation/nsdoc.js";
} from '@openscd/open-scd/src/foundation.js';
import {Nsdoc} from "@openscd/open-scd/src/foundation/nsdoc.js";

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

Expand Down
10 changes: 6 additions & 4 deletions packages/compas-open-scd/src/locamation/foundation.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import {Nsdoc} from "open-scd/src/foundation/nsdoc.js";
import {Nsdoc} from "@openscd/open-scd/src/foundation/nsdoc.js";

import {
cloneElement,
getDescriptionAttribute,
getInstanceAttribute,
getNameAttribute,
getValue,
SimpleAction,
WizardInputElement
} from "open-scd/src/foundation.js";
} from "@openscd/open-scd/src/foundation.js";
import { cloneElement } from '@openscd/xml';
import { SimpleAction } from "@openscd/core/foundation/deprecated/editor.js";



export const LOCAMATION_MANUFACTURER = "Locamation B.V.";
export const LOCAMATION_PRIVATE = "LCMTN_VMU_SENSOR";
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
Expand Up @@ -6,7 +6,7 @@ import {
newWizardEvent,
Wizard,
WizardInputElement,
} from 'open-scd/src/foundation.js';
} from '@openscd/open-scd/src/foundation.js';

import CompasAutoAlignmentElement from '../compas/CompasAutoAlignment.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasCimMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
newLogEvent,
newOpenDocEvent,
newPendingStateEvent,
} from 'open-scd/src/foundation.js';
} from '@openscd/open-scd/src/foundation.js';
import { stripExtensionFromName } from '../compas/foundation.js';

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

import 'open-scd/src/filtered-list.js';
import 'open-scd/src/wizard-textfield.js';
import { newWizardEvent, Wizard } from 'open-scd/src/foundation.js';
import { newWizardEvent, Wizard } from '@openscd/open-scd/src/foundation.js';

import '../compas/CompasImportFromApi.js';

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

import { newWizardEvent, Wizard } from 'open-scd/src/foundation.js';
import { mergeWizard } from 'open-scd/src/wizards.js';
import { newWizardEvent, Wizard } from '@openscd/open-scd/src/foundation.js';
import { mergeWizard } from '@openscd/open-scd/src/wizards.js';

import { DocRetrievedEvent } from '../compas/CompasOpen.js';

Expand Down
6 changes: 3 additions & 3 deletions packages/compas-open-scd/src/menu/CompasOpen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Dialog } from '@material/mwc-dialog';

import {
newLogEvent,
newOpenDocEvent,
newPendingStateEvent,
} from 'open-scd/src/foundation.js';
} 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 CompasOpenElement, { DocRetrievedEvent } from '../compas/CompasOpen.js';
import { updateDocumentInOpenSCD } from '../compas/foundation.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasSave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import '@material/mwc-button';
import '@material/mwc-dialog';
import { Dialog } from '@material/mwc-dialog';

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

import CompasSaveElement from '../compas/CompasSave.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasSaveAs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import '@material/mwc-button';
import '@material/mwc-dialog';
import { Dialog } from '@material/mwc-dialog';

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

import CompasSaveElement from '../compas/CompasSave.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasSaveAsVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import '@material/mwc-button';
import '@material/mwc-dialog';
import { Dialog } from '@material/mwc-dialog';

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

import CompasSaveElement from '../compas/CompasSave.js';
import { DocRetrievedEvent } from '../compas/CompasOpen.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/compas-open-scd/src/menu/CompasSettings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html, LitElement } from 'lit-element';
import { get } from 'lit-translate';

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

import { CompasSettingsElement } from '../compas/CompasSettings.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/menu/CompasUpdateSubstation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { html, LitElement } from 'lit-element';
import { get } from 'lit-translate';

import { newWizardEvent, Wizard } from 'open-scd/src/foundation.js';
import { newWizardEvent, Wizard } from "@openscd/open-scd/src/foundation.js";

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

import '../compas/CompasOpen.js';

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

import { stringify } from 'csv-stringify/browser/esm/sync';

import { compareNames } from 'open-scd/src/foundation.js';
import { compareNames } from '@openscd/open-scd/src/foundation.js';

import { stripExtensionFromName } from '../compas/foundation.js';
import { get } from 'lit-translate';
Expand Down
4 changes: 2 additions & 2 deletions packages/compas-open-scd/src/menu/LocamationVMU.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {LitElement} from 'lit-element';

import {newWizardEvent} from 'open-scd/src/foundation.js';
import {Nsdoc} from "open-scd/src/foundation/nsdoc.js";
import {newWizardEvent} from '@openscd/open-scd/src/foundation.js';
import {Nsdoc} from "@openscd/open-scd/src/foundation/nsdoc.js";

import "../locamation/LocamationIEDList.js";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LitElement, property } from 'lit-element';

import { newIssueEvent } from 'open-scd/src/foundation.js';
import { newIssueEvent } from '@openscd/core/foundation/deprecated/history.js';

import {
CompasSclValidatorService,
Expand Down

0 comments on commit 9bcee42

Please sign in to comment.