@oicl/openbridge-webcomponents-svelte 2.0.0 → 2.1.0-next.10
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/dist/automation/analog-threeway-valve/ObcAnalogThreewayValve.svelte +110 -0
- package/dist/automation/analog-threeway-valve/ObcAnalogThreewayValve.svelte.d.ts +90 -0
- package/dist/automation/analog-valve/ObcAnalogValve.svelte +2 -2
- package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAutomationButton.svelte +2 -2
- package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -2
- package/dist/automation/automation-tank/ObcAutomationTank.svelte +34 -3
- package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +34 -2
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +2 -2
- package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +2 -2
- package/dist/automation/capacitor/ObcCapacitor.svelte +2 -2
- package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +2 -2
- package/dist/automation/converter/ObcConverter.svelte +2 -2
- package/dist/automation/converter/ObcConverter.svelte.d.ts +2 -2
- package/dist/automation/damper/ObcDamper.svelte +2 -2
- package/dist/automation/damper/ObcDamper.svelte.d.ts +2 -2
- package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte +110 -0
- package/dist/automation/digital-threeway-valve/ObcDigitalThreewayValve.svelte.d.ts +90 -0
- package/dist/automation/digital-valve/ObcDigitalValve.svelte +2 -2
- package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +2 -2
- package/dist/automation/diodes/ObcDiodes.svelte +2 -2
- package/dist/automation/diodes/ObcDiodes.svelte.d.ts +2 -2
- package/dist/automation/fan/ObcFan.svelte +2 -2
- package/dist/automation/fan/ObcFan.svelte.d.ts +2 -2
- package/dist/automation/filter/ObcFilter.svelte +2 -2
- package/dist/automation/filter/ObcFilter.svelte.d.ts +2 -2
- package/dist/automation/ground/ObcGround.svelte +2 -2
- package/dist/automation/ground/ObcGround.svelte.d.ts +2 -2
- package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +10 -4
- package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte.d.ts +10 -3
- package/dist/automation/heat-pump/ObcHeatPump.svelte +10 -4
- package/dist/automation/heat-pump/ObcHeatPump.svelte.d.ts +10 -3
- package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +10 -4
- package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte.d.ts +10 -3
- package/dist/automation/logic/ObcLogic.svelte +2 -2
- package/dist/automation/logic/ObcLogic.svelte.d.ts +2 -2
- package/dist/automation/mosfet/ObcMosfet.svelte +2 -2
- package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +2 -2
- package/dist/automation/motor/ObcMotor.svelte +2 -2
- package/dist/automation/motor/ObcMotor.svelte.d.ts +2 -2
- package/dist/automation/pump/ObcPump.svelte +2 -2
- package/dist/automation/pump/ObcPump.svelte.d.ts +2 -2
- package/dist/automation/resistor/ObcResistor.svelte +2 -2
- package/dist/automation/resistor/ObcResistor.svelte.d.ts +2 -2
- package/dist/automation/router/ObcRouter.svelte +2 -2
- package/dist/automation/router/ObcRouter.svelte.d.ts +2 -2
- package/dist/automation/source/ObcSource.svelte +2 -2
- package/dist/automation/source/ObcSource.svelte.d.ts +2 -2
- package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte +10 -4
- package/dist/automation/specialty-tank/ObcAbstractSpecialtyTank.svelte.d.ts +10 -3
- package/dist/automation/switch/ObcSwitch.svelte +2 -2
- package/dist/automation/switch/ObcSwitch.svelte.d.ts +2 -2
- package/dist/automation/transformer/ObcTransformer.svelte +2 -2
- package/dist/automation/transformer/ObcTransformer.svelte.d.ts +2 -2
- package/dist/automation/transmitter/ObcTransmitter.svelte +58 -3
- package/dist/automation/transmitter/ObcTransmitter.svelte.d.ts +46 -1
- package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte +20 -6
- package/dist/automation/valve-analog-three-way-icon/ObcValveAnalogThreeWayIcon.svelte.d.ts +22 -5
- package/dist/automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte +7 -1
- package/dist/automation/valve-analoge-two-way-icon/ObcValveAnalogTwoWayIcon.svelte.d.ts +7 -1
- package/dist/building-blocks/alert-list/ObcAlertList.svelte +1 -0
- package/dist/building-blocks/alert-list/ObcAlertList.svelte.d.ts +1 -0
- package/dist/building-blocks/alert-list/ObcAlertListBase.svelte +34 -0
- package/dist/building-blocks/alert-list/ObcAlertListBase.svelte.d.ts +15 -0
- package/dist/components/accordion-card/ObcAccordionCard.svelte +22 -4
- package/dist/components/accordion-card/ObcAccordionCard.svelte.d.ts +21 -2
- package/dist/components/alert-menu/ObcAlertMenu.svelte +2 -2
- package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +2 -2
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +3 -1
- package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte.d.ts +3 -1
- package/dist/components/app-menu/ObcAppMenu.svelte +2 -2
- package/dist/components/app-menu/ObcAppMenu.svelte.d.ts +2 -2
- package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte +6 -4
- package/dist/components/brilliance-menu/ObcBrillianceMenu.svelte.d.ts +5 -4
- package/dist/components/command-menu/ObcCommandMenu.svelte +2 -2
- package/dist/components/command-menu/ObcCommandMenu.svelte.d.ts +2 -2
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte +2 -2
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +2 -2
- package/dist/components/navigation-menu/ObcNavigationMenu.svelte +2 -2
- package/dist/components/navigation-menu/ObcNavigationMenu.svelte.d.ts +2 -2
- package/dist/components/system-menu/ObcSystemMenu.svelte +2 -2
- package/dist/components/system-menu/ObcSystemMenu.svelte.d.ts +2 -2
- package/dist/components/user-menu/ObcUserMenu.svelte +2 -2
- package/dist/components/user-menu/ObcUserMenu.svelte.d.ts +2 -2
- package/dist/icons/ObiElectricBolt.svelte +34 -0
- package/dist/icons/ObiElectricBolt.svelte.d.ts +16 -0
- package/dist/icons/ObiElectricLightning.svelte +34 -0
- package/dist/icons/ObiElectricLightning.svelte.d.ts +16 -0
- package/dist/icons/ObiFormatBoldGoogle.svelte +34 -0
- package/dist/icons/ObiFormatBoldGoogle.svelte.d.ts +16 -0
- package/dist/icons/ObiFormatItalicGoogle.svelte +34 -0
- package/dist/icons/ObiFormatItalicGoogle.svelte.d.ts +16 -0
- package/dist/icons/ObiFormatListBulletedGoogle.svelte +34 -0
- package/dist/icons/ObiFormatListBulletedGoogle.svelte.d.ts +16 -0
- package/dist/icons/ObiFormatListNumberedGoogle.svelte +34 -0
- package/dist/icons/ObiFormatListNumberedGoogle.svelte.d.ts +16 -0
- package/dist/icons/ObiFormatUnderlineGoogle.svelte +34 -0
- package/dist/icons/ObiFormatUnderlineGoogle.svelte.d.ts +16 -0
- package/dist/icons/ObiLevelDisplacementTransmitter.svelte +34 -0
- package/dist/icons/ObiLevelDisplacementTransmitter.svelte.d.ts +16 -0
- package/dist/icons/ObiLink2.svelte +34 -0
- package/dist/icons/ObiLink2.svelte.d.ts +16 -0
- package/dist/icons/ObiLogOpen.svelte +34 -0
- package/dist/icons/ObiLogOpen.svelte.d.ts +16 -0
- package/dist/icons/ObiQuantity.svelte +34 -0
- package/dist/icons/ObiQuantity.svelte.d.ts +16 -0
- package/dist/icons/ObiSimulate.svelte +34 -0
- package/dist/icons/ObiSimulate.svelte.d.ts +16 -0
- package/dist/icons/ObiTestTube.svelte +34 -0
- package/dist/icons/ObiTestTube.svelte.d.ts +16 -0
- package/dist/icons/ObiTimer.svelte +34 -0
- package/dist/icons/ObiTimer.svelte.d.ts +16 -0
- package/dist/icons/ObiTimer2.svelte +34 -0
- package/dist/icons/ObiTimer2.svelte.d.ts +16 -0
- package/dist/index.d.ts +26 -7
- package/dist/index.js +26 -7
- package/dist/{icons → manual-icon}/ObiCriticalAcknowledged.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalAcknowledged.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalBadge.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalBadge.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalNoack.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalNoack.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalRectified.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalRectified.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalSilenced.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalSilenced.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalTransferred.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalTransferred.svelte.d.ts +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalUnacknowledged.svelte +1 -1
- package/dist/{icons → manual-icon}/ObiCriticalUnacknowledged.svelte.d.ts +1 -1
- package/dist/navigation-instruments/compass/ObcCompass.svelte +8 -2
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +8 -1
- package/dist/navigation-instruments/current/ObcCurrent.svelte +8 -2
- package/dist/navigation-instruments/current/ObcCurrent.svelte.d.ts +8 -1
- package/dist/navigation-instruments/depth/ObcDepth.svelte +8 -2
- package/dist/navigation-instruments/depth/ObcDepth.svelte.d.ts +8 -1
- package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte +8 -0
- package/dist/navigation-instruments/depth/ObcDepthTopBand.svelte.d.ts +8 -0
- package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte +4 -0
- package/dist/navigation-instruments/depth-actual/ObcDepthActual.svelte.d.ts +4 -0
- package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte +4 -0
- package/dist/navigation-instruments/draft-trim/ObcDraftTrim.svelte.d.ts +4 -0
- package/dist/navigation-instruments/heading/ObcHeading.svelte +8 -2
- package/dist/navigation-instruments/heading/ObcHeading.svelte.d.ts +8 -1
- package/dist/navigation-instruments/heave/ObcHeave.svelte +8 -0
- package/dist/navigation-instruments/heave/ObcHeave.svelte.d.ts +8 -0
- package/dist/navigation-instruments/pitch/ObcPitch.svelte +4 -2
- package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +4 -1
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +14 -2
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +14 -1
- package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte +14 -2
- package/dist/navigation-instruments/pitch-roll-heave/ObcPitchRollHeave.svelte.d.ts +14 -1
- package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte +8 -2
- package/dist/navigation-instruments/pitch-roll-yaw/ObcPitchRollYaw.svelte.d.ts +8 -1
- package/dist/navigation-instruments/roll/ObcRoll.svelte +4 -2
- package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +4 -1
- package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte +5 -3
- package/dist/navigation-instruments/speed-directions/ObcSpeedDirections.svelte.d.ts +4 -1
- package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte +5 -3
- package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts +4 -1
- package/dist/navigation-instruments/wind/ObcWind.svelte +4 -2
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +4 -1
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +11 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +10 -2
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte +43 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmallBase.svelte.d.ts +25 -0
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
4
|
-
export type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
4
|
+
export type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
5
5
|
export type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
7
7
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
8
8
|
import NamedSlot from "../../NamedSlot.svelte";
|
|
9
9
|
import type {Position, AccordionSize} from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
10
|
-
import type {ObcAlertFrameType, ObcAlertFrameThickness} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
10
|
+
import type {ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode} from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
11
11
|
import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
12
12
|
import type { Snippet } from 'svelte';
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
32
32
|
expanded?: boolean;
|
|
33
33
|
/** Disables the accordion card, preventing user interaction and dimming its appearance. */
|
|
34
34
|
disabled?: boolean;
|
|
35
|
-
/** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, and `
|
|
35
|
+
/** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, `alertFrameStatus` and `alertFrameMode`. */
|
|
36
36
|
hasAlert?: boolean;
|
|
37
37
|
/** Enables the description text in the header (only in large size). */
|
|
38
38
|
hasDescription?: boolean;
|
|
@@ -61,7 +61,25 @@ import type {AlertType} from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
|
61
61
|
*
|
|
62
62
|
* Available when `hasAlert==true`.
|
|
63
63
|
*/
|
|
64
|
-
alertFrameStatus?: AlertType
|
|
64
|
+
alertFrameStatus?: AlertType;
|
|
65
|
+
/**
|
|
66
|
+
* Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
|
|
67
|
+
*
|
|
68
|
+
* Available when `hasAlert==true`.
|
|
69
|
+
*/
|
|
70
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
71
|
+
/**
|
|
72
|
+
* Shows the alert category icon in the flap; a small side flap without it is not drawn.
|
|
73
|
+
*
|
|
74
|
+
* Available when `hasAlert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`.
|
|
75
|
+
*/
|
|
76
|
+
showAlertCategoryIcon?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Shows the `alert-icon` slot in a large side, bottom or top flap.
|
|
79
|
+
*
|
|
80
|
+
* Available when `hasAlert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`.
|
|
81
|
+
*/
|
|
82
|
+
showAlertIcon?: boolean
|
|
65
83
|
}
|
|
66
84
|
export interface Events {
|
|
67
85
|
onAccordionToggle?: (event: CustomEvent<{expanded: boolean, cardTitle: string}>) => void
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
2
2
|
import type { Position, AccordionSize } from '@oicl/openbridge-webcomponents/dist/components/accordion-card/accordion-card.js';
|
|
3
|
-
import type { ObcAlertFrameType, ObcAlertFrameThickness } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
3
|
+
import type { ObcAlertFrameType, ObcAlertFrameThickness, ObcAlertFrameMode } from '@oicl/openbridge-webcomponents/dist/components/alert-frame/alert-frame.js';
|
|
4
4
|
import type { AlertType } from '@oicl/openbridge-webcomponents/dist/types.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
@@ -24,7 +24,7 @@ export interface Props {
|
|
|
24
24
|
expanded?: boolean;
|
|
25
25
|
/** Disables the accordion card, preventing user interaction and dimming its appearance. */
|
|
26
26
|
disabled?: boolean;
|
|
27
|
-
/** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, and `
|
|
27
|
+
/** Shows an alert overlay above the card when true. Configure appearance with `alertFrameType`, `alertFrameThickness`, `alertFrameStatus` and `alertFrameMode`. */
|
|
28
28
|
hasAlert?: boolean;
|
|
29
29
|
/** Enables the description text in the header (only in large size). */
|
|
30
30
|
hasDescription?: boolean;
|
|
@@ -54,6 +54,24 @@ export interface Props {
|
|
|
54
54
|
* Available when `hasAlert==true`.
|
|
55
55
|
*/
|
|
56
56
|
alertFrameStatus?: AlertType;
|
|
57
|
+
/**
|
|
58
|
+
* Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame.
|
|
59
|
+
*
|
|
60
|
+
* Available when `hasAlert==true`.
|
|
61
|
+
*/
|
|
62
|
+
alertFrameMode?: ObcAlertFrameMode;
|
|
63
|
+
/**
|
|
64
|
+
* Shows the alert category icon in the flap; a small side flap without it is not drawn.
|
|
65
|
+
*
|
|
66
|
+
* Available when `hasAlert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`.
|
|
67
|
+
*/
|
|
68
|
+
showAlertCategoryIcon?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Shows the `alert-icon` slot in a large side, bottom or top flap.
|
|
71
|
+
*
|
|
72
|
+
* Available when `hasAlert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`.
|
|
73
|
+
*/
|
|
74
|
+
showAlertIcon?: boolean;
|
|
57
75
|
}
|
|
58
76
|
export interface Events {
|
|
59
77
|
onAccordionToggle?: (event: CustomEvent<{
|
|
@@ -74,6 +92,7 @@ declare const ObcAccordionCard: import("svelte").Component<$$ComponentProps, {
|
|
|
74
92
|
AccordionSize: typeof AccordionSize;
|
|
75
93
|
ObcAlertFrameType: typeof ObcAlertFrameType;
|
|
76
94
|
ObcAlertFrameThickness: typeof ObcAlertFrameThickness;
|
|
95
|
+
ObcAlertFrameMode: typeof ObcAlertFrameMode;
|
|
77
96
|
AlertType: typeof AlertType;
|
|
78
97
|
}, "">;
|
|
79
98
|
type ObcAccordionCard = ReturnType<typeof ObcAccordionCard>;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
14
|
softDismiss?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
16
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
17
|
*
|
|
18
18
|
* Available when `softDismiss==true`.
|
|
19
19
|
*/
|
|
@@ -4,10 +4,10 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
8
|
softDismiss?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
10
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
11
|
*
|
|
12
12
|
* Available when `softDismiss==true`.
|
|
13
13
|
*/
|
|
@@ -16,6 +16,8 @@ import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/c
|
|
|
16
16
|
hasIcon?: boolean;
|
|
17
17
|
/** Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state. */
|
|
18
18
|
shelved?: boolean;
|
|
19
|
+
/** Indicates that another system has blocked the alert as not relevant here. For menus that list blocked alerts apart; the item itself shows no marker for it yet. */
|
|
20
|
+
blocked?: boolean;
|
|
19
21
|
/** The title of the alert. */
|
|
20
22
|
title?: string;
|
|
21
23
|
/** The description of the alert. */
|
|
@@ -24,7 +26,7 @@ import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/c
|
|
|
24
26
|
day?: string;
|
|
25
27
|
/** The time label for the alert (e.g., "14:30"). */
|
|
26
28
|
time?: string;
|
|
27
|
-
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified'. Default is 'unacknowledged'. */
|
|
29
|
+
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified', 'rectified-unacknowledged'. 'unacknowledged' and 'rectified-unacknowledged' show the ACK action; the other values show a trailing icon instead. Default is 'unacknowledged'. */
|
|
28
30
|
status?: ObcAlertMenuItemStatus;
|
|
29
31
|
/** Whether the item is expanded/open to show additional details. Toggled by clicking the item. */
|
|
30
32
|
open?: boolean;
|
|
@@ -9,6 +9,8 @@ export interface Props {
|
|
|
9
9
|
hasIcon?: boolean;
|
|
10
10
|
/** Indicates if the alert is shelved (temporarily deferred). When true, a tertiary icon is shown to represent the shelved state. */
|
|
11
11
|
shelved?: boolean;
|
|
12
|
+
/** Indicates that another system has blocked the alert as not relevant here. For menus that list blocked alerts apart; the item itself shows no marker for it yet. */
|
|
13
|
+
blocked?: boolean;
|
|
12
14
|
/** The title of the alert. */
|
|
13
15
|
title?: string;
|
|
14
16
|
/** The description of the alert. */
|
|
@@ -17,7 +19,7 @@ export interface Props {
|
|
|
17
19
|
day?: string;
|
|
18
20
|
/** The time label for the alert (e.g., "14:30"). */
|
|
19
21
|
time?: string;
|
|
20
|
-
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified'. Default is 'unacknowledged'. */
|
|
22
|
+
/** The current status of the alert item. Determines visual style, icon, and action button visibility. Possible values: 'unacknowledged', 'caution', 'acknowledged', 'no-ack-alarm', 'no-ack-warning', 'rectified', 'rectified-unacknowledged'. 'unacknowledged' and 'rectified-unacknowledged' show the ACK action; the other values show a trailing icon instead. Default is 'unacknowledged'. */
|
|
21
23
|
status?: ObcAlertMenuItemStatus;
|
|
22
24
|
/** Whether the item is expanded/open to show additional details. Toggled by clicking the item. */
|
|
23
25
|
open?: boolean;
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
13
13
|
softDismiss?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Whether the menu is showing.
|
|
15
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
16
16
|
*
|
|
17
17
|
* Available when `softDismiss==true`.
|
|
18
18
|
*/
|
|
@@ -3,10 +3,10 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
style?: string;
|
|
6
|
-
/**
|
|
6
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
7
7
|
softDismiss?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
* Whether the menu is showing.
|
|
9
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
10
10
|
*
|
|
11
11
|
* Available when `softDismiss==true`.
|
|
12
12
|
*/
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent,
|
|
3
|
+
export type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent, ObcBrillianceMenuVariant, ObcBrillianceInputVariant} from '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
4
|
+
export type {ObcPalette} from '@oicl/openbridge-webcomponents/dist/charthelpers/theme.js';
|
|
4
5
|
import '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
5
6
|
import { setProperties, forwardEvents } from "../../util.js";
|
|
6
7
|
import NamedSlot from "../../NamedSlot.svelte";
|
|
7
|
-
import type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent,
|
|
8
|
+
import type {ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent, ObcBrillianceMenuVariant, ObcBrillianceInputVariant} from '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
9
|
+
import type {ObcPalette} from '@oicl/openbridge-webcomponents/dist/charthelpers/theme.js';
|
|
8
10
|
import type { Snippet } from 'svelte';
|
|
9
11
|
|
|
10
12
|
export interface Props {
|
|
11
13
|
class?: string;
|
|
12
14
|
style?: string;
|
|
13
|
-
/**
|
|
15
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
16
|
softDismiss?: boolean;
|
|
15
17
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
18
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
19
|
*
|
|
18
20
|
* Available when `softDismiss==true`.
|
|
19
21
|
*/
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
2
|
-
import type { ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent,
|
|
2
|
+
import type { ObcPaletteChangeEvent, ObcBrightnessChangeEvent, ObcLinkPaletteChangeEvent, ObcLinkBrightnessChangeEvent, ObcBrillianceMenuVariant, ObcBrillianceInputVariant } from '@oicl/openbridge-webcomponents/dist/components/brilliance-menu/brilliance-menu.js';
|
|
3
|
+
import type { ObcPalette } from '@oicl/openbridge-webcomponents/dist/charthelpers/theme.js';
|
|
3
4
|
import type { Snippet } from 'svelte';
|
|
4
5
|
export interface Props {
|
|
5
6
|
class?: string;
|
|
6
7
|
style?: string;
|
|
7
|
-
/**
|
|
8
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
9
|
softDismiss?: boolean;
|
|
9
10
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
11
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
12
|
*
|
|
12
13
|
* Available when `softDismiss==true`.
|
|
13
14
|
*/
|
|
@@ -62,9 +63,9 @@ declare const ObcBrillianceMenu: import("svelte").Component<$$ComponentProps, {
|
|
|
62
63
|
ObcBrightnessChangeEvent: typeof ObcBrightnessChangeEvent;
|
|
63
64
|
ObcLinkPaletteChangeEvent: typeof ObcLinkPaletteChangeEvent;
|
|
64
65
|
ObcLinkBrightnessChangeEvent: typeof ObcLinkBrightnessChangeEvent;
|
|
65
|
-
ObcPalette: typeof ObcPalette;
|
|
66
66
|
ObcBrillianceMenuVariant: typeof ObcBrillianceMenuVariant;
|
|
67
67
|
ObcBrillianceInputVariant: typeof ObcBrillianceInputVariant;
|
|
68
|
+
ObcPalette: typeof ObcPalette;
|
|
68
69
|
}, "">;
|
|
69
70
|
type ObcBrillianceMenu = ReturnType<typeof ObcBrillianceMenu>;
|
|
70
71
|
export default ObcBrillianceMenu;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
14
|
softDismiss?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
16
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
17
|
*
|
|
18
18
|
* Available when `softDismiss==true`.
|
|
19
19
|
*/
|
|
@@ -3,10 +3,10 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
style?: string;
|
|
6
|
-
/**
|
|
6
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
7
7
|
softDismiss?: boolean;
|
|
8
8
|
/**
|
|
9
|
-
* Whether the menu is showing.
|
|
9
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
10
10
|
*
|
|
11
11
|
* Available when `softDismiss==true`.
|
|
12
12
|
*/
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
13
13
|
softDismiss?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Whether the menu is showing.
|
|
15
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
16
16
|
*
|
|
17
17
|
* Available when `softDismiss==true`.
|
|
18
18
|
*/
|
|
@@ -4,10 +4,10 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
8
|
softDismiss?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
10
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
11
|
*
|
|
12
12
|
* Available when `softDismiss==true`.
|
|
13
13
|
*/
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
14
|
softDismiss?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
16
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
17
|
*
|
|
18
18
|
* Available when `softDismiss==true`.
|
|
19
19
|
*/
|
|
@@ -4,10 +4,10 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
8
|
softDismiss?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
10
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
11
|
*
|
|
12
12
|
* Available when `softDismiss==true`.
|
|
13
13
|
*/
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
14
|
softDismiss?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
16
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
17
|
*
|
|
18
18
|
* Available when `softDismiss==true`.
|
|
19
19
|
*/
|
|
@@ -4,10 +4,10 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
8
|
softDismiss?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
10
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
11
|
*
|
|
12
12
|
* Available when `softDismiss==true`.
|
|
13
13
|
*/
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
class?: string;
|
|
12
12
|
style?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
14
14
|
softDismiss?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Whether the menu is showing.
|
|
16
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
17
17
|
*
|
|
18
18
|
* Available when `softDismiss==true`.
|
|
19
19
|
*/
|
|
@@ -4,10 +4,10 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Lets the menu close itself on a click outside it, on `Escape`, or when another menu opens. The page is covered while the menu is open, so the closing click reaches nothing there; only the top bar's strip stays clickable, which is how its buttons switch or close menus in one click. Wire it with three bindings: set `softDismiss`, bind `open` to a flag you keep, and reset that flag on `close`. The button that opens the menu needs no wiring of its own: flip the flag from its click, or from the button event of `obc-top-bar` or `obc-integration-bar`. The user menu's *Soft Dismiss From A Bar Button* story shows that wiring, the brilliance menu's *Soft Dismiss* story the one for a button you hold yourself (`bindPopoverTrigger`), and the vue demo runs its top bar this way. Leave it off to show and hide the menu yourself. */
|
|
8
8
|
softDismiss?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* Whether the menu is showing.
|
|
10
|
+
* Whether the menu is showing. Bind it to a flag you keep rather than toggling it from the menu's own value: when the menu closes itself, `open` is written back to `false` before the button's click reaches your handler, so `menu.open = !menu.open` gets out of step. Reset the flag on `close`.
|
|
11
11
|
*
|
|
12
12
|
* Available when `softDismiss==true`.
|
|
13
13
|
*/
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-electric-bolt.js';
|
|
5
|
+
import { setProperties } from "../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
useCssColor?: boolean
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet
|
|
19
|
+
}
|
|
20
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obi-electric-bolt
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
|
|
27
|
+
class={className}
|
|
28
|
+
style={style}
|
|
29
|
+
>
|
|
30
|
+
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</obi-electric-bolt>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-electric-bolt.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
useCssColor?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Events {
|
|
9
|
+
}
|
|
10
|
+
export interface Slots {
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
}
|
|
13
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
14
|
+
declare const ObiElectricBolt: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
15
|
+
type ObiElectricBolt = ReturnType<typeof ObiElectricBolt>;
|
|
16
|
+
export default ObiElectricBolt;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-electric-lightning.js';
|
|
5
|
+
import { setProperties } from "../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
useCssColor?: boolean
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet
|
|
19
|
+
}
|
|
20
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obi-electric-lightning
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
|
|
27
|
+
class={className}
|
|
28
|
+
style={style}
|
|
29
|
+
>
|
|
30
|
+
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</obi-electric-lightning>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-electric-lightning.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
useCssColor?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Events {
|
|
9
|
+
}
|
|
10
|
+
export interface Slots {
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
}
|
|
13
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
14
|
+
declare const ObiElectricLightning: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
15
|
+
type ObiElectricLightning = ReturnType<typeof ObiElectricLightning>;
|
|
16
|
+
export default ObiElectricLightning;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-format-bold-google.js';
|
|
5
|
+
import { setProperties } from "../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
useCssColor?: boolean
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet
|
|
19
|
+
}
|
|
20
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obi-format-bold-google
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
|
|
27
|
+
class={className}
|
|
28
|
+
style={style}
|
|
29
|
+
>
|
|
30
|
+
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</obi-format-bold-google>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-format-bold-google.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
useCssColor?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Events {
|
|
9
|
+
}
|
|
10
|
+
export interface Slots {
|
|
11
|
+
children?: Snippet;
|
|
12
|
+
}
|
|
13
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
14
|
+
declare const ObiFormatBoldGoogle: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
15
|
+
type ObiFormatBoldGoogle = ReturnType<typeof ObiFormatBoldGoogle>;
|
|
16
|
+
export default ObiFormatBoldGoogle;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/icons/icon-format-italic-google.js';
|
|
5
|
+
import { setProperties } from "../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
useCssColor?: boolean
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
export interface Slots {
|
|
18
|
+
children?: Snippet
|
|
19
|
+
}
|
|
20
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obi-format-italic-google
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
|
|
27
|
+
class={className}
|
|
28
|
+
style={style}
|
|
29
|
+
>
|
|
30
|
+
|
|
31
|
+
{#if children}
|
|
32
|
+
{@render children()}
|
|
33
|
+
{/if}
|
|
34
|
+
</obi-format-italic-google>
|