@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.14 → 2.2.0-next.16
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/bundle/openbridge-webcomponents.bundle.js +366 -354
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +39 -1
- package/dist/ar/chart-object-vessel-button/chart-object-vessel-button.css_inline.js +4 -8
- package/dist/ar/poi-button/poi-button.css_inline.js +6 -12
- package/dist/automation/automation-badge/automation-badge.css_inline.js +6 -0
- package/dist/automation/automation-badge/automation-badge.d.ts +61 -1
- package/dist/automation/automation-badge/automation-badge.d.ts.map +1 -1
- package/dist/automation/automation-badge/automation-badge.js +83 -1
- package/dist/automation/automation-badge/automation-badge.js.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button.d.ts +5 -2
- package/dist/automation/automation-button/abstract-automation-button.d.ts.map +1 -1
- package/dist/automation/automation-button/abstract-automation-button.js +6 -0
- package/dist/automation/automation-button/abstract-automation-button.js.map +1 -1
- package/dist/automation/automation-readout/automation-readout.css_inline.js +4 -10
- package/dist/automation/automation-tank/automation-tank.css_inline.js +26 -42
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +7 -2
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/automation/bus/bus.css_inline.js +3 -6
- package/dist/automation/specialty-tank/abstract-specialty-tank.d.ts.map +1 -1
- package/dist/automation/specialty-tank/abstract-specialty-tank.js +7 -2
- package/dist/automation/specialty-tank/abstract-specialty-tank.js.map +1 -1
- package/dist/automation/specialty-tank/specialty-tank.css_inline.js +2 -4
- package/dist/automation/transmitter/transmitter.css_inline.js +5 -9
- package/dist/automation/transmitter-button/transmitter-button.css_inline.js +2 -4
- package/dist/automation/transmitter-stack/transmitter-stack.css_inline.js +6 -10
- package/dist/charthelpers/chart-legend.css_inline.js +1 -1
- package/dist/charthelpers/constants.d.ts +10 -10
- package/dist/charthelpers/constants.d.ts.map +1 -1
- package/dist/charthelpers/constants.js +10 -10
- package/dist/charthelpers/constants.js.map +1 -1
- package/dist/components/audio-recording-item/audio-recording-item.css_inline.js +2 -4
- package/dist/components/automation-button-readout-stack/automation-button-readout-stack.css_inline.js +26 -39
- package/dist/components/brilliance-menu/brilliance-menu.css_inline.js +10 -8
- package/dist/components/command-menu/command-menu.css_inline.js +8 -4
- package/dist/components/number-input-field/number-input-field.css_inline.js +5 -9
- package/dist/components/progress-bar/progress-bar.css_inline.js +10 -20
- package/dist/components/sequence-card/sequence-card.css_inline.js +21 -26
- package/dist/components/sequence-item/sequence-item.css_inline.js +8 -16
- package/dist/components/sequence-modal/sequence-modal.css_inline.js +5 -4
- package/dist/components/sequence-step/sequence-step.css_inline.js +6 -12
- package/dist/components/system-menu/system-menu.css_inline.js +10 -8
- package/dist/components/text-input-field/text-input-field.css_inline.js +2 -4
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.css_inline.js +8 -9
- package/dist/navigation-instruments/compass-indicator/compass-indicator.js +3 -3
- package/dist/navigation-instruments/compass-indicator/compass-indicator.js.map +1 -1
- package/dist/navigation-instruments/instrument-field/instrument-field.css_inline.js +26 -28
- package/package.json +3 -2
- package/script/check-typography-ramp.ts +144 -0
- package/script/typography/ramp.ts +237 -0
- package/script/typography-ramp.test.ts +267 -0
- package/src/ar/chart-object-vessel-button/chart-object-vessel-button.css +2 -2
- package/src/ar/poi-button/poi-button.css +3 -3
- package/src/automation/analog-valve/analog-valve.stories.ts +8 -0
- package/src/automation/automation-badge/automation-badge.css +6 -0
- package/src/automation/automation-badge/automation-badge.stories.ts +47 -3
- package/src/automation/automation-badge/automation-badge.ts +124 -1
- package/src/automation/automation-button/abstract-automation-button.ts +13 -0
- package/src/automation/automation-readout/automation-readout.css +2 -2
- package/src/automation/automation-tank/automation-tank.css +10 -10
- package/src/automation/automation-tank/automation-tank.ts +11 -6
- package/src/automation/bus/bus.css +2 -1
- package/src/automation/specialty-tank/abstract-specialty-tank.ts +11 -6
- package/src/automation/specialty-tank/specialty-tank.css +1 -1
- package/src/automation/transmitter-button/transmitter-button.css +1 -1
- package/src/automation/transmitter-stack/transmitter-stack.css +1 -1
- package/src/charthelpers/chart-legend.css +1 -1
- package/src/charthelpers/constants.ts +11 -10
- package/src/components/audio-recording-item/audio-recording-item.css +1 -1
- package/src/components/automation-button-readout-stack/automation-button-readout-stack.css +8 -8
- package/src/components/brilliance-menu/brilliance-menu.css +2 -2
- package/src/components/command-menu/command-menu.css +1 -1
- package/src/components/number-input-field/number-input-field.css +2 -2
- package/src/components/progress-bar/progress-bar.css +5 -5
- package/src/components/sequence-card/sequence-card.css +13 -11
- package/src/components/sequence-item/sequence-item.css +4 -4
- package/src/components/sequence-modal/sequence-modal.css +1 -1
- package/src/components/sequence-step/sequence-step.css +3 -3
- package/src/components/system-menu/system-menu.css +2 -2
- package/src/integration-systems/integration-fleet-button/integration-fleet-button.css +2 -2
- package/src/mixins/base-input-field.css +1 -1
- package/src/mixins/transmitter.css +5 -1
- package/src/navigation-instruments/compass-indicator/compass-indicator.ts +3 -3
- package/src/navigation-instruments/instrument-field/instrument-field.css +7 -7
|
@@ -42,10 +42,8 @@ var progress_bar_default = css`* {
|
|
|
42
42
|
|
|
43
43
|
.value-number {
|
|
44
44
|
font-family: var(--global-typography-font-family);
|
|
45
|
-
font-
|
|
46
|
-
|
|
47
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
48
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
45
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
46
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
49
47
|
font-feature-settings:
|
|
50
48
|
"liga" off,
|
|
51
49
|
"clig" off,
|
|
@@ -55,10 +53,8 @@ var progress_bar_default = css`* {
|
|
|
55
53
|
|
|
56
54
|
.value-unit {
|
|
57
55
|
font-family: var(--global-typography-font-family);
|
|
58
|
-
font-
|
|
59
|
-
|
|
60
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
61
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
56
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
57
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
62
58
|
font-feature-settings:
|
|
63
59
|
"liga" off,
|
|
64
60
|
"clig" off,
|
|
@@ -68,10 +64,8 @@ var progress_bar_default = css`* {
|
|
|
68
64
|
|
|
69
65
|
.state {
|
|
70
66
|
font-family: var(--global-typography-font-family);
|
|
71
|
-
font-
|
|
72
|
-
|
|
73
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
74
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
67
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
68
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
75
69
|
font-feature-settings:
|
|
76
70
|
"liga" off,
|
|
77
71
|
"clig" off,
|
|
@@ -81,10 +75,8 @@ var progress_bar_default = css`* {
|
|
|
81
75
|
|
|
82
76
|
.loading-text {
|
|
83
77
|
font-family: var(--global-typography-font-family);
|
|
84
|
-
font-
|
|
85
|
-
|
|
86
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
87
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
78
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
79
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
88
80
|
font-feature-settings:
|
|
89
81
|
"liga" off,
|
|
90
82
|
"clig" off,
|
|
@@ -213,10 +205,8 @@ obc-circular-progress {
|
|
|
213
205
|
|
|
214
206
|
.circular-unit {
|
|
215
207
|
font-family: var(--global-typography-font-family);
|
|
216
|
-
font-
|
|
217
|
-
|
|
218
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
219
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
208
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
209
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
220
210
|
font-feature-settings:
|
|
221
211
|
"liga" off,
|
|
222
212
|
"clig" off,
|
|
@@ -105,10 +105,8 @@ var sequence_card_default = css`* {
|
|
|
105
105
|
}
|
|
106
106
|
.sequence-card .stamp-container {
|
|
107
107
|
font-family: var(--global-typography-font-family);
|
|
108
|
-
font-
|
|
109
|
-
|
|
110
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
111
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
108
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
109
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
112
110
|
font-feature-settings:
|
|
113
111
|
"liga" off,
|
|
114
112
|
"clig" off,
|
|
@@ -178,17 +176,18 @@ var sequence_card_default = css`* {
|
|
|
178
176
|
}
|
|
179
177
|
:is(.sequence-card .text-container) .title-text {
|
|
180
178
|
font-family: var(--global-typography-font-family);
|
|
181
|
-
font-weight: var(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
font-weight: var(
|
|
180
|
+
--global-typography-instrument-value-regular-font-weight-active
|
|
181
|
+
);
|
|
182
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
183
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
185
184
|
font-feature-settings:
|
|
186
185
|
"liga" off,
|
|
187
186
|
"clig" off,
|
|
188
187
|
"ss04" on;
|
|
189
188
|
}
|
|
190
189
|
.size-small :is(:is(.sequence-card .text-container) .title-text) {
|
|
191
|
-
font-size: var(--global-typography-
|
|
190
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
192
191
|
}
|
|
193
192
|
.state-flat :is(:is(.sequence-card .text-container) .title-text) {
|
|
194
193
|
color: var(--element-neutral-color);
|
|
@@ -200,10 +199,8 @@ var sequence_card_default = css`* {
|
|
|
200
199
|
}
|
|
201
200
|
:is(.sequence-card .text-container) .subtitle-text {
|
|
202
201
|
font-family: var(--global-typography-font-family);
|
|
203
|
-
font-
|
|
204
|
-
|
|
205
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
206
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
202
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
203
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
207
204
|
font-feature-settings:
|
|
208
205
|
"liga" off,
|
|
209
206
|
"clig" off,
|
|
@@ -211,13 +208,15 @@ var sequence_card_default = css`* {
|
|
|
211
208
|
color: var(--element-neutral-color);
|
|
212
209
|
}
|
|
213
210
|
.title-description :is(:is(.sequence-card .text-container) .subtitle-text) {
|
|
214
|
-
font-size: var(--global-typography-
|
|
211
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
215
212
|
}
|
|
216
213
|
.size-small :is(:is(.sequence-card .text-container) .subtitle-text) {
|
|
217
|
-
font-size: var(--global-typography-
|
|
214
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
218
215
|
}
|
|
219
216
|
:is(.state-flat :is(.sequence-card .text-container)) .title-text {
|
|
220
|
-
font-weight: var(
|
|
217
|
+
font-weight: var(
|
|
218
|
+
--global-typography-instrument-value-regular-font-weight-regular
|
|
219
|
+
);
|
|
221
220
|
}
|
|
222
221
|
:is(.state-flat :is(.sequence-card .text-container)) .subtitle-text {
|
|
223
222
|
color: var(--element-inactive-color);
|
|
@@ -227,10 +226,8 @@ var sequence_card_default = css`* {
|
|
|
227
226
|
}
|
|
228
227
|
.sequence-card .time-label {
|
|
229
228
|
font-family: var(--global-typography-font-family);
|
|
230
|
-
font-
|
|
231
|
-
|
|
232
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
233
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
229
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
230
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
234
231
|
font-feature-settings:
|
|
235
232
|
"liga" off,
|
|
236
233
|
"clig" off,
|
|
@@ -239,10 +236,8 @@ var sequence_card_default = css`* {
|
|
|
239
236
|
}
|
|
240
237
|
.sequence-card .time-value {
|
|
241
238
|
font-family: var(--global-typography-font-family);
|
|
242
|
-
font-
|
|
243
|
-
|
|
244
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
245
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
239
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
240
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
246
241
|
font-feature-settings:
|
|
247
242
|
"liga" off,
|
|
248
243
|
"clig" off,
|
|
@@ -252,8 +247,8 @@ var sequence_card_default = css`* {
|
|
|
252
247
|
font-weight: var(--font-weight-regular);
|
|
253
248
|
}
|
|
254
249
|
.size-small :is(.sequence-card .time-value) {
|
|
255
|
-
font-size: var(--global-typography-
|
|
256
|
-
line-height: var(--global-typography-
|
|
250
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
251
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
257
252
|
}
|
|
258
253
|
.sequence-card .action-container {
|
|
259
254
|
display: grid;
|
|
@@ -176,10 +176,8 @@ var sequence_item_default = css`* {
|
|
|
176
176
|
|
|
177
177
|
.sequence-item__wrapper .description {
|
|
178
178
|
font-family: var(--global-typography-font-family);
|
|
179
|
-
font-
|
|
180
|
-
|
|
181
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
182
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
179
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
180
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
183
181
|
font-feature-settings:
|
|
184
182
|
"liga" off,
|
|
185
183
|
"clig" off,
|
|
@@ -199,10 +197,8 @@ var sequence_item_default = css`* {
|
|
|
199
197
|
|
|
200
198
|
.sequence-item__wrapper .meta {
|
|
201
199
|
font-family: var(--global-typography-font-family);
|
|
202
|
-
font-
|
|
203
|
-
|
|
204
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
205
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
200
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
201
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
206
202
|
font-feature-settings:
|
|
207
203
|
"liga" off,
|
|
208
204
|
"clig" off,
|
|
@@ -240,10 +236,8 @@ var sequence_item_default = css`* {
|
|
|
240
236
|
|
|
241
237
|
.sequence-item__wrapper.state-active.label-small .title,.sequence-item__wrapper.state-active.label-small .subtitle {
|
|
242
238
|
font-family: var(--global-typography-font-family);
|
|
243
|
-
font-
|
|
244
|
-
|
|
245
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
246
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
239
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
240
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
247
241
|
font-feature-settings:
|
|
248
242
|
"liga" off,
|
|
249
243
|
"clig" off,
|
|
@@ -254,10 +248,8 @@ var sequence_item_default = css`* {
|
|
|
254
248
|
|
|
255
249
|
.sequence-item__wrapper.label-small .title,.sequence-item__wrapper.label-small .subtitle {
|
|
256
250
|
font-family: var(--global-typography-font-family);
|
|
257
|
-
font-
|
|
258
|
-
|
|
259
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
260
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
251
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
252
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
261
253
|
font-feature-settings:
|
|
262
254
|
"liga" off,
|
|
263
255
|
"clig" off,
|
|
@@ -22,10 +22,11 @@ var sequence_modal_default = css`* {
|
|
|
22
22
|
|
|
23
23
|
.type-regular obc-sequence-card::part(title-text) {
|
|
24
24
|
font-family: var(--global-typography-font-family);
|
|
25
|
-
font-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
font-size: var(--global-typography-instrument-value-medium-font-size);
|
|
26
|
+
line-height: var(--global-typography-instrument-value-medium-line-height);
|
|
27
|
+
letter-spacing: var(
|
|
28
|
+
--global-typography-instrument-value-medium-letter-spacing
|
|
29
|
+
);
|
|
29
30
|
font-feature-settings:
|
|
30
31
|
"liga" off,
|
|
31
32
|
"clig" off,
|
|
@@ -232,10 +232,8 @@ var sequence_step_default = css`* {
|
|
|
232
232
|
|
|
233
233
|
:is(:is(.type-medium .visible-wrapper) .node) .content {
|
|
234
234
|
font-family: var(--global-typography-font-family);
|
|
235
|
-
font-
|
|
236
|
-
|
|
237
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
238
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
235
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
236
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
239
237
|
font-feature-settings:
|
|
240
238
|
"liga" off,
|
|
241
239
|
"clig" off,
|
|
@@ -283,10 +281,8 @@ var sequence_step_default = css`* {
|
|
|
283
281
|
|
|
284
282
|
:is(.value-loading :is(.type-medium .visible-wrapper),.value-next :is(.type-medium .visible-wrapper),.value-active :is(.type-medium .visible-wrapper),.value-completed :is(.type-medium .visible-wrapper)) .content {
|
|
285
283
|
font-family: var(--global-typography-font-family);
|
|
286
|
-
font-
|
|
287
|
-
|
|
288
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
289
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
284
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
285
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
290
286
|
font-feature-settings:
|
|
291
287
|
"liga" off,
|
|
292
288
|
"clig" off,
|
|
@@ -544,10 +540,8 @@ button {
|
|
|
544
540
|
|
|
545
541
|
:is(.wrapper.type-large.value-loading,.wrapper.type-large.value-next,.wrapper.type-large.value-active,.wrapper.type-large.value-completed) .content {
|
|
546
542
|
font-family: var(--global-typography-font-family);
|
|
547
|
-
font-
|
|
548
|
-
|
|
549
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
550
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
543
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
544
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
551
545
|
font-feature-settings:
|
|
552
546
|
"liga" off,
|
|
553
547
|
"clig" off,
|
|
@@ -709,10 +709,14 @@ var system_menu_default = css`* {
|
|
|
709
709
|
|
|
710
710
|
:is(.sub-container .row) .title {
|
|
711
711
|
font-family: var(--global-typography-font-family);
|
|
712
|
-
font-weight: var(
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
712
|
+
font-weight: var(
|
|
713
|
+
--global-typography-instrument-value-large-font-weight-active
|
|
714
|
+
);
|
|
715
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
716
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
717
|
+
letter-spacing: var(
|
|
718
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
719
|
+
);
|
|
716
720
|
font-feature-settings:
|
|
717
721
|
"liga" off,
|
|
718
722
|
"clig" off,
|
|
@@ -724,10 +728,8 @@ var system_menu_default = css`* {
|
|
|
724
728
|
|
|
725
729
|
:is(:is(.sub-container .row) .title) .unit {
|
|
726
730
|
font-family: var(--global-typography-font-family);
|
|
727
|
-
font-
|
|
728
|
-
|
|
729
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
730
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
731
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
732
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
731
733
|
font-feature-settings:
|
|
732
734
|
"liga" off,
|
|
733
735
|
"clig" off,
|
|
@@ -289,10 +289,8 @@ var text_input_field_default = css`* {
|
|
|
289
289
|
}
|
|
290
290
|
.value-input {
|
|
291
291
|
font-family: var(--global-typography-font-family);
|
|
292
|
-
font-
|
|
293
|
-
|
|
294
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
295
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
292
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
293
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
296
294
|
font-feature-settings:
|
|
297
295
|
"liga" off,
|
|
298
296
|
"clig" off,
|
package/dist/integration-systems/integration-fleet-button/integration-fleet-button.css_inline.js
CHANGED
|
@@ -227,10 +227,11 @@ var integration_fleet_button_default = css`* {
|
|
|
227
227
|
:is(:is(:is(.wrapper .content) .readouts) .readout) .readout-value {
|
|
228
228
|
grid-area: value;
|
|
229
229
|
font-family: var(--global-typography-font-family);
|
|
230
|
-
font-weight: var(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
font-weight: var(
|
|
231
|
+
--global-typography-instrument-value-regular-font-weight-active
|
|
232
|
+
);
|
|
233
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
234
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
234
235
|
font-feature-settings:
|
|
235
236
|
"liga" off,
|
|
236
237
|
"clig" off,
|
|
@@ -242,11 +243,9 @@ var integration_fleet_button_default = css`* {
|
|
|
242
243
|
:is(:is(:is(.wrapper .content) .readouts) .readout) .readout-unit {
|
|
243
244
|
grid-area: unit;
|
|
244
245
|
text-align: left;
|
|
245
|
-
font-family: var(--
|
|
246
|
-
font-weight: var(--
|
|
247
|
-
font-size: var(--
|
|
248
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
249
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
246
|
+
font-family: var(--font-family-main);
|
|
247
|
+
font-weight: var(--automation-components-typography-unit-regular-font-weight);
|
|
248
|
+
font-size: var(--automation-components-typography-unit-regular-font-size);
|
|
250
249
|
font-feature-settings:
|
|
251
250
|
"liga" off,
|
|
252
251
|
"clig" off,
|
|
@@ -228,10 +228,10 @@ var ObcCompassIndicator = class ObcCompassIndicator extends LitElement {
|
|
|
228
228
|
y="11"
|
|
229
229
|
fill="var(--instrument-tick-mark-label-secondary-color)"
|
|
230
230
|
font-family="var(--global-typography-font-family)"
|
|
231
|
-
font-size="var(--global-typography-
|
|
231
|
+
font-size="var(--global-typography-instrument-tick-mark-active-font-size)"
|
|
232
232
|
font-style="normal"
|
|
233
|
-
font-weight="var(--global-typography-
|
|
234
|
-
line-height="var(--global-typography-
|
|
233
|
+
font-weight="var(--global-typography-instrument-tick-mark-active-font-weight)"
|
|
234
|
+
line-height="var(--global-typography-instrument-tick-mark-active-line-height)"
|
|
235
235
|
text-anchor="middle"
|
|
236
236
|
dominant-baseline="text-before-edge"
|
|
237
237
|
style="font-feature-settings: 'ss04' on;"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compass-indicator.js","names":["componentStyle","_decorate"],"sources":["../../../src/navigation-instruments/compass-indicator/compass-indicator.ts"],"sourcesContent":["import {LitElement, html, svg, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport componentStyle from './compass-indicator.css?inline';\nimport {customElement} from '../../decorator.js';\nimport {normalizeAngle} from '../../svghelpers/math.js';\n\nconst HEADING_ARROW_PATH =\n 'M23.1426 11.978C23.5519 11.2972 24.6131 11.3458 24.9297 12.1235L32.3877 30.4536L32.4336 30.5796C32.8455 31.8831 31.3809 32.9849 30.209 32.2808V32.2798L24 28.5835L17.79 32.2798L17.791 32.2808C16.5815 33.0075 15.0606 31.8106 15.6123 30.4536L23.0703 12.1235L23.1426 11.978Z';\nconst LABELED_HEADING_ARROW_PATH =\n 'M7.68919 1.5401C7.80154 1.26398 8.19911 1.26398 8.31146 1.5401L13.2832 13.7598C13.5226 14.3482 12.8616 14.8972 12.3115 14.5667L8.00033 11.9997L3.68917 14.5667C3.13908 14.8972 2.478 14.3482 2.71743 13.7598L7.68919 1.5401Z';\nconst COURSE_ARROW_PATH =\n 'M23.1426 11.978C23.5519 11.2972 24.6131 11.3458 24.9297 12.1235L32.3877 30.4536L32.4336 30.5796C32.8455 31.8831 31.3809 32.9849 30.209 32.2808V32.2798L24 28.5835L17.79 32.2798L17.791 32.2808C16.5815 33.0075 15.0606 31.8106 15.6123 30.4536L23.0703 12.1235L23.1426 11.978ZM20.0889 27.4087L23.7451 25.2388L24 25.0864L24.2549 25.2388L27.9102 27.4087L24 17.7974L20.0889 27.4087Z';\nconst CARDINAL_LABELS_8_WAY = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];\nconst CARDINAL_LABELS_CARDINAL = ['N', 'E', 'S', 'W'];\n\nexport enum CompassIndicatorType {\n Regular = 'regular',\n Labeled = 'labeled',\n}\n\nexport enum CompassIndicatorDirection {\n Heading = 'heading',\n Course = 'course',\n North = 'north',\n}\n\n/**\n * `<obc-compass-indicator>` – A compact compass direction indicator with heading, course, and north variants.\n *\n * Renders a 48 x 48 directional indicator that can switch between a circular\n * compass face and labeled compact readouts. Use it when you need a small\n * directional cue next to a numeric readout or inside dense instrument layouts.\n *\n * ## Features\n *\n * - **Types**: `regular` shows the circular compass indicator; `labeled` shows a framed indicator with a single cardinal label.\n * - **Directions**: `heading`, `course`, and `north` each use their own visual symbol.\n * - **Angle-driven output**: `angle` rotates the active symbol and drives the derived label in labeled mode.\n * - **Orientation**: `northUp` keeps the compass face fixed north-up and rotates the arrow; when `false` the face rotates and the arrow stays pointing up (heading-up / course-up).\n *\n * ## Usage Guidelines\n *\n * - Use `direction=\"heading\"` for the filled heading arrow variant.\n * - Use `direction=\"course\"` for the outlined course arrow variant.\n * - Use `direction=\"north\"` for the north marker / bearing-style indicator.\n * - Switch `type` to `labeled` when the indicator should also communicate the\n * nearest cardinal direction as text.\n * - Set `northUp` to `false` to render a heading-up / course-up presentation\n * where the arrow stays vertical and the compass face rotates instead.\n *\n * @property northUp - When `true` (default) the compass face stays north-up and the arrow\n * rotates by `angle`; when `false` the arrow stays pointing up and the face\n * rotates instead, the heading-up presentation.\n * @stable\n */\n@customElement('obc-compass-indicator')\nexport class ObcCompassIndicator extends LitElement {\n private idBase = `compass-indicator-${Math.random().toString(36).slice(2, 9)}`;\n\n @property({type: Number})\n angle = 0;\n\n @property({type: String})\n type: CompassIndicatorType = CompassIndicatorType.Regular;\n\n @property({type: String})\n direction: CompassIndicatorDirection = CompassIndicatorDirection.Heading;\n\n @property({type: Boolean, attribute: false})\n northUp: boolean = true;\n\n private get normalizedAngle(): number {\n return normalizeAngle(this.angle);\n }\n\n private get cardinalLabel(): string {\n const index =\n Math.round(this.normalizedAngle / 45) % CARDINAL_LABELS_8_WAY.length;\n return CARDINAL_LABELS_8_WAY[index];\n }\n\n private get cardinalLabelPrimary(): string {\n const index =\n Math.round(this.normalizedAngle / 90) % CARDINAL_LABELS_CARDINAL.length;\n return CARDINAL_LABELS_CARDINAL[index];\n }\n\n private renderArrow(\n direction: string,\n options?: {\n rotation?: number;\n translateY?: number;\n scale?: number;\n }\n ) {\n const {rotation = 0, translateY = 0, scale = 1} = options ?? {};\n const d =\n direction === CompassIndicatorDirection.Course\n ? COURSE_ARROW_PATH\n : HEADING_ARROW_PATH;\n\n return svg`\n <g transform=\"translate(0 ${translateY})\">\n <g transform=\"rotate(${rotation}, 24, 24)\">\n <g transform=\"translate(24 24) scale(${scale}) translate(-24 -24)\">\n <path\n d=\"${d}\"\n fill=\"var(--instrument-enhanced-secondary-color)\"\n stroke=\"var(--border-silhouette-color)\"\n />\n </g>\n </g>\n </g>\n `;\n }\n\n private renderCompassFace(rotation: number, showNorthMarker = true) {\n const ringMaskId = `${this.idBase}-ring-mask`;\n const crosshairMaskId = `${this.idBase}-crosshair-mask`;\n\n return svg`\n ${\n showNorthMarker\n ? svg`\n <path\n transform=\"rotate(${rotation}, 24, 24)\"\n d=\"M23.5929 1.56961L19.5645 7.20938C19.3281 7.54031 19.5646 8 19.9713 8L28.0281 8C28.4348 8 28.6714 7.54031 28.435 7.20938L24.4066 1.56961C24.2072 1.29044 23.7923 1.29044 23.5929 1.56961Z\"\n fill=\"var(--instrument-tick-mark-tertiary-color)\"\n />\n `\n : null\n }\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"18\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <mask\n id=\"${ringMaskId}\"\n style=\"mask-type: alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"48\"\n height=\"48\"\n >\n <path\n d=\"M24 8C32.8366 8 40 15.1634 40 24C40 32.8366 32.8366 40 24 40C15.1634 40 8 32.8366 8 24C8 15.1634 15.1634 8 24 8ZM24 10C16.268 10 10 16.268 10 24C10 31.732 16.268 38 24 38C31.732 38 38 31.732 38 24C38 16.268 31.732 10 24 10Z\"\n fill=\"var(--instrument-frame-primary-color)\"\n />\n </mask>\n <g mask=\"url(#${ringMaskId})\">\n <path\n d=\"M24 0V24M24 24L19.8324 0.364611M24 24L15.7915 1.44736M24 24L12 3.21539M24 24L8.5731 5.61493M24 24L5.61494 8.5731M24 24L3.21539 12M24 24L1.44738 15.7915M24 24L0.364617 19.8324M24 24H0M24 24L0.364611 28.1676M24 24L1.44739 32.2085M24 24L3.21539 36M24 24L5.61493 39.4269M24 24L8.5731 42.3851M24 24L12 44.7846M24 24L15.7915 46.5526M24 24L19.8324 47.6354M24 24V48M24 24L28.1676 47.6354M24 24L32.2085 46.5526M24 24L36 44.7846M24 24L39.4269 42.3851M24 24L42.3851 39.4269M24 24L44.7846 36M24 24L46.5526 32.2085M24 24L47.6354 28.1676M24 24H48M24 24L47.6354 19.8325M24 24L46.5526 15.7915M24 24L44.7846 12M24 24L42.3851 8.57313M24 24L39.4269 5.61497M24 24L36 3.21539M24 24L32.2085 1.44741M24 24L28.1676 0.364646\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n </g>\n <mask\n id=\"${crosshairMaskId}\"\n style=\"mask-type: alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"-14\"\n y=\"-14\"\n width=\"76\"\n height=\"76\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM24 36C30.6274 36 36 30.6274 36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36Z\"\n fill=\"var(--instrument-frame-primary-color)\"\n />\n </mask>\n <g mask=\"url(#${crosshairMaskId})\">\n <path\n d=\"M24 0V24M24 24H0M24 24V48M24 24H48\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n </g>\n `;\n }\n\n private renderRoundIndicator(\n direction: string,\n arrowRotation: number,\n faceRotation: number\n ) {\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${this.renderCompassFace(faceRotation)}\n ${this.renderArrow(direction, {rotation: arrowRotation})}\n </svg>\n `;\n }\n\n private renderRegularNorthNeedle() {\n const tailClipId = `${this.idBase}-regular-north-tail-clip`;\n\n return svg`\n <g transform=\"rotate(${this.normalizedAngle - 315}, 24, 24)\">\n <g transform=\"translate(-5 -5)\">\n <svg\n x=\"14.5\"\n y=\"14.5\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 19 19\"\n overflow=\"visible\"\n >\n <g clip-path=\"url(#${tailClipId})\">\n <path\n d=\"M11.8398 17.0537L2.80041 3.49458C2.49725 3.03984 3.03904 2.49804 3.49379 2.80121L17.0529 11.8406C17.9318 12.4265 18.6859 13.1806 19.2717 14.0594L28.3112 27.6186C28.6143 28.0733 28.0726 28.6151 27.6178 28.312L14.0587 19.2725C13.1798 18.6867 12.4257 17.9326 11.8398 17.0537Z\"\n fill=\"var(--instrument-enhanced-secondary-color)\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n />\n </g>\n <defs>\n <clipPath id=\"${tailClipId}\">\n <rect\n width=\"8\"\n height=\"18\"\n fill=\"white\"\n transform=\"translate(0 5.65723) rotate(-45)\"\n />\n </clipPath>\n </defs>\n </svg>\n <svg\n x=\"15.5\"\n y=\"15.5\"\n width=\"17\"\n height=\"17\"\n viewBox=\"0 0 17 17\"\n overflow=\"visible\"\n >\n <path\n d=\"M9.63184 14.8448L0.592403 1.2856C0.28924 0.830852 0.831036 0.289059 1.28578 0.592223L14.8449 9.63166C15.7238 10.2175 16.4779 10.9716 17.0637 11.8505L26.1032 25.4096C26.4063 25.8644 25.8645 26.4062 25.4098 26.103L11.8506 17.0636C10.9718 16.4777 10.2177 15.7236 9.63184 14.8448Z\"\n fill=\"none\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n stroke-width=\"1.5\"\n />\n </svg>\n </g>\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"3\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n stroke-width=\"2\"\n />\n </g>\n `;\n }\n\n private renderLabeledIndicator(direction: string) {\n const label = this.cardinalLabelPrimary;\n const isHeading = direction === CompassIndicatorDirection.Heading;\n\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"8\"\n y=\"8\"\n width=\"32\"\n height=\"32\"\n rx=\"4\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <text\n x=\"24\"\n y=\"11\"\n fill=\"var(--instrument-tick-mark-label-secondary-color)\"\n font-family=\"var(--global-typography-font-family)\"\n font-size=\"var(--global-typography-general-xs-font-size)\"\n font-style=\"normal\"\n font-weight=\"var(--global-typography-general-xs-font-weight-bold)\"\n line-height=\"var(--global-typography-general-xs-line-height)\"\n text-anchor=\"middle\"\n dominant-baseline=\"text-before-edge\"\n style=\"font-feature-settings: 'ss04' on;\"\n >\n ${label}\n </text>\n <g\n transform=\"translate(24 32) rotate(${\n this.normalizedAngle\n }) translate(-8 -8)\"\n >\n <path\n d=\"${LABELED_HEADING_ARROW_PATH}\"\n fill=\"${\n isHeading ? 'var(--instrument-enhanced-secondary-color)' : 'none'\n }\"\n stroke=\"${\n isHeading ? 'none' : 'var(--instrument-enhanced-secondary-color)'\n }\"\n stroke-width=\"${isHeading ? '0' : '1'}\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n\n private renderNorthIndicator(labeled: boolean) {\n const label = this.cardinalLabel;\n\n if (!labeled) {\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${this.renderCompassFace(0, false)} ${this.renderRegularNorthNeedle()}\n </svg>\n `;\n }\n\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"18\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <path d=\"M24 6.5V14\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M24 34V41.5\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M6.5 24H14\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M34 24H41.5\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n ${this.renderRegularNorthNeedle()}\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"12\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <text\n x=\"24\"\n y=\"25\"\n fill=\"var(--element-neutral-color)\"\n font-family=\"var(--font-family-main)\"\n font-size=\"var(--global-typography-ui-label-active-font-size)\"\n font-weight=\"var(--global-typography-ui-label-active-font-weight)\"\n line-height=\"var(--global-typography-ui-label-active-line-height)\"\n text-anchor=\"middle\"\n dominant-baseline=\"middle\"\n >\n ${label}\n </text>\n </svg>\n `;\n }\n\n override render() {\n if (this.direction === CompassIndicatorDirection.North) {\n return this.renderNorthIndicator(\n this.type === CompassIndicatorType.Labeled\n );\n }\n\n if (this.type === CompassIndicatorType.Labeled) {\n return this.renderLabeledIndicator(this.direction);\n }\n\n return this.renderRoundIndicator(\n this.direction,\n this.northUp ? this.normalizedAngle : 0,\n this.northUp ? 0 : -this.normalizedAngle\n );\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-compass-indicator': ObcCompassIndicator;\n }\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"compass-indicator.js","names":["componentStyle","_decorate"],"sources":["../../../src/navigation-instruments/compass-indicator/compass-indicator.ts"],"sourcesContent":["import {LitElement, html, svg, unsafeCSS} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport componentStyle from './compass-indicator.css?inline';\nimport {customElement} from '../../decorator.js';\nimport {normalizeAngle} from '../../svghelpers/math.js';\n\nconst HEADING_ARROW_PATH =\n 'M23.1426 11.978C23.5519 11.2972 24.6131 11.3458 24.9297 12.1235L32.3877 30.4536L32.4336 30.5796C32.8455 31.8831 31.3809 32.9849 30.209 32.2808V32.2798L24 28.5835L17.79 32.2798L17.791 32.2808C16.5815 33.0075 15.0606 31.8106 15.6123 30.4536L23.0703 12.1235L23.1426 11.978Z';\nconst LABELED_HEADING_ARROW_PATH =\n 'M7.68919 1.5401C7.80154 1.26398 8.19911 1.26398 8.31146 1.5401L13.2832 13.7598C13.5226 14.3482 12.8616 14.8972 12.3115 14.5667L8.00033 11.9997L3.68917 14.5667C3.13908 14.8972 2.478 14.3482 2.71743 13.7598L7.68919 1.5401Z';\nconst COURSE_ARROW_PATH =\n 'M23.1426 11.978C23.5519 11.2972 24.6131 11.3458 24.9297 12.1235L32.3877 30.4536L32.4336 30.5796C32.8455 31.8831 31.3809 32.9849 30.209 32.2808V32.2798L24 28.5835L17.79 32.2798L17.791 32.2808C16.5815 33.0075 15.0606 31.8106 15.6123 30.4536L23.0703 12.1235L23.1426 11.978ZM20.0889 27.4087L23.7451 25.2388L24 25.0864L24.2549 25.2388L27.9102 27.4087L24 17.7974L20.0889 27.4087Z';\nconst CARDINAL_LABELS_8_WAY = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];\nconst CARDINAL_LABELS_CARDINAL = ['N', 'E', 'S', 'W'];\n\nexport enum CompassIndicatorType {\n Regular = 'regular',\n Labeled = 'labeled',\n}\n\nexport enum CompassIndicatorDirection {\n Heading = 'heading',\n Course = 'course',\n North = 'north',\n}\n\n/**\n * `<obc-compass-indicator>` – A compact compass direction indicator with heading, course, and north variants.\n *\n * Renders a 48 x 48 directional indicator that can switch between a circular\n * compass face and labeled compact readouts. Use it when you need a small\n * directional cue next to a numeric readout or inside dense instrument layouts.\n *\n * ## Features\n *\n * - **Types**: `regular` shows the circular compass indicator; `labeled` shows a framed indicator with a single cardinal label.\n * - **Directions**: `heading`, `course`, and `north` each use their own visual symbol.\n * - **Angle-driven output**: `angle` rotates the active symbol and drives the derived label in labeled mode.\n * - **Orientation**: `northUp` keeps the compass face fixed north-up and rotates the arrow; when `false` the face rotates and the arrow stays pointing up (heading-up / course-up).\n *\n * ## Usage Guidelines\n *\n * - Use `direction=\"heading\"` for the filled heading arrow variant.\n * - Use `direction=\"course\"` for the outlined course arrow variant.\n * - Use `direction=\"north\"` for the north marker / bearing-style indicator.\n * - Switch `type` to `labeled` when the indicator should also communicate the\n * nearest cardinal direction as text.\n * - Set `northUp` to `false` to render a heading-up / course-up presentation\n * where the arrow stays vertical and the compass face rotates instead.\n *\n * @property northUp - When `true` (default) the compass face stays north-up and the arrow\n * rotates by `angle`; when `false` the arrow stays pointing up and the face\n * rotates instead, the heading-up presentation.\n * @stable\n */\n@customElement('obc-compass-indicator')\nexport class ObcCompassIndicator extends LitElement {\n private idBase = `compass-indicator-${Math.random().toString(36).slice(2, 9)}`;\n\n @property({type: Number})\n angle = 0;\n\n @property({type: String})\n type: CompassIndicatorType = CompassIndicatorType.Regular;\n\n @property({type: String})\n direction: CompassIndicatorDirection = CompassIndicatorDirection.Heading;\n\n @property({type: Boolean, attribute: false})\n northUp: boolean = true;\n\n private get normalizedAngle(): number {\n return normalizeAngle(this.angle);\n }\n\n private get cardinalLabel(): string {\n const index =\n Math.round(this.normalizedAngle / 45) % CARDINAL_LABELS_8_WAY.length;\n return CARDINAL_LABELS_8_WAY[index];\n }\n\n private get cardinalLabelPrimary(): string {\n const index =\n Math.round(this.normalizedAngle / 90) % CARDINAL_LABELS_CARDINAL.length;\n return CARDINAL_LABELS_CARDINAL[index];\n }\n\n private renderArrow(\n direction: string,\n options?: {\n rotation?: number;\n translateY?: number;\n scale?: number;\n }\n ) {\n const {rotation = 0, translateY = 0, scale = 1} = options ?? {};\n const d =\n direction === CompassIndicatorDirection.Course\n ? COURSE_ARROW_PATH\n : HEADING_ARROW_PATH;\n\n return svg`\n <g transform=\"translate(0 ${translateY})\">\n <g transform=\"rotate(${rotation}, 24, 24)\">\n <g transform=\"translate(24 24) scale(${scale}) translate(-24 -24)\">\n <path\n d=\"${d}\"\n fill=\"var(--instrument-enhanced-secondary-color)\"\n stroke=\"var(--border-silhouette-color)\"\n />\n </g>\n </g>\n </g>\n `;\n }\n\n private renderCompassFace(rotation: number, showNorthMarker = true) {\n const ringMaskId = `${this.idBase}-ring-mask`;\n const crosshairMaskId = `${this.idBase}-crosshair-mask`;\n\n return svg`\n ${\n showNorthMarker\n ? svg`\n <path\n transform=\"rotate(${rotation}, 24, 24)\"\n d=\"M23.5929 1.56961L19.5645 7.20938C19.3281 7.54031 19.5646 8 19.9713 8L28.0281 8C28.4348 8 28.6714 7.54031 28.435 7.20938L24.4066 1.56961C24.2072 1.29044 23.7923 1.29044 23.5929 1.56961Z\"\n fill=\"var(--instrument-tick-mark-tertiary-color)\"\n />\n `\n : null\n }\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"18\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <mask\n id=\"${ringMaskId}\"\n style=\"mask-type: alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"48\"\n height=\"48\"\n >\n <path\n d=\"M24 8C32.8366 8 40 15.1634 40 24C40 32.8366 32.8366 40 24 40C15.1634 40 8 32.8366 8 24C8 15.1634 15.1634 8 24 8ZM24 10C16.268 10 10 16.268 10 24C10 31.732 16.268 38 24 38C31.732 38 38 31.732 38 24C38 16.268 31.732 10 24 10Z\"\n fill=\"var(--instrument-frame-primary-color)\"\n />\n </mask>\n <g mask=\"url(#${ringMaskId})\">\n <path\n d=\"M24 0V24M24 24L19.8324 0.364611M24 24L15.7915 1.44736M24 24L12 3.21539M24 24L8.5731 5.61493M24 24L5.61494 8.5731M24 24L3.21539 12M24 24L1.44738 15.7915M24 24L0.364617 19.8324M24 24H0M24 24L0.364611 28.1676M24 24L1.44739 32.2085M24 24L3.21539 36M24 24L5.61493 39.4269M24 24L8.5731 42.3851M24 24L12 44.7846M24 24L15.7915 46.5526M24 24L19.8324 47.6354M24 24V48M24 24L28.1676 47.6354M24 24L32.2085 46.5526M24 24L36 44.7846M24 24L39.4269 42.3851M24 24L42.3851 39.4269M24 24L44.7846 36M24 24L46.5526 32.2085M24 24L47.6354 28.1676M24 24H48M24 24L47.6354 19.8325M24 24L46.5526 15.7915M24 24L44.7846 12M24 24L42.3851 8.57313M24 24L39.4269 5.61497M24 24L36 3.21539M24 24L32.2085 1.44741M24 24L28.1676 0.364646\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n </g>\n <mask\n id=\"${crosshairMaskId}\"\n style=\"mask-type: alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"-14\"\n y=\"-14\"\n width=\"76\"\n height=\"76\"\n >\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42ZM24 36C30.6274 36 36 30.6274 36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36Z\"\n fill=\"var(--instrument-frame-primary-color)\"\n />\n </mask>\n <g mask=\"url(#${crosshairMaskId})\">\n <path\n d=\"M24 0V24M24 24H0M24 24V48M24 24H48\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n </g>\n `;\n }\n\n private renderRoundIndicator(\n direction: string,\n arrowRotation: number,\n faceRotation: number\n ) {\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${this.renderCompassFace(faceRotation)}\n ${this.renderArrow(direction, {rotation: arrowRotation})}\n </svg>\n `;\n }\n\n private renderRegularNorthNeedle() {\n const tailClipId = `${this.idBase}-regular-north-tail-clip`;\n\n return svg`\n <g transform=\"rotate(${this.normalizedAngle - 315}, 24, 24)\">\n <g transform=\"translate(-5 -5)\">\n <svg\n x=\"14.5\"\n y=\"14.5\"\n width=\"19\"\n height=\"19\"\n viewBox=\"0 0 19 19\"\n overflow=\"visible\"\n >\n <g clip-path=\"url(#${tailClipId})\">\n <path\n d=\"M11.8398 17.0537L2.80041 3.49458C2.49725 3.03984 3.03904 2.49804 3.49379 2.80121L17.0529 11.8406C17.9318 12.4265 18.6859 13.1806 19.2717 14.0594L28.3112 27.6186C28.6143 28.0733 28.0726 28.6151 27.6178 28.312L14.0587 19.2725C13.1798 18.6867 12.4257 17.9326 11.8398 17.0537Z\"\n fill=\"var(--instrument-enhanced-secondary-color)\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n />\n </g>\n <defs>\n <clipPath id=\"${tailClipId}\">\n <rect\n width=\"8\"\n height=\"18\"\n fill=\"white\"\n transform=\"translate(0 5.65723) rotate(-45)\"\n />\n </clipPath>\n </defs>\n </svg>\n <svg\n x=\"15.5\"\n y=\"15.5\"\n width=\"17\"\n height=\"17\"\n viewBox=\"0 0 17 17\"\n overflow=\"visible\"\n >\n <path\n d=\"M9.63184 14.8448L0.592403 1.2856C0.28924 0.830852 0.831036 0.289059 1.28578 0.592223L14.8449 9.63166C15.7238 10.2175 16.4779 10.9716 17.0637 11.8505L26.1032 25.4096C26.4063 25.8644 25.8645 26.4062 25.4098 26.103L11.8506 17.0636C10.9718 16.4777 10.2177 15.7236 9.63184 14.8448Z\"\n fill=\"none\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n stroke-width=\"1.5\"\n />\n </svg>\n </g>\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"3\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-enhanced-secondary-color)\"\n stroke-width=\"2\"\n />\n </g>\n `;\n }\n\n private renderLabeledIndicator(direction: string) {\n const label = this.cardinalLabelPrimary;\n const isHeading = direction === CompassIndicatorDirection.Heading;\n\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"8\"\n y=\"8\"\n width=\"32\"\n height=\"32\"\n rx=\"4\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <text\n x=\"24\"\n y=\"11\"\n fill=\"var(--instrument-tick-mark-label-secondary-color)\"\n font-family=\"var(--global-typography-font-family)\"\n font-size=\"var(--global-typography-instrument-tick-mark-active-font-size)\"\n font-style=\"normal\"\n font-weight=\"var(--global-typography-instrument-tick-mark-active-font-weight)\"\n line-height=\"var(--global-typography-instrument-tick-mark-active-line-height)\"\n text-anchor=\"middle\"\n dominant-baseline=\"text-before-edge\"\n style=\"font-feature-settings: 'ss04' on;\"\n >\n ${label}\n </text>\n <g\n transform=\"translate(24 32) rotate(${\n this.normalizedAngle\n }) translate(-8 -8)\"\n >\n <path\n d=\"${LABELED_HEADING_ARROW_PATH}\"\n fill=\"${\n isHeading ? 'var(--instrument-enhanced-secondary-color)' : 'none'\n }\"\n stroke=\"${\n isHeading ? 'none' : 'var(--instrument-enhanced-secondary-color)'\n }\"\n stroke-width=\"${isHeading ? '0' : '1'}\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n\n private renderNorthIndicator(labeled: boolean) {\n const label = this.cardinalLabel;\n\n if (!labeled) {\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${this.renderCompassFace(0, false)} ${this.renderRegularNorthNeedle()}\n </svg>\n `;\n }\n\n return html`\n <svg\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"18\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <path d=\"M24 6.5V14\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M24 34V41.5\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M6.5 24H14\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n <path d=\"M34 24H41.5\" stroke=\"var(--instrument-frame-tertiary-color)\" />\n ${this.renderRegularNorthNeedle()}\n <circle\n cx=\"24\"\n cy=\"24\"\n r=\"12\"\n fill=\"var(--instrument-frame-primary-color)\"\n stroke=\"var(--instrument-frame-tertiary-color)\"\n />\n <text\n x=\"24\"\n y=\"25\"\n fill=\"var(--element-neutral-color)\"\n font-family=\"var(--font-family-main)\"\n font-size=\"var(--global-typography-ui-label-active-font-size)\"\n font-weight=\"var(--global-typography-ui-label-active-font-weight)\"\n line-height=\"var(--global-typography-ui-label-active-line-height)\"\n text-anchor=\"middle\"\n dominant-baseline=\"middle\"\n >\n ${label}\n </text>\n </svg>\n `;\n }\n\n override render() {\n if (this.direction === CompassIndicatorDirection.North) {\n return this.renderNorthIndicator(\n this.type === CompassIndicatorType.Labeled\n );\n }\n\n if (this.type === CompassIndicatorType.Labeled) {\n return this.renderLabeledIndicator(this.direction);\n }\n\n return this.renderRoundIndicator(\n this.direction,\n this.northUp ? this.normalizedAngle : 0,\n this.northUp ? 0 : -this.normalizedAngle\n );\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-compass-indicator': ObcCompassIndicator;\n }\n}\n"],"mappings":"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"}
|
|
@@ -37,10 +37,8 @@ var instrument_field_default = css`* {
|
|
|
37
37
|
.wrapper .setpoint {
|
|
38
38
|
color: var(--instrument-enhanced-secondary-color);
|
|
39
39
|
font-family: var(--global-typography-font-family);
|
|
40
|
-
font-
|
|
41
|
-
|
|
42
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
43
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
40
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
41
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
44
42
|
font-feature-settings:
|
|
45
43
|
"liga" off,
|
|
46
44
|
"clig" off,
|
|
@@ -55,10 +53,11 @@ var instrument_field_default = css`* {
|
|
|
55
53
|
|
|
56
54
|
.wrapper.horizontal.enhanced .setpoint {
|
|
57
55
|
font-family: var(--global-typography-font-family);
|
|
58
|
-
font-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
57
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
58
|
+
letter-spacing: var(
|
|
59
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
60
|
+
);
|
|
62
61
|
font-feature-settings:
|
|
63
62
|
"liga" off,
|
|
64
63
|
"clig" off,
|
|
@@ -67,10 +66,11 @@ var instrument_field_default = css`* {
|
|
|
67
66
|
|
|
68
67
|
.wrapper .value {
|
|
69
68
|
font-family: var(--global-typography-font-family);
|
|
70
|
-
font-weight: var(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
font-weight: var(
|
|
70
|
+
--global-typography-instrument-value-regular-font-weight-active
|
|
71
|
+
);
|
|
72
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
73
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
74
74
|
font-feature-settings:
|
|
75
75
|
"liga" off,
|
|
76
76
|
"clig" off,
|
|
@@ -101,10 +101,8 @@ var instrument_field_default = css`* {
|
|
|
101
101
|
|
|
102
102
|
:is(.wrapper .label) .tag {
|
|
103
103
|
font-family: var(--global-typography-font-family);
|
|
104
|
-
font-
|
|
105
|
-
|
|
106
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
107
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
104
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
105
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
108
106
|
font-feature-settings:
|
|
109
107
|
"liga" off,
|
|
110
108
|
"clig" off,
|
|
@@ -114,10 +112,8 @@ var instrument_field_default = css`* {
|
|
|
114
112
|
|
|
115
113
|
:is(.wrapper .label) .unit {
|
|
116
114
|
font-family: var(--global-typography-font-family);
|
|
117
|
-
font-
|
|
118
|
-
|
|
119
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
120
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
115
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
116
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
121
117
|
font-feature-settings:
|
|
122
118
|
"liga" off,
|
|
123
119
|
"clig" off,
|
|
@@ -145,10 +141,8 @@ var instrument_field_default = css`* {
|
|
|
145
141
|
|
|
146
142
|
.wrapper .src {
|
|
147
143
|
font-family: var(--global-typography-font-family);
|
|
148
|
-
font-
|
|
149
|
-
|
|
150
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
151
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
144
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
145
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
152
146
|
font-feature-settings:
|
|
153
147
|
"liga" off,
|
|
154
148
|
"clig" off,
|
|
@@ -188,10 +182,14 @@ var instrument_field_default = css`* {
|
|
|
188
182
|
|
|
189
183
|
.wrapper.enhanced .value {
|
|
190
184
|
font-family: var(--global-typography-font-family);
|
|
191
|
-
font-weight: var(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
font-weight: var(
|
|
186
|
+
--global-typography-instrument-value-large-font-weight-active
|
|
187
|
+
);
|
|
188
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
189
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
190
|
+
letter-spacing: var(
|
|
191
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
192
|
+
);
|
|
195
193
|
font-feature-settings:
|
|
196
194
|
"liga" off,
|
|
197
195
|
"clig" off,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-full-bundle",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"typecheck:tooling": "tsc -p tsconfig.tooling.json",
|
|
144
144
|
"format": "prettier \"**/*.{cjs,mjs,html,js,json,md,ts,css}\" \"../../*.md\" \"../../docs/agents/*.md\" \"../../.github/**/*.md\" --write",
|
|
145
145
|
"format:check": "prettier \"**/*.{cjs,mjs,html,js,json,md,ts,css}\" \"../../*.md\" \"../../docs/agents/*.md\" \"../../.github/**/*.md\" --check",
|
|
146
|
-
"lint": "npm run lint:mixins && npm run lint:variables && npm run lint:palette && npm run lint:icons && npm run lint:slots && npm run lint:events && npm run lint:apg && npm run lint:agents && npm run lint:lit-analyzer && npm run lint:eslint && npm run lint:suppressions && npm run lint:comments",
|
|
146
|
+
"lint": "npm run lint:mixins && npm run lint:variables && npm run lint:typography && npm run lint:palette && npm run lint:icons && npm run lint:slots && npm run lint:events && npm run lint:apg && npm run lint:agents && npm run lint:lit-analyzer && npm run lint:eslint && npm run lint:suppressions && npm run lint:comments",
|
|
147
147
|
"agents:sync": "tsx ./script/sync-agent-docs.ts",
|
|
148
148
|
"lint:agents": "tsx ./script/sync-agent-docs.ts --check",
|
|
149
149
|
"lint:mixins": "tsx ./script/check-css-mixins.ts",
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
"lint:events": "tsx ./script/check-event-leaks.ts",
|
|
152
152
|
"lint:apg": "tsx ./script/check-apg-records.ts",
|
|
153
153
|
"lint:variables": "tsx ./script/check-css-variables.ts",
|
|
154
|
+
"lint:typography": "tsx ./script/check-typography-ramp.ts",
|
|
154
155
|
"lint:palette": "tsx ./script/strip-palette-export.ts --check",
|
|
155
156
|
"palette:strip": "tsx ./script/strip-palette-export.ts",
|
|
156
157
|
"palette:diff": "tsx ./script/diff-palette-export.ts",
|