@oicl/openbridge-webcomponents 0.0.15-dev-20241203183951 → 0.0.15-dev-20241203184948
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-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 +76 -43
- package/dist/components/poi-target-button/poi-target-button.css.js +65 -77
- package/dist/components/poi-target-button/poi-target-button.css.js.map +1 -1
- package/dist/components/poi-target-button/poi-target-button.d.ts +2 -1
- package/dist/components/poi-target-button/poi-target-button.d.ts.map +1 -1
- package/dist/components/poi-target-button/poi-target-button.js +7 -4
- package/dist/components/poi-target-button/poi-target-button.js.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts +14 -11
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js +18 -42
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts +9 -3
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js +147 -42
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.css.js +8 -7
- package/dist/navigation-instruments/poi-line/poi-line.css.js.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.d.ts +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.js +28 -10
- package/dist/navigation-instruments/poi-line/poi-line.js.map +1 -1
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts +7 -1
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-line/pointerDot.js +96 -99
- package/dist/navigation-instruments/poi-line/pointerDot.js.map +1 -1
- package/dist/navigation-instruments/poi-target/arrow.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-target/arrow.js +1 -0
- package/dist/navigation-instruments/poi-target/arrow.js.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.css.js +9 -11
- package/dist/navigation-instruments/poi-target/poi-target.css.js.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.d.ts +4 -0
- package/dist/navigation-instruments/poi-target/poi-target.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.js +21 -20
- package/dist/navigation-instruments/poi-target/poi-target.js.map +1 -1
- package/package.json +1 -1
- package/src/components/poi-target-button/poi-target-button.css +20 -10
- package/src/components/poi-target-button/poi-target-button.stories.ts +6 -0
- package/src/components/poi-target-button/poi-target-button.ts +7 -2
- package/src/navigation-instruments/poi-graphic-line/poi-config.ts +24 -27
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +3 -4
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts +145 -38
- package/src/navigation-instruments/poi-line/poi-line.css +8 -7
- package/src/navigation-instruments/poi-line/poi-line.stories.ts +5 -5
- package/src/navigation-instruments/poi-line/poi-line.ts +29 -8
- package/src/navigation-instruments/poi-line/pointerDot.ts +115 -99
- package/src/navigation-instruments/poi-target/arrow.ts +1 -0
- package/src/navigation-instruments/poi-target/poi-target.css +9 -13
- package/src/navigation-instruments/poi-target/poi-target.stories.ts +5 -5
- package/src/navigation-instruments/poi-target/poi-target.ts +31 -23
Binary file
|
Binary file
|
Binary file
|
package/custom-elements.json
CHANGED
@@ -42124,12 +42124,8 @@
|
|
42124
42124
|
},
|
42125
42125
|
{
|
42126
42126
|
"kind": "field",
|
42127
|
-
"name": "
|
42128
|
-
"
|
42129
|
-
"text": "boolean"
|
42130
|
-
},
|
42131
|
-
"default": "false",
|
42132
|
-
"attribute": "hasPointer"
|
42127
|
+
"name": "pointer",
|
42128
|
+
"attribute": "pointer"
|
42133
42129
|
},
|
42134
42130
|
{
|
42135
42131
|
"kind": "field",
|
@@ -42150,12 +42146,8 @@
|
|
42150
42146
|
"fieldName": "value"
|
42151
42147
|
},
|
42152
42148
|
{
|
42153
|
-
"name": "
|
42154
|
-
"
|
42155
|
-
"text": "boolean"
|
42156
|
-
},
|
42157
|
-
"default": "false",
|
42158
|
-
"fieldName": "hasPointer"
|
42149
|
+
"name": "pointer",
|
42150
|
+
"fieldName": "pointer"
|
42159
42151
|
},
|
42160
42152
|
{
|
42161
42153
|
"name": "relativeDirection",
|
@@ -45603,19 +45595,19 @@
|
|
45603
45595
|
"declarations": [
|
45604
45596
|
{
|
45605
45597
|
"kind": "variable",
|
45606
|
-
"name": "
|
45598
|
+
"name": "POI_LINE_CONFIG",
|
45607
45599
|
"type": {
|
45608
|
-
"text": "Record<POIStyle,
|
45600
|
+
"text": "Record<POIStyle, POILineParams>"
|
45609
45601
|
},
|
45610
|
-
"default": "{ [POIStyle.Normal]: { lineColor: 'var(--element-active-inverted-color)', outlineColor: 'var(--element-disabled-color)',
|
45602
|
+
"default": "{ [POIStyle.Normal]: { lineColor: 'var(--element-active-inverted-color)', outlineColor: 'var(--element-disabled-color)', width: 4, lineWidth: 1, outlineWidth: 1, shadowAlpha: 0.8, dotStart: 2, lineEnd: 3, filterDimensions: {x: 0.5, y: 0.5, width: 3}, }, [POIStyle.Enhanced]: { lineColor: 'var(--instrument-enhanced-secondary-color)', outlineColor: 'var(--element-active-inverted-color)', width: 8, lineWidth: 1, outlineWidth: 2, shadowAlpha: 0.2, dotStart: 0, lineEnd: 3, filterDimensions: {x: 0, y: 0, width: 4}, }, }"
|
45611
45603
|
}
|
45612
45604
|
],
|
45613
45605
|
"exports": [
|
45614
45606
|
{
|
45615
45607
|
"kind": "js",
|
45616
|
-
"name": "
|
45608
|
+
"name": "POI_LINE_CONFIG",
|
45617
45609
|
"declaration": {
|
45618
|
-
"name": "
|
45610
|
+
"name": "POI_LINE_CONFIG",
|
45619
45611
|
"module": "src/navigation-instruments/poi-graphic-line/poi-config.ts"
|
45620
45612
|
}
|
45621
45613
|
}
|
@@ -45632,52 +45624,71 @@
|
|
45632
45624
|
"members": [
|
45633
45625
|
{
|
45634
45626
|
"kind": "field",
|
45635
|
-
"name": "
|
45627
|
+
"name": "lineHeight",
|
45636
45628
|
"type": {
|
45637
45629
|
"text": "number"
|
45638
45630
|
},
|
45639
|
-
"default": "
|
45640
|
-
"attribute": "
|
45631
|
+
"default": "96",
|
45632
|
+
"attribute": "lineHeight"
|
45641
45633
|
},
|
45642
45634
|
{
|
45643
45635
|
"kind": "field",
|
45644
|
-
"name": "
|
45636
|
+
"name": "width",
|
45645
45637
|
"type": {
|
45646
|
-
"text": "
|
45638
|
+
"text": "number"
|
45647
45639
|
},
|
45648
|
-
"
|
45640
|
+
"default": "4",
|
45641
|
+
"attribute": "width"
|
45642
|
+
},
|
45643
|
+
{
|
45644
|
+
"kind": "field",
|
45645
|
+
"name": "lineStart",
|
45646
|
+
"type": {
|
45647
|
+
"text": "number"
|
45648
|
+
},
|
45649
|
+
"default": "1",
|
45650
|
+
"attribute": "lineStart"
|
45649
45651
|
},
|
45650
45652
|
{
|
45651
45653
|
"kind": "field",
|
45652
|
-
"name": "
|
45654
|
+
"name": "lineStyle",
|
45653
45655
|
"type": {
|
45654
|
-
"text": "
|
45656
|
+
"text": "POIStyle"
|
45655
45657
|
},
|
45656
|
-
"attribute": "
|
45658
|
+
"attribute": "lineStyle"
|
45657
45659
|
}
|
45658
45660
|
],
|
45659
45661
|
"attributes": [
|
45660
45662
|
{
|
45661
|
-
"name": "
|
45663
|
+
"name": "lineHeight",
|
45662
45664
|
"type": {
|
45663
45665
|
"text": "number"
|
45664
45666
|
},
|
45665
|
-
"default": "
|
45666
|
-
"fieldName": "
|
45667
|
+
"default": "96",
|
45668
|
+
"fieldName": "lineHeight"
|
45667
45669
|
},
|
45668
45670
|
{
|
45669
|
-
"name": "
|
45671
|
+
"name": "width",
|
45670
45672
|
"type": {
|
45671
|
-
"text": "
|
45673
|
+
"text": "number"
|
45672
45674
|
},
|
45673
|
-
"
|
45675
|
+
"default": "4",
|
45676
|
+
"fieldName": "width"
|
45674
45677
|
},
|
45675
45678
|
{
|
45676
|
-
"name": "
|
45679
|
+
"name": "lineStart",
|
45677
45680
|
"type": {
|
45678
|
-
"text": "
|
45681
|
+
"text": "number"
|
45679
45682
|
},
|
45680
|
-
"
|
45683
|
+
"default": "1",
|
45684
|
+
"fieldName": "lineStart"
|
45685
|
+
},
|
45686
|
+
{
|
45687
|
+
"name": "lineStyle",
|
45688
|
+
"type": {
|
45689
|
+
"text": "POIStyle"
|
45690
|
+
},
|
45691
|
+
"fieldName": "lineStyle"
|
45681
45692
|
}
|
45682
45693
|
],
|
45683
45694
|
"superclass": {
|
@@ -45686,6 +45697,18 @@
|
|
45686
45697
|
},
|
45687
45698
|
"tagName": "obc-poi-graphic-line",
|
45688
45699
|
"customElement": true
|
45700
|
+
},
|
45701
|
+
{
|
45702
|
+
"kind": "function",
|
45703
|
+
"name": "graphicLine",
|
45704
|
+
"parameters": [
|
45705
|
+
{
|
45706
|
+
"name": "{\n style,\n lineHeight,\n totalHeight,\n}",
|
45707
|
+
"type": {
|
45708
|
+
"text": "{\n style: POILineParams;\n lineHeight: number;\n totalHeight: number;\n}"
|
45709
|
+
}
|
45710
|
+
}
|
45711
|
+
]
|
45689
45712
|
}
|
45690
45713
|
],
|
45691
45714
|
"exports": [
|
@@ -45704,6 +45727,14 @@
|
|
45704
45727
|
"name": "ObcPoiGraphicLine",
|
45705
45728
|
"module": "src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"
|
45706
45729
|
}
|
45730
|
+
},
|
45731
|
+
{
|
45732
|
+
"kind": "js",
|
45733
|
+
"name": "graphicLine",
|
45734
|
+
"declaration": {
|
45735
|
+
"name": "graphicLine",
|
45736
|
+
"module": "src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"
|
45737
|
+
}
|
45707
45738
|
}
|
45708
45739
|
]
|
45709
45740
|
},
|
@@ -45727,11 +45758,11 @@
|
|
45727
45758
|
},
|
45728
45759
|
{
|
45729
45760
|
"kind": "field",
|
45730
|
-
"name": "
|
45761
|
+
"name": "poiStyle",
|
45731
45762
|
"type": {
|
45732
45763
|
"text": "POIStyle"
|
45733
45764
|
},
|
45734
|
-
"attribute": "
|
45765
|
+
"attribute": "poiStyle"
|
45735
45766
|
}
|
45736
45767
|
],
|
45737
45768
|
"attributes": [
|
@@ -45744,11 +45775,11 @@
|
|
45744
45775
|
"fieldName": "height"
|
45745
45776
|
},
|
45746
45777
|
{
|
45747
|
-
"name": "
|
45778
|
+
"name": "poiStyle",
|
45748
45779
|
"type": {
|
45749
45780
|
"text": "POIStyle"
|
45750
45781
|
},
|
45751
|
-
"fieldName": "
|
45782
|
+
"fieldName": "poiStyle"
|
45752
45783
|
}
|
45753
45784
|
],
|
45754
45785
|
"superclass": {
|
@@ -45787,9 +45818,9 @@
|
|
45787
45818
|
"name": "renderPointerDot",
|
45788
45819
|
"parameters": [
|
45789
45820
|
{
|
45790
|
-
"name": "{lineStyle}",
|
45821
|
+
"name": "{\n lineStyle,\n centerX,\n centerY,\n width,\n vbHeight,\n lineColor,\n outlineColor,\n}",
|
45791
45822
|
"type": {
|
45792
|
-
"text": "{lineStyle: POIStyle}"
|
45823
|
+
"text": "{\n lineStyle: POIStyle;\n centerX: number;\n centerY: number;\n width: number;\n vbHeight: number;\n lineColor: string;\n outlineColor: string;\n}"
|
45793
45824
|
}
|
45794
45825
|
}
|
45795
45826
|
]
|
@@ -45855,7 +45886,8 @@
|
|
45855
45886
|
"type": {
|
45856
45887
|
"text": "number"
|
45857
45888
|
},
|
45858
|
-
"default": "
|
45889
|
+
"default": "192",
|
45890
|
+
"description": "y-coordinate of pointer (centre) if pointerType 'line' is selected.",
|
45859
45891
|
"attribute": "height"
|
45860
45892
|
},
|
45861
45893
|
{
|
@@ -45890,7 +45922,8 @@
|
|
45890
45922
|
"type": {
|
45891
45923
|
"text": "number"
|
45892
45924
|
},
|
45893
|
-
"default": "
|
45925
|
+
"default": "192",
|
45926
|
+
"description": "y-coordinate of pointer (centre) if pointerType 'line' is selected.",
|
45894
45927
|
"fieldName": "height"
|
45895
45928
|
},
|
45896
45929
|
{
|
@@ -1,118 +1,106 @@
|
|
1
1
|
import { css } from "lit";
|
2
|
-
const compentStyle = css
|
2
|
+
const compentStyle = css`* {
|
3
|
+
box-sizing: border-box;
|
4
|
+
}
|
5
|
+
|
6
|
+
.wrapper {
|
3
7
|
padding: 0;
|
4
8
|
background: transparent;
|
5
9
|
height: 48px;
|
6
10
|
width: 48px;
|
7
11
|
appearance: none;
|
8
12
|
border: none;
|
13
|
+
border-radius: 14px;
|
9
14
|
display: flex;
|
10
15
|
align-items: center;
|
11
16
|
justify-content: center;
|
12
17
|
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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 {
|
18
|
+
|
19
|
+
.wrapper {
|
20
|
+
border-color: var(--flat-enabled-border-color);
|
21
|
+
background-color: var(--flat-enabled-background-color);
|
22
|
+
border-width: 1px;
|
23
|
+
border-style: solid;
|
29
24
|
cursor: pointer;
|
30
25
|
}
|
31
|
-
|
26
|
+
|
27
|
+
.wrapper:focus {
|
32
28
|
outline: none;
|
33
29
|
}
|
34
|
-
|
35
|
-
|
36
|
-
|
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;
|
30
|
+
|
31
|
+
.wrapper.activated {
|
32
|
+
border-color: var(--flat-activated-border-color);
|
33
|
+
background-color: var(--flat-activated-background-color);
|
44
34
|
}
|
45
|
-
|
35
|
+
|
36
|
+
.wrapper:focus-visible {
|
46
37
|
outline-color: hsla(211, 100%, 44%, 0.3);
|
47
38
|
outline-width: 4px;
|
48
39
|
outline-style: solid;
|
49
40
|
}
|
50
|
-
|
51
|
-
|
52
|
-
|
41
|
+
|
42
|
+
.wrapper:hover {
|
43
|
+
border-color: var(--flat-hover-border-color);
|
44
|
+
background-color: var(--flat-hover-background-color);
|
53
45
|
}
|
54
|
-
|
55
|
-
|
56
|
-
|
46
|
+
|
47
|
+
.wrapper:active {
|
48
|
+
border-color: var(--flat-pressed-border-color);
|
49
|
+
background-color: var(--flat-pressed-background-color);
|
57
50
|
}
|
58
|
-
|
59
|
-
|
60
|
-
|
51
|
+
|
52
|
+
.wrapper:disabled {
|
53
|
+
border-color: var(--flat-disabled-border-color);
|
54
|
+
background-color: var(--flat-disabled-background-color);
|
61
55
|
cursor: not-allowed;
|
62
|
-
color: var(--on-
|
56
|
+
color: var(--on-flat-disabled-color);
|
63
57
|
}
|
58
|
+
|
59
|
+
.wrapper.pointer-arrow-left {
|
60
|
+
width: 56px;
|
61
|
+
flex-direction: row-reverse;
|
62
|
+
}
|
63
|
+
|
64
|
+
.wrapper.pointer-arrow-right {
|
65
|
+
width: 56px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.wrapper .visible-wrapper {
|
69
|
+
height: 32px;
|
70
|
+
width: 32px;
|
71
|
+
border-radius: 6px;
|
72
|
+
display: flex;
|
73
|
+
align-items: center;
|
74
|
+
justify-content: center;
|
75
|
+
}
|
76
|
+
|
77
|
+
.wrapper .icon {
|
78
|
+
height: 24px;
|
79
|
+
width: 24px;
|
80
|
+
}
|
81
|
+
|
64
82
|
.wrapper.value-unchecked .visible-wrapper {
|
65
|
-
color: var(--normal-enabled-background-color);
|
83
|
+
background-color: var(--normal-enabled-background-color);
|
66
84
|
border-color: var(--normal-enabled-border-color);
|
67
85
|
box-shadow: var(--shadow-flat);
|
86
|
+
border-width: 1px;
|
87
|
+
border-style: solid;
|
68
88
|
}
|
89
|
+
|
69
90
|
.wrapper.value-unchecked .icon {
|
70
91
|
color: var(--instrument-regular-secondary-color);
|
71
92
|
}
|
72
|
-
|
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
|
-
}
|
93
|
+
|
108
94
|
.wrapper.value-checked .visible-wrapper {
|
109
95
|
background-color: var(--selected-enabled-background-color);
|
110
96
|
border-color: var(--selected-enabled-border-color);
|
111
97
|
box-shadow: var(--shadow-raised);
|
112
98
|
}
|
99
|
+
|
113
100
|
.wrapper.value-checked .icon {
|
114
101
|
color: var(--on-selected-active-color);
|
115
|
-
}
|
102
|
+
}
|
103
|
+
`;
|
116
104
|
export {
|
117
105
|
compentStyle as default
|
118
106
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-target-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"poi-target-button.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
|
+
import { Pointer } from '../../navigation-instruments/poi-target/poi-target';
|
2
3
|
import '../../icons/icon-iec-02-ais-target-activated';
|
3
4
|
export declare enum PoiTargetButtonValue {
|
4
5
|
checked = "checked",
|
@@ -6,7 +7,7 @@ export declare enum PoiTargetButtonValue {
|
|
6
7
|
}
|
7
8
|
export declare class ObcPoiTargetButton extends LitElement {
|
8
9
|
value: PoiTargetButtonValue;
|
9
|
-
|
10
|
+
pointer: Pointer;
|
10
11
|
relativeDirection: number;
|
11
12
|
render(): import('lit-html').TemplateResult<1>;
|
12
13
|
static styles: import('lit').CSSResult;
|
@@ -1 +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;
|
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,OAAO,EAAC,OAAO,EAAC,MAAM,oDAAoD,CAAC;AAE3E,oBAAY,oBAAoB;IAC9B,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAED,qBACa,kBAAmB,SAAQ,UAAU;IACtB,KAAK,EAAE,oBAAoB,CACtB;IACL,OAAO,UAAgB;IACvB,iBAAiB,SAAK;IAEvC,MAAM;IAwBf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C;CACF"}
|
@@ -3,6 +3,8 @@ import { property, customElement } from "lit/decorators.js";
|
|
3
3
|
import compentStyle from "./poi-target-button.css.js";
|
4
4
|
import { classMap } from "lit/directives/class-map.js";
|
5
5
|
import "../../icons/icon-iec-02-ais-target-activated.js";
|
6
|
+
import { pointerArrow } from "../../navigation-instruments/poi-target/arrow.js";
|
7
|
+
import { Pointer } from "../../navigation-instruments/poi-target/poi-target.js";
|
6
8
|
var __defProp = Object.defineProperty;
|
7
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
8
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
@@ -22,7 +24,7 @@ let ObcPoiTargetButton = class extends LitElement {
|
|
22
24
|
constructor() {
|
23
25
|
super(...arguments);
|
24
26
|
this.value = "checked";
|
25
|
-
this.
|
27
|
+
this.pointer = Pointer.None;
|
26
28
|
this.relativeDirection = 0;
|
27
29
|
}
|
28
30
|
render() {
|
@@ -31,7 +33,7 @@ let ObcPoiTargetButton = class extends LitElement {
|
|
31
33
|
class=${classMap({
|
32
34
|
wrapper: true,
|
33
35
|
["value-" + this.value]: true,
|
34
|
-
pointer
|
36
|
+
["pointer-" + this.pointer]: true
|
35
37
|
})}
|
36
38
|
>
|
37
39
|
<div class="visible-wrapper">
|
@@ -42,6 +44,7 @@ let ObcPoiTargetButton = class extends LitElement {
|
|
42
44
|
<obi-iec-02-ais-target-activated></obi-iec-02-ais-target-activated>
|
43
45
|
</div>
|
44
46
|
</div>
|
47
|
+
${this.pointer === Pointer.None || this.pointer === Pointer.Line ? "" : pointerArrow(this.pointer, this.value)}
|
45
48
|
</button>
|
46
49
|
`;
|
47
50
|
}
|
@@ -51,8 +54,8 @@ __decorateClass([
|
|
51
54
|
property({ type: String })
|
52
55
|
], ObcPoiTargetButton.prototype, "value", 2);
|
53
56
|
__decorateClass([
|
54
|
-
property({ type:
|
55
|
-
], ObcPoiTargetButton.prototype, "
|
57
|
+
property({ type: String })
|
58
|
+
], ObcPoiTargetButton.prototype, "pointer", 2);
|
56
59
|
__decorateClass([
|
57
60
|
property({ type: Number })
|
58
61
|
], ObcPoiTargetButton.prototype, "relativeDirection", 2);
|
@@ -1 +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:
|
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';\nimport {pointerArrow} from '../../navigation-instruments/poi-target/arrow';\nimport {Pointer} from '../../navigation-instruments/poi-target/poi-target';\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: String}) pointer = Pointer.None;\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.pointer]: true,\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 ${this.pointer === Pointer.None || this.pointer === Pointer.Line\n ? ''\n : pointerArrow(this.pointer, this.value)}\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":";;;;;;;;;;;;;;;;;AAQY,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;AACwB,SAAA,UAAU,QAAQ;AACE,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,CAAC,aAAa,KAAK,OAAO,GAAG;AAAA,IAAA,CAC9B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,uCAK6B,KAAK,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA,UAKnD,KAAK,YAAY,QAAQ,QAAQ,KAAK,YAAY,QAAQ,OACxD,KACA,aAAa,KAAK,SAAS,KAAK,KAAK,CAAC;AAAA;AAAA;AAAA,EAAA;AAMlD;AA/Ba,mBA8BK,SAAS,UAAU,YAAY;AA7BrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GADb,mBACe,WAAA,SAAA,CAAA;AAEA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GAHb,mBAGe,WAAA,WAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GAJb,mBAIe,WAAA,qBAAA,CAAA;AAJf,qBAAN,gBAAA;AAAA,EADN,cAAc,uBAAuB;AAAA,GACzB,kBAAA;"}
|
@@ -1,18 +1,21 @@
|
|
1
1
|
export declare enum POIStyle {
|
2
2
|
Normal = "normal",
|
3
|
-
|
4
|
-
Enhanced = "enhanced",
|
5
|
-
Input = "input",
|
6
|
-
Light = "light",
|
7
|
-
Track = "track"
|
3
|
+
Enhanced = "enhanced"
|
8
4
|
}
|
9
|
-
export
|
10
|
-
solid = "solid",
|
11
|
-
dashed = "dashed"
|
12
|
-
}
|
13
|
-
export interface POIStyleConfig {
|
5
|
+
export interface POILineParams {
|
14
6
|
lineColor: string;
|
15
7
|
outlineColor: string;
|
8
|
+
width: number;
|
9
|
+
lineWidth: number;
|
10
|
+
outlineWidth: number;
|
11
|
+
shadowAlpha: number;
|
12
|
+
dotStart: number;
|
13
|
+
lineEnd: number;
|
14
|
+
filterDimensions: {
|
15
|
+
x: number;
|
16
|
+
y: number;
|
17
|
+
width: number;
|
18
|
+
};
|
16
19
|
}
|
17
|
-
export declare const
|
20
|
+
export declare const POI_LINE_CONFIG: Record<POIStyle, POILineParams>;
|
18
21
|
//# sourceMappingURL=poi-config.d.ts.map
|
@@ -1 +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
|
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,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC;CACzD;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAwB3D,CAAC"}
|
@@ -1,64 +1,40 @@
|
|
1
1
|
var POIStyle = /* @__PURE__ */ ((POIStyle2) => {
|
2
2
|
POIStyle2["Normal"] = "normal";
|
3
|
-
POIStyle2["Raised"] = "raised";
|
4
3
|
POIStyle2["Enhanced"] = "enhanced";
|
5
|
-
POIStyle2["Input"] = "input";
|
6
|
-
POIStyle2["Light"] = "light";
|
7
|
-
POIStyle2["Track"] = "track";
|
8
4
|
return POIStyle2;
|
9
5
|
})(POIStyle || {});
|
10
|
-
|
11
|
-
POIState2["solid"] = "solid";
|
12
|
-
POIState2["dashed"] = "dashed";
|
13
|
-
return POIState2;
|
14
|
-
})(POIState || {});
|
15
|
-
const POI_STYLES = {
|
6
|
+
const POI_LINE_CONFIG = {
|
16
7
|
[
|
17
8
|
"normal"
|
18
9
|
/* Normal */
|
19
10
|
]: {
|
20
11
|
lineColor: "var(--element-active-inverted-color)",
|
21
|
-
outlineColor: "var(--element-disabled-color)"
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
12
|
+
outlineColor: "var(--element-disabled-color)",
|
13
|
+
width: 4,
|
14
|
+
lineWidth: 1,
|
15
|
+
outlineWidth: 1,
|
16
|
+
shadowAlpha: 0.8,
|
17
|
+
dotStart: 2,
|
18
|
+
lineEnd: 3,
|
19
|
+
filterDimensions: { x: 0.5, y: 0.5, width: 3 }
|
29
20
|
},
|
30
21
|
[
|
31
22
|
"enhanced"
|
32
23
|
/* Enhanced */
|
33
24
|
]: {
|
34
25
|
lineColor: "var(--instrument-enhanced-secondary-color)",
|
35
|
-
outlineColor: "var(--element-active-inverted-color)"
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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)"
|
26
|
+
outlineColor: "var(--element-active-inverted-color)",
|
27
|
+
width: 8,
|
28
|
+
lineWidth: 1,
|
29
|
+
outlineWidth: 2,
|
30
|
+
shadowAlpha: 0.2,
|
31
|
+
dotStart: 0,
|
32
|
+
lineEnd: 3,
|
33
|
+
filterDimensions: { x: 0, y: 0, width: 4 }
|
57
34
|
}
|
58
35
|
};
|
59
36
|
export {
|
60
|
-
POIState,
|
61
37
|
POIStyle,
|
62
|
-
|
38
|
+
POI_LINE_CONFIG
|
63
39
|
};
|
64
40
|
//# sourceMappingURL=poi-config.js.map
|
@@ -1 +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
|
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 Enhanced = 'enhanced',\n}\n\nexport interface POILineParams {\n lineColor: string;\n outlineColor: string;\n width: number;\n lineWidth: number;\n outlineWidth: number;\n shadowAlpha: number;\n dotStart: number;\n lineEnd: number;\n filterDimensions: {x: number; y: number; width: number};\n}\n\nexport const POI_LINE_CONFIG: Record<POIStyle, POILineParams> = {\n [POIStyle.Normal]: {\n lineColor: 'var(--element-active-inverted-color)',\n outlineColor: 'var(--element-disabled-color)',\n width: 4,\n lineWidth: 1,\n outlineWidth: 1,\n shadowAlpha: 0.8,\n dotStart: 2,\n lineEnd: 3,\n filterDimensions: {x: 0.5, y: 0.5, width: 3},\n },\n\n [POIStyle.Enhanced]: {\n lineColor: 'var(--instrument-enhanced-secondary-color)',\n outlineColor: 'var(--element-active-inverted-color)',\n width: 8,\n lineWidth: 1,\n outlineWidth: 2,\n shadowAlpha: 0.2,\n dotStart: 0,\n lineEnd: 3,\n filterDimensions: {x: 0, y: 0, width: 4},\n },\n};\n"],"names":["POIStyle"],"mappings":"AAAY,IAAA,6BAAAA,cAAL;AACLA,YAAA,QAAS,IAAA;AACTA,YAAA,UAAW,IAAA;AAFDA,SAAAA;AAAA,GAAA,YAAA,CAAA,CAAA;AAiBL,MAAM,kBAAmD;AAAA,EAC9D;AAAA,IAAC;AAAA;AAAA,EAAkB,GAAA;AAAA,IACjB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,OAAO;AAAA,IACP,WAAW;AAAA,IACX,cAAc;AAAA,IACd,aAAa;AAAA,IACb,UAAU;AAAA,IACV,SAAS;AAAA,IACT,kBAAkB,EAAC,GAAG,KAAK,GAAG,KAAK,OAAO,EAAC;AAAA,EAC7C;AAAA,EAEA;AAAA,IAAC;AAAA;AAAA,EAAoB,GAAA;AAAA,IACnB,WAAW;AAAA,IACX,cAAc;AAAA,IACd,OAAO;AAAA,IACP,WAAW;AAAA,IACX,cAAc;AAAA,IACd,aAAa;AAAA,IACb,UAAU;AAAA,IACV,SAAS;AAAA,IACT,kBAAkB,EAAC,GAAG,GAAG,GAAG,GAAG,OAAO,EAAC;AAAA,EAAA;AAE3C;"}
|