@oicl/openbridge-webcomponents 0.0.15-dev-20241106154355 → 0.0.15-dev-20241112185305
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/__snapshots__/building-blocks-poi-graphic-line--primary.png +0 -0
- package/__snapshots__/building-blocks-poi-line--primary.png +0 -0
- package/__snapshots__/button-poi-target-button--primary.png +0 -0
- package/__snapshots__/navigation-instruments-poi-target--primary.png +0 -0
- package/custom-elements.json +3408 -2974
- package/dist/components/poi-target-button/poi-target-button.css.js +119 -0
- package/dist/components/poi-target-button/poi-target-button.css.js.map +1 -0
- package/dist/components/poi-target-button/poi-target-button.d.ts +19 -0
- package/dist/components/poi-target-button/poi-target-button.d.ts.map +1 -0
- package/dist/components/poi-target-button/poi-target-button.js +67 -0
- package/dist/components/poi-target-button/poi-target-button.js.map +1 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts +18 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js +64 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js.map +1 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.css.js +8 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.css.js.map +1 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts +15 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js +134 -0
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js.map +1 -0
- package/dist/navigation-instruments/poi-line/poi-line.css.js +14 -0
- package/dist/navigation-instruments/poi-line/poi-line.css.js.map +1 -0
- package/dist/navigation-instruments/poi-line/poi-line.d.ts +15 -0
- package/dist/navigation-instruments/poi-line/poi-line.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-line/poi-line.js +49 -0
- package/dist/navigation-instruments/poi-line/poi-line.js.map +1 -0
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts +5 -0
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-line/pointerDot.js +105 -0
- package/dist/navigation-instruments/poi-line/pointerDot.js.map +1 -0
- package/dist/navigation-instruments/poi-target/arrow.d.ts +3 -0
- package/dist/navigation-instruments/poi-target/arrow.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-target/arrow.js +60 -0
- package/dist/navigation-instruments/poi-target/arrow.js.map +1 -0
- package/dist/navigation-instruments/poi-target/poi-target.css.js +26 -0
- package/dist/navigation-instruments/poi-target/poi-target.css.js.map +1 -0
- package/dist/navigation-instruments/poi-target/poi-target.d.ts +27 -0
- package/dist/navigation-instruments/poi-target/poi-target.d.ts.map +1 -0
- package/dist/navigation-instruments/poi-target/poi-target.js +126 -0
- package/dist/navigation-instruments/poi-target/poi-target.js.map +1 -0
- package/dist/navigation-instruments/watch/watch.js +1 -1
- package/dist/navigation-instruments/watch/watch.js.map +1 -1
- package/package.json +1 -1
- package/src/components/poi-target-button/poi-target-button.css +57 -0
- package/src/components/poi-target-button/poi-target-button.stories.ts +30 -0
- package/src/components/poi-target-button/poi-target-button.ts +47 -0
- package/src/navigation-instruments/poi-graphic-line/poi-config.ts +45 -0
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.css +3 -0
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +33 -0
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts +116 -0
- package/src/navigation-instruments/poi-line/poi-line.css +8 -0
- package/src/navigation-instruments/poi-line/poi-line.stories.ts +31 -0
- package/src/navigation-instruments/poi-line/poi-line.ts +32 -0
- package/src/navigation-instruments/poi-line/pointerDot.ts +102 -0
- package/src/navigation-instruments/poi-target/arrow.ts +62 -0
- package/src/navigation-instruments/poi-target/poi-target.css +22 -0
- package/src/navigation-instruments/poi-target/poi-target.stories.ts +43 -0
- package/src/navigation-instruments/poi-target/poi-target.ts +105 -0
- package/src/navigation-instruments/watch/watch.ts +2 -2
@@ -0,0 +1,119 @@
|
|
1
|
+
import { css } from "lit";
|
2
|
+
const compentStyle = css`.wrapper {
|
3
|
+
padding: 0;
|
4
|
+
background: transparent;
|
5
|
+
height: 48px;
|
6
|
+
width: 48px;
|
7
|
+
appearance: none;
|
8
|
+
border: none;
|
9
|
+
display: flex;
|
10
|
+
align-items: center;
|
11
|
+
justify-content: center;
|
12
|
+
}
|
13
|
+
.wrapper .visible-wrapper {
|
14
|
+
height: 32px;
|
15
|
+
width: 32px;
|
16
|
+
border-radius: 6px;
|
17
|
+
display: flex;
|
18
|
+
align-items: center;
|
19
|
+
justify-content: center;
|
20
|
+
}
|
21
|
+
.wrapper .icon {
|
22
|
+
height: 24px;
|
23
|
+
width: 24px;
|
24
|
+
}
|
25
|
+
.wrapper.pointer {
|
26
|
+
width: 36px;
|
27
|
+
}
|
28
|
+
.wrapper.value-unchecked {
|
29
|
+
cursor: pointer;
|
30
|
+
}
|
31
|
+
.wrapper.value-unchecked:focus {
|
32
|
+
outline: none;
|
33
|
+
}
|
34
|
+
.wrapper.value-unchecked.activated .visible-wrapper {
|
35
|
+
border-color: var(--normal-activated-border-color);
|
36
|
+
background-color: var(--normal-activated-background-color);
|
37
|
+
}
|
38
|
+
.wrapper.value-unchecked .visible-wrapper {
|
39
|
+
border-color: var(--normal-enabled-border-color);
|
40
|
+
background-color: var(--normal-enabled-background-color);
|
41
|
+
border-width: 1px;
|
42
|
+
border-style: solid;
|
43
|
+
cursor: pointer;
|
44
|
+
}
|
45
|
+
.wrapper.value-unchecked:focus-visible .visible-wrapper {
|
46
|
+
outline-color: hsla(211, 100%, 44%, 0.3);
|
47
|
+
outline-width: 4px;
|
48
|
+
outline-style: solid;
|
49
|
+
}
|
50
|
+
.wrapper.value-unchecked:hover .visible-wrapper {
|
51
|
+
border-color: var(--normal-hover-border-color);
|
52
|
+
background-color: var(--normal-hover-background-color);
|
53
|
+
}
|
54
|
+
.wrapper.value-unchecked:active .visible-wrapper {
|
55
|
+
border-color: var(--normal-pressed-border-color);
|
56
|
+
background-color: var(--normal-pressed-background-color);
|
57
|
+
}
|
58
|
+
.wrapper.value-unchecked:disabled .visible-wrapper {
|
59
|
+
border-color: var(--normal-disabled-border-color);
|
60
|
+
background-color: var(--normal-disabled-background-color);
|
61
|
+
cursor: not-allowed;
|
62
|
+
color: var(--on-normal-disabled-color);
|
63
|
+
}
|
64
|
+
.wrapper.value-unchecked .visible-wrapper {
|
65
|
+
color: var(--normal-enabled-background-color);
|
66
|
+
border-color: var(--normal-enabled-border-color);
|
67
|
+
box-shadow: var(--shadow-flat);
|
68
|
+
}
|
69
|
+
.wrapper.value-unchecked .icon {
|
70
|
+
color: var(--instrument-regular-secondary-color);
|
71
|
+
}
|
72
|
+
.wrapper.value-checked {
|
73
|
+
cursor: pointer;
|
74
|
+
}
|
75
|
+
.wrapper.value-checked:focus {
|
76
|
+
outline: none;
|
77
|
+
}
|
78
|
+
.wrapper.value-checked.activated .visible-wrapper {
|
79
|
+
border-color: var(--selected-activated-border-color);
|
80
|
+
background-color: var(--selected-activated-background-color);
|
81
|
+
}
|
82
|
+
.wrapper.value-checked .visible-wrapper {
|
83
|
+
border-color: var(--selected-enabled-border-color);
|
84
|
+
background-color: var(--selected-enabled-background-color);
|
85
|
+
border-width: 1px;
|
86
|
+
border-style: solid;
|
87
|
+
cursor: pointer;
|
88
|
+
}
|
89
|
+
.wrapper.value-checked:focus-visible .visible-wrapper {
|
90
|
+
outline-color: hsla(211, 100%, 44%, 0.3);
|
91
|
+
outline-width: 4px;
|
92
|
+
outline-style: solid;
|
93
|
+
}
|
94
|
+
.wrapper.value-checked:hover .visible-wrapper {
|
95
|
+
border-color: var(--selected-hover-border-color);
|
96
|
+
background-color: var(--selected-hover-background-color);
|
97
|
+
}
|
98
|
+
.wrapper.value-checked:active .visible-wrapper {
|
99
|
+
border-color: var(--selected-pressed-border-color);
|
100
|
+
background-color: var(--selected-pressed-background-color);
|
101
|
+
}
|
102
|
+
.wrapper.value-checked:disabled .visible-wrapper {
|
103
|
+
border-color: var(--selected-disabled-border-color);
|
104
|
+
background-color: var(--selected-disabled-background-color);
|
105
|
+
cursor: not-allowed;
|
106
|
+
color: var(--on-selected-disabled-color);
|
107
|
+
}
|
108
|
+
.wrapper.value-checked .visible-wrapper {
|
109
|
+
background-color: var(--selected-enabled-background-color);
|
110
|
+
border-color: var(--selected-enabled-border-color);
|
111
|
+
box-shadow: var(--shadow-raised);
|
112
|
+
}
|
113
|
+
.wrapper.value-checked .icon {
|
114
|
+
color: var(--on-selected-active-color);
|
115
|
+
}`;
|
116
|
+
export {
|
117
|
+
compentStyle as default
|
118
|
+
};
|
119
|
+
//# sourceMappingURL=poi-target-button.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-target-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import '../../icons/icon-iec-02-ais-target-activated';
|
3
|
+
export declare enum PoiTargetButtonValue {
|
4
|
+
checked = "checked",
|
5
|
+
unchecked = "unchecked"
|
6
|
+
}
|
7
|
+
export declare class ObcPoiTargetButton extends LitElement {
|
8
|
+
value: PoiTargetButtonValue;
|
9
|
+
hasPointer: boolean;
|
10
|
+
relativeDirection: number;
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
12
|
+
static styles: import("lit").CSSResult;
|
13
|
+
}
|
14
|
+
declare global {
|
15
|
+
interface HTMLElementTagNameMap {
|
16
|
+
'obc-poi-target-button': ObcPoiTargetButton;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=poi-target-button.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-target-button.d.ts","sourceRoot":"","sources":["../../../src/components/poi-target-button/poi-target-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAIhD,OAAO,8CAA8C,CAAC;AAEtD,oBAAY,oBAAoB;IAC9B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,qBACa,kBAAmB,SAAQ,UAAU;IACtB,KAAK,EAAE,oBAAoB,CACtB;IACJ,UAAU,UAAS;IACpB,iBAAiB,SAAK;IAEvC,MAAM;IAqBf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { unsafeCSS, LitElement, html } from "lit";
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
3
|
+
import compentStyle from "./poi-target-button.css.js";
|
4
|
+
import { classMap } from "lit/directives/class-map.js";
|
5
|
+
import "../../icons/icon-iec-02-ais-target-activated.js";
|
6
|
+
var __defProp = Object.defineProperty;
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
11
|
+
if (decorator = decorators[i])
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
13
|
+
if (kind && result)
|
14
|
+
__defProp(target, key, result);
|
15
|
+
return result;
|
16
|
+
};
|
17
|
+
var PoiTargetButtonValue = /* @__PURE__ */ ((PoiTargetButtonValue2) => {
|
18
|
+
PoiTargetButtonValue2["checked"] = "checked";
|
19
|
+
PoiTargetButtonValue2["unchecked"] = "unchecked";
|
20
|
+
return PoiTargetButtonValue2;
|
21
|
+
})(PoiTargetButtonValue || {});
|
22
|
+
let ObcPoiTargetButton = class extends LitElement {
|
23
|
+
constructor() {
|
24
|
+
super(...arguments);
|
25
|
+
this.value = "checked";
|
26
|
+
this.hasPointer = false;
|
27
|
+
this.relativeDirection = 0;
|
28
|
+
}
|
29
|
+
render() {
|
30
|
+
return html`
|
31
|
+
<button
|
32
|
+
class=${classMap({
|
33
|
+
wrapper: true,
|
34
|
+
["value-" + this.value]: true,
|
35
|
+
pointer: this.hasPointer
|
36
|
+
})}
|
37
|
+
>
|
38
|
+
<div class="visible-wrapper">
|
39
|
+
<div
|
40
|
+
class="icon"
|
41
|
+
style="transform: rotate(${this.relativeDirection}deg);"
|
42
|
+
>
|
43
|
+
<obi-iec-02-ais-target-activated></obi-iec-02-ais-target-activated>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</button>
|
47
|
+
`;
|
48
|
+
}
|
49
|
+
};
|
50
|
+
ObcPoiTargetButton.styles = unsafeCSS(compentStyle);
|
51
|
+
__decorateClass([
|
52
|
+
property({ type: String })
|
53
|
+
], ObcPoiTargetButton.prototype, "value", 2);
|
54
|
+
__decorateClass([
|
55
|
+
property({ type: Boolean })
|
56
|
+
], ObcPoiTargetButton.prototype, "hasPointer", 2);
|
57
|
+
__decorateClass([
|
58
|
+
property({ type: Number })
|
59
|
+
], ObcPoiTargetButton.prototype, "relativeDirection", 2);
|
60
|
+
ObcPoiTargetButton = __decorateClass([
|
61
|
+
customElement("obc-poi-target-button")
|
62
|
+
], ObcPoiTargetButton);
|
63
|
+
export {
|
64
|
+
ObcPoiTargetButton,
|
65
|
+
PoiTargetButtonValue
|
66
|
+
};
|
67
|
+
//# sourceMappingURL=poi-target-button.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-target-button.js","sources":["../../../src/components/poi-target-button/poi-target-button.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './poi-target-button.css?inline';\nimport {classMap} from 'lit/directives/class-map.js';\nimport '../../icons/icon-iec-02-ais-target-activated';\n\nexport enum PoiTargetButtonValue {\n checked = 'checked',\n unchecked = 'unchecked',\n}\n\n@customElement('obc-poi-target-button')\nexport class ObcPoiTargetButton extends LitElement {\n @property({type: String}) value: PoiTargetButtonValue =\n PoiTargetButtonValue.checked;\n @property({type: Boolean}) hasPointer = false;\n @property({type: Number}) relativeDirection = 0;\n\n override render() {\n return html`\n <button\n class=${classMap({\n wrapper: true,\n ['value-' + this.value]: true,\n pointer: this.hasPointer,\n })}\n >\n <div class=\"visible-wrapper\">\n <div\n class=\"icon\"\n style=\"transform: rotate(${this.relativeDirection}deg);\"\n >\n <obi-iec-02-ais-target-activated></obi-iec-02-ais-target-activated>\n </div>\n </div>\n </button>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-target-button': ObcPoiTargetButton;\n }\n}\n"],"names":["PoiTargetButtonValue"],"mappings":";;;;;;;;;;;;;;;;AAMY,IAAA,yCAAAA,0BAAL;AACLA,wBAAA,SAAU,IAAA;AACVA,wBAAA,WAAY,IAAA;AAFFA,SAAAA;AAAA,GAAA,wBAAA,CAAA,CAAA;AAMC,IAAA,qBAAN,cAAiC,WAAW;AAAA,EAA5C,cAAA;AAAA,UAAA,GAAA,SAAA;AAEH,SAAA,QAAA;AACsC,SAAA,aAAA;AACM,SAAA,oBAAA;AAAA,EAAA;AAAA,EAErC,SAAS;AACT,WAAA;AAAA;AAAA,gBAEK,SAAS;AAAA,MACf,SAAS;AAAA,MACT,CAAC,WAAW,KAAK,KAAK,GAAG;AAAA,MACzB,SAAS,KAAK;AAAA,IAAA,CACf,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,uCAK6B,KAAK,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO3D;AAGF;AA5Ba,mBA2BK,SAAS,UAAU,YAAY;AA1BrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GADb,mBACe,WAAA,SAAA,CAAA;AAEC,gBAAA;AAAA,EAA1B,SAAS,EAAC,MAAM,SAAQ;AAAA,GAHd,mBAGgB,WAAA,cAAA,CAAA;AACD,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GAJb,mBAIe,WAAA,qBAAA,CAAA;AAJf,qBAAN,gBAAA;AAAA,EADN,cAAc,uBAAuB;AAAA,GACzB,kBAAA;"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare enum POIStyle {
|
2
|
+
Normal = "normal",
|
3
|
+
Raised = "raised",
|
4
|
+
Enhanced = "enhanced",
|
5
|
+
Input = "input",
|
6
|
+
Light = "light",
|
7
|
+
Track = "track"
|
8
|
+
}
|
9
|
+
export declare enum POIState {
|
10
|
+
solid = "solid",
|
11
|
+
dashed = "dashed"
|
12
|
+
}
|
13
|
+
export interface POIStyleConfig {
|
14
|
+
lineColor: string;
|
15
|
+
outlineColor: string;
|
16
|
+
}
|
17
|
+
export declare const POI_STYLES: Record<POIStyle, POIStyleConfig>;
|
18
|
+
//# sourceMappingURL=poi-config.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-config.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-config.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,cAAc,CAyBvD,CAAC"}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
var POIStyle = /* @__PURE__ */ ((POIStyle2) => {
|
2
|
+
POIStyle2["Normal"] = "normal";
|
3
|
+
POIStyle2["Raised"] = "raised";
|
4
|
+
POIStyle2["Enhanced"] = "enhanced";
|
5
|
+
POIStyle2["Input"] = "input";
|
6
|
+
POIStyle2["Light"] = "light";
|
7
|
+
POIStyle2["Track"] = "track";
|
8
|
+
return POIStyle2;
|
9
|
+
})(POIStyle || {});
|
10
|
+
var POIState = /* @__PURE__ */ ((POIState2) => {
|
11
|
+
POIState2["solid"] = "solid";
|
12
|
+
POIState2["dashed"] = "dashed";
|
13
|
+
return POIState2;
|
14
|
+
})(POIState || {});
|
15
|
+
const POI_STYLES = {
|
16
|
+
[
|
17
|
+
"normal"
|
18
|
+
/* Normal */
|
19
|
+
]: {
|
20
|
+
lineColor: "var(--element-active-inverted-color)",
|
21
|
+
outlineColor: "var(--element-disabled-color)"
|
22
|
+
},
|
23
|
+
[
|
24
|
+
"raised"
|
25
|
+
/* Raised */
|
26
|
+
]: {
|
27
|
+
lineColor: "var(--element-active-inverted-color)",
|
28
|
+
outlineColor: "var(--border-outline-color)"
|
29
|
+
},
|
30
|
+
[
|
31
|
+
"enhanced"
|
32
|
+
/* Enhanced */
|
33
|
+
]: {
|
34
|
+
lineColor: "var(--instrument-enhanced-secondary-color)",
|
35
|
+
outlineColor: "var(--element-active-inverted-color)"
|
36
|
+
},
|
37
|
+
[
|
38
|
+
"input"
|
39
|
+
/* Input */
|
40
|
+
]: {
|
41
|
+
lineColor: "var(--instrument-enhanced-primary-color)",
|
42
|
+
outlineColor: "var(--element-active-inverted-color)"
|
43
|
+
},
|
44
|
+
[
|
45
|
+
"light"
|
46
|
+
/* Light */
|
47
|
+
]: {
|
48
|
+
lineColor: "var(--instrument-port-color)",
|
49
|
+
outlineColor: "var(--element-active-color)"
|
50
|
+
},
|
51
|
+
[
|
52
|
+
"track"
|
53
|
+
/* Track */
|
54
|
+
]: {
|
55
|
+
lineColor: "var(--instrument-enhanced-primary-color)",
|
56
|
+
outlineColor: "var(--element-active-inverted-color)"
|
57
|
+
}
|
58
|
+
};
|
59
|
+
export {
|
60
|
+
POIState,
|
61
|
+
POIStyle,
|
62
|
+
POI_STYLES
|
63
|
+
};
|
64
|
+
//# sourceMappingURL=poi-config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-config.js","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-config.ts"],"sourcesContent":["export enum POIStyle {\n Normal = 'normal',\n Raised = 'raised',\n Enhanced = 'enhanced',\n Input = 'input',\n Light = 'light',\n Track = 'track',\n}\n\nexport enum POIState {\n solid = 'solid',\n dashed = 'dashed',\n}\n\nexport interface POIStyleConfig {\n lineColor: string;\n outlineColor: string;\n}\n\nexport const POI_STYLES: Record<POIStyle, POIStyleConfig> = {\n [POIStyle.Normal]: {\n lineColor: 'var(--element-active-inverted-color)',\n outlineColor: 'var(--element-disabled-color)',\n },\n [POIStyle.Raised]: {\n lineColor: 'var(--element-active-inverted-color)',\n outlineColor: 'var(--border-outline-color)',\n },\n [POIStyle.Enhanced]: {\n lineColor: 'var(--instrument-enhanced-secondary-color)',\n outlineColor: 'var(--element-active-inverted-color)',\n },\n [POIStyle.Input]: {\n lineColor: 'var(--instrument-enhanced-primary-color)',\n outlineColor: 'var(--element-active-inverted-color)',\n },\n [POIStyle.Light]: {\n lineColor: 'var(--instrument-port-color)',\n outlineColor: 'var(--element-active-color)',\n },\n [POIStyle.Track]: {\n lineColor: 'var(--instrument-enhanced-primary-color)',\n outlineColor: 'var(--element-active-inverted-color)',\n },\n};\n"],"names":["POIStyle","POIState"],"mappings":"AAAY,IAAA,6BAAAA,cAAL;AACLA,YAAA,QAAS,IAAA;AACTA,YAAA,QAAS,IAAA;AACTA,YAAA,UAAW,IAAA;AACXA,YAAA,OAAQ,IAAA;AACRA,YAAA,OAAQ,IAAA;AACRA,YAAA,OAAQ,IAAA;AANEA,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AASA,IAAA,6BAAAC,cAAL;AACLA,YAAA,OAAQ,IAAA;AACRA,YAAA,QAAS,IAAA;AAFCA,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AAUL,MAAM,aAA+C;AAAA,EAC1D;AAAA,IAAC;AAAA;AAAA,EAAkB,GAAA;AAAA,IACjB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IAAC;AAAA;AAAA,EAAkB,GAAA;AAAA,IACjB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IAAC;AAAA;AAAA,EAAoB,GAAA;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IAAC;AAAA;AAAA,EAAiB,GAAA;AAAA,IAChB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IAAC;AAAA;AAAA,EAAiB,GAAA;AAAA,IAChB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AAAA,EACA;AAAA,IAAC;AAAA;AAAA,EAAiB,GAAA;AAAA,IAChB,WAAW;AAAA,IACX,cAAc;AAAA,EAChB;AACF;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-graphic-line.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import { POIStyle, POIState } from './poi-config';
|
3
|
+
export declare class ObcPoiGraphicLine extends LitElement {
|
4
|
+
height: number;
|
5
|
+
lineStyle: POIStyle;
|
6
|
+
lineState: POIState;
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
8
|
+
static styles: import("lit").CSSResult;
|
9
|
+
}
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
'obc-poi-graphic-line': ObcPoiGraphicLine;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=poi-graphic-line.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-graphic-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAA6B,MAAM,cAAc,CAAC;AAW5E,qBACa,iBAAkB,SAAQ,UAAU;IACrB,MAAM,EAAE,MAAM,CAAO;IACrB,SAAS,EAAE,QAAQ,CAAqB;IACxC,SAAS,EAAE,QAAQ,CAAkB;IAEtD,MAAM;IAyFf,OAAgB,MAAM,0BAA6B;CACpD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,iBAAiB,CAAC;KAC3C;CACF"}
|
@@ -0,0 +1,134 @@
|
|
1
|
+
import { unsafeCSS, LitElement, html } from "lit";
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
3
|
+
import { POIStyle, POIState, POI_STYLES } from "./poi-config.js";
|
4
|
+
import componentStyle from "./poi-graphic-line.css.js";
|
5
|
+
var __defProp = Object.defineProperty;
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
10
|
+
if (decorator = decorators[i])
|
11
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
12
|
+
if (kind && result)
|
13
|
+
__defProp(target, key, result);
|
14
|
+
return result;
|
15
|
+
};
|
16
|
+
function getLineColors(style) {
|
17
|
+
const colors = POI_STYLES[style];
|
18
|
+
if (!colors) {
|
19
|
+
throw new Error(`Style: ${style} not supported`);
|
20
|
+
}
|
21
|
+
return colors;
|
22
|
+
}
|
23
|
+
let ObcPoiGraphicLine = class extends LitElement {
|
24
|
+
constructor() {
|
25
|
+
super(...arguments);
|
26
|
+
this.height = 100;
|
27
|
+
this.lineStyle = POIStyle.Enhanced;
|
28
|
+
this.lineState = POIState.solid;
|
29
|
+
}
|
30
|
+
render() {
|
31
|
+
const colors = getLineColors(this.lineStyle);
|
32
|
+
const path = `M2 1L2 ${this.height}`;
|
33
|
+
return html`<div class="wrapper">
|
34
|
+
<svg width="4" height="${this.height}" viewBox="0 0 4 ${this.height}">
|
35
|
+
<mask
|
36
|
+
id="mask0_903_40238"
|
37
|
+
style="mask-type:alpha"
|
38
|
+
maskUnits="userSpaceOnUse"
|
39
|
+
x="0"
|
40
|
+
y="0"
|
41
|
+
width="4"
|
42
|
+
height="${this.height}"
|
43
|
+
>
|
44
|
+
<path
|
45
|
+
d="${path}"
|
46
|
+
stroke="url(#paint0_linear_903_40238)"
|
47
|
+
stroke-width="4"
|
48
|
+
stroke-linecap="round"
|
49
|
+
/>
|
50
|
+
</mask>
|
51
|
+
<g mask="url(#mask0_903_40238)">
|
52
|
+
<g filter="url(#filter0_d_903_40238)">
|
53
|
+
<path
|
54
|
+
d=${path}
|
55
|
+
stroke="${colors.outlineColor}"
|
56
|
+
stroke-width="2"
|
57
|
+
stroke-linecap="round"
|
58
|
+
/>
|
59
|
+
</g>
|
60
|
+
<path
|
61
|
+
d=${path}
|
62
|
+
stroke="${colors.lineColor}"
|
63
|
+
stroke-width="1"
|
64
|
+
stroke-linecap="round"
|
65
|
+
/>
|
66
|
+
</g>
|
67
|
+
<defs>
|
68
|
+
<filter
|
69
|
+
id="filter0_d_903_40238"
|
70
|
+
x="0"
|
71
|
+
y="0"
|
72
|
+
width="4"
|
73
|
+
height="${this.height}"
|
74
|
+
filterUnits="userSpaceOnUse"
|
75
|
+
color-interpolation-filters="sRGB"
|
76
|
+
>
|
77
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
78
|
+
<feColorMatrix
|
79
|
+
in="SourceAlpha"
|
80
|
+
type="matrix"
|
81
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
82
|
+
result="hardAlpha"
|
83
|
+
/>
|
84
|
+
<feOffset dy="1" />
|
85
|
+
<feGaussianBlur stdDeviation="0.5" />
|
86
|
+
<feColorMatrix
|
87
|
+
type="matrix"
|
88
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"
|
89
|
+
/>
|
90
|
+
<feBlend
|
91
|
+
mode="normal"
|
92
|
+
in2="BackgroundImageFix"
|
93
|
+
result="effect1_dropShadow_903_40238"
|
94
|
+
/>
|
95
|
+
<feBlend
|
96
|
+
mode="normal"
|
97
|
+
in="SourceGraphic"
|
98
|
+
in2="effect1_dropShadow_903_40238"
|
99
|
+
result="shape"
|
100
|
+
/>
|
101
|
+
</filter>
|
102
|
+
<linearGradient
|
103
|
+
id="paint0_linear_903_40238"
|
104
|
+
x1="2.5"
|
105
|
+
y1="1"
|
106
|
+
x2="2.5"
|
107
|
+
y2="${this.height}"
|
108
|
+
gradientUnits="userSpaceOnUse"
|
109
|
+
>
|
110
|
+
<stop stop-color="#C2C2C2" />
|
111
|
+
<stop offset="0.989583" stop-color="#C2C2C2" stop-opacity="0" />
|
112
|
+
</linearGradient>
|
113
|
+
</defs>
|
114
|
+
</svg>
|
115
|
+
</div> `;
|
116
|
+
}
|
117
|
+
};
|
118
|
+
ObcPoiGraphicLine.styles = unsafeCSS(componentStyle);
|
119
|
+
__decorateClass([
|
120
|
+
property({ type: Number })
|
121
|
+
], ObcPoiGraphicLine.prototype, "height", 2);
|
122
|
+
__decorateClass([
|
123
|
+
property({ type: String })
|
124
|
+
], ObcPoiGraphicLine.prototype, "lineStyle", 2);
|
125
|
+
__decorateClass([
|
126
|
+
property({ type: String })
|
127
|
+
], ObcPoiGraphicLine.prototype, "lineState", 2);
|
128
|
+
ObcPoiGraphicLine = __decorateClass([
|
129
|
+
customElement("obc-poi-graphic-line")
|
130
|
+
], ObcPoiGraphicLine);
|
131
|
+
export {
|
132
|
+
ObcPoiGraphicLine
|
133
|
+
};
|
134
|
+
//# sourceMappingURL=poi-graphic-line.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-graphic-line.js","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {POIStyle, POIState, POIStyleConfig, POI_STYLES} from './poi-config';\nimport componentStyle from './poi-graphic-line.css?inline';\n\nfunction getLineColors(style: POIStyle): POIStyleConfig {\n const colors = POI_STYLES[style];\n if (!colors) {\n throw new Error(`Style: ${style} not supported`);\n }\n return colors;\n}\n\n@customElement('obc-poi-graphic-line')\nexport class ObcPoiGraphicLine extends LitElement {\n @property({type: Number}) height: number = 100;\n @property({type: String}) lineStyle: POIStyle = POIStyle.Enhanced;\n @property({type: String}) lineState: POIState = POIState.solid;\n\n override render() {\n const colors = getLineColors(this.lineStyle);\n const path = `M2 1L2 ${this.height}`;\n\n return html`<div class=\"wrapper\">\n <svg width=\"4\" height=\"${this.height}\" viewBox=\"0 0 4 ${this.height}\">\n <mask\n id=\"mask0_903_40238\"\n style=\"mask-type:alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"4\"\n height=\"${this.height}\"\n >\n <path\n d=\"${path}\"\n stroke=\"url(#paint0_linear_903_40238)\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n />\n </mask>\n <g mask=\"url(#mask0_903_40238)\">\n <g filter=\"url(#filter0_d_903_40238)\">\n <path\n d=${path}\n stroke=\"${colors.outlineColor}\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </g>\n <path\n d=${path}\n stroke=\"${colors.lineColor}\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n />\n </g>\n <defs>\n <filter\n id=\"filter0_d_903_40238\"\n x=\"0\"\n y=\"0\"\n width=\"4\"\n height=\"${this.height}\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1\" />\n <feGaussianBlur stdDeviation=\"0.5\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_903_40238\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_903_40238\"\n result=\"shape\"\n />\n </filter>\n <linearGradient\n id=\"paint0_linear_903_40238\"\n x1=\"2.5\"\n y1=\"1\"\n x2=\"2.5\"\n y2=\"${this.height}\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#C2C2C2\" />\n <stop offset=\"0.989583\" stop-color=\"#C2C2C2\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n </svg>\n </div> `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-graphic-line': ObcPoiGraphicLine;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAKA,SAAS,cAAc,OAAiC;AAChD,QAAA,SAAS,WAAW,KAAK;AAC/B,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,UAAU,KAAK,gBAAgB;AAAA,EACjD;AACO,SAAA;AACT;AAGa,IAAA,oBAAN,cAAgC,WAAW;AAAA,EAA3C,cAAA;AAAA,UAAA,GAAA,SAAA;AACsC,SAAA,SAAA;AACjB,SAAA,YAAsB,SAAS;AAC/B,SAAA,YAAsB,SAAS;AAAA,EAAA;AAAA,EAEhD,SAAS;AACV,UAAA,SAAS,cAAc,KAAK,SAAS;AACrC,UAAA,OAAO,UAAU,KAAK,MAAM;AAE3B,WAAA;AAAA,+BACoB,KAAK,MAAM,oBAAoB,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAQrD,KAAK,MAAM;AAAA;AAAA;AAAA,iBAGd,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBASH,IAAI;AAAA,wBACE,OAAO,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAM3B,IAAI;AAAA,sBACE,OAAO,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAWhB,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAkCf,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS3B;AAGF;AA/Fa,kBA8FK,SAAS,UAAU,cAAc;AA7FvB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GADb,kBACe,WAAA,UAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GAFb,kBAEe,WAAA,aAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GAHb,kBAGe,WAAA,aAAA,CAAA;AAHf,oBAAN,gBAAA;AAAA,EADN,cAAc,sBAAsB;AAAA,GACxB,iBAAA;"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { css } from "lit";
|
2
|
+
const compentStyle = css`.wrapper {
|
3
|
+
padding: 0;
|
4
|
+
width: 8px;
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
align-items: center;
|
8
|
+
justify-content: center;
|
9
|
+
}
|
10
|
+
`;
|
11
|
+
export {
|
12
|
+
compentStyle as default
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=poi-line.css.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-line.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
import '../poi-graphic-line/poi-graphic-line';
|
3
|
+
import { POIStyle } from '../poi-graphic-line/poi-config';
|
4
|
+
export declare class ObcPoiLine extends LitElement {
|
5
|
+
height: number;
|
6
|
+
lineStyle: POIStyle;
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
8
|
+
static styles: import("lit").CSSResult;
|
9
|
+
}
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
'obc-poi-line': ObcPoiLine;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=poi-line.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AAExD,qBACa,UAAW,SAAQ,UAAU;IACd,MAAM,EAAE,MAAM,CAAM;IACpB,SAAS,EAAE,QAAQ,CAAmB;IAEvD,MAAM;IAYf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { unsafeCSS, LitElement, html } from "lit";
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
3
|
+
import compentStyle from "./poi-line.css.js";
|
4
|
+
import "../poi-graphic-line/poi-graphic-line.js";
|
5
|
+
import { renderPointerDot } from "./pointerDot.js";
|
6
|
+
import { POIStyle } from "../poi-graphic-line/poi-config.js";
|
7
|
+
var __defProp = Object.defineProperty;
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
12
|
+
if (decorator = decorators[i])
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
14
|
+
if (kind && result)
|
15
|
+
__defProp(target, key, result);
|
16
|
+
return result;
|
17
|
+
};
|
18
|
+
let ObcPoiLine = class extends LitElement {
|
19
|
+
constructor() {
|
20
|
+
super(...arguments);
|
21
|
+
this.height = 96;
|
22
|
+
this.lineStyle = POIStyle.Normal;
|
23
|
+
}
|
24
|
+
render() {
|
25
|
+
return html`
|
26
|
+
<div class="wrapper">
|
27
|
+
<obc-poi-graphic-line
|
28
|
+
height=${this.height}
|
29
|
+
lineStyle=${this.lineStyle}
|
30
|
+
></obc-poi-graphic-line>
|
31
|
+
${renderPointerDot({ lineStyle: this.lineStyle })}
|
32
|
+
</div>
|
33
|
+
`;
|
34
|
+
}
|
35
|
+
};
|
36
|
+
ObcPoiLine.styles = unsafeCSS(compentStyle);
|
37
|
+
__decorateClass([
|
38
|
+
property({ type: Number })
|
39
|
+
], ObcPoiLine.prototype, "height", 2);
|
40
|
+
__decorateClass([
|
41
|
+
property({ type: String })
|
42
|
+
], ObcPoiLine.prototype, "lineStyle", 2);
|
43
|
+
ObcPoiLine = __decorateClass([
|
44
|
+
customElement("obc-poi-line")
|
45
|
+
], ObcPoiLine);
|
46
|
+
export {
|
47
|
+
ObcPoiLine
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=poi-line.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poi-line.js","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './poi-line.css?inline';\nimport '../poi-graphic-line/poi-graphic-line';\nimport {renderPointerDot} from './pointerDot';\nimport {POIStyle} from '../poi-graphic-line/poi-config';\n\n@customElement('obc-poi-line')\nexport class ObcPoiLine extends LitElement {\n @property({type: Number}) height: number = 96;\n @property({type: String}) lineStyle: POIStyle = POIStyle.Normal;\n\n override render() {\n return html`\n <div class=\"wrapper\">\n <obc-poi-graphic-line\n height=${this.height}\n lineStyle=${this.lineStyle}\n ></obc-poi-graphic-line>\n ${renderPointerDot({lineStyle: this.lineStyle})}\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-line': ObcPoiLine;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAQa,IAAA,aAAN,cAAyB,WAAW;AAAA,EAApC,cAAA;AAAA,UAAA,GAAA,SAAA;AACsC,SAAA,SAAA;AACjB,SAAA,YAAsB,SAAS;AAAA,EAAA;AAAA,EAEhD,SAAS;AACT,WAAA;AAAA;AAAA;AAAA,mBAGQ,KAAK,MAAM;AAAA,sBACR,KAAK,SAAS;AAAA;AAAA,UAE1B,iBAAiB,EAAC,WAAW,KAAK,UAAU,CAAA,CAAC;AAAA;AAAA;AAAA,EAGrD;AAGF;AAjBa,WAgBK,SAAS,UAAU,YAAY;AAfrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GADb,WACe,WAAA,UAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,QAAO;AAAA,GAFb,WAEe,WAAA,aAAA,CAAA;AAFf,aAAN,gBAAA;AAAA,EADN,cAAc,cAAc;AAAA,GAChB,UAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pointerDot.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/pointerDot.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,EAAC,SAAS,EAAC,EAAE;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAC,wCAkGlE"}
|