@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
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
-
import { DiffFilter } from './foundation/compare.js';
|
|
3
|
-
export declare class PlainCompareList extends LitElement {
|
|
4
|
-
/**
|
|
5
|
-
* The title of the left list
|
|
6
|
-
*/
|
|
7
|
-
leftHandTitle: string;
|
|
8
|
-
/**
|
|
9
|
-
* The title of the right list
|
|
10
|
-
*/
|
|
11
|
-
rightHandTitle: string;
|
|
12
|
-
/**
|
|
13
|
-
* The left Element that should be compared
|
|
14
|
-
*/
|
|
15
|
-
leftHandObject: Element;
|
|
16
|
-
/**
|
|
17
|
-
* The right element that should be compared against
|
|
18
|
-
*/
|
|
19
|
-
rightHandObject: Element;
|
|
20
|
-
/**
|
|
21
|
-
* Optional filter to ignore differences
|
|
22
|
-
*/
|
|
23
|
-
filterToIgnore?: DiffFilter<Element>;
|
|
24
|
-
/**
|
|
25
|
-
* The subtitle of the left list (optional)
|
|
26
|
-
*/
|
|
27
|
-
leftHandSubtitle: string;
|
|
28
|
-
/**
|
|
29
|
-
* The subtitle of the right list (optional)
|
|
30
|
-
*/
|
|
31
|
-
rightHandSubtitle: string;
|
|
32
|
-
filterMutables: boolean;
|
|
33
|
-
render(): TemplateResult;
|
|
34
|
-
protected renderFilterCheckbox(): TemplateResult;
|
|
35
|
-
static styles: import("lit-element").CSSResult;
|
|
36
|
-
}
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
|
2
|
+
import { DiffFilter } from './foundation/compare.js';
|
|
3
|
+
export declare class PlainCompareList extends LitElement {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the left list
|
|
6
|
+
*/
|
|
7
|
+
leftHandTitle: string;
|
|
8
|
+
/**
|
|
9
|
+
* The title of the right list
|
|
10
|
+
*/
|
|
11
|
+
rightHandTitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* The left Element that should be compared
|
|
14
|
+
*/
|
|
15
|
+
leftHandObject: Element;
|
|
16
|
+
/**
|
|
17
|
+
* The right element that should be compared against
|
|
18
|
+
*/
|
|
19
|
+
rightHandObject: Element;
|
|
20
|
+
/**
|
|
21
|
+
* Optional filter to ignore differences
|
|
22
|
+
*/
|
|
23
|
+
filterToIgnore?: DiffFilter<Element>;
|
|
24
|
+
/**
|
|
25
|
+
* The subtitle of the left list (optional)
|
|
26
|
+
*/
|
|
27
|
+
leftHandSubtitle: string;
|
|
28
|
+
/**
|
|
29
|
+
* The subtitle of the right list (optional)
|
|
30
|
+
*/
|
|
31
|
+
rightHandSubtitle: string;
|
|
32
|
+
filterMutables: boolean;
|
|
33
|
+
render(): TemplateResult;
|
|
34
|
+
protected renderFilterCheckbox(): TemplateResult;
|
|
35
|
+
static styles: import("lit-element").CSSResult;
|
|
36
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { customElement, LitElement, property, html, css, state, } from 'lit-element';
|
|
3
|
-
import { get } from 'lit-translate';
|
|
4
|
-
import { renderDiff } from './foundation/compare.js';
|
|
5
|
-
let PlainCompareList = class PlainCompareList extends LitElement {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
/**
|
|
9
|
-
* The title of the left list
|
|
10
|
-
*/
|
|
11
|
-
this.leftHandTitle = '';
|
|
12
|
-
/**
|
|
13
|
-
* The title of the right list
|
|
14
|
-
*/
|
|
15
|
-
this.rightHandTitle = '';
|
|
16
|
-
/**
|
|
17
|
-
* The subtitle of the left list (optional)
|
|
18
|
-
*/
|
|
19
|
-
this.leftHandSubtitle = '';
|
|
20
|
-
/**
|
|
21
|
-
* The subtitle of the right list (optional)
|
|
22
|
-
*/
|
|
23
|
-
this.rightHandSubtitle = '';
|
|
24
|
-
this.filterMutables = true;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { customElement, LitElement, property, html, css, state, } from 'lit-element';
|
|
3
|
+
import { get } from 'lit-translate';
|
|
4
|
+
import { renderDiff } from './foundation/compare.js';
|
|
5
|
+
let PlainCompareList = class PlainCompareList extends LitElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/**
|
|
9
|
+
* The title of the left list
|
|
10
|
+
*/
|
|
11
|
+
this.leftHandTitle = '';
|
|
12
|
+
/**
|
|
13
|
+
* The title of the right list
|
|
14
|
+
*/
|
|
15
|
+
this.rightHandTitle = '';
|
|
16
|
+
/**
|
|
17
|
+
* The subtitle of the left list (optional)
|
|
18
|
+
*/
|
|
19
|
+
this.leftHandSubtitle = '';
|
|
20
|
+
/**
|
|
21
|
+
* The subtitle of the right list (optional)
|
|
22
|
+
*/
|
|
23
|
+
this.rightHandSubtitle = '';
|
|
24
|
+
this.filterMutables = true;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
27
|
return html `
|
|
28
28
|
${this.renderFilterCheckbox()}
|
|
29
29
|
<div class="container container--alt">
|
|
30
30
|
<div class="list__container list__container--left">
|
|
31
31
|
<h3 class="mdc-dialog__title">${this.leftHandTitle}</h3>
|
|
32
|
-
${this.leftHandSubtitle && this.leftHandSubtitle.length > 0
|
|
33
|
-
? html `<h5 class="mdc-dialog__title">${this.leftHandSubtitle}</h5> `
|
|
32
|
+
${this.leftHandSubtitle && this.leftHandSubtitle.length > 0
|
|
33
|
+
? html `<h5 class="mdc-dialog__title">${this.leftHandSubtitle}</h5> `
|
|
34
34
|
: ''}
|
|
35
35
|
</div>
|
|
36
36
|
<div class="list__container">
|
|
37
37
|
<h3 class="mdc-dialog__title">${this.rightHandTitle}</h3>
|
|
38
|
-
${this.rightHandSubtitle && this.rightHandSubtitle.length > 0
|
|
38
|
+
${this.rightHandSubtitle && this.rightHandSubtitle.length > 0
|
|
39
39
|
? html `<h5 class="mdc-dialog__title">
|
|
40
40
|
${this.rightHandSubtitle}
|
|
41
|
-
</h5> `
|
|
41
|
+
</h5> `
|
|
42
42
|
: ''}
|
|
43
43
|
</div>
|
|
44
44
|
</div>
|
|
45
|
-
${this.leftHandObject && this.rightHandObject
|
|
45
|
+
${this.leftHandObject && this.rightHandObject
|
|
46
46
|
? html `
|
|
47
47
|
${renderDiff(this.rightHandObject, this.leftHandObject, this.filterMutables ? this.filterToIgnore : {})}
|
|
48
|
-
`
|
|
48
|
+
`
|
|
49
49
|
: ''}
|
|
50
|
-
`;
|
|
51
|
-
}
|
|
52
|
-
renderFilterCheckbox() {
|
|
53
|
-
if (this.filterToIgnore) {
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
renderFilterCheckbox() {
|
|
53
|
+
if (this.filterToIgnore) {
|
|
54
54
|
return html `
|
|
55
55
|
<div class="container">
|
|
56
56
|
<div class="flex"></div>
|
|
@@ -62,11 +62,11 @@ let PlainCompareList = class PlainCompareList extends LitElement {
|
|
|
62
62
|
</mwc-checkbox>
|
|
63
63
|
</mwc-formfield>
|
|
64
64
|
</div>
|
|
65
|
-
`;
|
|
66
|
-
}
|
|
67
|
-
return html ``;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
65
|
+
`;
|
|
66
|
+
}
|
|
67
|
+
return html ``;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
70
|
PlainCompareList.styles = css `
|
|
71
71
|
mwc-list-item {
|
|
72
72
|
--mdc-list-item-graphic-margin: 0;
|
|
@@ -100,33 +100,33 @@ PlainCompareList.styles = css `
|
|
|
100
100
|
text-align: right;
|
|
101
101
|
direction: rtl;
|
|
102
102
|
}
|
|
103
|
-
`;
|
|
104
|
-
__decorate([
|
|
105
|
-
property({ type: String })
|
|
106
|
-
], PlainCompareList.prototype, "leftHandTitle", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
property({ type: String })
|
|
109
|
-
], PlainCompareList.prototype, "rightHandTitle", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
property({ type: Object })
|
|
112
|
-
], PlainCompareList.prototype, "leftHandObject", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
property({ type: Object })
|
|
115
|
-
], PlainCompareList.prototype, "rightHandObject", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
property({ type: Object })
|
|
118
|
-
], PlainCompareList.prototype, "filterToIgnore", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
property({ type: String })
|
|
121
|
-
], PlainCompareList.prototype, "leftHandSubtitle", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
property({ type: String })
|
|
124
|
-
], PlainCompareList.prototype, "rightHandSubtitle", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
state()
|
|
127
|
-
], PlainCompareList.prototype, "filterMutables", void 0);
|
|
128
|
-
PlainCompareList = __decorate([
|
|
129
|
-
customElement('plain-compare-list')
|
|
130
|
-
], PlainCompareList);
|
|
131
|
-
export { PlainCompareList };
|
|
103
|
+
`;
|
|
104
|
+
__decorate([
|
|
105
|
+
property({ type: String })
|
|
106
|
+
], PlainCompareList.prototype, "leftHandTitle", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
property({ type: String })
|
|
109
|
+
], PlainCompareList.prototype, "rightHandTitle", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
property({ type: Object })
|
|
112
|
+
], PlainCompareList.prototype, "leftHandObject", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
property({ type: Object })
|
|
115
|
+
], PlainCompareList.prototype, "rightHandObject", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
property({ type: Object })
|
|
118
|
+
], PlainCompareList.prototype, "filterToIgnore", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
property({ type: String })
|
|
121
|
+
], PlainCompareList.prototype, "leftHandSubtitle", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: String })
|
|
124
|
+
], PlainCompareList.prototype, "rightHandSubtitle", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
state()
|
|
127
|
+
], PlainCompareList.prototype, "filterMutables", void 0);
|
|
128
|
+
PlainCompareList = __decorate([
|
|
129
|
+
customElement('plain-compare-list')
|
|
130
|
+
], PlainCompareList);
|
|
131
|
+
export { PlainCompareList };
|
|
132
132
|
//# sourceMappingURL=plain-compare-list.js.map
|
package/dist/plugin-tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hashes `uri` using cyrb64 analogous to
|
|
3
|
-
* https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js .
|
|
4
|
-
* @returns a valid customElement tagName containing the URI hash.
|
|
5
|
-
*/
|
|
6
|
-
export declare function pluginTag(uri: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Hashes `uri` using cyrb64 analogous to
|
|
3
|
+
* https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js .
|
|
4
|
+
* @returns a valid customElement tagName containing the URI hash.
|
|
5
|
+
*/
|
|
6
|
+
export declare function pluginTag(uri: string): string;
|
package/dist/plugin-tag.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hashes `uri` using cyrb64 analogous to
|
|
3
|
-
* https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js .
|
|
4
|
-
* @returns a valid customElement tagName containing the URI hash.
|
|
5
|
-
*/
|
|
6
|
-
export function pluginTag(uri) {
|
|
7
|
-
let h1 = 0xdeadbeef, h2 = 0x41c6ce57;
|
|
8
|
-
for (let i = 0, ch; i < uri.length; i++) {
|
|
9
|
-
ch = uri.charCodeAt(i);
|
|
10
|
-
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
11
|
-
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
12
|
-
}
|
|
13
|
-
h1 =
|
|
14
|
-
Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^
|
|
15
|
-
Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
16
|
-
h2 =
|
|
17
|
-
Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^
|
|
18
|
-
Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
19
|
-
return 'oscd-plugin' +
|
|
20
|
-
((h2 >>> 0).toString(16).padStart(8, '0') +
|
|
21
|
-
(h1 >>> 0).toString(16).padStart(8, '0'));
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Hashes `uri` using cyrb64 analogous to
|
|
3
|
+
* https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js .
|
|
4
|
+
* @returns a valid customElement tagName containing the URI hash.
|
|
5
|
+
*/
|
|
6
|
+
export function pluginTag(uri) {
|
|
7
|
+
let h1 = 0xdeadbeef, h2 = 0x41c6ce57;
|
|
8
|
+
for (let i = 0, ch; i < uri.length; i++) {
|
|
9
|
+
ch = uri.charCodeAt(i);
|
|
10
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
11
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
12
|
+
}
|
|
13
|
+
h1 =
|
|
14
|
+
Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^
|
|
15
|
+
Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
16
|
+
h2 =
|
|
17
|
+
Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^
|
|
18
|
+
Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
19
|
+
return 'oscd-plugin' +
|
|
20
|
+
((h2 >>> 0).toString(16).padStart(8, '0') +
|
|
21
|
+
(h1 >>> 0).toString(16).padStart(8, '0'));
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=plugin-tag.js.map
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { TemplateResult } from 'lit-element';
|
|
2
|
-
import { Plugin as CorePlugin } from "@
|
|
3
|
-
export type Plugin = CorePlugin & {
|
|
4
|
-
official?: boolean;
|
|
5
|
-
active: boolean;
|
|
6
|
-
content?: () => TemplateResult;
|
|
7
|
-
};
|
|
8
|
-
export type PluginConfig = PluginConfigNotMenu | PluginConfigMenu;
|
|
9
|
-
export type PluginConfigNotMenu = Omit<Plugin, "position" | "active"> & {
|
|
10
|
-
kind: 'editor' | 'validator';
|
|
11
|
-
};
|
|
12
|
-
export type PluginConfigMenu = Omit<Plugin, "active"> & {
|
|
13
|
-
kind: 'menu';
|
|
14
|
-
position: MenuPosition;
|
|
15
|
-
};
|
|
16
|
-
export type InstalledOfficialPlugin = Plugin & {
|
|
17
|
-
src: string;
|
|
18
|
-
official: true;
|
|
19
|
-
installed: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type PluginKind = 'editor' | 'menu' | 'validator';
|
|
22
|
-
export declare const menuPosition: readonly ["top", "middle", "bottom"];
|
|
23
|
-
export type MenuPosition = (typeof menuPosition)[number];
|
|
1
|
+
import { TemplateResult } from 'lit-element';
|
|
2
|
+
import { Plugin as CorePlugin } from "@openscd/core";
|
|
3
|
+
export type Plugin = CorePlugin & {
|
|
4
|
+
official?: boolean;
|
|
5
|
+
active: boolean;
|
|
6
|
+
content?: () => TemplateResult;
|
|
7
|
+
};
|
|
8
|
+
export type PluginConfig = PluginConfigNotMenu | PluginConfigMenu;
|
|
9
|
+
export type PluginConfigNotMenu = Omit<Plugin, "position" | "active"> & {
|
|
10
|
+
kind: 'editor' | 'validator';
|
|
11
|
+
};
|
|
12
|
+
export type PluginConfigMenu = Omit<Plugin, "active"> & {
|
|
13
|
+
kind: 'menu';
|
|
14
|
+
position: MenuPosition;
|
|
15
|
+
};
|
|
16
|
+
export type InstalledOfficialPlugin = Plugin & {
|
|
17
|
+
src: string;
|
|
18
|
+
official: true;
|
|
19
|
+
installed: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type PluginKind = 'editor' | 'menu' | 'validator';
|
|
22
|
+
export declare const menuPosition: readonly ["top", "middle", "bottom"];
|
|
23
|
+
export type MenuPosition = (typeof menuPosition)[number];
|
package/dist/plugin.events.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Plugin, PluginKind } from './plugin.js';
|
|
2
|
-
/**
|
|
3
|
-
* The configure plugin event allows the plugin to request that OpenSCD core add, remove, or reconfigure a plugin.
|
|
4
|
-
*/
|
|
5
|
-
export type ConfigurePluginDetail = {
|
|
6
|
-
name: string;
|
|
7
|
-
kind: PluginKind;
|
|
8
|
-
config: Plugin | null;
|
|
9
|
-
};
|
|
10
|
-
export type ConfigurePluginEvent = CustomEvent<ConfigurePluginDetail>;
|
|
11
|
-
/**
|
|
12
|
-
* The combination of name and kind uniquely identifies the plugin to be configured.
|
|
13
|
-
* If config is null, the plugin is removed. Otherwise, the plugin is added or reconfigured.
|
|
14
|
-
*/
|
|
15
|
-
export declare function newConfigurePluginEvent(name: string, kind: PluginKind, config: Plugin | null): ConfigurePluginEvent;
|
|
1
|
+
import { Plugin, PluginKind } from './plugin.js';
|
|
2
|
+
/**
|
|
3
|
+
* The configure plugin event allows the plugin to request that OpenSCD core add, remove, or reconfigure a plugin.
|
|
4
|
+
*/
|
|
5
|
+
export type ConfigurePluginDetail = {
|
|
6
|
+
name: string;
|
|
7
|
+
kind: PluginKind;
|
|
8
|
+
config: Plugin | null;
|
|
9
|
+
};
|
|
10
|
+
export type ConfigurePluginEvent = CustomEvent<ConfigurePluginDetail>;
|
|
11
|
+
/**
|
|
12
|
+
* The combination of name and kind uniquely identifies the plugin to be configured.
|
|
13
|
+
* If config is null, the plugin is removed. Otherwise, the plugin is added or reconfigured.
|
|
14
|
+
*/
|
|
15
|
+
export declare function newConfigurePluginEvent(name: string, kind: PluginKind, config: Plugin | null): ConfigurePluginEvent;
|
package/dist/plugin.events.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The combination of name and kind uniquely identifies the plugin to be configured.
|
|
3
|
-
* If config is null, the plugin is removed. Otherwise, the plugin is added or reconfigured.
|
|
4
|
-
*/
|
|
5
|
-
export function newConfigurePluginEvent(name, kind, config) {
|
|
6
|
-
return new CustomEvent('oscd-configure-plugin', {
|
|
7
|
-
bubbles: true,
|
|
8
|
-
composed: true,
|
|
9
|
-
detail: { name, kind, config },
|
|
10
|
-
});
|
|
11
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* The combination of name and kind uniquely identifies the plugin to be configured.
|
|
3
|
+
* If config is null, the plugin is removed. Otherwise, the plugin is added or reconfigured.
|
|
4
|
+
*/
|
|
5
|
+
export function newConfigurePluginEvent(name, kind, config) {
|
|
6
|
+
return new CustomEvent('oscd-configure-plugin', {
|
|
7
|
+
bubbles: true,
|
|
8
|
+
composed: true,
|
|
9
|
+
detail: { name, kind, config },
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=plugin.events.js.map
|
package/dist/plugin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const menuPosition = ['top', 'middle', 'bottom'];
|
|
1
|
+
export const menuPosition = ['top', 'middle', 'bottom'];
|
|
2
2
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC","sourcesContent":["import { TemplateResult } from 'lit-element';\nimport { Plugin as CorePlugin } from \"@
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC","sourcesContent":["import { TemplateResult } from 'lit-element';\nimport { Plugin as CorePlugin } from \"@openscd/core\"\n\nexport type Plugin = CorePlugin & {\n official?: boolean;\n active: boolean;\n content?: () => TemplateResult;\n};\n\nexport type PluginConfig = PluginConfigNotMenu | PluginConfigMenu\n\nexport type PluginConfigNotMenu = Omit<Plugin, \"position\" | \"active\"> & {\n kind: 'editor' | 'validator';\n}\n\nexport type PluginConfigMenu = Omit<Plugin, \"active\"> & {\n kind: 'menu';\n position: MenuPosition;\n}\n\nexport type InstalledOfficialPlugin = Plugin & {\n src: string;\n official: true;\n installed: boolean;\n};\n\nexport type PluginKind = 'editor' | 'menu' | 'validator';\nexport const menuPosition = ['top', 'middle', 'bottom'] as const;\nexport type MenuPosition = (typeof menuPosition)[number];\n\n"]}
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PluginConfig } from './plugin.js';
|
|
2
|
-
export declare function generatePluginPath(plugin: string): string;
|
|
3
|
-
export declare const officialPlugins: PluginConfig[];
|
|
1
|
+
import { PluginConfig } from './plugin.js';
|
|
2
|
+
export declare function generatePluginPath(plugin: string): string;
|
|
3
|
+
export declare const officialPlugins: PluginConfig[];
|