@compas-oscd/open-scd 0.34.41 → 0.34.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-pane.js +1 -1
- package/dist/action-pane.js.map +1 -1
- package/dist/addons/Editor.js +3 -1
- package/dist/addons/Editor.js.map +1 -1
- package/dist/addons/History.d.ts +0 -6
- package/dist/addons/History.js +3 -4
- package/dist/addons/History.js.map +1 -1
- package/dist/addons/Layout.d.ts +11 -3
- package/dist/addons/Layout.js +89 -29
- package/dist/addons/Layout.js.map +1 -1
- package/dist/addons/Settings.js +9 -8
- package/dist/addons/Settings.js.map +1 -1
- package/dist/addons/Waiter.js +3 -11
- package/dist/addons/Waiter.js.map +1 -1
- package/dist/addons/editor/edit-action-to-v1-converter.d.ts +2 -1
- package/dist/addons/editor/edit-action-to-v1-converter.js +11 -9
- package/dist/addons/editor/edit-action-to-v1-converter.js.map +1 -1
- package/dist/addons/editor/edit-v1-to-v2-converter.js +2 -3
- package/dist/addons/editor/edit-v1-to-v2-converter.js.map +1 -1
- package/dist/addons/history/get-log-text.js +1 -1
- package/dist/addons/history/get-log-text.js.map +1 -1
- package/dist/addons/plugin-manager/plugin-manager.js.map +1 -1
- package/dist/filtered-list.d.ts +11 -4
- package/dist/filtered-list.js +28 -10
- package/dist/filtered-list.js.map +1 -1
- package/dist/finder-list.js +2 -2
- package/dist/finder-list.js.map +1 -1
- package/dist/foundation/compare.js +1 -1
- package/dist/foundation/compare.js.map +1 -1
- package/dist/foundation.d.ts +1 -0
- package/dist/foundation.js +2 -0
- package/dist/foundation.js.map +1 -1
- package/dist/index.d.ts +3 -45
- package/dist/index.js +2 -50
- package/dist/index.js.map +1 -1
- package/dist/open-scd.component.d.ts +5 -0
- package/dist/open-scd.component.js +12 -0
- package/dist/open-scd.component.js.map +1 -0
- package/dist/open-scd.d.ts +5 -7
- package/dist/open-scd.js +15 -69
- package/dist/open-scd.js.map +1 -1
- package/dist/plugin.d.ts +4 -2
- package/dist/plugin.js.map +1 -1
- package/dist/translations/loader.js.map +1 -1
- package/dist/wizard-dialog.js +1 -1
- package/dist/wizard-dialog.js.map +1 -1
- package/dist/wizard-select.d.ts +10 -2
- package/dist/wizard-select.js +43 -6
- package/dist/wizard-select.js.map +1 -1
- package/dist/wizard-textfield.d.ts +21 -3
- package/dist/wizard-textfield.js +84 -9
- package/dist/wizard-textfield.js.map +1 -1
- package/dist/wizards.js +1 -1
- package/dist/wizards.js.map +1 -1
- package/package.json +23 -17
- package/dist/Wizarding.d.ts +0 -6
- package/dist/Wizarding.js +0 -39
- package/dist/Wizarding.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compas-oscd/open-scd",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.43",
|
|
4
4
|
"repository": "https://github.com/openscd/open-scd.git",
|
|
5
5
|
"directory": "packages/openscd",
|
|
6
6
|
"description": "A bottom-up substation configuration designer for projects described using SCL `IEC 61850-6` Edition 2 or greater.",
|
|
@@ -14,35 +14,41 @@
|
|
|
14
14
|
],
|
|
15
15
|
"author": "OMICRON electronics GmbH",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"module": "./dist/index.js",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
17
|
+
"main": "open-scd.js",
|
|
18
|
+
"module": "open-scd.js",
|
|
21
19
|
"type": "module",
|
|
22
20
|
"files": [
|
|
23
21
|
"./dist/**"
|
|
24
22
|
],
|
|
25
23
|
"exports": {
|
|
26
24
|
".": "./dist/index.js",
|
|
25
|
+
"./dist/plugin.js": "./dist/plugin.js",
|
|
26
|
+
"./dist/plugin-tag.js": "./dist/plugin-tag.js",
|
|
27
|
+
"./dist/foundation/nsdoc.js": "./dist/foundation/nsdoc.js",
|
|
28
|
+
"./dist/plugin.events.js": "./dist/plugin.events.js",
|
|
29
|
+
"./dist/foundation.js": "./dist/foundation.js",
|
|
30
|
+
"./dist/schemas.js": "./dist/schemas.js",
|
|
27
31
|
"./addons/Waiter.js": "./dist/addons/Waiter.js",
|
|
28
32
|
"./addons/Settings.js": "./dist/addons/Settings.js",
|
|
29
|
-
"./addons/
|
|
33
|
+
"./dist/addons/Layout.js": "./dist/addons/Layout.js",
|
|
34
|
+
"./dist/addons/History.js": "./dist/addons/History.js",
|
|
30
35
|
"./addons/Editor.js": "./dist/addons/Editor.js",
|
|
31
36
|
"./addons/Wizards.js": "./dist/addons/Wizards.js",
|
|
32
|
-
"./action-pane.js": "./dist/action-pane.js",
|
|
33
|
-
"./action-icon.js": "./dist/action-icon.js",
|
|
34
|
-
"./plain-compare-list.js": "./dist/plain-compare-list.js",
|
|
37
|
+
"./dist/action-pane.js": "./dist/action-pane.js",
|
|
38
|
+
"./dist/action-icon.js": "./dist/action-icon.js",
|
|
39
|
+
"./dist/plain-compare-list.js": "./dist/plain-compare-list.js",
|
|
35
40
|
"./filtered-list.js": "./dist/filtered-list.js",
|
|
36
|
-
"./wizard-textfield.js": "./dist/wizard-textfield.js",
|
|
37
|
-
"./wizard-checkbox.js": "./dist/wizard-checkbox.js",
|
|
38
|
-
"./wizard-select.js": "./dist/wizard-select.js",
|
|
39
|
-
"./WizardDivider.js": "./dist/WizardDivider.js",
|
|
40
|
-
"./
|
|
41
|
-
"./
|
|
42
|
-
"./
|
|
41
|
+
"./dist/wizard-textfield.js": "./dist/wizard-textfield.js",
|
|
42
|
+
"./dist/wizard-checkbox.js": "./dist/wizard-checkbox.js",
|
|
43
|
+
"./dist/wizard-select.js": "./dist/wizard-select.js",
|
|
44
|
+
"./dist/WizardDivider.js": "./dist/WizardDivider.js",
|
|
45
|
+
"./dist/wizards.js": "./dist/wizards.js",
|
|
46
|
+
"./dist/oscd-filter-button.js": "./dist/oscd-filter-button.js",
|
|
47
|
+
"./dist/translations/de.js": "./dist/translations/de.js",
|
|
48
|
+
"./dist/translations/en.js": "./dist/translations/en.js"
|
|
43
49
|
},
|
|
44
50
|
"dependencies": {
|
|
45
|
-
"@compas-oscd/core": "^0.1.
|
|
51
|
+
"@compas-oscd/core": "^0.1.23",
|
|
46
52
|
"@compas-oscd/xml": "^0.0.1",
|
|
47
53
|
"@material/mwc-dialog": "0.22.1",
|
|
48
54
|
"@material/mwc-drawer": "0.22.1",
|
package/dist/Wizarding.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LitElementConstructor, Mixin } from './foundation.js';
|
|
2
|
-
import './wizard-dialog.js';
|
|
3
|
-
/** `LitElement` mixin that adds a `workflow` property which [[`Wizard`]]s are
|
|
4
|
-
* queued onto on incoming [[`WizardEvent`]]s, first come first displayed. */
|
|
5
|
-
export type WizardingElement = Mixin<typeof Wizarding>;
|
|
6
|
-
export declare function Wizarding<TBase extends LitElementConstructor>(Base: TBase): TBase;
|
package/dist/Wizarding.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { html, state, query } from 'lit-element';
|
|
3
|
-
import { ifImplemented, } from './foundation.js';
|
|
4
|
-
import './wizard-dialog.js';
|
|
5
|
-
export function Wizarding(Base) {
|
|
6
|
-
class WizardingElement extends Base {
|
|
7
|
-
onWizard(we) {
|
|
8
|
-
const wizard = we.detail.wizard;
|
|
9
|
-
if (wizard === null)
|
|
10
|
-
this.workflow.shift();
|
|
11
|
-
else if (we.detail.subwizard)
|
|
12
|
-
this.workflow.unshift(wizard);
|
|
13
|
-
else
|
|
14
|
-
this.workflow.push(wizard);
|
|
15
|
-
this.requestUpdate('workflow');
|
|
16
|
-
this.updateComplete.then(() => this.wizardUI.updateComplete.then(() => this.wizardUI.dialog?.updateComplete.then(() => this.wizardUI.dialog?.focus())));
|
|
17
|
-
}
|
|
18
|
-
constructor(...args) {
|
|
19
|
-
super(...args);
|
|
20
|
-
/** FIFO queue of [[`Wizard`]]s to display. */
|
|
21
|
-
this.workflow = [];
|
|
22
|
-
this.addEventListener('wizard', this.onWizard);
|
|
23
|
-
this.addEventListener('editor-action', () => this.wizardUI.requestUpdate());
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
return html `${ifImplemented(super.render())}
|
|
27
|
-
<wizard-dialog .wizard=${this.workflow[0]?.() ?? []}></wizard-dialog>`;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
__decorate([
|
|
31
|
-
state()
|
|
32
|
-
], WizardingElement.prototype, "workflow", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
query('wizard-dialog')
|
|
35
|
-
], WizardingElement.prototype, "wizardUI", void 0);
|
|
36
|
-
// Cast to unknown as TBase to avoid TS4094 when generating declarations
|
|
37
|
-
return WizardingElement;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=Wizarding.js.map
|
package/dist/Wizarding.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wizarding.js","sourceRoot":"","sources":["../src/Wizarding.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAkB,KAAK,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,aAAa,GAKd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,oBAAoB,CAAC;AAO5B,MAAM,UAAU,SAAS,CAAsC,IAAW;IACxE,MAAM,gBAAiB,SAAQ,IAAI;QAOvB,QAAQ,CAAC,EAAe;YAChC,MAAM,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;YAChC,IAAI,MAAM,KAAK,IAAI;gBAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;iBACtC,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS;gBAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;;gBACvD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAC/B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,CAC5B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,CACrC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7C,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,CAC9B,CACF,CACF,CAAC;QACJ,CAAC;QAED,YAAY,GAAG,IAAW;YACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAtBjB,8CAA8C;YAE9C,aAAQ,GAAoB,EAAE,CAAC;YAsB7B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,GAAG,EAAE,CAC1C,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAC9B,CAAC;QACJ,CAAC;QAED,MAAM;YACJ,OAAO,IAAI,CAAA,GAAG,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;iCAChB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,mBAAmB,CAAC;QAC3E,CAAC;KACF;IAhCC;QADC,KAAK,EAAE;sDACuB;IAEP;QAAvB,KAAK,CAAC,eAAe,CAAC;sDAAyB;IAgClD,wEAAwE;IACxE,OAAO,gBAAoC,CAAC;AAC9C,CAAC","sourcesContent":["import { html, state, TemplateResult, query } from 'lit-element';\nimport {\n ifImplemented,\n LitElementConstructor,\n Mixin,\n WizardEvent,\n WizardFactory,\n} from './foundation.js';\n\nimport './wizard-dialog.js';\nimport { WizardDialog } from './wizard-dialog.js';\n\n/** `LitElement` mixin that adds a `workflow` property which [[`Wizard`]]s are\n * queued onto on incoming [[`WizardEvent`]]s, first come first displayed. */\nexport type WizardingElement = Mixin<typeof Wizarding>;\n\nexport function Wizarding<TBase extends LitElementConstructor>(Base: TBase): TBase {\n class WizardingElement extends Base {\n /** FIFO queue of [[`Wizard`]]s to display. */\n @state()\n workflow: WizardFactory[] = [];\n\n @query('wizard-dialog') wizardUI!: WizardDialog;\n\n protected onWizard(we: WizardEvent) {\n const wizard = we.detail.wizard;\n if (wizard === null) this.workflow.shift();\n else if (we.detail.subwizard) this.workflow.unshift(wizard);\n else this.workflow.push(wizard);\n this.requestUpdate('workflow');\n this.updateComplete.then(() =>\n this.wizardUI.updateComplete.then(() =>\n this.wizardUI.dialog?.updateComplete.then(() =>\n this.wizardUI.dialog?.focus()\n )\n )\n );\n }\n\n constructor(...args: any[]) {\n super(...args);\n\n this.addEventListener('wizard', this.onWizard);\n this.addEventListener('editor-action', () =>\n this.wizardUI.requestUpdate()\n );\n }\n\n render(): TemplateResult {\n return html`${ifImplemented(super.render())}\n <wizard-dialog .wizard=${this.workflow[0]?.() ?? []}></wizard-dialog>`;\n }\n }\n\n // Cast to unknown as TBase to avoid TS4094 when generating declarations\n return WizardingElement as unknown as TBase;\n}\n"]}
|