@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
|
@@ -34,18 +34,15 @@ var bus_default = css`* {
|
|
|
34
34
|
|
|
35
35
|
font-family: var(--global-typography-font-family);
|
|
36
36
|
|
|
37
|
-
font-
|
|
37
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
42
|
-
|
|
43
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
39
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
44
40
|
|
|
45
41
|
font-feature-settings:
|
|
46
42
|
"liga" off,
|
|
47
43
|
"clig" off,
|
|
48
44
|
"ss04" on;
|
|
45
|
+
font-weight: var(--global-typography-instrument-label-font-weight);
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
.bus.size-medium {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-specialty-tank.d.ts","sourceRoot":"","sources":["../../../src/automation/specialty-tank/abstract-specialty-tank.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAgC,MAAM,KAAK,CAAC;AAC9D,OAAO,KAAK,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,KAAK,CAAC;AAIxD,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,6CAA6C,CAAC;AACrD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,wCAAwC,CAAC;AAEvE;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,+BAA+B;IAC/B,OAAO,YAAY;IACnB,0CAA0C;IAC1C,OAAO,YAAY;IACnB,2DAA2D;IAC3D,MAAM,WAAW;CAClB;AAED;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,sCAAsC;IACtC,QAAQ,aAAa;IACrB,sCAAsC;IACtC,UAAU,eAAe;IACzB,0EAA0E;IAC1E,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,8BAA8B;IAC9B,OAAO,YAAY;IACnB,uEAAuE;IACvE,WAAW,gBAAgB;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,wBAAyB,SAAQ,UAAU;IAC5B,MAAM,EAAE,mBAAmB,CACvB;IACY,MAAM,EAAE,OAAO,CAAS;IACrB,QAAQ,EAAE,OAAO,CAAQ;IAC5C,GAAG,EAAE,MAAM,CAAM;IACF,WAAW,EAAE,eAAe,CAC5C;IACoB,SAAS,EAAE,OAAO,CAAQ;IAC5C,SAAS,EAAE,OAAO,CAAS;IAE5B,YAAY,EAAE,4BAA4B,CAChC;IACV,UAAU,EAAE,0BAA0B,CAC9B;IACR,cAAc,EAAE,8BAA8B,CAClC;IAEtC,kBAAkB,EAAE,kCAAkC,CACZ;IAEf,KAAK,EAAE,OAAO,CAAS;IACxB,cAAc,EAAE,iBAAiB,CACzB;IACR,mBAAmB,EAAE,sBAAsB,CACtC;IACL,gBAAgB,EAAE,SAAS,CAAmB;IAC9C,cAAc,EAAE,iBAAiB,CAC3B;IACa,qBAAqB,EAAE,OAAO,CACpE;IACoB,aAAa,EAAE,OAAO,CAAS;IAEjD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,WAAW,CAAS;IAErC,SAAS,KAAK,aAAa,IAAI,cAAc,CAE5C;IAED,yDAAyD;IACzD,SAAS,KAAK,aAAa,IAAI,MAAM,CAEpC;IAED,SAAS,KAAK,KAAK,IAAI,kBAAkB,CAExC;IAED,SAAS,KAAK,SAAS,IAAI,sBAAsB,CAEhD;IAED,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"abstract-specialty-tank.d.ts","sourceRoot":"","sources":["../../../src/automation/specialty-tank/abstract-specialty-tank.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAgC,MAAM,KAAK,CAAC;AAC9D,OAAO,KAAK,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,KAAK,CAAC;AAIxD,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,4BAA4B,EAC5B,8BAA8B,EAC/B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,6CAA6C,CAAC;AACrD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAC,SAAS,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Aa,IAAI,cAAc,CAE5C;IAED,yDAAyD;IACzD,SAAS,KAAK,aAAa,IAAI,MAAM,CAEpC;IAED,SAAS,KAAK,KAAK,IAAI,kBAAkB,CAExC;IAED,SAAS,KAAK,SAAS,IAAI,sBAAsB,CAEhD;IAED,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,aAAa;IAerB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAwBlB,MAAM;IAmJf,OAAgB,MAAM,EAAE,cAAc,CAA6B;CACpE"}
|
|
@@ -142,6 +142,7 @@ var ObcAbstractSpecialtyTank = class extends LitElement {
|
|
|
142
142
|
_badgeAlertType() {
|
|
143
143
|
switch (this.badgeAlert) {
|
|
144
144
|
case AutomationButtonBadgeAlert.Silence: return ObcAutomationBadgeType.AlertSilenced;
|
|
145
|
+
case AutomationButtonBadgeAlert.Shelved: return ObcAutomationBadgeType.AlertShelved;
|
|
145
146
|
case AutomationButtonBadgeAlert.Caution: return ObcAutomationBadgeType.Caution;
|
|
146
147
|
case AutomationButtonBadgeAlert.Warning: return ObcAutomationBadgeType.Warning;
|
|
147
148
|
case AutomationButtonBadgeAlert.Alarm: return ObcAutomationBadgeType.Alarm;
|
|
@@ -157,12 +158,16 @@ var ObcAbstractSpecialtyTank = class extends LitElement {
|
|
|
157
158
|
switch (this.badgeInterlock) {
|
|
158
159
|
case AutomationButtonBadgeInterlock.Interlock: return ObcAutomationBadgeType.Interlock;
|
|
159
160
|
case AutomationButtonBadgeInterlock.InterlockInhibit: return ObcAutomationBadgeType.InterlockInhibit;
|
|
161
|
+
case AutomationButtonBadgeInterlock.Simulation: return ObcAutomationBadgeType.Simulation;
|
|
160
162
|
default: return null;
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
_badgeCommandLockedType() {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
switch (this.badgeCommandLocked) {
|
|
167
|
+
case AutomationButtonBadgeCommandLocked.CommandLocked: return ObcAutomationBadgeType.CommandLocked;
|
|
168
|
+
case AutomationButtonBadgeCommandLocked.Simulation: return ObcAutomationBadgeType.Simulation;
|
|
169
|
+
default: return null;
|
|
170
|
+
}
|
|
166
171
|
}
|
|
167
172
|
_slotHasContent(e) {
|
|
168
173
|
return e.target.assignedNodes({ flatten: true }).some((n) => n.nodeType === Node.ELEMENT_NODE || n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-specialty-tank.js","names":["componentStyle","_decorate"],"sources":["../../../src/automation/specialty-tank/abstract-specialty-tank.ts"],"sourcesContent":["import {LitElement, html, nothing, svg, unsafeCSS} from 'lit';\nimport type {CSSResultGroup, TemplateResult} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport componentStyle from './specialty-tank.css?inline';\nimport '../automation-badge/automation-badge.js';\nimport {ObcAutomationBadgeType} from '../automation-badge/automation-badge.js';\nimport {\n AutomationButtonBadgeAlert,\n AutomationButtonBadgeCommandLocked,\n AutomationButtonBadgeControl,\n AutomationButtonBadgeInterlock,\n} from '../automation-button/abstract-automation-button.js';\nimport '../../components/alert-frame/alert-frame.js';\nimport {\n ObcAlertFrameMode,\n ObcAlertFrameThickness,\n ObcAlertFrameType,\n} from '../../components/alert-frame/alert-frame.js';\nimport {AlertType} from '../../types.js';\nimport {TankPositioning} from '../automation-tank/tank-positioning.js';\n\n/**\n * What the graphic area of a specialty tank shows. Mirrors the Figma\n * `has Medium` property; its fourth value, Static, is the `static` property.\n */\nexport enum SpecialtyTankMedium {\n /** One grey area, no split. */\n regular = 'regular',\n /** Two grey halves separated by a gap. */\n graphic = 'graphic',\n /** Hot (red) and cold (blue) halves separated by a gap. */\n medium = 'medium',\n}\n\n/**\n * Hot/cold split geometry of a specialty tank. Drives the halves and the\n * gap between them through the `split-<mode>` class on the tank frame.\n */\nexport enum SpecialtyTankSplitMode {\n /** Left half hot, right half cold. */\n vertical = 'vertical',\n /** Top half hot, bottom half cold. */\n horizontal = 'horizontal',\n /** Two corner-to-corner triangles, top-left hot and bottom-right cold. */\n diagonal = 'diagonal',\n}\n\n/**\n * Frame silhouette of a specialty tank.\n */\nexport enum SpecialtyTankFrame {\n /** One rounded border box. */\n rounded = 'rounded',\n /** Pressurized-tank silhouette: domed caps on a side-bordered body. */\n pressurized = 'pressurized',\n}\n\n/**\n * Base class for the specialty-tank tiles `obc-heat-pump`,\n * `obc-hydraulic-separator` and `obc-heat-exchanger`. Owns the halo, badge\n * row, tank frame with its hot/cold graphic area and equipment icon, tag\n * readout and alert-frame overlay. Subclasses supply `equipmentIcon`,\n * `equipmentName`, `frame` and `splitMode`, plus their own host footprint.\n *\n * ## Layout\n * The same shell as a compact `obc-automation-tank`: a fixed host (or\n * `positioning=\"button\"` to fill the parent), a 4px-padded halo holding\n * badges, the tank frame and the tag, the frame absorbing the space of\n * empty badge and tag cells. Hover, pressed, focus-visible and `activated`\n * are painted on the halo by the flat style mixin; `clickable` and `static`\n * switch the root between a `<button>`, a plain `<div>` and a\n * `<div role=\"img\">` exactly as the tank does.\n *\n * Not declared `abstract`: the wrapper generators wrap every `LitElement`\n * subclass and pass its constructor as a concrete `Constructor<T>`, so the\n * override points throw instead (same as `ObcAbstractAutomationButton`).\n *\n * @property medium - What the graphic area shows: `regular` (one grey area), `graphic` (two grey halves) or `medium` (hot/cold halves).\n * @property static - Display-only tile with a flat grey frame and a bare icon, rendered as a non-interactive `<div role=\"img\">`. Hides the graphic area.\n * @property showIcon - Show the equipment icon centered on the graphic area.\n * @property tag - Identifier rendered in the tag readout below the frame (for example `#0000`); also the accessible name. The cell collapses when empty.\n * @property positioning - Host positioning model — see `TankPositioning`. `button` (default) fills the parent, `point` uses the fixed design footprint with the P&ID anchor.\n * @property clickable - Whether the tile is interactive. `false` keeps the resting appearance but drops hover, pressed and focus states and leaves the tab order; property-only because the default is `true`.\n * @property activated - Paints the activated background on the halo. Needs an interactive tile.\n * @availableWhen activated clickable==true\n * @property badgeControl - Mode badge (auto / manual / local variants), first in the badge row.\n * @property badgeAlert - Alert badge, second in the badge row.\n * @property badgeInterlock - Interlock badge, third in the badge row.\n * @property badgeCommandLocked - Command-locked badge, last in the badge row.\n * @property alert - Show an alert-frame overlay around the halo, mirroring `obc-automation-tank`.\n * @property alertFrameType - Shape of the alert frame.\n * @availableWhen alertFrameType alert==true\n * @property alertFrameThickness - Thickness of the alert frame.\n * @availableWhen alertFrameThickness alert==true\n * @property alertFrameStatus - Alert status the frame is coloured for.\n * @availableWhen alertFrameStatus alert==true\n * @property alertFrameMode - Acknowledgement state of the alert: `acked-active` (default) is steady,\n * `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.\n * @availableWhen alertFrameMode alert==true\n * @property showAlertCategoryIcon - Shows the alert category icon inside the frame.\n * @availableWhen showAlertCategoryIcon alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]\n * @property showAlertIcon - Shows the slotted alert icon inside the frame.\n * @availableWhen showAlertIcon alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]\n */\nexport class ObcAbstractSpecialtyTank extends LitElement {\n @property({type: String}) medium: SpecialtyTankMedium =\n SpecialtyTankMedium.regular;\n @property({type: Boolean, reflect: true}) static: boolean = false;\n @property({type: Boolean, attribute: false}) showIcon: boolean = true;\n @property({type: String}) tag: string = '';\n @property({type: String, reflect: true}) positioning: TankPositioning =\n TankPositioning.button;\n @property({type: Boolean, attribute: false}) clickable: boolean = true;\n @property({type: Boolean}) activated: boolean = false;\n\n @property({type: String}) badgeControl: AutomationButtonBadgeControl =\n AutomationButtonBadgeControl.None;\n @property({type: String}) badgeAlert: AutomationButtonBadgeAlert =\n AutomationButtonBadgeAlert.None;\n @property({type: String}) badgeInterlock: AutomationButtonBadgeInterlock =\n AutomationButtonBadgeInterlock.None;\n @property({type: String})\n badgeCommandLocked: AutomationButtonBadgeCommandLocked =\n AutomationButtonBadgeCommandLocked.None;\n\n @property({type: Boolean}) alert: boolean = false;\n @property({type: String}) alertFrameType: ObcAlertFrameType =\n ObcAlertFrameType.SmallSideFlip;\n @property({type: String}) alertFrameThickness: ObcAlertFrameThickness =\n ObcAlertFrameThickness.Small;\n @property({type: String}) alertFrameStatus: AlertType = AlertType.Alarm;\n @property({type: String}) alertFrameMode: ObcAlertFrameMode =\n ObcAlertFrameMode.ackedActive;\n @property({type: Boolean, attribute: false}) showAlertCategoryIcon: boolean =\n true;\n @property({type: Boolean}) showAlertIcon: boolean = false;\n\n @state() private _hasBadges = false;\n @state() private _hasTagSlot = false;\n\n protected get equipmentIcon(): TemplateResult {\n throw new Error('\"equipmentIcon\" must be implemented in the subclass');\n }\n\n /** Accessible-name fallback used when `tag` is empty. */\n protected get equipmentName(): string {\n throw new Error('\"equipmentName\" must be implemented in the subclass');\n }\n\n protected get frame(): SpecialtyTankFrame {\n throw new Error('\"frame\" must be implemented in the subclass');\n }\n\n protected get splitMode(): SpecialtyTankSplitMode {\n throw new Error('\"splitMode\" must be implemented in the subclass');\n }\n\n private _badgeControlType(): ObcAutomationBadgeType | null {\n switch (this.badgeControl) {\n case AutomationButtonBadgeControl.Local:\n return ObcAutomationBadgeType.Local;\n case AutomationButtonBadgeControl.LocalOnly:\n return ObcAutomationBadgeType.LocalOnly;\n case AutomationButtonBadgeControl.Manual:\n return ObcAutomationBadgeType.Manual;\n case AutomationButtonBadgeControl.ManualOnly:\n return ObcAutomationBadgeType.ManualOnly;\n case AutomationButtonBadgeControl.Auto:\n return ObcAutomationBadgeType.Auto;\n default:\n return null;\n }\n }\n\n private _badgeAlertType(): ObcAutomationBadgeType | null {\n switch (this.badgeAlert) {\n case AutomationButtonBadgeAlert.Silence:\n return ObcAutomationBadgeType.AlertSilenced;\n case AutomationButtonBadgeAlert.Caution:\n return ObcAutomationBadgeType.Caution;\n case AutomationButtonBadgeAlert.Warning:\n return ObcAutomationBadgeType.Warning;\n case AutomationButtonBadgeAlert.Alarm:\n return ObcAutomationBadgeType.Alarm;\n case AutomationButtonBadgeAlert.LevelCritical:\n return ObcAutomationBadgeType.LevelCritical;\n case AutomationButtonBadgeAlert.LevelHigh:\n return ObcAutomationBadgeType.LevelHigh;\n case AutomationButtonBadgeAlert.LevelMedium:\n return ObcAutomationBadgeType.LevelMedium;\n case AutomationButtonBadgeAlert.LevelLow:\n return ObcAutomationBadgeType.LevelLow;\n case AutomationButtonBadgeAlert.LevelDiagnostic:\n return ObcAutomationBadgeType.LevelDiagnostic;\n default:\n return null;\n }\n }\n\n private _badgeInterlockType(): ObcAutomationBadgeType | null {\n switch (this.badgeInterlock) {\n case AutomationButtonBadgeInterlock.Interlock:\n return ObcAutomationBadgeType.Interlock;\n case AutomationButtonBadgeInterlock.InterlockInhibit:\n return ObcAutomationBadgeType.InterlockInhibit;\n default:\n return null;\n }\n }\n\n private _badgeCommandLockedType(): ObcAutomationBadgeType | null {\n if (\n this.badgeCommandLocked ===\n AutomationButtonBadgeCommandLocked.CommandLocked\n ) {\n return ObcAutomationBadgeType.CommandLocked;\n }\n return null;\n }\n\n private _slotHasContent(e: Event): boolean {\n const slot = e.target as HTMLSlotElement;\n return slot\n .assignedNodes({flatten: true})\n .some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim())\n );\n }\n\n private _onBadgesSlotChange(e: Event): void {\n this._hasBadges = this._slotHasContent(e);\n }\n\n private _onTagSlotChange(e: Event): void {\n this._hasTagSlot = this._slotHasContent(e);\n }\n\n private renderGraphic(): TemplateResult {\n if (this.medium === SpecialtyTankMedium.regular) {\n return html`<div class=\"area area-single\"></div>`;\n }\n if (this.splitMode === SpecialtyTankSplitMode.diagonal) {\n return this.renderDiagonalSplit();\n }\n return html`\n <div class=\"halves\">\n <div class=\"area area-hot\"></div>\n <div class=\"area area-cold\"></div>\n </div>\n `;\n }\n\n /**\n * Diagonal split in a unit viewBox stretched over the area\n * (`preserveAspectRatio=\"none\"`); every stroke is `non-scaling` so the\n * borders and the gap keep their pixel widths at any aspect ratio. The\n * gap edges are drawn as one wide line per half, clipped to that half,\n * under the narrower frame-coloured gap line.\n */\n private renderDiagonalSplit(): TemplateResult {\n const hot = '0,0 1,0 0,1';\n const cold = '1,0 1,1 0,1';\n return html`\n <div class=\"diagonal\">\n <svg viewBox=\"0 0 1 1\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n ${svg`\n <defs>\n <clipPath id=\"clip-hot\"><polygon points=${hot} /></clipPath>\n <clipPath id=\"clip-cold\"><polygon points=${cold} /></clipPath>\n </defs>\n <polygon class=\"area-fill area-hot\" points=${hot} />\n <polygon class=\"area-fill area-cold\" points=${cold} />\n <polygon class=\"area-stroke area-hot\" points=${hot} clip-path=\"url(#clip-hot)\" vector-effect=\"non-scaling-stroke\" />\n <polygon class=\"area-stroke area-cold\" points=${cold} clip-path=\"url(#clip-cold)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap-edge area-hot\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" clip-path=\"url(#clip-hot)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap-edge area-cold\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" clip-path=\"url(#clip-cold)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" vector-effect=\"non-scaling-stroke\" />\n `}\n </svg>\n </div>\n `;\n }\n\n override render() {\n const controlBadge = this._badgeControlType();\n const alertBadge = this._badgeAlertType();\n const interlockBadge = this._badgeInterlockType();\n const commandLockedBadge = this._badgeCommandLockedType();\n const hasEnumBadges =\n controlBadge !== null ||\n alertBadge !== null ||\n interlockBadge !== null ||\n commandLockedBadge !== null;\n\n const badgesHidden = !this._hasBadges && !hasEnumBadges;\n const tagHidden = !this._hasTagSlot && !this.tag;\n\n const badgesCell = html`\n <div class=\"badges\" ?hidden=${badgesHidden}>\n <slot name=\"badges\" @slotchange=${this._onBadgesSlotChange}>\n ${\n controlBadge\n ? html`<obc-automation-badge\n .type=${controlBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n alertBadge\n ? html`<obc-automation-badge\n .type=${alertBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n interlockBadge\n ? html`<obc-automation-badge\n .type=${interlockBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n commandLockedBadge\n ? html`<obc-automation-badge\n .type=${commandLockedBadge}\n ></obc-automation-badge>`\n : nothing\n }\n </slot>\n </div>\n `;\n\n const tagCell = html`\n <div class=\"tag\" ?hidden=${tagHidden}>\n <slot name=\"tag\" @slotchange=${this._onTagSlotChange}>${this.tag}</slot>\n </div>\n `;\n\n const pressurized = this.frame === SpecialtyTankFrame.pressurized;\n const cap = (side: 'start' | 'end') =>\n pressurized\n ? html`<div class=\"cap cap-${side}\"><div class=\"cap-dome\"></div></div>`\n : nothing;\n const frameClasses = classMap({\n 'tank-frame': true,\n [`frame-${this.frame}`]: true,\n [`split-${this.splitMode}`]: true,\n [`medium-${this.medium}`]: true,\n static: this.static,\n });\n const tankFrame = html`\n <div class=${frameClasses}>\n ${cap('start')}\n <div class=\"middle\">\n <div class=\"content\">\n ${this.static ? nothing : this.renderGraphic()}\n ${\n this.showIcon\n ? html`<div class=\"icon-frame\">${this.equipmentIcon}</div>`\n : nothing\n }\n </div>\n </div>\n ${cap('end')}\n </div>\n `;\n\n const alertFrameOverlay = this.alert\n ? html`<obc-alert-frame\n class=\"alert-frame\"\n .type=${this.alertFrameType}\n .thickness=${this.alertFrameThickness}\n .status=${this.alertFrameStatus}\n .mode=${this.alertFrameMode}\n .showAlertCategoryIcon=${this.showAlertCategoryIcon}\n .showIcon=${this.showAlertIcon}\n >\n <span slot=\"icon\"><slot name=\"alert-icon\"></slot></span>\n <span slot=\"label\"><slot name=\"alert-label\"></slot></span>\n <span slot=\"timer\"><slot name=\"alert-timer\"></slot></span>\n </obc-alert-frame>`\n : nothing;\n\n const halo = html`\n <div class=\"halo\">\n ${badgesCell}${tankFrame}${tagCell}${alertFrameOverlay}\n </div>\n `;\n\n const isClickable = this.clickable && !this.static;\n const rootClasses = classMap({\n root: true,\n activated: this.activated,\n clickable: isClickable,\n });\n const name = this.tag || this.equipmentName;\n\n // Same three root shapes as obc-automation-tank; the live region stays on\n // all of them so a slotted alert label is announced regardless.\n if (this.static) {\n return html`<div\n class=${rootClasses}\n role=\"img\"\n aria-label=${name}\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n ${halo}\n </div>`;\n }\n if (!isClickable) {\n return html`<div\n class=${rootClasses}\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n ${halo}\n </div>`;\n }\n return html`<button\n class=${rootClasses}\n type=\"button\"\n aria-label=${name}\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n ${halo}\n </button>`;\n }\n\n static override styles: CSSResultGroup = unsafeCSS(componentStyle);\n}\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,IAAY,sBAAL,yBAAA,qBAAA;;CAEL,oBAAA,aAAA;;CAEA,oBAAA,aAAA;;CAEA,oBAAA,YAAA;;AACF,EAAA,CAAA,CAAA;;;;;AAMA,IAAY,yBAAL,yBAAA,wBAAA;;CAEL,uBAAA,cAAA;;CAEA,uBAAA,gBAAA;;CAEA,uBAAA,cAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,IAAY,qBAAL,yBAAA,oBAAA;;CAEL,mBAAA,aAAA;;CAEA,mBAAA,iBAAA;;AACF,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAa,2BAAb,cAA8C,WAAW;;;;EAGK,KAAA,SAAA;EACK,KAAA,WAAA;EACzB,KAAA,MAAA;E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,MAAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,sBAAA,KAAA,CAAA;AAIvBA,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,yBAAA,WAAA,SAAA,KAAA,CAAA;AACxBA,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,kBAAA,KAAA,CAAA;AAEvBA,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,uBAAA,KAAA,CAAA;AAEvBA,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,oBAAA,KAAA,CAAA;AACvBA,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,kBAAA,KAAA,CAAA;AAEvBA,WAAA,CAAA,SAAS;CAAC,MAAM;CAAS,WAAW;AAAK,CAAC,CAAA,GAAA,yBAAA,WAAA,yBAAA,KAAA,CAAA;AAE1CA,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,yBAAA,WAAA,iBAAA,KAAA,CAAA;AAExBA,WAAA,CAAA,MAAM,CAAA,GAAA,yBAAA,WAAA,cAAA,KAAA,CAAA;AACNA,WAAA,CAAA,MAAM,CAAA,GAAA,yBAAA,WAAA,eAAA,KAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"abstract-specialty-tank.js","names":["componentStyle","_decorate"],"sources":["../../../src/automation/specialty-tank/abstract-specialty-tank.ts"],"sourcesContent":["import {LitElement, html, nothing, svg, unsafeCSS} from 'lit';\nimport type {CSSResultGroup, TemplateResult} from 'lit';\nimport {property, state} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport componentStyle from './specialty-tank.css?inline';\nimport '../automation-badge/automation-badge.js';\nimport {ObcAutomationBadgeType} from '../automation-badge/automation-badge.js';\nimport {\n AutomationButtonBadgeAlert,\n AutomationButtonBadgeCommandLocked,\n AutomationButtonBadgeControl,\n AutomationButtonBadgeInterlock,\n} from '../automation-button/abstract-automation-button.js';\nimport '../../components/alert-frame/alert-frame.js';\nimport {\n ObcAlertFrameMode,\n ObcAlertFrameThickness,\n ObcAlertFrameType,\n} from '../../components/alert-frame/alert-frame.js';\nimport {AlertType} from '../../types.js';\nimport {TankPositioning} from '../automation-tank/tank-positioning.js';\n\n/**\n * What the graphic area of a specialty tank shows. Mirrors the Figma\n * `has Medium` property; its fourth value, Static, is the `static` property.\n */\nexport enum SpecialtyTankMedium {\n /** One grey area, no split. */\n regular = 'regular',\n /** Two grey halves separated by a gap. */\n graphic = 'graphic',\n /** Hot (red) and cold (blue) halves separated by a gap. */\n medium = 'medium',\n}\n\n/**\n * Hot/cold split geometry of a specialty tank. Drives the halves and the\n * gap between them through the `split-<mode>` class on the tank frame.\n */\nexport enum SpecialtyTankSplitMode {\n /** Left half hot, right half cold. */\n vertical = 'vertical',\n /** Top half hot, bottom half cold. */\n horizontal = 'horizontal',\n /** Two corner-to-corner triangles, top-left hot and bottom-right cold. */\n diagonal = 'diagonal',\n}\n\n/**\n * Frame silhouette of a specialty tank.\n */\nexport enum SpecialtyTankFrame {\n /** One rounded border box. */\n rounded = 'rounded',\n /** Pressurized-tank silhouette: domed caps on a side-bordered body. */\n pressurized = 'pressurized',\n}\n\n/**\n * Base class for the specialty-tank tiles `obc-heat-pump`,\n * `obc-hydraulic-separator` and `obc-heat-exchanger`. Owns the halo, badge\n * row, tank frame with its hot/cold graphic area and equipment icon, tag\n * readout and alert-frame overlay. Subclasses supply `equipmentIcon`,\n * `equipmentName`, `frame` and `splitMode`, plus their own host footprint.\n *\n * ## Layout\n * The same shell as a compact `obc-automation-tank`: a fixed host (or\n * `positioning=\"button\"` to fill the parent), a 4px-padded halo holding\n * badges, the tank frame and the tag, the frame absorbing the space of\n * empty badge and tag cells. Hover, pressed, focus-visible and `activated`\n * are painted on the halo by the flat style mixin; `clickable` and `static`\n * switch the root between a `<button>`, a plain `<div>` and a\n * `<div role=\"img\">` exactly as the tank does.\n *\n * Not declared `abstract`: the wrapper generators wrap every `LitElement`\n * subclass and pass its constructor as a concrete `Constructor<T>`, so the\n * override points throw instead (same as `ObcAbstractAutomationButton`).\n *\n * @property medium - What the graphic area shows: `regular` (one grey area), `graphic` (two grey halves) or `medium` (hot/cold halves).\n * @property static - Display-only tile with a flat grey frame and a bare icon, rendered as a non-interactive `<div role=\"img\">`. Hides the graphic area.\n * @property showIcon - Show the equipment icon centered on the graphic area.\n * @property tag - Identifier rendered in the tag readout below the frame (for example `#0000`); also the accessible name. The cell collapses when empty.\n * @property positioning - Host positioning model — see `TankPositioning`. `button` (default) fills the parent, `point` uses the fixed design footprint with the P&ID anchor.\n * @property clickable - Whether the tile is interactive. `false` keeps the resting appearance but drops hover, pressed and focus states and leaves the tab order; property-only because the default is `true`.\n * @property activated - Paints the activated background on the halo. Needs an interactive tile.\n * @availableWhen activated clickable==true\n * @property badgeControl - Mode badge (auto / manual / local variants), first in the badge row.\n * @property badgeAlert - Alert badge, second in the badge row.\n * @property badgeInterlock - Interlock badge, third in the badge row.\n * @property badgeCommandLocked - Command-locked badge, last in the badge row.\n * @property alert - Show an alert-frame overlay around the halo, mirroring `obc-automation-tank`.\n * @property alertFrameType - Shape of the alert frame.\n * @availableWhen alertFrameType alert==true\n * @property alertFrameThickness - Thickness of the alert frame.\n * @availableWhen alertFrameThickness alert==true\n * @property alertFrameStatus - Alert status the frame is coloured for.\n * @availableWhen alertFrameStatus alert==true\n * @property alertFrameMode - Acknowledgement state of the alert: `acked-active` (default) is steady,\n * `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.\n * @availableWhen alertFrameMode alert==true\n * @property showAlertCategoryIcon - Shows the alert category icon inside the frame.\n * @availableWhen showAlertCategoryIcon alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]\n * @property showAlertIcon - Shows the slotted alert icon inside the frame.\n * @availableWhen showAlertIcon alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]\n */\nexport class ObcAbstractSpecialtyTank extends LitElement {\n @property({type: String}) medium: SpecialtyTankMedium =\n SpecialtyTankMedium.regular;\n @property({type: Boolean, reflect: true}) static: boolean = false;\n @property({type: Boolean, attribute: false}) showIcon: boolean = true;\n @property({type: String}) tag: string = '';\n @property({type: String, reflect: true}) positioning: TankPositioning =\n TankPositioning.button;\n @property({type: Boolean, attribute: false}) clickable: boolean = true;\n @property({type: Boolean}) activated: boolean = false;\n\n @property({type: String}) badgeControl: AutomationButtonBadgeControl =\n AutomationButtonBadgeControl.None;\n @property({type: String}) badgeAlert: AutomationButtonBadgeAlert =\n AutomationButtonBadgeAlert.None;\n @property({type: String}) badgeInterlock: AutomationButtonBadgeInterlock =\n AutomationButtonBadgeInterlock.None;\n @property({type: String})\n badgeCommandLocked: AutomationButtonBadgeCommandLocked =\n AutomationButtonBadgeCommandLocked.None;\n\n @property({type: Boolean}) alert: boolean = false;\n @property({type: String}) alertFrameType: ObcAlertFrameType =\n ObcAlertFrameType.SmallSideFlip;\n @property({type: String}) alertFrameThickness: ObcAlertFrameThickness =\n ObcAlertFrameThickness.Small;\n @property({type: String}) alertFrameStatus: AlertType = AlertType.Alarm;\n @property({type: String}) alertFrameMode: ObcAlertFrameMode =\n ObcAlertFrameMode.ackedActive;\n @property({type: Boolean, attribute: false}) showAlertCategoryIcon: boolean =\n true;\n @property({type: Boolean}) showAlertIcon: boolean = false;\n\n @state() private _hasBadges = false;\n @state() private _hasTagSlot = false;\n\n protected get equipmentIcon(): TemplateResult {\n throw new Error('\"equipmentIcon\" must be implemented in the subclass');\n }\n\n /** Accessible-name fallback used when `tag` is empty. */\n protected get equipmentName(): string {\n throw new Error('\"equipmentName\" must be implemented in the subclass');\n }\n\n protected get frame(): SpecialtyTankFrame {\n throw new Error('\"frame\" must be implemented in the subclass');\n }\n\n protected get splitMode(): SpecialtyTankSplitMode {\n throw new Error('\"splitMode\" must be implemented in the subclass');\n }\n\n private _badgeControlType(): ObcAutomationBadgeType | null {\n switch (this.badgeControl) {\n case AutomationButtonBadgeControl.Local:\n return ObcAutomationBadgeType.Local;\n case AutomationButtonBadgeControl.LocalOnly:\n return ObcAutomationBadgeType.LocalOnly;\n case AutomationButtonBadgeControl.Manual:\n return ObcAutomationBadgeType.Manual;\n case AutomationButtonBadgeControl.ManualOnly:\n return ObcAutomationBadgeType.ManualOnly;\n case AutomationButtonBadgeControl.Auto:\n return ObcAutomationBadgeType.Auto;\n default:\n return null;\n }\n }\n\n private _badgeAlertType(): ObcAutomationBadgeType | null {\n switch (this.badgeAlert) {\n case AutomationButtonBadgeAlert.Silence:\n return ObcAutomationBadgeType.AlertSilenced;\n case AutomationButtonBadgeAlert.Shelved:\n return ObcAutomationBadgeType.AlertShelved;\n case AutomationButtonBadgeAlert.Caution:\n return ObcAutomationBadgeType.Caution;\n case AutomationButtonBadgeAlert.Warning:\n return ObcAutomationBadgeType.Warning;\n case AutomationButtonBadgeAlert.Alarm:\n return ObcAutomationBadgeType.Alarm;\n case AutomationButtonBadgeAlert.LevelCritical:\n return ObcAutomationBadgeType.LevelCritical;\n case AutomationButtonBadgeAlert.LevelHigh:\n return ObcAutomationBadgeType.LevelHigh;\n case AutomationButtonBadgeAlert.LevelMedium:\n return ObcAutomationBadgeType.LevelMedium;\n case AutomationButtonBadgeAlert.LevelLow:\n return ObcAutomationBadgeType.LevelLow;\n case AutomationButtonBadgeAlert.LevelDiagnostic:\n return ObcAutomationBadgeType.LevelDiagnostic;\n default:\n return null;\n }\n }\n\n private _badgeInterlockType(): ObcAutomationBadgeType | null {\n switch (this.badgeInterlock) {\n case AutomationButtonBadgeInterlock.Interlock:\n return ObcAutomationBadgeType.Interlock;\n case AutomationButtonBadgeInterlock.InterlockInhibit:\n return ObcAutomationBadgeType.InterlockInhibit;\n case AutomationButtonBadgeInterlock.Simulation:\n return ObcAutomationBadgeType.Simulation;\n default:\n return null;\n }\n }\n\n private _badgeCommandLockedType(): ObcAutomationBadgeType | null {\n switch (this.badgeCommandLocked) {\n case AutomationButtonBadgeCommandLocked.CommandLocked:\n return ObcAutomationBadgeType.CommandLocked;\n case AutomationButtonBadgeCommandLocked.Simulation:\n return ObcAutomationBadgeType.Simulation;\n default:\n return null;\n }\n }\n\n private _slotHasContent(e: Event): boolean {\n const slot = e.target as HTMLSlotElement;\n return slot\n .assignedNodes({flatten: true})\n .some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim())\n );\n }\n\n private _onBadgesSlotChange(e: Event): void {\n this._hasBadges = this._slotHasContent(e);\n }\n\n private _onTagSlotChange(e: Event): void {\n this._hasTagSlot = this._slotHasContent(e);\n }\n\n private renderGraphic(): TemplateResult {\n if (this.medium === SpecialtyTankMedium.regular) {\n return html`<div class=\"area area-single\"></div>`;\n }\n if (this.splitMode === SpecialtyTankSplitMode.diagonal) {\n return this.renderDiagonalSplit();\n }\n return html`\n <div class=\"halves\">\n <div class=\"area area-hot\"></div>\n <div class=\"area area-cold\"></div>\n </div>\n `;\n }\n\n /**\n * Diagonal split in a unit viewBox stretched over the area\n * (`preserveAspectRatio=\"none\"`); every stroke is `non-scaling` so the\n * borders and the gap keep their pixel widths at any aspect ratio. The\n * gap edges are drawn as one wide line per half, clipped to that half,\n * under the narrower frame-coloured gap line.\n */\n private renderDiagonalSplit(): TemplateResult {\n const hot = '0,0 1,0 0,1';\n const cold = '1,0 1,1 0,1';\n return html`\n <div class=\"diagonal\">\n <svg viewBox=\"0 0 1 1\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n ${svg`\n <defs>\n <clipPath id=\"clip-hot\"><polygon points=${hot} /></clipPath>\n <clipPath id=\"clip-cold\"><polygon points=${cold} /></clipPath>\n </defs>\n <polygon class=\"area-fill area-hot\" points=${hot} />\n <polygon class=\"area-fill area-cold\" points=${cold} />\n <polygon class=\"area-stroke area-hot\" points=${hot} clip-path=\"url(#clip-hot)\" vector-effect=\"non-scaling-stroke\" />\n <polygon class=\"area-stroke area-cold\" points=${cold} clip-path=\"url(#clip-cold)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap-edge area-hot\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" clip-path=\"url(#clip-hot)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap-edge area-cold\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" clip-path=\"url(#clip-cold)\" vector-effect=\"non-scaling-stroke\" />\n <line class=\"gap\" x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\" vector-effect=\"non-scaling-stroke\" />\n `}\n </svg>\n </div>\n `;\n }\n\n override render() {\n const controlBadge = this._badgeControlType();\n const alertBadge = this._badgeAlertType();\n const interlockBadge = this._badgeInterlockType();\n const commandLockedBadge = this._badgeCommandLockedType();\n const hasEnumBadges =\n controlBadge !== null ||\n alertBadge !== null ||\n interlockBadge !== null ||\n commandLockedBadge !== null;\n\n const badgesHidden = !this._hasBadges && !hasEnumBadges;\n const tagHidden = !this._hasTagSlot && !this.tag;\n\n const badgesCell = html`\n <div class=\"badges\" ?hidden=${badgesHidden}>\n <slot name=\"badges\" @slotchange=${this._onBadgesSlotChange}>\n ${\n controlBadge\n ? html`<obc-automation-badge\n .type=${controlBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n alertBadge\n ? html`<obc-automation-badge\n .type=${alertBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n interlockBadge\n ? html`<obc-automation-badge\n .type=${interlockBadge}\n ></obc-automation-badge>`\n : nothing\n }\n ${\n commandLockedBadge\n ? html`<obc-automation-badge\n .type=${commandLockedBadge}\n ></obc-automation-badge>`\n : nothing\n }\n </slot>\n </div>\n `;\n\n const tagCell = html`\n <div class=\"tag\" ?hidden=${tagHidden}>\n <slot name=\"tag\" @slotchange=${this._onTagSlotChange}>${this.tag}</slot>\n </div>\n `;\n\n const pressurized = this.frame === SpecialtyTankFrame.pressurized;\n const cap = (side: 'start' | 'end') =>\n pressurized\n ? html`<div class=\"cap cap-${side}\"><div class=\"cap-dome\"></div></div>`\n : nothing;\n const frameClasses = classMap({\n 'tank-frame': true,\n [`frame-${this.frame}`]: true,\n [`split-${this.splitMode}`]: true,\n [`medium-${this.medium}`]: true,\n static: this.static,\n });\n const tankFrame = html`\n <div class=${frameClasses}>\n ${cap('start')}\n <div class=\"middle\">\n <div class=\"content\">\n ${this.static ? nothing : this.renderGraphic()}\n ${\n this.showIcon\n ? html`<div class=\"icon-frame\">${this.equipmentIcon}</div>`\n : nothing\n }\n </div>\n </div>\n ${cap('end')}\n </div>\n `;\n\n const alertFrameOverlay = this.alert\n ? html`<obc-alert-frame\n class=\"alert-frame\"\n .type=${this.alertFrameType}\n .thickness=${this.alertFrameThickness}\n .status=${this.alertFrameStatus}\n .mode=${this.alertFrameMode}\n .showAlertCategoryIcon=${this.showAlertCategoryIcon}\n .showIcon=${this.showAlertIcon}\n >\n <span slot=\"icon\"><slot name=\"alert-icon\"></slot></span>\n <span slot=\"label\"><slot name=\"alert-label\"></slot></span>\n <span slot=\"timer\"><slot name=\"alert-timer\"></slot></span>\n </obc-alert-frame>`\n : nothing;\n\n const halo = html`\n <div class=\"halo\">\n ${badgesCell}${tankFrame}${tagCell}${alertFrameOverlay}\n </div>\n `;\n\n const isClickable = this.clickable && !this.static;\n const rootClasses = classMap({\n root: true,\n activated: this.activated,\n clickable: isClickable,\n });\n const name = this.tag || this.equipmentName;\n\n // Same three root shapes as obc-automation-tank; the live region stays on\n // all of them so a slotted alert label is announced regardless.\n if (this.static) {\n return html`<div\n class=${rootClasses}\n role=\"img\"\n aria-label=${name}\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n ${halo}\n </div>`;\n }\n if (!isClickable) {\n return html`<div\n class=${rootClasses}\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n ${halo}\n </div>`;\n }\n return html`<button\n class=${rootClasses}\n type=\"button\"\n aria-label=${name}\n aria-live=\"pol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AAM,OAAM,CAAC,CAAA,GAAA,yBAAA,WAAA,kBAAA,KAAA,CAAA;AAEvBA,WAAA,CAAA,SAAS;CAAC,MAAM;CAAS,WAAW;AAAK,CAAC,CAAA,GAAA,yBAAA,WAAA,yBAAA,KAAA,CAAA;AAE1CA,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,yBAAA,WAAA,iBAAA,KAAA,CAAA;AAExBA,WAAA,CAAA,MAAM,CAAA,GAAA,yBAAA,WAAA,cAAA,KAAA,CAAA;AACNA,WAAA,CAAA,MAAM,CAAA,GAAA,yBAAA,WAAA,eAAA,KAAA,CAAA"}
|
|
@@ -176,10 +176,8 @@ var specialty_tank_default = css`* {
|
|
|
176
176
|
padding: 0 2px;
|
|
177
177
|
text-align: center;
|
|
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-label-font-size);
|
|
180
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
183
181
|
font-feature-settings:
|
|
184
182
|
"liga" off,
|
|
185
183
|
"clig" off,
|
|
@@ -165,18 +165,14 @@ var transmitter_default = css`* {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.id-tag {
|
|
168
|
-
font-family: var(--global-typography-font-family);
|
|
169
|
-
font-weight: var(--global-typography-general-xs-font-weight-semibold);
|
|
170
|
-
font-size: var(--global-typography-general-xs-font-size);
|
|
171
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
172
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
173
|
-
font-feature-settings:
|
|
174
|
-
"liga" off,
|
|
175
|
-
"clig" off,
|
|
176
|
-
"ss04" on;
|
|
177
168
|
color: var(--element-neutral-color);
|
|
178
169
|
font-variant-numeric: lining-nums tabular-nums;
|
|
179
170
|
font-feature-settings: "ss04" on;
|
|
171
|
+
font-family: var(--global-typography-font-family);
|
|
172
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
173
|
+
font-style: normal;
|
|
174
|
+
font-weight: 570;
|
|
175
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
180
176
|
}
|
|
181
177
|
`;
|
|
182
178
|
export { transmitter_default as default };
|
|
@@ -122,10 +122,8 @@ obc-readout-list-item {
|
|
|
122
122
|
|
|
123
123
|
.label {
|
|
124
124
|
font-family: var(--global-typography-font-family);
|
|
125
|
-
font-
|
|
126
|
-
|
|
127
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
128
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
125
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
126
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
129
127
|
font-feature-settings:
|
|
130
128
|
"liga" off,
|
|
131
129
|
"clig" off,
|
|
@@ -130,20 +130,16 @@ var transmitter_stack_default = css`* {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.id-tag {
|
|
133
|
-
font-family: var(--global-typography-font-family);
|
|
134
|
-
font-weight: var(--global-typography-general-xs-font-weight-semibold);
|
|
135
|
-
font-size: var(--global-typography-general-xs-font-size);
|
|
136
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
137
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
138
|
-
font-feature-settings:
|
|
139
|
-
"liga" off,
|
|
140
|
-
"clig" off,
|
|
141
|
-
"ss04" on;
|
|
142
133
|
color: var(--element-neutral-color);
|
|
143
134
|
font-variant-numeric: lining-nums tabular-nums;
|
|
144
135
|
font-feature-settings: "ss04" on;
|
|
136
|
+
font-family: var(--global-typography-font-family);
|
|
137
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-weight: 570;
|
|
140
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
145
141
|
/* an empty tag keeps the chip row aligned */
|
|
146
|
-
min-height: var(--global-typography-
|
|
142
|
+
min-height: var(--global-typography-instrument-label-line-height);
|
|
147
143
|
}
|
|
148
144
|
`;
|
|
149
145
|
export { transmitter_stack_default as default };
|
|
@@ -31,18 +31,18 @@ export declare const OUTER_LABEL_CONFIG: {
|
|
|
31
31
|
*/
|
|
32
32
|
export declare const CENTER_READOUT_CONFIG: {
|
|
33
33
|
readonly value: {
|
|
34
|
-
readonly fontSizeVar: "--global-typography-
|
|
35
|
-
readonly fontWeightVar: "--global-typography-
|
|
34
|
+
readonly fontSizeVar: "--global-typography-instrument-value-large-font-size";
|
|
35
|
+
readonly fontWeightVar: "--global-typography-instrument-value-regular-font-weight-active";
|
|
36
36
|
readonly fontColorVar: "--element-neutral-color";
|
|
37
37
|
};
|
|
38
38
|
readonly label: {
|
|
39
|
-
readonly fontSizeVar: "--global-typography-
|
|
40
|
-
readonly fontWeightVar: "--global-typography-
|
|
39
|
+
readonly fontSizeVar: "--global-typography-instrument-label-font-size";
|
|
40
|
+
readonly fontWeightVar: "--global-typography-instrument-label-font-weight";
|
|
41
41
|
readonly fontColorVar: "--instrument-regular-secondary-color";
|
|
42
42
|
};
|
|
43
43
|
readonly unit: {
|
|
44
|
-
readonly fontSizeVar: "--global-typography-
|
|
45
|
-
readonly fontWeightVar: "--global-typography-
|
|
44
|
+
readonly fontSizeVar: "--global-typography-instrument-unit-font-size";
|
|
45
|
+
readonly fontWeightVar: "--global-typography-instrument-unit-font-weight";
|
|
46
46
|
readonly fontColorVar: "--instrument-regular-secondary-color";
|
|
47
47
|
};
|
|
48
48
|
};
|
|
@@ -55,13 +55,13 @@ export declare const TOOLTIP_CONFIG: {
|
|
|
55
55
|
readonly BORDER_RADIUS: 6;
|
|
56
56
|
readonly fontColorVar: "--element-neutral-color";
|
|
57
57
|
readonly label: {
|
|
58
|
-
readonly fontSizeVar: "--global-typography-
|
|
59
|
-
readonly fontWeightVar: "--global-typography-
|
|
58
|
+
readonly fontSizeVar: "--global-typography-instrument-label-font-size";
|
|
59
|
+
readonly fontWeightVar: "--global-typography-instrument-label-font-weight";
|
|
60
60
|
readonly fontColorVar: "--instrument-regular-secondary-color";
|
|
61
61
|
};
|
|
62
62
|
readonly unit: {
|
|
63
|
-
readonly fontSizeVar: "--global-typography-
|
|
64
|
-
readonly fontWeightVar: "--global-typography-
|
|
63
|
+
readonly fontSizeVar: "--global-typography-instrument-unit-font-size";
|
|
64
|
+
readonly fontWeightVar: "--global-typography-instrument-unit-font-weight";
|
|
65
65
|
readonly fontColorVar: "--instrument-regular-secondary-color";
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/charthelpers/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,2BAA2B,0GAM9B,CAAC;AAEX,eAAO,MAAM,4BAA4B,0GAM/B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;IAI3B,yFAAyF;;CAEjF,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/charthelpers/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,2BAA2B,0GAM9B,CAAC;AAEX,eAAO,MAAM,4BAA4B,0GAM/B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;IAI3B,yFAAyF;;CAEjF,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;CAiBxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;CAejB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAC1C,kCAA2C,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC"}
|
|
@@ -44,18 +44,18 @@ var OUTER_LABEL_CONFIG = {
|
|
|
44
44
|
*/
|
|
45
45
|
var CENTER_READOUT_CONFIG = {
|
|
46
46
|
value: {
|
|
47
|
-
fontSizeVar: "--global-typography-
|
|
48
|
-
fontWeightVar: "--global-typography-
|
|
47
|
+
fontSizeVar: "--global-typography-instrument-value-large-font-size",
|
|
48
|
+
fontWeightVar: "--global-typography-instrument-value-regular-font-weight-active",
|
|
49
49
|
fontColorVar: "--element-neutral-color"
|
|
50
50
|
},
|
|
51
51
|
label: {
|
|
52
|
-
fontSizeVar: "--global-typography-
|
|
53
|
-
fontWeightVar: "--global-typography-
|
|
52
|
+
fontSizeVar: "--global-typography-instrument-label-font-size",
|
|
53
|
+
fontWeightVar: "--global-typography-instrument-label-font-weight",
|
|
54
54
|
fontColorVar: "--instrument-regular-secondary-color"
|
|
55
55
|
},
|
|
56
56
|
unit: {
|
|
57
|
-
fontSizeVar: "--global-typography-
|
|
58
|
-
fontWeightVar: "--global-typography-
|
|
57
|
+
fontSizeVar: "--global-typography-instrument-unit-font-size",
|
|
58
|
+
fontWeightVar: "--global-typography-instrument-unit-font-weight",
|
|
59
59
|
fontColorVar: "--instrument-regular-secondary-color"
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -68,13 +68,13 @@ var TOOLTIP_CONFIG = {
|
|
|
68
68
|
BORDER_RADIUS: 6,
|
|
69
69
|
fontColorVar: "--element-neutral-color",
|
|
70
70
|
label: {
|
|
71
|
-
fontSizeVar: "--global-typography-
|
|
72
|
-
fontWeightVar: "--global-typography-
|
|
71
|
+
fontSizeVar: "--global-typography-instrument-label-font-size",
|
|
72
|
+
fontWeightVar: "--global-typography-instrument-label-font-weight",
|
|
73
73
|
fontColorVar: "--instrument-regular-secondary-color"
|
|
74
74
|
},
|
|
75
75
|
unit: {
|
|
76
|
-
fontSizeVar: "--global-typography-
|
|
77
|
-
fontWeightVar: "--global-typography-
|
|
76
|
+
fontSizeVar: "--global-typography-instrument-unit-font-size",
|
|
77
|
+
fontWeightVar: "--global-typography-instrument-unit-font-weight",
|
|
78
78
|
fontColorVar: "--instrument-regular-secondary-color"
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":[],"sources":["../../src/charthelpers/constants.ts"],"sourcesContent":["/**\n * Default sector colors used across chart components\n */\nexport const CHART_SECTOR_DEFAULT_COLORS = [\n '--base-gray-500',\n '--base-gray-400',\n '--base-gray-300',\n '--base-gray-200',\n '--base-gray-100',\n] as const;\n\nexport const CHART_SECTOR_ENHANCED_COLORS = [\n '--base-blue-500',\n '--base-blue-400',\n '--base-blue-300',\n '--base-blue-200',\n '--base-blue-100',\n] as const;\n\n/**\n * Chart dimension constants\n *\n * These dimensions are based on the Figma design system\n * where the chart area is 320x320px including the 32px padding for optional outer labels.\n */\nexport const CHART_DIMENSIONS = {\n CANVAS_PADDING: 32,\n CHART_WIDTH: 256,\n MIN_CHART_WIDTH: 48,\n /** Minimum height for displaying labels and readouts - below 192px, labels are hidden */\n MIN_HEIGHT_WITH_LABELS: 192,\n} as const;\n\n/**\n * Configuration for outer label rendering\n */\nexport const OUTER_LABEL_CONFIG = {\n labelGap: 8, // Gap between chart edge and label text (in pixels)\n fontFamily: '--font-family-main',\n fontSizeVar: '--global-typography-ui-label-font-size',\n fontWeightVar: '--global-typography-ui-label-font-weight',\n fontColorVar: '--instrument-tick-mark-label-secondary-color',\n} as const;\n\n/**\n * Configuration for center readout rendering\n */\nexport const CENTER_READOUT_CONFIG = {\n value: {\n fontSizeVar: '--global-typography-
|
|
1
|
+
{"version":3,"file":"constants.js","names":[],"sources":["../../src/charthelpers/constants.ts"],"sourcesContent":["/**\n * Default sector colors used across chart components\n */\nexport const CHART_SECTOR_DEFAULT_COLORS = [\n '--base-gray-500',\n '--base-gray-400',\n '--base-gray-300',\n '--base-gray-200',\n '--base-gray-100',\n] as const;\n\nexport const CHART_SECTOR_ENHANCED_COLORS = [\n '--base-blue-500',\n '--base-blue-400',\n '--base-blue-300',\n '--base-blue-200',\n '--base-blue-100',\n] as const;\n\n/**\n * Chart dimension constants\n *\n * These dimensions are based on the Figma design system\n * where the chart area is 320x320px including the 32px padding for optional outer labels.\n */\nexport const CHART_DIMENSIONS = {\n CANVAS_PADDING: 32,\n CHART_WIDTH: 256,\n MIN_CHART_WIDTH: 48,\n /** Minimum height for displaying labels and readouts - below 192px, labels are hidden */\n MIN_HEIGHT_WITH_LABELS: 192,\n} as const;\n\n/**\n * Configuration for outer label rendering\n */\nexport const OUTER_LABEL_CONFIG = {\n labelGap: 8, // Gap between chart edge and label text (in pixels)\n fontFamily: '--font-family-main',\n fontSizeVar: '--global-typography-ui-label-font-size',\n fontWeightVar: '--global-typography-ui-label-font-weight',\n fontColorVar: '--instrument-tick-mark-label-secondary-color',\n} as const;\n\n/**\n * Configuration for center readout rendering\n */\nexport const CENTER_READOUT_CONFIG = {\n value: {\n fontSizeVar: '--global-typography-instrument-value-large-font-size',\n fontWeightVar:\n '--global-typography-instrument-value-regular-font-weight-active',\n fontColorVar: '--element-neutral-color',\n },\n label: {\n fontSizeVar: '--global-typography-instrument-label-font-size',\n fontWeightVar: '--global-typography-instrument-label-font-weight',\n fontColorVar: '--instrument-regular-secondary-color',\n },\n unit: {\n fontSizeVar: '--global-typography-instrument-unit-font-size',\n fontWeightVar: '--global-typography-instrument-unit-font-weight',\n fontColorVar: '--instrument-regular-secondary-color',\n },\n} as const;\n\n/**\n * Tooltip styling configuration\n */\nexport const TOOLTIP_CONFIG = {\n bgColorVar: '--container-global-color',\n borderColorVar: '--normal-enabled-border-color',\n BORDER_RADIUS: 6,\n fontColorVar: '--element-neutral-color',\n label: {\n fontSizeVar: '--global-typography-instrument-label-font-size',\n fontWeightVar: '--global-typography-instrument-label-font-weight',\n fontColorVar: '--instrument-regular-secondary-color',\n },\n unit: {\n fontSizeVar: '--global-typography-instrument-unit-font-size',\n fontWeightVar: '--global-typography-instrument-unit-font-weight',\n fontColorVar: '--instrument-regular-secondary-color',\n },\n} as const;\n\n/**\n * Configuration for line graph axis labels\n */\nexport const LINE_GRAPH_LABEL_CONFIG = {\n fontFamily: '--font-family-main',\n fontSizeVar: '--global-typography-ui-label-font-size',\n fontWeightVar: '--global-typography-ui-label-font-weight',\n fontColorVar: '--instrument-tick-mark-label-secondary-color',\n} as const;\n\n/**\n * Configuration for line graph grid and ticks\n */\nexport const LINE_GRAPH_GRID_CONFIG = {\n gridColorVar: '--instrument-tick-mark-tertiary-color',\n tickColorVar: '--border-outline-color',\n thresholdLowColorVar: '--base-red-500',\n thresholdHighColorVar: '--base-blue-500',\n stackedDividerColorVar: '--overlay-border-silhouette-color',\n} as const;\n\n/**\n * Chart area background color for instrument mode\n * Used in gauge-trend and similar composite instruments\n */\nexport const CHART_AREA_BACKGROUND_COLOR_VAR =\n '--instrument-frame-primary-color' as const;\n\n/**\n * Dimensions for rectangular charts (line, bar, etc.)\n */\nexport const RECTANGULAR_CHART_DIMENSIONS = {\n DEFAULT_ASPECT_RATIO: 1.5, // width:height for line graphs\n MIN_HEIGHT_WITH_LABELS: 192, // Threshold for showing labels/ticks\n} as const;\n"],"mappings":";;;;AAGA,IAAa,8BAA8B;CACzC;CACA;CACA;CACA;CACA;AACF;AAEA,IAAa,+BAA+B;CAC1C;CACA;CACA;CACA;CACA;AACF;;;;;;;AAQA,IAAa,mBAAmB;CAC9B,gBAAgB;CAChB,aAAa;CACb,iBAAiB;;CAEjB,wBAAwB;AAC1B;;;;AAKA,IAAa,qBAAqB;CAChC,UAAU;CACV,YAAY;CACZ,aAAa;CACb,eAAe;CACf,cAAc;AAChB;;;;AAKA,IAAa,wBAAwB;CACnC,OAAO;EACL,aAAa;EACb,eACE;EACF,cAAc;CAChB;CACA,OAAO;EACL,aAAa;EACb,eAAe;EACf,cAAc;CAChB;CACA,MAAM;EACJ,aAAa;EACb,eAAe;EACf,cAAc;CAChB;AACF;;;;AAKA,IAAa,iBAAiB;CAC5B,YAAY;CACZ,gBAAgB;CAChB,eAAe;CACf,cAAc;CACd,OAAO;EACL,aAAa;EACb,eAAe;EACf,cAAc;CAChB;CACA,MAAM;EACJ,aAAa;EACb,eAAe;EACf,cAAc;CAChB;AACF;;;;AAKA,IAAa,0BAA0B;CACrC,YAAY;CACZ,aAAa;CACb,eAAe;CACf,cAAc;AAChB;;;;AAKA,IAAa,yBAAyB;CACpC,cAAc;CACd,cAAc;CACd,sBAAsB;CACtB,uBAAuB;CACvB,wBAAwB;AAC1B;;;;;AAMA,IAAa,kCACX;;;;AAKF,IAAa,+BAA+B;CAC1C,sBAAsB;CACtB,wBAAwB;AAC1B"}
|
|
@@ -93,10 +93,8 @@ var audio_recording_item_default = css`* {
|
|
|
93
93
|
|
|
94
94
|
.duration-label {
|
|
95
95
|
font-family: var(--global-typography-font-family);
|
|
96
|
-
font-
|
|
97
|
-
|
|
98
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
99
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
96
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
97
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
100
98
|
font-feature-settings:
|
|
101
99
|
"liga" off,
|
|
102
100
|
"clig" off,
|
|
@@ -62,13 +62,9 @@ var automation_button_readout_stack_default = css`* {
|
|
|
62
62
|
|
|
63
63
|
font-family: var(--global-typography-font-family);
|
|
64
64
|
|
|
65
|
-
font-
|
|
65
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
70
|
-
|
|
71
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
67
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
72
68
|
|
|
73
69
|
font-feature-settings:
|
|
74
70
|
"liga" off,
|
|
@@ -98,10 +94,8 @@ var automation_button_readout_stack_default = css`* {
|
|
|
98
94
|
}
|
|
99
95
|
.readout-stack.small .readout-item {
|
|
100
96
|
font-family: var(--global-typography-font-family);
|
|
101
|
-
font-
|
|
102
|
-
|
|
103
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
104
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
97
|
+
font-size: var(--global-typography-instrument-value-small-font-size);
|
|
98
|
+
line-height: var(--global-typography-instrument-value-small-line-height);
|
|
105
99
|
font-feature-settings:
|
|
106
100
|
"liga" off,
|
|
107
101
|
"clig" off,
|
|
@@ -109,10 +103,11 @@ var automation_button_readout_stack_default = css`* {
|
|
|
109
103
|
}
|
|
110
104
|
.readout-stack.enhanced .readout-item {
|
|
111
105
|
font-family: var(--global-typography-font-family);
|
|
112
|
-
font-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
107
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
108
|
+
letter-spacing: var(
|
|
109
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
110
|
+
);
|
|
116
111
|
font-feature-settings:
|
|
117
112
|
"liga" off,
|
|
118
113
|
"clig" off,
|
|
@@ -176,11 +171,9 @@ var automation_button_readout_stack_default = css`* {
|
|
|
176
171
|
color: var(--element-active-color, #1f1f1f);
|
|
177
172
|
}
|
|
178
173
|
.readout-stack .unit {
|
|
179
|
-
font-family: var(--
|
|
180
|
-
font-weight: var(--
|
|
181
|
-
font-size: var(--
|
|
182
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
183
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
174
|
+
font-family: var(--font-family-main);
|
|
175
|
+
font-weight: var(--automation-components-typography-unit-regular-font-weight);
|
|
176
|
+
font-size: var(--automation-components-typography-unit-regular-font-size);
|
|
184
177
|
font-feature-settings:
|
|
185
178
|
"liga" off,
|
|
186
179
|
"clig" off,
|
|
@@ -190,22 +183,18 @@ var automation_button_readout_stack_default = css`* {
|
|
|
190
183
|
color: var(--element-neutral-color);
|
|
191
184
|
}
|
|
192
185
|
.readout-stack.small .unit {
|
|
193
|
-
font-family: var(--
|
|
194
|
-
font-weight: var(--
|
|
195
|
-
font-size: var(--
|
|
196
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
197
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
186
|
+
font-family: var(--font-family-main);
|
|
187
|
+
font-weight: var(--automation-components-typography-unit-regular-font-weight);
|
|
188
|
+
font-size: var(--automation-components-typography-unit-regular-font-size);
|
|
198
189
|
font-feature-settings:
|
|
199
190
|
"liga" off,
|
|
200
191
|
"clig" off,
|
|
201
192
|
"ss04" on;
|
|
202
193
|
}
|
|
203
194
|
.readout-stack.enhanced .unit {
|
|
204
|
-
font-family: var(--
|
|
205
|
-
font-weight: var(--
|
|
206
|
-
font-size: var(--
|
|
207
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
208
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
195
|
+
font-family: var(--font-family-main);
|
|
196
|
+
font-weight: var(--automation-components-typography-unit-regular-font-weight);
|
|
197
|
+
font-size: var(--automation-components-typography-unit-regular-font-size);
|
|
209
198
|
font-feature-settings:
|
|
210
199
|
"liga" off,
|
|
211
200
|
"clig" off,
|
|
@@ -219,11 +208,10 @@ var automation_button_readout_stack_default = css`* {
|
|
|
219
208
|
align-self: stretch;
|
|
220
209
|
|
|
221
210
|
color: var(--element-Inactive-color, #707070);
|
|
222
|
-
font-family: var(--
|
|
223
|
-
font-weight: var(--
|
|
224
|
-
font-size: var(--
|
|
225
|
-
line-height: var(--
|
|
226
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
211
|
+
font-family: var(--font-family-main);
|
|
212
|
+
font-weight: var(--automation-components-typography-label-font-weight);
|
|
213
|
+
font-size: var(--automation-components-typography-label-font-size);
|
|
214
|
+
line-height: var(--automation-components-typography-label-line-height);
|
|
227
215
|
font-feature-settings:
|
|
228
216
|
"liga" off,
|
|
229
217
|
"clig" off,
|
|
@@ -233,11 +221,10 @@ var automation_button_readout_stack_default = css`* {
|
|
|
233
221
|
text-align: center;
|
|
234
222
|
width: 16px;
|
|
235
223
|
margin-right: 4px;
|
|
236
|
-
font-family: var(--
|
|
237
|
-
font-weight: var(--
|
|
238
|
-
font-size: var(--
|
|
239
|
-
line-height: var(--
|
|
240
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
224
|
+
font-family: var(--font-family-main);
|
|
225
|
+
font-weight: var(--automation-components-typography-label-font-weight);
|
|
226
|
+
font-size: var(--automation-components-typography-label-font-size);
|
|
227
|
+
line-height: var(--automation-components-typography-label-line-height);
|
|
241
228
|
font-feature-settings:
|
|
242
229
|
"liga" off,
|
|
243
230
|
"clig" off,
|
|
@@ -116,10 +116,14 @@ var brilliance_menu_default = css`* {
|
|
|
116
116
|
display: flex;
|
|
117
117
|
align-items: baseline;
|
|
118
118
|
font-family: var(--global-typography-font-family);
|
|
119
|
-
font-weight: var(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
font-weight: var(
|
|
120
|
+
--global-typography-instrument-value-large-font-weight-active
|
|
121
|
+
);
|
|
122
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
123
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
124
|
+
letter-spacing: var(
|
|
125
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
126
|
+
);
|
|
123
127
|
font-feature-settings:
|
|
124
128
|
"liga" off,
|
|
125
129
|
"clig" off,
|
|
@@ -133,10 +137,8 @@ var brilliance_menu_default = css`* {
|
|
|
133
137
|
|
|
134
138
|
:is(:is(:is(.content-container .value-container) .value-label-container) .label-container) .unit {
|
|
135
139
|
font-family: var(--global-typography-font-family);
|
|
136
|
-
font-
|
|
137
|
-
|
|
138
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
139
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
140
|
+
font-size: var(--global-typography-instrument-label-font-size);
|
|
141
|
+
line-height: var(--global-typography-instrument-label-line-height);
|
|
140
142
|
font-feature-settings:
|
|
141
143
|
"liga" off,
|
|
142
144
|
"clig" off,
|
|
@@ -103,10 +103,14 @@ var command_menu_default = css`* {
|
|
|
103
103
|
|
|
104
104
|
.value .status {
|
|
105
105
|
font-family: var(--global-typography-font-family);
|
|
106
|
-
font-weight: var(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
font-weight: var(
|
|
107
|
+
--global-typography-instrument-value-large-font-weight-active
|
|
108
|
+
);
|
|
109
|
+
font-size: var(--global-typography-instrument-value-large-font-size);
|
|
110
|
+
line-height: var(--global-typography-instrument-value-large-line-height);
|
|
111
|
+
letter-spacing: var(
|
|
112
|
+
--global-typography-instrument-value-large-letter-spacing
|
|
113
|
+
);
|
|
110
114
|
font-feature-settings:
|
|
111
115
|
"liga" off,
|
|
112
116
|
"clig" off,
|
|
@@ -293,10 +293,8 @@ var number_input_field_default = css`* {
|
|
|
293
293
|
}
|
|
294
294
|
.value-input {
|
|
295
295
|
font-family: var(--global-typography-font-family);
|
|
296
|
-
font-
|
|
297
|
-
|
|
298
|
-
line-height: var(--global-typography-general-s-line-height);
|
|
299
|
-
letter-spacing: var(--global-typography-general-s-letter-spacing);
|
|
296
|
+
font-size: var(--global-typography-instrument-value-regular-font-size);
|
|
297
|
+
line-height: var(--global-typography-instrument-value-regular-line-height);
|
|
300
298
|
font-feature-settings:
|
|
301
299
|
"liga" off,
|
|
302
300
|
"clig" off,
|
|
@@ -389,17 +387,15 @@ var number_input_field_default = css`* {
|
|
|
389
387
|
/* Unit */
|
|
390
388
|
.unit-text {
|
|
391
389
|
font-family: var(--global-typography-font-family);
|
|
392
|
-
font-
|
|
393
|
-
|
|
394
|
-
line-height: var(--global-typography-general-xs-line-height);
|
|
395
|
-
letter-spacing: var(--global-typography-general-xs-letter-spacing);
|
|
390
|
+
font-size: var(--global-typography-instrument-unit-font-size);
|
|
391
|
+
line-height: var(--global-typography-instrument-unit-line-height);
|
|
396
392
|
font-feature-settings:
|
|
397
393
|
"liga" off,
|
|
398
394
|
"clig" off,
|
|
399
395
|
"ss04" on;
|
|
400
396
|
color: var(--element-inactive-color);
|
|
401
397
|
white-space: nowrap;
|
|
402
|
-
height: var(--global-typography-
|
|
398
|
+
height: var(--global-typography-instrument-unit-line-height);
|
|
403
399
|
user-select: none;
|
|
404
400
|
}
|
|
405
401
|
.unit-text.external {
|