@compas-oscd/open-scd 0.34.17 → 0.34.18
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/WizardDivider.d.ts +8 -8
- package/dist/WizardDivider.js +26 -26
- package/dist/Wizarding.js +36 -36
- package/dist/Wizarding.js.map +1 -1
- package/dist/action-icon.d.ts +25 -25
- package/dist/action-icon.js +51 -51
- package/dist/action-pane.d.ts +25 -25
- package/dist/action-pane.js +86 -86
- package/dist/addons/Editor.d.ts +25 -25
- package/dist/addons/Editor.js +105 -105
- package/dist/addons/Editor.js.map +1 -1
- package/dist/addons/History.d.ts +86 -93
- package/dist/addons/History.js +301 -302
- package/dist/addons/History.js.map +1 -1
- package/dist/addons/Layout.d.ts +96 -96
- package/dist/addons/Layout.js +448 -448
- package/dist/addons/Layout.js.map +1 -1
- package/dist/addons/Settings.d.ts +68 -68
- package/dist/addons/Settings.js +272 -272
- package/dist/addons/Settings.js.map +1 -1
- package/dist/addons/Waiter.d.ts +14 -14
- package/dist/addons/Waiter.js +40 -40
- package/dist/addons/Waiter.js.map +1 -1
- package/dist/addons/Wizards.d.ts +15 -15
- package/dist/addons/Wizards.js +46 -46
- package/dist/addons/editor/edit-action-to-v1-converter.d.ts +3 -3
- package/dist/addons/editor/edit-action-to-v1-converter.js +95 -95
- package/dist/addons/editor/edit-action-to-v1-converter.js.map +1 -1
- package/dist/addons/editor/edit-v1-to-v2-converter.d.ts +2 -2
- package/dist/addons/editor/edit-v1-to-v2-converter.js +36 -36
- package/dist/addons/editor/edit-v1-to-v2-converter.js.map +1 -1
- package/dist/addons/history/get-log-text.d.ts +5 -5
- package/dist/addons/history/get-log-text.js +25 -25
- package/dist/addons/history/get-log-text.js.map +1 -1
- package/dist/addons/menu-tabs/menu-tabs.d.ts +22 -22
- package/dist/addons/menu-tabs/menu-tabs.js +59 -59
- package/dist/addons/plugin-manager/custom-plugin-dialog.d.ts +28 -28
- package/dist/addons/plugin-manager/custom-plugin-dialog.js +71 -71
- package/dist/addons/plugin-manager/plugin-manager.d.ts +20 -20
- package/dist/addons/plugin-manager/plugin-manager.js +77 -77
- package/dist/core/api/api.js +7 -0
- package/dist/core/api/api.js.map +1 -0
- package/dist/core/api/editor/subject.js +22 -0
- package/dist/core/api/editor/subject.js.map +1 -0
- package/dist/core/api/editor/xml-editor.js +82 -0
- package/dist/core/api/editor/xml-editor.js.map +1 -0
- package/dist/core/api/plugin-state-api.js +27 -0
- package/dist/core/api/plugin-state-api.js.map +1 -0
- package/dist/core/foundation/cyrb64.js +26 -0
- package/dist/core/foundation/cyrb64.js.map +1 -0
- package/dist/core/foundation/deprecated/edit-event.js +44 -0
- package/dist/core/foundation/deprecated/edit-event.js.map +1 -0
- package/dist/core/foundation/deprecated/editor.js +94 -0
- package/dist/core/foundation/deprecated/editor.js.map +1 -0
- package/dist/core/foundation/deprecated/history.js +17 -0
- package/dist/core/foundation/deprecated/history.js.map +1 -0
- package/dist/core/foundation/deprecated/open-event.js +9 -0
- package/dist/core/foundation/deprecated/open-event.js.map +1 -0
- package/dist/core/foundation/deprecated/settings.js +19 -0
- package/dist/core/foundation/deprecated/settings.js.map +1 -0
- package/dist/core/foundation/deprecated/validation.js +8 -0
- package/dist/core/foundation/deprecated/validation.js.map +1 -0
- package/dist/core/foundation/deprecated/waiter.js +12 -0
- package/dist/core/foundation/deprecated/waiter.js.map +1 -0
- package/dist/core/foundation/edit-completed-event.js +11 -0
- package/dist/core/foundation/edit-completed-event.js.map +1 -0
- package/dist/core/foundation/edit-event.js +8 -0
- package/dist/core/foundation/edit-event.js.map +1 -0
- package/dist/core/foundation/edit.js +31 -0
- package/dist/core/foundation/edit.js.map +1 -0
- package/dist/core/foundation/handle-edit.js +151 -0
- package/dist/core/foundation/handle-edit.js.map +1 -0
- package/dist/core/foundation/open-event.js +8 -0
- package/dist/core/foundation/open-event.js.map +1 -0
- package/dist/core/foundation/plugin.js +2 -0
- package/dist/core/foundation/plugin.js.map +1 -0
- package/dist/core/foundation.js +14 -0
- package/dist/core/foundation.js.map +1 -0
- package/dist/core/locales.js +21 -0
- package/dist/core/locales.js.map +1 -0
- package/dist/filtered-list.d.ts +27 -27
- package/dist/filtered-list.js +118 -118
- package/dist/finder-list.d.ts +37 -37
- package/dist/finder-list.js +153 -153
- package/dist/foundation/compare.d.ts +79 -79
- package/dist/foundation/compare.js +216 -216
- package/dist/foundation/dai.d.ts +30 -30
- package/dist/foundation/dai.js +126 -126
- package/dist/foundation/generators.d.ts +13 -13
- package/dist/foundation/generators.js +66 -66
- package/dist/foundation/ied.d.ts +22 -22
- package/dist/foundation/ied.js +83 -83
- package/dist/foundation/ied.js.map +1 -1
- package/dist/foundation/nsd.d.ts +4 -4
- package/dist/foundation/nsd.js +12 -12
- package/dist/foundation/nsdoc.d.ts +14 -14
- package/dist/foundation/nsdoc.js +178 -178
- package/dist/foundation/scl.d.ts +1 -1
- package/dist/foundation/scl.js +63 -63
- package/dist/foundation.d.ts +230 -230
- package/dist/foundation.js +1921 -1921
- package/dist/foundation.js.map +1 -1
- package/dist/icons/compare.d.ts +3 -3
- package/dist/icons/compare.js +4 -4
- package/dist/icons/icons.d.ts +41 -41
- package/dist/icons/icons.js +92 -92
- package/dist/icons/ied-icons.d.ts +3 -3
- package/dist/icons/ied-icons.js +4 -4
- package/dist/icons/lnode.d.ts +16 -16
- package/dist/icons/lnode.js +17 -17
- package/dist/open-scd.d.ts +131 -131
- package/dist/open-scd.js +438 -438
- package/dist/open-scd.js.map +1 -1
- package/dist/openscd/src/WizardDivider.js +37 -0
- package/dist/openscd/src/WizardDivider.js.map +1 -0
- package/dist/openscd/src/Wizarding.js +38 -0
- package/dist/openscd/src/Wizarding.js.map +1 -0
- package/dist/openscd/src/action-icon.js +220 -0
- package/dist/openscd/src/action-icon.js.map +1 -0
- package/dist/openscd/src/action-pane.js +176 -0
- package/dist/openscd/src/action-pane.js.map +1 -0
- package/dist/openscd/src/addons/Editor.js +106 -0
- package/dist/openscd/src/addons/Editor.js.map +1 -0
- package/dist/openscd/src/addons/History.js +490 -0
- package/dist/openscd/src/addons/History.js.map +1 -0
- package/dist/openscd/src/addons/Layout.js +619 -0
- package/dist/openscd/src/addons/Layout.js.map +1 -0
- package/dist/openscd/src/addons/Settings.js +465 -0
- package/dist/openscd/src/addons/Settings.js.map +1 -0
- package/dist/openscd/src/addons/Waiter.js +45 -0
- package/dist/openscd/src/addons/Waiter.js.map +1 -0
- package/dist/openscd/src/addons/Wizards.js +48 -0
- package/dist/openscd/src/addons/Wizards.js.map +1 -0
- package/dist/openscd/src/addons/editor/edit-action-to-v1-converter.js +96 -0
- package/dist/openscd/src/addons/editor/edit-action-to-v1-converter.js.map +1 -0
- package/dist/openscd/src/addons/editor/edit-v1-to-v2-converter.js +37 -0
- package/dist/openscd/src/addons/editor/edit-v1-to-v2-converter.js.map +1 -0
- package/dist/openscd/src/addons/history/get-log-text.js +26 -0
- package/dist/openscd/src/addons/history/get-log-text.js.map +1 -0
- package/dist/openscd/src/addons/menu-tabs/menu-tabs.js +74 -0
- package/dist/openscd/src/addons/menu-tabs/menu-tabs.js.map +1 -0
- package/dist/openscd/src/addons/plugin-manager/custom-plugin-dialog.js +177 -0
- package/dist/openscd/src/addons/plugin-manager/custom-plugin-dialog.js.map +1 -0
- package/dist/openscd/src/addons/plugin-manager/plugin-manager.js +165 -0
- package/dist/openscd/src/addons/plugin-manager/plugin-manager.js.map +1 -0
- package/dist/openscd/src/filtered-list.js +168 -0
- package/dist/openscd/src/filtered-list.js.map +1 -0
- package/dist/openscd/src/finder-list.js +207 -0
- package/dist/openscd/src/finder-list.js.map +1 -0
- package/dist/openscd/src/foundation/compare.js +273 -0
- package/dist/openscd/src/foundation/compare.js.map +1 -0
- package/dist/openscd/src/foundation/dai.js +127 -0
- package/dist/openscd/src/foundation/dai.js.map +1 -0
- package/dist/openscd/src/foundation/generators.js +67 -0
- package/dist/openscd/src/foundation/generators.js.map +1 -0
- package/dist/openscd/src/foundation/ied.js +84 -0
- package/dist/openscd/src/foundation/ied.js.map +1 -0
- package/dist/openscd/src/foundation/nsd.js +13 -0
- package/dist/openscd/src/foundation/nsd.js.map +1 -0
- package/dist/openscd/src/foundation/nsdoc.js +180 -0
- package/dist/openscd/src/foundation/nsdoc.js.map +1 -0
- package/dist/openscd/src/foundation/scl.js +64 -0
- package/dist/openscd/src/foundation/scl.js.map +1 -0
- package/dist/openscd/src/foundation.js +1922 -0
- package/dist/openscd/src/foundation.js.map +1 -0
- package/dist/openscd/src/icons/compare.js +11 -0
- package/dist/openscd/src/icons/compare.js.map +1 -0
- package/dist/openscd/src/icons/icons.js +611 -0
- package/dist/openscd/src/icons/icons.js.map +1 -0
- package/dist/openscd/src/icons/ied-icons.js +11 -0
- package/dist/openscd/src/icons/ied-icons.js.map +1 -0
- package/dist/openscd/src/icons/lnode.js +50 -0
- package/dist/openscd/src/icons/lnode.js.map +1 -0
- package/dist/openscd/src/open-scd.js +483 -0
- package/dist/openscd/src/open-scd.js.map +1 -0
- package/dist/openscd/src/oscd-filter-button.js +89 -0
- package/dist/openscd/src/oscd-filter-button.js.map +1 -0
- package/dist/openscd/src/plain-compare-list.js +132 -0
- package/dist/openscd/src/plain-compare-list.js.map +1 -0
- package/dist/openscd/src/plugin-tag.js +23 -0
- package/dist/openscd/src/plugin-tag.js.map +1 -0
- package/dist/openscd/src/plugin.events.js +12 -0
- package/dist/openscd/src/plugin.events.js.map +1 -0
- package/dist/openscd/src/plugin.js +2 -0
- package/dist/openscd/src/plugin.js.map +1 -0
- package/dist/openscd/src/plugins.js +256 -0
- package/dist/openscd/src/plugins.js.map +1 -0
- package/dist/openscd/src/schemas.js +9325 -0
- package/dist/openscd/src/schemas.js.map +1 -0
- package/dist/openscd/src/themes.js +122 -0
- package/dist/openscd/src/themes.js.map +1 -0
- package/dist/openscd/src/translations/de.js +954 -0
- package/dist/openscd/src/translations/de.js.map +1 -0
- package/dist/openscd/src/translations/en.js +950 -0
- package/dist/openscd/src/translations/en.js.map +1 -0
- package/dist/openscd/src/translations/loader.js +10 -0
- package/dist/openscd/src/translations/loader.js.map +1 -0
- package/dist/openscd/src/wizard-checkbox.js +152 -0
- package/dist/openscd/src/wizard-checkbox.js.map +1 -0
- package/dist/openscd/src/wizard-dialog.js +374 -0
- package/dist/openscd/src/wizard-dialog.js.map +1 -0
- package/dist/openscd/src/wizard-select.js +115 -0
- package/dist/openscd/src/wizard-select.js.map +1 -0
- package/dist/openscd/src/wizard-textfield.js +191 -0
- package/dist/openscd/src/wizard-textfield.js.map +1 -0
- package/dist/openscd/src/wizards.js +196 -0
- package/dist/openscd/src/wizards.js.map +1 -0
- package/dist/oscd-filter-button.d.ts +27 -27
- package/dist/oscd-filter-button.js +59 -59
- package/dist/plain-compare-list.d.ts +36 -36
- package/dist/plain-compare-list.js +70 -70
- package/dist/plugin-tag.d.ts +6 -6
- package/dist/plugin-tag.js +22 -22
- package/dist/plugin.d.ts +23 -23
- package/dist/plugin.events.d.ts +15 -15
- package/dist/plugin.events.js +11 -11
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/plugins.d.ts +3 -3
- package/dist/plugins.js +255 -255
- package/dist/schemas.d.ts +58 -58
- package/dist/schemas.js +59 -59
- package/dist/themes.d.ts +3 -3
- package/dist/themes.js +13 -13
- package/dist/themes.js.map +1 -1
- package/dist/translations/de.d.ts +2 -2
- package/dist/translations/de.js +952 -952
- package/dist/translations/en.d.ts +963 -963
- package/dist/translations/en.js +948 -948
- package/dist/translations/loader.d.ts +12 -12
- package/dist/translations/loader.js +9 -9
- package/dist/translations/loader.js.map +1 -1
- package/dist/wizard-checkbox.d.ts +37 -37
- package/dist/wizard-checkbox.js +130 -130
- package/dist/wizard-dialog.d.ts +45 -45
- package/dist/wizard-dialog.js +235 -235
- package/dist/wizard-dialog.js.map +1 -1
- package/dist/wizard-select.d.ts +31 -31
- package/dist/wizard-select.js +102 -102
- package/dist/wizard-textfield.d.ts +50 -50
- package/dist/wizard-textfield.js +162 -162
- package/dist/wizards.d.ts +23 -23
- package/dist/wizards.js +148 -148
- package/dist/wizards.js.map +1 -1
- package/dist/xml/src/foundation.js +67 -0
- package/dist/xml/src/foundation.js.map +1 -0
- package/dist/xml/src/index.js +2 -0
- package/dist/xml/src/index.js.map +1 -0
- package/package.json +29 -127
- package/dist/Wizarding.d.ts +0 -10
package/dist/WizardDivider.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
-
export declare class WizardDividerElement extends LitElement {
|
|
3
|
-
header?: string;
|
|
4
|
-
render(): TemplateResult;
|
|
5
|
-
private renderHeader;
|
|
6
|
-
private renderSeparator;
|
|
7
|
-
static styles: import("lit-element").CSSResult;
|
|
8
|
-
}
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
+
export declare class WizardDividerElement extends LitElement {
|
|
3
|
+
header?: string;
|
|
4
|
+
render(): TemplateResult;
|
|
5
|
+
private renderHeader;
|
|
6
|
+
private renderSeparator;
|
|
7
|
+
static styles: import("lit-element").CSSResult;
|
|
8
|
+
}
|
package/dist/WizardDivider.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
-
let WizardDividerElement = class WizardDividerElement extends LitElement {
|
|
4
|
-
render() {
|
|
5
|
-
return html ` ${this.renderHeader()} ${this.renderSeparator()}`;
|
|
6
|
-
}
|
|
7
|
-
renderHeader() {
|
|
8
|
-
if (!this.header) {
|
|
9
|
-
return html ``;
|
|
10
|
-
}
|
|
11
|
-
return html `<h4 class="header">${this.header}</h4>`;
|
|
12
|
-
}
|
|
13
|
-
renderSeparator() {
|
|
14
|
-
return html `<div role="separator"></div>`;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
+
let WizardDividerElement = class WizardDividerElement extends LitElement {
|
|
4
|
+
render() {
|
|
5
|
+
return html ` ${this.renderHeader()} ${this.renderSeparator()}`;
|
|
6
|
+
}
|
|
7
|
+
renderHeader() {
|
|
8
|
+
if (!this.header) {
|
|
9
|
+
return html ``;
|
|
10
|
+
}
|
|
11
|
+
return html `<h4 class="header">${this.header}</h4>`;
|
|
12
|
+
}
|
|
13
|
+
renderSeparator() {
|
|
14
|
+
return html `<div role="separator"></div>`;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
WizardDividerElement.styles = css `
|
|
18
18
|
div {
|
|
19
19
|
height: 0px;
|
|
@@ -24,14 +24,14 @@ WizardDividerElement.styles = css `
|
|
|
24
24
|
border-image: initial;
|
|
25
25
|
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
|
|
26
26
|
}
|
|
27
|
-
`;
|
|
28
|
-
__decorate([
|
|
29
|
-
property({
|
|
30
|
-
type: String,
|
|
31
|
-
})
|
|
32
|
-
], WizardDividerElement.prototype, "header", void 0);
|
|
33
|
-
WizardDividerElement = __decorate([
|
|
34
|
-
customElement('wizard-divider')
|
|
35
|
-
], WizardDividerElement);
|
|
36
|
-
export { WizardDividerElement };
|
|
27
|
+
`;
|
|
28
|
+
__decorate([
|
|
29
|
+
property({
|
|
30
|
+
type: String,
|
|
31
|
+
})
|
|
32
|
+
], WizardDividerElement.prototype, "header", void 0);
|
|
33
|
+
WizardDividerElement = __decorate([
|
|
34
|
+
customElement('wizard-divider')
|
|
35
|
+
], WizardDividerElement);
|
|
36
|
+
export { WizardDividerElement };
|
|
37
37
|
//# sourceMappingURL=WizardDivider.js.map
|
package/dist/Wizarding.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
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() {
|
|
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
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
|
-
return WizardingElement;
|
|
37
|
-
}
|
|
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
|
+
return WizardingElement;
|
|
37
|
+
}
|
|
38
38
|
//# sourceMappingURL=Wizarding.js.map
|
package/dist/Wizarding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;QAOzB,QAAQ,CAAC,EAAe;YAC9B,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,OAAO,gBAAgB,CAAC;AAC1B,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) {\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 private 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 return WizardingElement;\n}\n"]}
|
package/dist/action-icon.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
-
import '@material/mwc-icon';
|
|
3
|
-
/**
|
|
4
|
-
* A responsive container rendering actions in a header.
|
|
5
|
-
*
|
|
6
|
-
* The "action" slot may contain up to eight icon buttons.
|
|
7
|
-
* The "icon" slot, if filled overrides the icon property.
|
|
8
|
-
* The default slot will be rendered into the pane body in a single column.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ActionIcon extends LitElement {
|
|
11
|
-
/** caption text, displayed in the header */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** icon name, displayed unless the "icon" slot is filled */
|
|
14
|
-
icon?: string;
|
|
15
|
-
/** color header with secondary theme color while focus is within */
|
|
16
|
-
secondary: boolean;
|
|
17
|
-
/** highlight pane with dotted outline */
|
|
18
|
-
highlighted: boolean;
|
|
19
|
-
/** disables CSS adoption to action buttons */
|
|
20
|
-
hideActions: boolean;
|
|
21
|
-
firstUpdated(): Promise<void>;
|
|
22
|
-
private renderIcon;
|
|
23
|
-
render(): TemplateResult;
|
|
24
|
-
static styles: import("lit-element").CSSResult;
|
|
25
|
-
}
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
+
import '@material/mwc-icon';
|
|
3
|
+
/**
|
|
4
|
+
* A responsive container rendering actions in a header.
|
|
5
|
+
*
|
|
6
|
+
* The "action" slot may contain up to eight icon buttons.
|
|
7
|
+
* The "icon" slot, if filled overrides the icon property.
|
|
8
|
+
* The default slot will be rendered into the pane body in a single column.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ActionIcon extends LitElement {
|
|
11
|
+
/** caption text, displayed in the header */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** icon name, displayed unless the "icon" slot is filled */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** color header with secondary theme color while focus is within */
|
|
16
|
+
secondary: boolean;
|
|
17
|
+
/** highlight pane with dotted outline */
|
|
18
|
+
highlighted: boolean;
|
|
19
|
+
/** disables CSS adoption to action buttons */
|
|
20
|
+
hideActions: boolean;
|
|
21
|
+
firstUpdated(): Promise<void>;
|
|
22
|
+
private renderIcon;
|
|
23
|
+
render(): TemplateResult;
|
|
24
|
+
static styles: import("lit-element").CSSResult;
|
|
25
|
+
}
|
package/dist/action-icon.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
-
import { nothing } from 'lit-html';
|
|
4
|
-
import '@material/mwc-icon';
|
|
5
|
-
/**
|
|
6
|
-
* A responsive container rendering actions in a header.
|
|
7
|
-
*
|
|
8
|
-
* The "action" slot may contain up to eight icon buttons.
|
|
9
|
-
* The "icon" slot, if filled overrides the icon property.
|
|
10
|
-
* The default slot will be rendered into the pane body in a single column.
|
|
11
|
-
*/
|
|
12
|
-
let ActionIcon = class ActionIcon extends LitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
/** color header with secondary theme color while focus is within */
|
|
16
|
-
this.secondary = false;
|
|
17
|
-
/** highlight pane with dotted outline */
|
|
18
|
-
this.highlighted = false;
|
|
19
|
-
/** disables CSS adoption to action buttons */
|
|
20
|
-
this.hideActions = false;
|
|
21
|
-
}
|
|
22
|
-
async firstUpdated() {
|
|
23
|
-
this.tabIndex = 0;
|
|
24
|
-
}
|
|
25
|
-
renderIcon() {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
+
import { nothing } from 'lit-html';
|
|
4
|
+
import '@material/mwc-icon';
|
|
5
|
+
/**
|
|
6
|
+
* A responsive container rendering actions in a header.
|
|
7
|
+
*
|
|
8
|
+
* The "action" slot may contain up to eight icon buttons.
|
|
9
|
+
* The "icon" slot, if filled overrides the icon property.
|
|
10
|
+
* The default slot will be rendered into the pane body in a single column.
|
|
11
|
+
*/
|
|
12
|
+
let ActionIcon = class ActionIcon extends LitElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/** color header with secondary theme color while focus is within */
|
|
16
|
+
this.secondary = false;
|
|
17
|
+
/** highlight pane with dotted outline */
|
|
18
|
+
this.highlighted = false;
|
|
19
|
+
/** disables CSS adoption to action buttons */
|
|
20
|
+
this.hideActions = false;
|
|
21
|
+
}
|
|
22
|
+
async firstUpdated() {
|
|
23
|
+
this.tabIndex = 0;
|
|
24
|
+
}
|
|
25
|
+
renderIcon() {
|
|
26
26
|
return html `<span>
|
|
27
27
|
<slot name="icon"
|
|
28
28
|
>${this.icon ? html `<mwc-icon>${this.icon}</mwc-icon>` : nothing}</slot
|
|
29
29
|
></span
|
|
30
|
-
> `;
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
30
|
+
> `;
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
33
|
return html `<header>${this.label ?? nothing}</header>
|
|
34
34
|
<section>${this.renderIcon()}<slot name="action"></slot></section>
|
|
35
|
-
<footer>${this.label ?? nothing}</footer>`;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
35
|
+
<footer>${this.label ?? nothing}</footer>`;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
38
|
ActionIcon.styles = css `
|
|
39
39
|
:host {
|
|
40
40
|
display: flex;
|
|
@@ -197,24 +197,24 @@ ActionIcon.styles = css `
|
|
|
197
197
|
:host(:focus-within[hideActions]) header {
|
|
198
198
|
transform: translate(0, -40px);
|
|
199
199
|
}
|
|
200
|
-
`;
|
|
201
|
-
__decorate([
|
|
202
|
-
property({ type: String })
|
|
203
|
-
], ActionIcon.prototype, "label", void 0);
|
|
204
|
-
__decorate([
|
|
205
|
-
property({ type: String })
|
|
206
|
-
], ActionIcon.prototype, "icon", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
property({ type: Boolean })
|
|
209
|
-
], ActionIcon.prototype, "secondary", void 0);
|
|
210
|
-
__decorate([
|
|
211
|
-
property({ type: Boolean })
|
|
212
|
-
], ActionIcon.prototype, "highlighted", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
property({ type: Boolean })
|
|
215
|
-
], ActionIcon.prototype, "hideActions", void 0);
|
|
216
|
-
ActionIcon = __decorate([
|
|
217
|
-
customElement('action-icon')
|
|
218
|
-
], ActionIcon);
|
|
219
|
-
export { ActionIcon };
|
|
200
|
+
`;
|
|
201
|
+
__decorate([
|
|
202
|
+
property({ type: String })
|
|
203
|
+
], ActionIcon.prototype, "label", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
property({ type: String })
|
|
206
|
+
], ActionIcon.prototype, "icon", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
property({ type: Boolean })
|
|
209
|
+
], ActionIcon.prototype, "secondary", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
property({ type: Boolean })
|
|
212
|
+
], ActionIcon.prototype, "highlighted", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
property({ type: Boolean })
|
|
215
|
+
], ActionIcon.prototype, "hideActions", void 0);
|
|
216
|
+
ActionIcon = __decorate([
|
|
217
|
+
customElement('action-icon')
|
|
218
|
+
], ActionIcon);
|
|
219
|
+
export { ActionIcon };
|
|
220
220
|
//# sourceMappingURL=action-icon.js.map
|
package/dist/action-pane.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
-
import '@material/mwc-icon';
|
|
3
|
-
/**
|
|
4
|
-
* A responsive container rendering actions in a header.
|
|
5
|
-
*
|
|
6
|
-
* The "action" slot may contain up to eight icon buttons.
|
|
7
|
-
* The "icon" slot, if filled overrides the icon property.
|
|
8
|
-
* The default slot will be rendered into the pane body in a single column.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ActionPane extends LitElement {
|
|
11
|
-
/** caption text, displayed in the header */
|
|
12
|
-
label?: string;
|
|
13
|
-
/** icon name, displayed unless the "icon" slot is filled */
|
|
14
|
-
icon?: string;
|
|
15
|
-
/** color header with secondary theme color while focus is within */
|
|
16
|
-
secondary: boolean;
|
|
17
|
-
/** highlight pane with dotted outline */
|
|
18
|
-
highlighted: boolean;
|
|
19
|
-
/** nesting level, default (closest pane ancestor's level) + 1 */
|
|
20
|
-
level: number;
|
|
21
|
-
firstUpdated(): Promise<void>;
|
|
22
|
-
private renderHeader;
|
|
23
|
-
render(): TemplateResult;
|
|
24
|
-
static styles: import("lit-element").CSSResult;
|
|
25
|
-
}
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
+
import '@material/mwc-icon';
|
|
3
|
+
/**
|
|
4
|
+
* A responsive container rendering actions in a header.
|
|
5
|
+
*
|
|
6
|
+
* The "action" slot may contain up to eight icon buttons.
|
|
7
|
+
* The "icon" slot, if filled overrides the icon property.
|
|
8
|
+
* The default slot will be rendered into the pane body in a single column.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ActionPane extends LitElement {
|
|
11
|
+
/** caption text, displayed in the header */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** icon name, displayed unless the "icon" slot is filled */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** color header with secondary theme color while focus is within */
|
|
16
|
+
secondary: boolean;
|
|
17
|
+
/** highlight pane with dotted outline */
|
|
18
|
+
highlighted: boolean;
|
|
19
|
+
/** nesting level, default (closest pane ancestor's level) + 1 */
|
|
20
|
+
level: number;
|
|
21
|
+
firstUpdated(): Promise<void>;
|
|
22
|
+
private renderHeader;
|
|
23
|
+
render(): TemplateResult;
|
|
24
|
+
static styles: import("lit-element").CSSResult;
|
|
25
|
+
}
|
package/dist/action-pane.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
-
import { classMap } from 'lit-html/directives/class-map';
|
|
4
|
-
import '@material/mwc-icon';
|
|
5
|
-
import { nothing } from 'lit-html';
|
|
6
|
-
function closestTo(node, selector) {
|
|
7
|
-
const closest = node.nodeType === Node.ELEMENT_NODE
|
|
8
|
-
? node.closest(selector)
|
|
9
|
-
: null;
|
|
10
|
-
if (closest)
|
|
11
|
-
return closest;
|
|
12
|
-
const root = node.getRootNode();
|
|
13
|
-
if (root instanceof ShadowRoot)
|
|
14
|
-
return closestTo(root.host, selector);
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A responsive container rendering actions in a header.
|
|
19
|
-
*
|
|
20
|
-
* The "action" slot may contain up to eight icon buttons.
|
|
21
|
-
* The "icon" slot, if filled overrides the icon property.
|
|
22
|
-
* The default slot will be rendered into the pane body in a single column.
|
|
23
|
-
*/
|
|
24
|
-
let ActionPane = class ActionPane extends LitElement {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments);
|
|
27
|
-
/** color header with secondary theme color while focus is within */
|
|
28
|
-
this.secondary = false;
|
|
29
|
-
/** highlight pane with dotted outline */
|
|
30
|
-
this.highlighted = false;
|
|
31
|
-
/** nesting level, default (closest pane ancestor's level) + 1 */
|
|
32
|
-
this.level = 1;
|
|
33
|
-
}
|
|
34
|
-
async firstUpdated() {
|
|
35
|
-
this.tabIndex = 0;
|
|
36
|
-
const parentPane = closestTo(this.parentNode, 'action-pane');
|
|
37
|
-
if (parentPane)
|
|
38
|
-
this.level = parentPane.level + 1;
|
|
39
|
-
this.level = Math.floor(this.level);
|
|
40
|
-
}
|
|
41
|
-
renderHeader() {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, customElement, html, LitElement, property, } from 'lit-element';
|
|
3
|
+
import { classMap } from 'lit-html/directives/class-map';
|
|
4
|
+
import '@material/mwc-icon';
|
|
5
|
+
import { nothing } from 'lit-html';
|
|
6
|
+
function closestTo(node, selector) {
|
|
7
|
+
const closest = node.nodeType === Node.ELEMENT_NODE
|
|
8
|
+
? node.closest(selector)
|
|
9
|
+
: null;
|
|
10
|
+
if (closest)
|
|
11
|
+
return closest;
|
|
12
|
+
const root = node.getRootNode();
|
|
13
|
+
if (root instanceof ShadowRoot)
|
|
14
|
+
return closestTo(root.host, selector);
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A responsive container rendering actions in a header.
|
|
19
|
+
*
|
|
20
|
+
* The "action" slot may contain up to eight icon buttons.
|
|
21
|
+
* The "icon" slot, if filled overrides the icon property.
|
|
22
|
+
* The default slot will be rendered into the pane body in a single column.
|
|
23
|
+
*/
|
|
24
|
+
let ActionPane = class ActionPane extends LitElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
/** color header with secondary theme color while focus is within */
|
|
28
|
+
this.secondary = false;
|
|
29
|
+
/** highlight pane with dotted outline */
|
|
30
|
+
this.highlighted = false;
|
|
31
|
+
/** nesting level, default (closest pane ancestor's level) + 1 */
|
|
32
|
+
this.level = 1;
|
|
33
|
+
}
|
|
34
|
+
async firstUpdated() {
|
|
35
|
+
this.tabIndex = 0;
|
|
36
|
+
const parentPane = closestTo(this.parentNode, 'action-pane');
|
|
37
|
+
if (parentPane)
|
|
38
|
+
this.level = parentPane.level + 1;
|
|
39
|
+
this.level = Math.floor(this.level);
|
|
40
|
+
}
|
|
41
|
+
renderHeader() {
|
|
42
42
|
const content = html `<span
|
|
43
43
|
><slot name="icon"
|
|
44
|
-
>${this.icon
|
|
45
|
-
? html `<mwc-icon>${this.icon}</mwc-icon>`
|
|
44
|
+
>${this.icon
|
|
45
|
+
? html `<mwc-icon>${this.icon}</mwc-icon>`
|
|
46
46
|
: nothing}</slot
|
|
47
47
|
></span
|
|
48
48
|
>
|
|
49
49
|
${this.label ?? nothing}
|
|
50
|
-
<nav><slot name="action"></slot></nav>`;
|
|
51
|
-
const headingLevel = Math.floor(Math.max(this.level, 1));
|
|
52
|
-
// Sometimes a TemplateResult is passed in as Label, not a string. So only when it's a string show a title.
|
|
53
|
-
const title = typeof this.label === 'string' ? this.label : '';
|
|
54
|
-
switch (headingLevel) {
|
|
55
|
-
case 1:
|
|
56
|
-
return html `<h1 title="${title}">${content}</h1>`;
|
|
57
|
-
case 2:
|
|
58
|
-
return html `<h2 title="${title}">${content}</h2>`;
|
|
59
|
-
case 3:
|
|
60
|
-
return html `<h3 title="${title}">${content}</h3>`;
|
|
61
|
-
default:
|
|
62
|
-
return html `<h4 title="${title}">${content}</h4>`;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
50
|
+
<nav><slot name="action"></slot></nav>`;
|
|
51
|
+
const headingLevel = Math.floor(Math.max(this.level, 1));
|
|
52
|
+
// Sometimes a TemplateResult is passed in as Label, not a string. So only when it's a string show a title.
|
|
53
|
+
const title = typeof this.label === 'string' ? this.label : '';
|
|
54
|
+
switch (headingLevel) {
|
|
55
|
+
case 1:
|
|
56
|
+
return html `<h1 title="${title}">${content}</h1>`;
|
|
57
|
+
case 2:
|
|
58
|
+
return html `<h2 title="${title}">${content}</h2>`;
|
|
59
|
+
case 3:
|
|
60
|
+
return html `<h3 title="${title}">${content}</h3>`;
|
|
61
|
+
default:
|
|
62
|
+
return html `<h4 title="${title}">${content}</h4>`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
66
|
return html `<section
|
|
67
|
-
class="${classMap({
|
|
68
|
-
secondary: this.secondary,
|
|
69
|
-
highlighted: this.highlighted,
|
|
70
|
-
contrasted: this.level % 2 === 0,
|
|
67
|
+
class="${classMap({
|
|
68
|
+
secondary: this.secondary,
|
|
69
|
+
highlighted: this.highlighted,
|
|
70
|
+
contrasted: this.level % 2 === 0,
|
|
71
71
|
})}"
|
|
72
72
|
>
|
|
73
73
|
${this.renderHeader()}
|
|
74
74
|
<div><slot></slot></div>
|
|
75
|
-
</section>`;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
75
|
+
</section>`;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
78
|
ActionPane.styles = css `
|
|
79
79
|
:host {
|
|
80
80
|
outline: none;
|
|
@@ -153,24 +153,24 @@ ActionPane.styles = css `
|
|
|
153
153
|
top: -0.1em;
|
|
154
154
|
--mdc-icon-size: 1em;
|
|
155
155
|
}
|
|
156
|
-
`;
|
|
157
|
-
__decorate([
|
|
158
|
-
property({ type: String })
|
|
159
|
-
], ActionPane.prototype, "label", void 0);
|
|
160
|
-
__decorate([
|
|
161
|
-
property({ type: String })
|
|
162
|
-
], ActionPane.prototype, "icon", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
property({ type: Boolean })
|
|
165
|
-
], ActionPane.prototype, "secondary", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
property({ type: Boolean })
|
|
168
|
-
], ActionPane.prototype, "highlighted", void 0);
|
|
169
|
-
__decorate([
|
|
170
|
-
property({ type: Number })
|
|
171
|
-
], ActionPane.prototype, "level", void 0);
|
|
172
|
-
ActionPane = __decorate([
|
|
173
|
-
customElement('action-pane')
|
|
174
|
-
], ActionPane);
|
|
175
|
-
export { ActionPane };
|
|
156
|
+
`;
|
|
157
|
+
__decorate([
|
|
158
|
+
property({ type: String })
|
|
159
|
+
], ActionPane.prototype, "label", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
property({ type: String })
|
|
162
|
+
], ActionPane.prototype, "icon", void 0);
|
|
163
|
+
__decorate([
|
|
164
|
+
property({ type: Boolean })
|
|
165
|
+
], ActionPane.prototype, "secondary", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
property({ type: Boolean })
|
|
168
|
+
], ActionPane.prototype, "highlighted", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
property({ type: Number })
|
|
171
|
+
], ActionPane.prototype, "level", void 0);
|
|
172
|
+
ActionPane = __decorate([
|
|
173
|
+
customElement('action-pane')
|
|
174
|
+
], ActionPane);
|
|
175
|
+
export { ActionPane };
|
|
176
176
|
//# sourceMappingURL=action-pane.js.map
|
package/dist/addons/Editor.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { EditEventV2, OpenEvent, XMLEditor } from '@
|
|
2
|
-
import { LitElement, TemplateResult } from 'lit-element';
|
|
3
|
-
import { EditEvent } from '@
|
|
4
|
-
export declare class OscdEditor extends LitElement {
|
|
5
|
-
/** The `XMLDocument` to be edited */
|
|
6
|
-
doc: XMLDocument | null;
|
|
7
|
-
/** The name of the current [[`doc`]] */
|
|
8
|
-
docName: string;
|
|
9
|
-
/** The UUID of the current [[`doc`]] */
|
|
10
|
-
docId: string;
|
|
11
|
-
/** XML Editor to apply changes to the scd */
|
|
12
|
-
editor: XMLEditor;
|
|
13
|
-
host: HTMLElement;
|
|
14
|
-
private onAction;
|
|
15
|
-
handleEditEvent(event: EditEvent): void;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @deprecated [Move to handleOpenDoc instead]
|
|
19
|
-
*/
|
|
20
|
-
private onOpenDoc;
|
|
21
|
-
handleOpenDoc({ detail: { docName, doc } }: OpenEvent): void;
|
|
22
|
-
connectedCallback(): void;
|
|
23
|
-
render(): TemplateResult;
|
|
24
|
-
handleEditEventV2(event: EditEventV2): Promise<void>;
|
|
25
|
-
}
|
|
1
|
+
import { EditEventV2, OpenEvent, XMLEditor } from '@openscd/core';
|
|
2
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
|
3
|
+
import { EditEvent } from '@openscd/core';
|
|
4
|
+
export declare class OscdEditor extends LitElement {
|
|
5
|
+
/** The `XMLDocument` to be edited */
|
|
6
|
+
doc: XMLDocument | null;
|
|
7
|
+
/** The name of the current [[`doc`]] */
|
|
8
|
+
docName: string;
|
|
9
|
+
/** The UUID of the current [[`doc`]] */
|
|
10
|
+
docId: string;
|
|
11
|
+
/** XML Editor to apply changes to the scd */
|
|
12
|
+
editor: XMLEditor;
|
|
13
|
+
host: HTMLElement;
|
|
14
|
+
private onAction;
|
|
15
|
+
handleEditEvent(event: EditEvent): void;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @deprecated [Move to handleOpenDoc instead]
|
|
19
|
+
*/
|
|
20
|
+
private onOpenDoc;
|
|
21
|
+
handleOpenDoc({ detail: { docName, doc } }: OpenEvent): void;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
render(): TemplateResult;
|
|
24
|
+
handleEditEventV2(event: EditEventV2): Promise<void>;
|
|
25
|
+
}
|