@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.49 → 2.0.0-next.52
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 +18716 -17343
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +877 -14
- package/dist/ar/building-blocks/poi-header/poi-header.css.js +8 -4
- package/dist/ar/building-blocks/poi-header/poi-header.css.js.map +1 -1
- package/dist/ar/chart-object-vessel-button/chart-object-vessel-button.css.js +7 -7
- package/dist/ar/poi-card-header/poi-card-header.css.js +12 -6
- package/dist/ar/poi-card-header/poi-card-header.css.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.css.js +166 -28
- package/dist/automation/automation-tank/automation-tank.css.js.map +1 -1
- package/dist/automation/automation-tank/automation-tank.d.ts +32 -0
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +28 -0
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/building-blocks/alert-list/alert-list.css.js +4 -2
- package/dist/building-blocks/alert-list/alert-list.css.js.map +1 -1
- package/dist/components/accordion-card/accordion-card.css.js +6 -3
- package/dist/components/accordion-card/accordion-card.css.js.map +1 -1
- package/dist/components/accordion-item/accordion-item.css.js +4 -2
- package/dist/components/accordion-item/accordion-item.css.js.map +1 -1
- package/dist/components/advice-button/advice-button.css.js +2 -1
- package/dist/components/advice-button/advice-button.css.js.map +1 -1
- package/dist/components/alert-button/alert-button.css.js +2 -1
- package/dist/components/alert-button/alert-button.css.js.map +1 -1
- package/dist/components/alert-frame/alert-frame.css.js +7 -3
- package/dist/components/alert-frame/alert-frame.css.js.map +1 -1
- package/dist/components/alert-list-details/alert-list-details.css.js +4 -2
- package/dist/components/alert-list-details/alert-list-details.css.js.map +1 -1
- package/dist/components/alert-menu/alert-menu.css.js +4 -2
- package/dist/components/alert-menu/alert-menu.css.js.map +1 -1
- package/dist/components/app-button/app-button.css.js +8 -4
- package/dist/components/app-button/app-button.css.js.map +1 -1
- package/dist/components/attachment-list-item/attachment-list-item.css.js +8 -4
- package/dist/components/attachment-list-item/attachment-list-item.css.js.map +1 -1
- package/dist/components/badge/badge.css.js +4 -2
- package/dist/components/badge/badge.css.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.css.js +4 -2
- package/dist/components/breadcrumb/breadcrumb.css.js.map +1 -1
- package/dist/components/brilliance-menu/brilliance-menu.css.js +2 -1
- package/dist/components/brilliance-menu/brilliance-menu.css.js.map +1 -1
- package/dist/components/calendar/calendar.css.js +5 -3
- package/dist/components/calendar/calendar.css.js.map +1 -1
- package/dist/components/card/card.css.js +2 -1
- package/dist/components/card/card.css.js.map +1 -1
- package/dist/components/chat-message/chat-message.css.js +6 -3
- package/dist/components/chat-message/chat-message.css.js.map +1 -1
- package/dist/components/check-button/check-button.css.js +5 -3
- package/dist/components/check-button/check-button.css.js.map +1 -1
- package/dist/components/checkbox-item/checkbox-item.css.js +4 -2
- package/dist/components/checkbox-item/checkbox-item.css.js.map +1 -1
- package/dist/components/clock/clock.css.js +7 -3
- package/dist/components/clock/clock.css.js.map +1 -1
- package/dist/components/command-menu/command-menu.css.js +6 -3
- package/dist/components/command-menu/command-menu.css.js.map +1 -1
- package/dist/components/communication-table/communication-table.css.js +10 -5
- package/dist/components/communication-table/communication-table.css.js.map +1 -1
- package/dist/components/context-menu-input/context-menu-input.css.js +4 -2
- package/dist/components/context-menu-input/context-menu-input.css.js.map +1 -1
- package/dist/components/date-item/date-item.css.js +16 -8
- package/dist/components/date-item/date-item.css.js.map +1 -1
- package/dist/components/dropdown-button/dropdown-button.css.js +6 -3
- package/dist/components/dropdown-button/dropdown-button.css.js.map +1 -1
- package/dist/components/elevated-card/elevated-card.css.js +8 -4
- package/dist/components/elevated-card/elevated-card.css.js.map +1 -1
- package/dist/components/elevated-card-radio-group/elevated-card-radio-group.css.js +6 -3
- package/dist/components/elevated-card-radio-group/elevated-card-radio-group.css.js.map +1 -1
- package/dist/components/event-item/event-item.css.js +6 -3
- package/dist/components/event-item/event-item.css.js.map +1 -1
- package/dist/components/event-list/event-list.css.js +2 -1
- package/dist/components/event-list/event-list.css.js.map +1 -1
- package/dist/components/filter-chip/filter-chip.css.js +2 -1
- package/dist/components/filter-chip/filter-chip.css.js.map +1 -1
- package/dist/components/floating-item/floating-item.css.js +6 -3
- package/dist/components/floating-item/floating-item.css.js.map +1 -1
- package/dist/components/form-container/form-container.css.js +1 -1
- package/dist/components/form-group/form-group.css.js +4 -2
- package/dist/components/form-group/form-group.css.js.map +1 -1
- package/dist/components/form-item/form-item.css.js +4 -2
- package/dist/components/form-item/form-item.css.js.map +1 -1
- package/dist/components/icon-button/icon-button.css.js +20 -19
- package/dist/components/icon-button/icon-button.css.js.map +1 -1
- package/dist/components/icon-button/icon-button.d.ts +2 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js.map +1 -1
- package/dist/components/icon-check-button/icon-check-button.css.js +4 -2
- package/dist/components/icon-check-button/icon-check-button.css.js.map +1 -1
- package/dist/components/input-chip/input-chip.css.js +2 -1
- package/dist/components/input-chip/input-chip.css.js.map +1 -1
- package/dist/components/keyboard-full/keyboard-full.css.js +2 -1
- package/dist/components/keyboard-full/keyboard-full.css.js.map +1 -1
- package/dist/components/keyboard-numeric/keyboard-numeric.css.js +2 -1
- package/dist/components/keyboard-numeric/keyboard-numeric.css.js.map +1 -1
- package/dist/components/menu-button/menu-button.css.js +4 -2
- package/dist/components/menu-button/menu-button.css.js.map +1 -1
- package/dist/components/message-menu-item/message-menu-item.css.js +8 -13
- package/dist/components/message-menu-item/message-menu-item.css.js.map +1 -1
- package/dist/components/modal-window/modal-window.css.js +2 -1
- package/dist/components/modal-window/modal-window.css.js.map +1 -1
- package/dist/components/navigation-item/navigation-item.css.js +9 -4
- package/dist/components/navigation-item/navigation-item.css.js.map +1 -1
- package/dist/components/notification-badge-button/notification-badge-button.css.js +2 -1
- package/dist/components/notification-badge-button/notification-badge-button.css.js.map +1 -1
- package/dist/components/notification-button/notification-button.css.js +2 -1
- package/dist/components/notification-button/notification-button.css.js.map +1 -1
- package/dist/components/number-input-field/number-input-field.css.js +4 -2
- package/dist/components/number-input-field/number-input-field.css.js.map +1 -1
- package/dist/components/pivot-item/pivot-item.css.js +4 -2
- package/dist/components/pivot-item/pivot-item.css.js.map +1 -1
- package/dist/components/progress-bar/progress-bar.css.js +4 -2
- package/dist/components/progress-bar/progress-bar.css.js.map +1 -1
- package/dist/components/progress-button/progress-button.css.js +4 -2
- package/dist/components/progress-button/progress-button.css.js.map +1 -1
- package/dist/components/radio/radio.css.js +4 -2
- package/dist/components/radio/radio.css.js.map +1 -1
- package/dist/components/rich-button/rich-button.css.js +4 -2
- package/dist/components/rich-button/rich-button.css.js.map +1 -1
- package/dist/components/sequence-item/sequence-item.css.js +11 -6
- package/dist/components/sequence-item/sequence-item.css.js.map +1 -1
- package/dist/components/sequence-loading-spinner/sequence-loading-spinner.css.js +3 -3
- package/dist/components/sequence-step/sequence-step.css.js +2 -1
- package/dist/components/sequence-step/sequence-step.css.js.map +1 -1
- package/dist/components/slide-button/slide-button.css.js +2 -1
- package/dist/components/slide-button/slide-button.css.js.map +1 -1
- package/dist/components/slider-double/slider-double.css.js +2 -1
- package/dist/components/slider-double/slider-double.css.js.map +1 -1
- package/dist/components/start-stop-switch/start-stop-switch.css.js +16 -8
- package/dist/components/start-stop-switch/start-stop-switch.css.js.map +1 -1
- package/dist/components/status-indicator/status-indicator.css.js +4 -2
- package/dist/components/status-indicator/status-indicator.css.js.map +1 -1
- package/dist/components/stepper-box/stepper-box.css.js +2 -1
- package/dist/components/stepper-box/stepper-box.css.js.map +1 -1
- package/dist/components/system-menu/system-menu.css.js +26 -13
- package/dist/components/system-menu/system-menu.css.js.map +1 -1
- package/dist/components/tab-item/tab-item.css.js +8 -5
- package/dist/components/tab-item/tab-item.css.js.map +1 -1
- package/dist/components/tabbed-card/tabbed-card.css.js +4 -2
- package/dist/components/tabbed-card/tabbed-card.css.js.map +1 -1
- package/dist/components/table/table.css.js +8 -5
- package/dist/components/table/table.css.js.map +1 -1
- package/dist/components/table-header-item/table-header-item.css.js +2 -1
- package/dist/components/table-header-item/table-header-item.css.js.map +1 -1
- package/dist/components/tag/tag.css.js +4 -2
- package/dist/components/tag/tag.css.js.map +1 -1
- package/dist/components/text-input-field/text-input-field.css.js +6 -3
- package/dist/components/text-input-field/text-input-field.css.js.map +1 -1
- package/dist/components/textarea-field/textarea-field.css.js +6 -3
- package/dist/components/textarea-field/textarea-field.css.js.map +1 -1
- package/dist/components/title-container/title-container.css.js +3 -2
- package/dist/components/title-container/title-container.css.js.map +1 -1
- package/dist/components/toggle-button-option/toggle-button-option.css.js +19 -12
- package/dist/components/toggle-button-option/toggle-button-option.css.js.map +1 -1
- package/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.css.js +4 -2
- package/dist/components/toggle-button-vertical-option/toggle-button-vertical-option.css.js.map +1 -1
- package/dist/components/toggle-switch/toggle-switch.css.js +6 -3
- package/dist/components/toggle-switch/toggle-switch.css.js.map +1 -1
- package/dist/components/toggletip/toggletip.css.js +4 -2
- package/dist/components/toggletip/toggletip.css.js.map +1 -1
- package/dist/components/tooltip/tooltip.css.js +2 -1
- package/dist/components/tooltip/tooltip.css.js.map +1 -1
- package/dist/components/top-bar/top-bar.css.js +4 -2
- package/dist/components/top-bar/top-bar.css.js.map +1 -1
- package/dist/components/topbar-message-item/topbar-message-item.css.js +10 -5
- package/dist/components/topbar-message-item/topbar-message-item.css.js.map +1 -1
- package/dist/components/user-button/user-button.css.js +12 -7
- package/dist/components/user-button/user-button.css.js.map +1 -1
- package/dist/components/user-menu/user-menu.css.js +4 -2
- package/dist/components/user-menu/user-menu.css.js.map +1 -1
- package/dist/integration-systems/integration-bar/integration-bar.css.js +97 -0
- package/dist/integration-systems/integration-bar/integration-bar.css.js.map +1 -0
- package/dist/integration-systems/integration-bar/integration-bar.d.ts +91 -0
- package/dist/integration-systems/integration-bar/integration-bar.d.ts.map +1 -0
- package/dist/integration-systems/integration-bar/integration-bar.js +279 -0
- package/dist/integration-systems/integration-bar/integration-bar.js.map +1 -0
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.css.js +2 -1
- package/dist/integration-systems/integration-bar-dropdown/integration-bar-dropdown.css.js.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.css.js +472 -156
- package/dist/integration-systems/integration-button/integration-button.css.js.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.d.ts +37 -1
- package/dist/integration-systems/integration-button/integration-button.d.ts.map +1 -1
- package/dist/integration-systems/integration-button/integration-button.js +202 -36
- package/dist/integration-systems/integration-button/integration-button.js.map +1 -1
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js +17 -6
- package/dist/integration-systems/integration-dropdown-button/integration-dropdown-button.css.js.map +1 -1
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.css.js +12 -6
- package/dist/integration-systems/integration-fleet-button/integration-fleet-button.css.js.map +1 -1
- package/dist/integration-systems/integration-tabs/integration-tabs.css.js +3 -1
- package/dist/integration-systems/integration-tabs/integration-tabs.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js +75 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.css.js.map +1 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts +37 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.d.ts.map +1 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js +72 -0
- package/dist/integration-systems/integration-vessel-menu/integration-vessel-menu.js.map +1 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js +21 -8
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.css.js.map +1 -1
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts +2 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.d.ts.map +1 -1
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.js +5 -0
- package/dist/integration-systems/integration-vessel-selector/integration-vessel-selector.js.map +1 -1
- package/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.css.js +3 -1
- package/dist/navigation-instruments/azimuth-thruster-labeled/azimuth-thruster-labeled.css.js.map +1 -1
- package/dist/navigation-instruments/instrument-field/instrument-field.css.js +4 -2
- package/dist/navigation-instruments/instrument-field/instrument-field.css.js.map +1 -1
- package/dist/navigation-instruments/readout/readout.css.js +4 -2
- package/dist/navigation-instruments/readout/readout.css.js.map +1 -1
- package/dist/navigation-instruments/watch/watch.css.js +3 -2
- package/dist/navigation-instruments/watch/watch.css.js.map +1 -1
- package/dist/navigation-instruments/watch-flat/watch-flat.css.js +3 -2
- package/dist/navigation-instruments/watch-flat/watch-flat.css.js.map +1 -1
- package/dist/openbridge.css +4 -2
- package/dist/pages/alert-detail-page/alert-detail-page.css.js +15 -8
- package/dist/pages/alert-detail-page/alert-detail-page.css.js.map +1 -1
- package/package.json +3 -3
- package/postcss.config.mjs +2 -1
- package/script/check-css-variables.ts +9 -30
- package/src/ar/chart-object-vessel-button/chart-object-vessel-button.css +7 -7
- package/src/ar/poi-layer/poi-layer.stories.ts +3 -0
- package/src/automation/automation-tank/automation-tank.css +119 -21
- package/src/automation/automation-tank/automation-tank.stories.ts +38 -0
- package/src/automation/automation-tank/automation-tank.ts +64 -0
- package/src/components/calendar/calendar.css +1 -1
- package/src/components/check-button/check-button.css +1 -1
- package/src/components/icon-button/icon-button.css +1 -1
- package/src/components/icon-button/icon-button.ts +2 -0
- package/src/components/message-menu-item/message-menu-item.css +2 -5
- package/src/components/sequence-item/sequence-item.css +5 -3
- package/src/components/sequence-loading-spinner/sequence-loading-spinner.css +3 -3
- package/src/components/tab-item/tab-item.css +2 -2
- package/src/components/table/table.css +2 -2
- package/src/components/toggle-button-option/toggle-button-option.css +1 -3
- package/src/integration-systems/integration-app-bar/integration-app-bar.stories.ts +1 -1
- package/src/integration-systems/integration-bar/integration-bar.css +86 -0
- package/src/integration-systems/integration-bar/integration-bar.stories.ts +479 -0
- package/src/integration-systems/integration-bar/integration-bar.ts +301 -0
- package/src/integration-systems/integration-bar-dropdown/integration-bar-dropdown.stories.ts +5 -3
- package/src/integration-systems/integration-button/integration-button.css +203 -64
- package/src/integration-systems/integration-button/integration-button.stories.ts +71 -5
- package/src/integration-systems/integration-button/integration-button.ts +242 -43
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.css +7 -1
- package/src/integration-systems/integration-dropdown-button/integration-dropdown-button.stories.ts +1 -1
- package/src/integration-systems/integration-fleet-button/integration-fleet-button.stories.ts +1 -1
- package/src/integration-systems/integration-tabs/integration-tabs.stories.ts +1 -1
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.css +59 -0
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.stories.ts +180 -0
- package/src/integration-systems/integration-vessel-menu/integration-vessel-menu.ts +83 -0
- package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.css +21 -9
- package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.stories.ts +187 -3
- package/src/integration-systems/integration-vessel-selector/integration-vessel-selector.ts +5 -0
- package/src/mixins/alert.css +0 -29
- package/src/mixins/font-extras.css +103 -0
- package/src/mixins/fonts.css +26 -96
- package/src/navigation-instruments/watch/watch.css +1 -1
- package/src/navigation-instruments/watch-flat/watch-flat.css +1 -1
- package/src/pages/alert-detail-page/alert-detail-page.css +1 -1
|
@@ -75,7 +75,8 @@ const componentStyle = css`
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.id-only-text {
|
|
78
|
-
font-family: var(--font-family
|
|
78
|
+
font-family: var(--global-typography-font-family);
|
|
79
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
79
80
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
80
81
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
81
82
|
font-feature-settings:
|
|
@@ -132,7 +133,8 @@ const componentStyle = css`
|
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
.id-text {
|
|
135
|
-
font-family: var(--font-family
|
|
136
|
+
font-family: var(--global-typography-font-family);
|
|
137
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
136
138
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
137
139
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
138
140
|
font-feature-settings:
|
|
@@ -160,7 +162,8 @@ const componentStyle = css`
|
|
|
160
162
|
}
|
|
161
163
|
|
|
162
164
|
.label-text {
|
|
163
|
-
font-family: var(--font-family
|
|
165
|
+
font-family: var(--global-typography-font-family);
|
|
166
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
164
167
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
165
168
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
166
169
|
font-feature-settings:
|
|
@@ -175,7 +178,8 @@ const componentStyle = css`
|
|
|
175
178
|
.wrapper.type-id.state-enabled .id-only-text,
|
|
176
179
|
.wrapper.type-data.state-enabled .id-text,
|
|
177
180
|
.wrapper.type-data.state-enabled .label-text {
|
|
178
|
-
font-family: var(--font-family
|
|
181
|
+
font-family: var(--global-typography-font-family);
|
|
182
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
179
183
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
180
184
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
181
185
|
font-feature-settings:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poi-header.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"poi-header.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -360,7 +360,7 @@ const compentStyle = css`
|
|
|
360
360
|
.course-arrow {
|
|
361
361
|
position: absolute;
|
|
362
362
|
left: 50%;
|
|
363
|
-
transform: translate(-50%, -50%) rotate(calc(var(--course)));
|
|
363
|
+
transform: translate(-50%, -50%) rotate(calc(var(--course, 0deg)));
|
|
364
364
|
transform-origin: center bottom;
|
|
365
365
|
}
|
|
366
366
|
|
|
@@ -368,7 +368,7 @@ const compentStyle = css`
|
|
|
368
368
|
position: absolute;
|
|
369
369
|
left: 50%;
|
|
370
370
|
top: 50%;
|
|
371
|
-
transform: translate(-50%, -50%) rotate(calc(var(--heading)));
|
|
371
|
+
transform: translate(-50%, -50%) rotate(calc(var(--heading, 0deg)));
|
|
372
372
|
transform-origin: center center;
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -376,18 +376,18 @@ const compentStyle = css`
|
|
|
376
376
|
position: absolute;
|
|
377
377
|
left: 50%;
|
|
378
378
|
top: 50%;
|
|
379
|
-
transform: translate(-50%, -50%) rotate(calc(var(--heading)));
|
|
379
|
+
transform: translate(-50%, -50%) rotate(calc(var(--heading, 0deg)));
|
|
380
380
|
transform-origin: center center;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
.vessel-image-wrapper > slot {
|
|
384
|
-
width: var(--image-size);
|
|
385
|
-
height: var(--image-size);
|
|
384
|
+
width: var(--image-size, 0px);
|
|
385
|
+
height: var(--image-size, 0px);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
.vessel-image-wrapper > svg {
|
|
389
|
-
width: calc(var(--image-size) * 160 / 136.87);
|
|
390
|
-
height: calc(var(--image-size) * 160 / 136.87);
|
|
389
|
+
width: calc(var(--image-size, 0px) * 160 / 136.87);
|
|
390
|
+
height: calc(var(--image-size, 0px) * 160 / 136.87);
|
|
391
391
|
}
|
|
392
392
|
`;
|
|
393
393
|
export {
|
|
@@ -82,7 +82,8 @@ const componentStyle = css`
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.index-text {
|
|
85
|
-
font-family: var(--font-family
|
|
85
|
+
font-family: var(--global-typography-font-family);
|
|
86
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
86
87
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
87
88
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
88
89
|
font-feature-settings:
|
|
@@ -123,7 +124,8 @@ const componentStyle = css`
|
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
.title {
|
|
126
|
-
font-family: var(--font-family
|
|
127
|
+
font-family: var(--global-typography-font-family);
|
|
128
|
+
font-weight: var(--global-typography-ui-overline-font-weight);
|
|
127
129
|
font-feature-settings:
|
|
128
130
|
"liga" off,
|
|
129
131
|
"clig" off,
|
|
@@ -134,7 +136,8 @@ const componentStyle = css`
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
.title.detailed-title {
|
|
137
|
-
font-family: var(--font-family
|
|
139
|
+
font-family: var(--global-typography-font-family);
|
|
140
|
+
font-weight: var(--global-typography-ui-body-active-font-weight);
|
|
138
141
|
font-size: var(--global-typography-ui-body-active-font-size);
|
|
139
142
|
line-height: var(--global-typography-ui-body-active-line-height);
|
|
140
143
|
font-feature-settings:
|
|
@@ -174,7 +177,8 @@ const componentStyle = css`
|
|
|
174
177
|
}
|
|
175
178
|
|
|
176
179
|
.source-text {
|
|
177
|
-
font-family: var(--font-family
|
|
180
|
+
font-family: var(--global-typography-font-family);
|
|
181
|
+
font-weight: var(--global-typography-ui-label-active-font-weight);
|
|
178
182
|
font-size: var(--global-typography-ui-label-active-font-size);
|
|
179
183
|
line-height: var(--global-typography-ui-label-active-line-height);
|
|
180
184
|
font-feature-settings:
|
|
@@ -221,7 +225,8 @@ const componentStyle = css`
|
|
|
221
225
|
}
|
|
222
226
|
|
|
223
227
|
.description {
|
|
224
|
-
font-family: var(--font-family
|
|
228
|
+
font-family: var(--global-typography-font-family);
|
|
229
|
+
font-weight: var(--global-typography-ui-label-font-weight);
|
|
225
230
|
font-size: var(--global-typography-ui-label-font-size);
|
|
226
231
|
line-height: var(--global-typography-ui-label-line-height);
|
|
227
232
|
font-feature-settings:
|
|
@@ -248,7 +253,8 @@ const componentStyle = css`
|
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
.timestamp {
|
|
251
|
-
font-family: var(--font-family
|
|
256
|
+
font-family: var(--global-typography-font-family);
|
|
257
|
+
font-weight: var(--global-typography-ui-label-font-weight);
|
|
252
258
|
font-size: var(--global-typography-ui-label-font-size);
|
|
253
259
|
line-height: var(--global-typography-ui-label-line-height);
|
|
254
260
|
font-feature-settings:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poi-card-header.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"poi-card-header.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -307,16 +307,6 @@ const compentStyle = css`
|
|
|
307
307
|
flex: 0 0 auto;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
/* Override the global \`min-height: 24px\` on \`.badges\` so empty badge rows
|
|
311
|
-
* don't reserve space in compact/static — the spec says "if there are no
|
|
312
|
-
* badges it would grow upward". The slot-driven \`?hidden\` attribute on
|
|
313
|
-
* empty cells makes them \`display: none\` (see below). */
|
|
314
|
-
|
|
315
|
-
:host([compact]) .halo > .badges,
|
|
316
|
-
:host([static]) .halo > .badges {
|
|
317
|
-
min-height: 0;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
310
|
/* \`hidden\` attribute support: needed because the cells set an explicit
|
|
321
311
|
* display value (\`flex\` / \`block\`), which would otherwise override
|
|
322
312
|
* \`hidden\`'s default \`display: none\`. Removing the cell from the flex
|
|
@@ -440,7 +430,7 @@ const compentStyle = css`
|
|
|
440
430
|
grid-row: 1;
|
|
441
431
|
grid-column: 2;
|
|
442
432
|
justify-self: end;
|
|
443
|
-
align-self:
|
|
433
|
+
align-self: start;
|
|
444
434
|
}
|
|
445
435
|
|
|
446
436
|
.tank-frame:not(.orientation-horizontal) .grid > .readout {
|
|
@@ -470,7 +460,7 @@ const compentStyle = css`
|
|
|
470
460
|
grid-row: 1;
|
|
471
461
|
grid-column: 2;
|
|
472
462
|
justify-self: end;
|
|
473
|
-
align-self:
|
|
463
|
+
align-self: start;
|
|
474
464
|
}
|
|
475
465
|
|
|
476
466
|
.tank-frame.orientation-horizontal .grid > .bar-container {
|
|
@@ -482,7 +472,6 @@ const compentStyle = css`
|
|
|
482
472
|
grid-row: 2;
|
|
483
473
|
grid-column: 2;
|
|
484
474
|
align-self: stretch;
|
|
485
|
-
padding-left: 8px;
|
|
486
475
|
min-width: 96px;
|
|
487
476
|
}
|
|
488
477
|
|
|
@@ -491,7 +480,7 @@ const compentStyle = css`
|
|
|
491
480
|
.badges {
|
|
492
481
|
display: flex;
|
|
493
482
|
justify-content: end;
|
|
494
|
-
|
|
483
|
+
gap: 4px;
|
|
495
484
|
pointer-events: auto;
|
|
496
485
|
}
|
|
497
486
|
|
|
@@ -505,7 +494,7 @@ const compentStyle = css`
|
|
|
505
494
|
"liga" off,
|
|
506
495
|
"clig" off,
|
|
507
496
|
"ss04" on;
|
|
508
|
-
color: var(--
|
|
497
|
+
color: var(--element-neutral-color);
|
|
509
498
|
/* Tag text must never break across lines — it is a fixed identifier
|
|
510
499
|
* (e.g. \`FUEL\`, \`#0000\`) that loses meaning if hyphenated or wrapped. */
|
|
511
500
|
white-space: nowrap;
|
|
@@ -526,28 +515,63 @@ const compentStyle = css`
|
|
|
526
515
|
/* Keep \`90%\` together — the parent flex prevents flex-item wrapping but
|
|
527
516
|
* not text wrapping inside \`.percent\` (number + \`<span>%</span>\`). */
|
|
528
517
|
white-space: nowrap;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
518
|
+
color: var(--element-neutral-color);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.readout-compact .percent {
|
|
522
|
+
font-family: var(--global-typography-font-family);
|
|
523
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
524
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
525
|
+
font-feature-settings:
|
|
533
526
|
"liga" off,
|
|
534
527
|
"clig" off,
|
|
535
528
|
"ss04" on;
|
|
536
|
-
|
|
537
|
-
}
|
|
529
|
+
}
|
|
538
530
|
|
|
539
531
|
.readout-compact .percent-symbol {
|
|
540
|
-
|
|
532
|
+
font-family: var(--global-typography-font-family);
|
|
533
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
534
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
535
|
+
font-feature-settings:
|
|
536
|
+
"liga" off,
|
|
537
|
+
"clig" off,
|
|
538
|
+
"ss04" on;
|
|
539
|
+
margin-left: 1px;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* Static readout: max-value + unit (no percent, no trend icon). Tighter
|
|
543
|
+
* 2px gap and small-neutral value sizing per design spec. Color is
|
|
544
|
+
* inherited from \`.readout-compact\`. */
|
|
545
|
+
|
|
546
|
+
.readout-static {
|
|
547
|
+
gap: 2px;
|
|
541
548
|
}
|
|
542
549
|
|
|
550
|
+
.readout-static slot[name="max-value"] {
|
|
551
|
+
font-family: var(--global-typography-font-family);
|
|
552
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
553
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
554
|
+
font-feature-settings:
|
|
555
|
+
"liga" off,
|
|
556
|
+
"clig" off,
|
|
557
|
+
"ss04" on;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.readout-static slot[name="unit"] {
|
|
561
|
+
font-family: var(--global-typography-font-family);
|
|
562
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
563
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
564
|
+
font-feature-settings:
|
|
565
|
+
"liga" off,
|
|
566
|
+
"clig" off,
|
|
567
|
+
"ss04" on;
|
|
568
|
+
}
|
|
569
|
+
|
|
543
570
|
.header {
|
|
544
571
|
display: flex;
|
|
545
572
|
align-items: center;
|
|
546
573
|
justify-content: flex-end;
|
|
547
574
|
gap: 4px;
|
|
548
|
-
/* TODO: we will need such divider in the future for the 'rich' option */
|
|
549
|
-
/* border-bottom: 1px solid var(--border-outline-color); */
|
|
550
|
-
padding-bottom: 2px;
|
|
551
575
|
}
|
|
552
576
|
|
|
553
577
|
.header .percent {
|
|
@@ -561,18 +585,26 @@ const compentStyle = css`
|
|
|
561
585
|
"liga" off,
|
|
562
586
|
"clig" off,
|
|
563
587
|
"ss04" on;
|
|
588
|
+
color: var(--element-neutral-color);
|
|
589
|
+
padding-bottom: var(
|
|
590
|
+
--global-typography-instrument-value-large-padding-bottom
|
|
591
|
+
);
|
|
564
592
|
/* Keep the number and the trailing \`%\` symbol on one line. */
|
|
565
593
|
white-space: nowrap;
|
|
566
594
|
}
|
|
567
595
|
|
|
568
596
|
.header .percent-symbol {
|
|
569
|
-
font-family: var(--font-family
|
|
570
|
-
font-size: var(--global-typography-
|
|
571
|
-
line-height: var(--global-typography-
|
|
597
|
+
font-family: var(--global-typography-font-family);
|
|
598
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
599
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
572
600
|
font-feature-settings:
|
|
573
601
|
"liga" off,
|
|
574
602
|
"clig" off,
|
|
575
603
|
"ss04" on;
|
|
604
|
+
/* \`inline-block\` so \`padding-bottom\` actually applies (ignored on
|
|
605
|
+
* plain inline text). */
|
|
606
|
+
display: inline-block;
|
|
607
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
576
608
|
}
|
|
577
609
|
|
|
578
610
|
.value {
|
|
@@ -605,11 +637,15 @@ const compentStyle = css`
|
|
|
605
637
|
"liga" off,
|
|
606
638
|
"clig" off,
|
|
607
639
|
"ss04" on;
|
|
640
|
+
padding-bottom: var(
|
|
641
|
+
--global-typography-instrument-value-regular-padding-bottom
|
|
642
|
+
);
|
|
608
643
|
}
|
|
609
644
|
|
|
610
645
|
.value .divider {
|
|
611
646
|
padding-left: 4px;
|
|
612
647
|
padding-right: 4px;
|
|
648
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
613
649
|
}
|
|
614
650
|
|
|
615
651
|
.value .max-value {
|
|
@@ -620,8 +656,110 @@ const compentStyle = css`
|
|
|
620
656
|
"liga" off,
|
|
621
657
|
"clig" off,
|
|
622
658
|
"ss04" on;
|
|
659
|
+
padding-bottom: var(
|
|
660
|
+
--global-typography-instrument-value-regular-padding-bottom
|
|
661
|
+
);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.value .unit {
|
|
665
|
+
padding-bottom: var(--global-typography-instrument-unit-padding-bottom);
|
|
623
666
|
}
|
|
624
667
|
|
|
668
|
+
.rich-divider {
|
|
669
|
+
border-top: 1px solid var(--border-divider-color);
|
|
670
|
+
margin-top: 8px;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.rich {
|
|
674
|
+
display: grid;
|
|
675
|
+
/* label takes remaining space; value (right-aligned) and suffix
|
|
676
|
+
* (left-aligned) form fixed content columns so digit right edges and
|
|
677
|
+
* suffix left edges align vertically across all rows. */
|
|
678
|
+
grid-template-columns: 1fr auto auto;
|
|
679
|
+
align-items: baseline;
|
|
680
|
+
row-gap: 4px;
|
|
681
|
+
padding-top: 8px;
|
|
682
|
+
white-space: nowrap;
|
|
683
|
+
font-family: var(--global-typography-font-family);
|
|
684
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
685
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
686
|
+
font-feature-settings:
|
|
687
|
+
"liga" off,
|
|
688
|
+
"clig" off,
|
|
689
|
+
"ss04" on;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.rich-row {
|
|
693
|
+
display: grid;
|
|
694
|
+
grid-template-columns: subgrid;
|
|
695
|
+
grid-column: 1 / -1;
|
|
696
|
+
align-items: baseline;
|
|
697
|
+
padding-left: var(
|
|
698
|
+
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
699
|
+
);
|
|
700
|
+
padding-right: var(
|
|
701
|
+
--instrument-components-readout-new-list-item-regular-container-padding-horizontal
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.rich-label {
|
|
706
|
+
font-family: var(--global-typography-font-family);
|
|
707
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
708
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
709
|
+
font-feature-settings:
|
|
710
|
+
"liga" off,
|
|
711
|
+
"clig" off,
|
|
712
|
+
"ss04" on;
|
|
713
|
+
color: var(--element-inactive-color);
|
|
714
|
+
padding-right: 8px;
|
|
715
|
+
text-align: left;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.rich-value {
|
|
719
|
+
font-family: var(--global-typography-font-family);
|
|
720
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
721
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
722
|
+
font-feature-settings:
|
|
723
|
+
"liga" off,
|
|
724
|
+
"clig" off,
|
|
725
|
+
"ss04" on;
|
|
726
|
+
color: var(--element-neutral-color);
|
|
727
|
+
font-variant-numeric: tabular-nums;
|
|
728
|
+
text-align: right;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.rich-suffix {
|
|
732
|
+
display: inline-flex;
|
|
733
|
+
align-items: baseline;
|
|
734
|
+
/* Default 2px gap between value and unit when there is no degree/percent
|
|
735
|
+
* glyph. When a glyph is present it sits flush against the value and the
|
|
736
|
+
* unit follows flush after the glyph (see \`.rich-glyph + .rich-unit\`). */
|
|
737
|
+
padding-left: 2px;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.rich-suffix:has(.rich-glyph) {
|
|
741
|
+
padding-left: 0;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.rich-glyph {
|
|
745
|
+
font-family: var(--global-typography-font-family);
|
|
746
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
747
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
748
|
+
font-feature-settings:
|
|
749
|
+
"liga" off,
|
|
750
|
+
"clig" off,
|
|
751
|
+
"ss04" on;
|
|
752
|
+
color: var(--element-neutral-color);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.rich-unit {
|
|
756
|
+
color: var(--element-inactive-color);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
.rich-glyph + .rich-unit {
|
|
760
|
+
padding-left: 0;
|
|
761
|
+
}
|
|
762
|
+
|
|
625
763
|
/* The chart cell is a plain sizing/clipping box. Both child renderers —
|
|
626
764
|
* \`obc-gauge-trend\` (graph / graph-and-bar modes) and \`obc-bar-vertical\`
|
|
627
765
|
* (bar mode) — paint their own background, border and border-radius. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automation-tank.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"automation-tank.css.js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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -61,6 +61,24 @@ export declare enum TankChartMode {
|
|
|
61
61
|
/** Embedded `obc-gauge-trend` line/area chart with a side bar. */
|
|
62
62
|
graphAndBar = "graph-and-bar"
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* A single detail row rendered in the tank's `readout` rich list (below the
|
|
66
|
+
* main percent / value block, separated by a divider). Each row is rendered
|
|
67
|
+
* as `<label>` on the left and `<value><degree?><percent?><unit>` on the
|
|
68
|
+
* right, all on a single line.
|
|
69
|
+
*/
|
|
70
|
+
export interface TankReadoutItem {
|
|
71
|
+
/** Left-aligned label text (e.g. `Temperature`). */
|
|
72
|
+
label: string;
|
|
73
|
+
/** Numeric value, formatted with the tank's `percentFractionDigits`. */
|
|
74
|
+
value: number;
|
|
75
|
+
/** Append a `°` glyph directly after the value with no gap. */
|
|
76
|
+
hasDegree?: boolean;
|
|
77
|
+
/** Append a `%` glyph directly after the value with no gap. */
|
|
78
|
+
hasPercentage?: boolean;
|
|
79
|
+
/** Unit text (e.g. `C`, `Pa`, `m/s`). Rendered after the value/glyph. */
|
|
80
|
+
unit: string;
|
|
81
|
+
}
|
|
64
82
|
/**
|
|
65
83
|
*
|
|
66
84
|
*
|
|
@@ -168,6 +186,20 @@ export declare class ObcAutomationTank extends LitElement {
|
|
|
168
186
|
* precision is needed (see the `WithFractionDigits` story).
|
|
169
187
|
*/
|
|
170
188
|
percentFractionDigits: number;
|
|
189
|
+
/**
|
|
190
|
+
* Rich detail rows shown below the main percent/value block in the regular
|
|
191
|
+
* (non-compact, non-static) layout, separated by a divider. When empty (the
|
|
192
|
+
* default), nothing is rendered — neither the divider nor the list. In
|
|
193
|
+
* vertical orientation the chart cell shrinks to make room; in horizontal
|
|
194
|
+
* orientation the readout column already has reserved whitespace so the
|
|
195
|
+
* chart is unaffected.
|
|
196
|
+
*
|
|
197
|
+
* Values are formatted using `percentFractionDigits`. Consumers that need
|
|
198
|
+
* full control over the markup can replace the entire fallback by slotting
|
|
199
|
+
* arbitrary content into `slot="rich"` (note: this is a different name from
|
|
200
|
+
* the existing `slot="readout"` which replaces the whole readout block).
|
|
201
|
+
*/
|
|
202
|
+
readout: TankReadoutItem[];
|
|
171
203
|
/**
|
|
172
204
|
* Enum-driven badges rendered inside the `badges` cell. Mirrors the API
|
|
173
205
|
* introduced for `ObcAbstractAutomationButton` in PR #839 (#829). When set
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automation-tank.d.ts","sourceRoot":"","sources":["../../../src/automation/automation-tank/automation-tank.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,UAAU,EAEV,OAAO,EAGR,MAAM,KAAK,CAAC;AAGb,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AACvC,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,8CAA8C,CAAC;AACtD,OAAO,uCAAuC,CAAC;AAC/C,OAAO,gDAAgD,CAAC;AACxD,OAAO,yCAAyC,CAAC;AACjD,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,oCAAoC,CAAC;AAC5C,OAAO,yDAAyD,CAAC;AACjE,OAAO,oDAAoD,CAAC;AAC5D,OAAO,6CAA6C,CAAC;AACrD,OAAO,EAAC,QAAQ,EAAC,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,qDAAqD,CAAC;AAC3F,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,mDAAmD,CAAC;AASpF,oBAAY,SAAS;IACnB,UAAU,gBAAg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-87,6 +87,7 @@ let ObcAutomationTank = class extends LitElement {
|
|
|
87
87
|
this.showAlertIcon = false;
|
|
88
88
|
this.showTrendSymbol = true;
|
|
89
89
|
this.percentFractionDigits = 0;
|
|
90
|
+
this.readout = [];
|
|
90
91
|
this.badgeControl = AutomationButtonBadgeControl.None;
|
|
91
92
|
this.badgeAlert = AutomationButtonBadgeAlert.None;
|
|
92
93
|
this.badgeInterlock = AutomationButtonBadgeInterlock.None;
|
|
@@ -435,6 +436,30 @@ let ObcAutomationTank = class extends LitElement {
|
|
|
435
436
|
<slot class="unit" name="unit">m<sup>3</sup></slot>
|
|
436
437
|
</div>
|
|
437
438
|
</div>
|
|
439
|
+
<slot name="rich">
|
|
440
|
+
${this.readout.length > 0 ? html`
|
|
441
|
+
<div class="rich-divider"></div>
|
|
442
|
+
<div class="rich">
|
|
443
|
+
${this.readout.map(
|
|
444
|
+
(row) => html`
|
|
445
|
+
<div class="rich-row">
|
|
446
|
+
<span class="rich-label">${row.label}</span>
|
|
447
|
+
<span class="rich-value"
|
|
448
|
+
>${row.value.toFixed(
|
|
449
|
+
this.percentFractionDigits
|
|
450
|
+
)}</span
|
|
451
|
+
>
|
|
452
|
+
<span class="rich-suffix"
|
|
453
|
+
>${row.hasDegree ? html`<span class="rich-glyph">°</span>` : nothing}${row.hasPercentage ? html`<span class="rich-glyph">%</span>` : nothing}<span class="rich-unit"
|
|
454
|
+
>${row.unit}</span
|
|
455
|
+
></span
|
|
456
|
+
>
|
|
457
|
+
</div>
|
|
458
|
+
`
|
|
459
|
+
)}
|
|
460
|
+
</div>
|
|
461
|
+
` : nothing}
|
|
462
|
+
</slot>
|
|
438
463
|
</slot>
|
|
439
464
|
</div>
|
|
440
465
|
`;
|
|
@@ -657,6 +682,9 @@ __decorateClass([
|
|
|
657
682
|
__decorateClass([
|
|
658
683
|
property({ type: Number })
|
|
659
684
|
], ObcAutomationTank.prototype, "percentFractionDigits", 2);
|
|
685
|
+
__decorateClass([
|
|
686
|
+
property({ type: Array, attribute: false })
|
|
687
|
+
], ObcAutomationTank.prototype, "readout", 2);
|
|
660
688
|
__decorateClass([
|
|
661
689
|
property({ type: String })
|
|
662
690
|
], ObcAutomationTank.prototype, "badgeControl", 2);
|