@oicl/openbridge-webcomponents-svelte 2.0.0-next.159 → 2.0.0-next.160

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.
Files changed (170) hide show
  1. package/README.md +1 -1
  2. package/dist/automation/analog-valve/ObcAnalogValve.svelte +4 -4
  3. package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +4 -4
  4. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +4 -4
  5. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +4 -4
  6. package/dist/automation/automation-tank/ObcAutomationTank.svelte +10 -65
  7. package/dist/automation/automation-tank/ObcAutomationTank.svelte.d.ts +5 -60
  8. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +4 -4
  9. package/dist/automation/capacitor/ObcCapacitor.svelte +4 -4
  10. package/dist/automation/converter/ObcConverter.svelte +4 -4
  11. package/dist/automation/damper/ObcDamper.svelte +4 -4
  12. package/dist/automation/digital-valve/ObcDigitalValve.svelte +4 -4
  13. package/dist/automation/diodes/ObcDiodes.svelte +4 -4
  14. package/dist/automation/fan/ObcFan.svelte +4 -4
  15. package/dist/automation/filter/ObcFilter.svelte +4 -4
  16. package/dist/automation/ground/ObcGround.svelte +4 -4
  17. package/dist/automation/logic/ObcLogic.svelte +4 -4
  18. package/dist/automation/mosfet/ObcMosfet.svelte +4 -4
  19. package/dist/automation/motor/ObcMotor.svelte +4 -4
  20. package/dist/automation/pump/ObcPump.svelte +4 -4
  21. package/dist/automation/resistor/ObcResistor.svelte +4 -4
  22. package/dist/automation/router/ObcRouter.svelte +4 -4
  23. package/dist/automation/source/ObcSource.svelte +4 -4
  24. package/dist/automation/switch/ObcSwitch.svelte +4 -4
  25. package/dist/automation/transformer/ObcTransformer.svelte +4 -4
  26. package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte +4 -21
  27. package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte.d.ts +2 -19
  28. package/dist/bars-graphs/line-graph/ObcLineGraph.svelte +2 -16
  29. package/dist/bars-graphs/line-graph/ObcLineGraph.svelte.d.ts +1 -15
  30. package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +2 -16
  31. package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +1 -15
  32. package/dist/building-blocks/circular-progress/ObcCircularProgress.svelte +9 -0
  33. package/dist/building-blocks/circular-progress/ObcCircularProgress.svelte.d.ts +9 -0
  34. package/dist/building-blocks/single-axis-inclinometer/SingleAxisInclinometer.svelte +1 -10
  35. package/dist/building-blocks/single-axis-inclinometer/SingleAxisInclinometer.svelte.d.ts +0 -9
  36. package/dist/components/accordion-card/ObcAccordionCard.svelte +4 -10
  37. package/dist/components/accordion-card/ObcAccordionCard.svelte.d.ts +2 -8
  38. package/dist/components/advice-button/ObcAdviceButton.svelte +6 -6
  39. package/dist/components/advice-button/ObcAdviceButton.svelte.d.ts +5 -5
  40. package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +6 -15
  41. package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte.d.ts +3 -12
  42. package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +4 -14
  43. package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte.d.ts +2 -12
  44. package/dist/components/alert-frame/ObcAlertFrame.svelte +8 -23
  45. package/dist/components/alert-frame/ObcAlertFrame.svelte.d.ts +4 -19
  46. package/dist/components/alert-menu/ObcAlertMenu.svelte +8 -20
  47. package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +4 -16
  48. package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +4 -4
  49. package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte.d.ts +2 -2
  50. package/dist/components/app-button/ObcAppButton.svelte +6 -2
  51. package/dist/components/app-button/ObcAppButton.svelte.d.ts +5 -1
  52. package/dist/components/badge/ObcBadge.svelte +16 -28
  53. package/dist/components/badge/ObcBadge.svelte.d.ts +10 -22
  54. package/dist/components/breadcrumb/ObcBreadcrumb.svelte +2 -6
  55. package/dist/components/breadcrumb/ObcBreadcrumb.svelte.d.ts +1 -5
  56. package/dist/components/button/ObcButton.svelte +4 -11
  57. package/dist/components/button/ObcButton.svelte.d.ts +2 -9
  58. package/dist/components/card/ObcCard.svelte +14 -12
  59. package/dist/components/card/ObcCard.svelte.d.ts +11 -9
  60. package/dist/components/check-button/ObcCheckButton.svelte +4 -8
  61. package/dist/components/check-button/ObcCheckButton.svelte.d.ts +2 -6
  62. package/dist/components/checkbox/ObcCheckbox.svelte +6 -13
  63. package/dist/components/checkbox/ObcCheckbox.svelte.d.ts +3 -10
  64. package/dist/components/command-button/ObcCommandButton.svelte +2 -7
  65. package/dist/components/command-button/ObcCommandButton.svelte.d.ts +1 -6
  66. package/dist/components/context-menu-input/ObcContextMenuInput.svelte +24 -42
  67. package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +16 -34
  68. package/dist/components/date-item/ObcDateItem.svelte +2 -4
  69. package/dist/components/date-item/ObcDateItem.svelte.d.ts +1 -3
  70. package/dist/components/dropdown-button/ObcDropdownButton.svelte +4 -13
  71. package/dist/components/dropdown-button/ObcDropdownButton.svelte.d.ts +2 -11
  72. package/dist/components/elevated-card/ObcElevatedCard.svelte +6 -19
  73. package/dist/components/elevated-card/ObcElevatedCard.svelte.d.ts +3 -16
  74. package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte +4 -8
  75. package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte.d.ts +2 -6
  76. package/dist/components/event-list/ObcEventList.svelte +2 -2
  77. package/dist/components/event-list/ObcEventList.svelte.d.ts +1 -1
  78. package/dist/components/floating-item/ObcFloatingItem.svelte +6 -18
  79. package/dist/components/floating-item/ObcFloatingItem.svelte.d.ts +3 -15
  80. package/dist/components/icon-button/ObcIconButton.svelte +2 -5
  81. package/dist/components/icon-button/ObcIconButton.svelte.d.ts +1 -4
  82. package/dist/components/icon-check-button/ObcIconCheckButton.svelte +16 -24
  83. package/dist/components/icon-check-button/ObcIconCheckButton.svelte.d.ts +10 -18
  84. package/dist/components/menu-button/ObcMenuButton.svelte +4 -17
  85. package/dist/components/menu-button/ObcMenuButton.svelte.d.ts +2 -15
  86. package/dist/components/navigation-item/ObcNavigationItem.svelte +2 -2
  87. package/dist/components/navigation-item/ObcNavigationItem.svelte.d.ts +1 -1
  88. package/dist/components/navigation-item-group/ObcNavigationItemGroup.svelte +2 -2
  89. package/dist/components/navigation-item-group/ObcNavigationItemGroup.svelte.d.ts +1 -1
  90. package/dist/components/navigation-menu/ObcNavigationMenu.svelte +2 -8
  91. package/dist/components/navigation-menu/ObcNavigationMenu.svelte.d.ts +1 -7
  92. package/dist/components/notification-badge-button/ObcNotificationBadgeButton.svelte +2 -2
  93. package/dist/components/notification-badge-button/ObcNotificationBadgeButton.svelte.d.ts +2 -2
  94. package/dist/components/notification-button/ObcNotificationButton.svelte +22 -35
  95. package/dist/components/notification-button/ObcNotificationButton.svelte.d.ts +17 -30
  96. package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +6 -15
  97. package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte.d.ts +3 -12
  98. package/dist/components/notification-message-item/ObcNotificationMessageItem.svelte +4 -10
  99. package/dist/components/notification-message-item/ObcNotificationMessageItem.svelte.d.ts +2 -8
  100. package/dist/components/pagination/ObcPagination.svelte +8 -26
  101. package/dist/components/pagination/ObcPagination.svelte.d.ts +4 -22
  102. package/dist/components/pivot-item/ObcPivotItem.svelte +14 -29
  103. package/dist/components/pivot-item/ObcPivotItem.svelte.d.ts +7 -22
  104. package/dist/components/progress-bar/ObcProgressBar.svelte +6 -5
  105. package/dist/components/progress-bar/ObcProgressBar.svelte.d.ts +5 -4
  106. package/dist/components/rich-button/ObcRichButton.svelte +2 -4
  107. package/dist/components/rich-button/ObcRichButton.svelte.d.ts +1 -3
  108. package/dist/components/slider/ObcSlider.svelte +32 -46
  109. package/dist/components/slider/ObcSlider.svelte.d.ts +22 -36
  110. package/dist/components/slider-double/ObcSliderDouble.svelte +7 -21
  111. package/dist/components/slider-double/ObcSliderDouble.svelte.d.ts +4 -18
  112. package/dist/components/start-stop-switch/ObcStartStopSwitch.svelte +18 -48
  113. package/dist/components/start-stop-switch/ObcStartStopSwitch.svelte.d.ts +11 -41
  114. package/dist/components/stepper-box/ObcStepperBox.svelte +2 -7
  115. package/dist/components/stepper-box/ObcStepperBox.svelte.d.ts +1 -6
  116. package/dist/components/system-button/ObcSystemButton.svelte +4 -14
  117. package/dist/components/system-button/ObcSystemButton.svelte.d.ts +2 -12
  118. package/dist/components/tab-item/ObcTabItem.svelte +30 -66
  119. package/dist/components/tab-item/ObcTabItem.svelte.d.ts +17 -53
  120. package/dist/components/tab-row/ObcTabRow.svelte +12 -36
  121. package/dist/components/tab-row/ObcTabRow.svelte.d.ts +6 -30
  122. package/dist/components/toggle-button-group/ObcToggleButtonGroup.svelte +18 -54
  123. package/dist/components/toggle-button-group/ObcToggleButtonGroup.svelte.d.ts +9 -45
  124. package/dist/components/toggle-button-vertical-group/ObcToggleButtonVerticalGroup.svelte +10 -26
  125. package/dist/components/toggle-button-vertical-group/ObcToggleButtonVerticalGroup.svelte.d.ts +5 -21
  126. package/dist/components/toggle-button-vertical-option/ObcToggleButtonVerticalOption.svelte +2 -4
  127. package/dist/components/toggle-button-vertical-option/ObcToggleButtonVerticalOption.svelte.d.ts +1 -3
  128. package/dist/components/toggletip/ObcToggletip.svelte +2 -10
  129. package/dist/components/toggletip/ObcToggletip.svelte.d.ts +1 -9
  130. package/dist/components/tooltip/ObcTooltip.svelte +16 -28
  131. package/dist/components/tooltip/ObcTooltip.svelte.d.ts +12 -24
  132. package/dist/components/top-bar/ObcTopBar.svelte +84 -48
  133. package/dist/components/top-bar/ObcTopBar.svelte.d.ts +45 -9
  134. package/dist/components/topbar-message-item/ObcTopbarMessageItem.svelte +4 -16
  135. package/dist/components/topbar-message-item/ObcTopbarMessageItem.svelte.d.ts +2 -14
  136. package/dist/components/tree-navigation-group/ObcTreeNavigationGroup.svelte +2 -2
  137. package/dist/components/tree-navigation-group/ObcTreeNavigationGroup.svelte.d.ts +1 -1
  138. package/dist/components/tree-navigation-item/ObcTreeNavigationItem.svelte +2 -2
  139. package/dist/components/tree-navigation-item/ObcTreeNavigationItem.svelte.d.ts +1 -1
  140. package/dist/components/user-button/ObcUserButton.svelte +6 -13
  141. package/dist/components/user-button/ObcUserButton.svelte.d.ts +3 -10
  142. package/dist/components/vendor-button/ObcVendorButton.svelte +4 -8
  143. package/dist/components/vendor-button/ObcVendorButton.svelte.d.ts +2 -6
  144. package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +2 -8
  145. package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte.d.ts +1 -7
  146. package/dist/navigation-instruments/compass/ObcCompass.svelte +6 -8
  147. package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +5 -7
  148. package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte +2 -7
  149. package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte.d.ts +1 -6
  150. package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte +6 -7
  151. package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte.d.ts +5 -6
  152. package/dist/navigation-instruments/gauge-radial/ObcGaugeRadial.svelte +12 -23
  153. package/dist/navigation-instruments/gauge-radial/ObcGaugeRadial.svelte.d.ts +5 -16
  154. package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +28 -51
  155. package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +22 -45
  156. package/dist/navigation-instruments/pitch/ObcPitch.svelte +2 -10
  157. package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +1 -9
  158. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +4 -4
  159. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +2 -2
  160. package/dist/navigation-instruments/roll/ObcRoll.svelte +2 -10
  161. package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +1 -9
  162. package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte +2 -6
  163. package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte.d.ts +1 -5
  164. package/dist/navigation-instruments/rot-sector/ObcRotSector.svelte +16 -20
  165. package/dist/navigation-instruments/rot-sector/ObcRotSector.svelte.d.ts +4 -8
  166. package/dist/navigation-instruments/speed-gauge/ObcSpeedGauge.svelte +14 -20
  167. package/dist/navigation-instruments/speed-gauge/ObcSpeedGauge.svelte.d.ts +3 -9
  168. package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte +6 -22
  169. package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte.d.ts +3 -19
  170. package/package.json +2 -2
@@ -4,51 +4,37 @@ import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
- /** The current value of the slider.
8
-
9
- Updates as the user drags the thumb, clicks the track (if `allowSeeking`), or uses the increment/decrement buttons. */
7
+ /** The current value of the slider. Updates as the user drags the thumb, clicks the track (if `allowSeeking`), or uses the increment/decrement buttons. */
10
8
  value?: number;
11
- /** The minimum allowed value for the slider.
12
-
13
- Default is 0. */
9
+ /** The minimum allowed value for the slider. Default is 0. */
14
10
  min?: number;
15
- /** The maximum allowed value for the slider.
16
-
17
- Default is 100. */
11
+ /** The maximum allowed value for the slider. Default is 100. */
18
12
  max?: number;
19
- /** The step granularity for slider value changes.
20
-
21
- If set, the slider will snap to multiples of this value between min and max.
22
- Optional; if not set, the slider is continuous. */
13
+ /** The step granularity for slider value changes. If set, the slider will snap to multiples of this value between min and max. Optional; if not set, the slider is continuous. */
23
14
  step?: number | undefined;
24
- /** The amount to increment or decrement the value when clicking the left/right icon buttons.
25
-
26
- Default is 10. */
15
+ /**
16
+ * The amount to increment or decrement the value when clicking the left/right icon buttons. Default is 10.
17
+ *
18
+ * Available when `hasLeftIcon==true || hasRightIcon==true`.
19
+ */
27
20
  stepClick?: number;
28
- /** The visual and interaction style of the slider.
29
-
30
- - `normal`: Standard appearance.
31
- - `enhanced`: Larger track and thumb for emphasis.
32
- - `no-input`: Read-only; disables all user input.
33
-
34
- Default is `normal`. */
21
+ /** Visual and interaction style: `normal` (default) is the standard appearance, `enhanced` has a larger track and thumb for emphasis, and `no-input` is read-only. */
35
22
  variant?: ObcSliderVariant;
36
- /** Whether to display a left icon button for decrementing the value.
37
-
38
- When true, the `icon-left` slot is rendered as a button. */
23
+ /** Whether to display a left icon button for decrementing the value. When true, the `icon-left` slot is rendered as a button. */
39
24
  hasLeftIcon?: boolean;
40
- /** Whether to display a right icon button for incrementing the value.
41
-
42
- When true, the `icon-right` slot is rendered as a button. */
25
+ /** Whether to display a right icon button for incrementing the value. When true, the `icon-right` slot is rendered as a button. */
43
26
  hasRightIcon?: boolean;
44
- /** Enables animated seeking: clicking or dragging along the track will set the value to the clicked position, animating smoothly.
45
-
46
- Default is false. */
27
+ /**
28
+ * Moves the value straight to the position clicked or dragged to. Left off, the value animates there instead, at `seekingSpeed`. Default is false.
29
+ *
30
+ * Available when `variant!=no-input && disabled==false`.
31
+ */
47
32
  allowSeeking?: boolean;
48
- /** The speed of the smooth animation that moves the value to the clicked position (used when `allowSeeking` is false).
49
-
50
- Expressed as the inverse of seconds to go from min to max (e.g., 1/3 means 3 seconds for full range).
51
- Default is 1/3. */
33
+ /**
34
+ * The speed of the smooth animation that moves the value to the clicked position (used when `allowSeeking` is false). Expressed as the inverse of seconds to go from min to max (e.g., 1/3 means 3 seconds for full range). Default is 1/3.
35
+ *
36
+ * Available when `allowSeeking==false && variant!=no-input && disabled==false`.
37
+ */
52
38
  seekingSpeed?: number;
53
39
  disabled?: boolean;
54
40
  }
@@ -22,12 +22,8 @@
22
22
  step?: number | undefined;
23
23
  /** Step size for keyboard or button-based changes. Default is 10. */
24
24
  stepClick?: number;
25
- /** Visual and interaction style of the slider.
26
- - `normal`: Standard appearance.
27
- - `enhanced`: Larger track and thumb.
28
- - `no-input`: Read-only, disables user interaction.
29
- Default is `normal`. */
30
- variant?: ObcSliderDoubleVariant;
25
+ /** Visual and interaction style: `normal` (default) is the standard appearance, `enhanced` has a larger track and thumb, and `no-input` is read-only. */
26
+ variant?: ObcSliderDoubleVariant;
31
27
  /** If true, clicking the slider track animates the thumb to the clicked position. Enables seeking mode for rapid value changes. */
32
28
  allowSeeking?: boolean;
33
29
  disabled?: boolean;
@@ -39,21 +35,11 @@ variant?: ObcSliderDoubleVariant;
39
35
  labelDecimals?: number;
40
36
  /** CSS width for value labels (e.g., "5ch", "60px"). */
41
37
  labelWidth?: string;
42
- /** Whether to show the left (low) readout label.
43
-
44
- When false, the left readout is hidden entirely. When true, the readout
45
- renders the formatted `low` value or the content slotted into `left-readout`.
46
-
47
- Default is true. Set via JavaScript property (no HTML attribute). */
48
- showLeftReadout?: boolean;
49
- /** Whether to show the right (high) readout label.
50
-
51
- When false, the right readout is hidden entirely. When true, the readout
52
- renders the formatted `high` value or the content slotted into `right-readout`.
53
-
54
- Default is true. Set via JavaScript property (no HTML attribute). */
55
- showRightReadout?: boolean;
56
- /** Removes spacing between the slider and its container edges for seamless layout integration. Reflected to the `hugcontainer` HTML attribute. */
38
+ /** Whether to show the left (low) readout label. When false, the left readout is hidden entirely. When true, the readout renders the formatted `low` value or the content slotted into `left-readout`. Default is true. Set via JavaScript property (no HTML attribute). */
39
+ showLeftReadout?: boolean;
40
+ /** Whether to show the right (high) readout label. When false, the right readout is hidden entirely. When true, the readout renders the formatted `high` value or the content slotted into `right-readout`. Default is true. Set via JavaScript property (no HTML attribute). */
41
+ showRightReadout?: boolean;
42
+ /** Removes spacing between the slider and its container edges so the slider sits flush. Reflected to the `hugcontainer` HTML attribute. */
57
43
  hugContainer?: boolean
58
44
  }
59
45
  export interface Events {
@@ -16,11 +16,7 @@ export interface Props {
16
16
  step?: number | undefined;
17
17
  /** Step size for keyboard or button-based changes. Default is 10. */
18
18
  stepClick?: number;
19
- /** Visual and interaction style of the slider.
20
- - `normal`: Standard appearance.
21
- - `enhanced`: Larger track and thumb.
22
- - `no-input`: Read-only, disables user interaction.
23
- Default is `normal`. */
19
+ /** Visual and interaction style: `normal` (default) is the standard appearance, `enhanced` has a larger track and thumb, and `no-input` is read-only. */
24
20
  variant?: ObcSliderDoubleVariant;
25
21
  /** If true, clicking the slider track animates the thumb to the clicked position. Enables seeking mode for rapid value changes. */
26
22
  allowSeeking?: boolean;
@@ -33,21 +29,11 @@ Default is `normal`. */
33
29
  labelDecimals?: number;
34
30
  /** CSS width for value labels (e.g., "5ch", "60px"). */
35
31
  labelWidth?: string;
36
- /** Whether to show the left (low) readout label.
37
-
38
- When false, the left readout is hidden entirely. When true, the readout
39
- renders the formatted `low` value or the content slotted into `left-readout`.
40
-
41
- Default is true. Set via JavaScript property (no HTML attribute). */
32
+ /** Whether to show the left (low) readout label. When false, the left readout is hidden entirely. When true, the readout renders the formatted `low` value or the content slotted into `left-readout`. Default is true. Set via JavaScript property (no HTML attribute). */
42
33
  showLeftReadout?: boolean;
43
- /** Whether to show the right (high) readout label.
44
-
45
- When false, the right readout is hidden entirely. When true, the readout
46
- renders the formatted `high` value or the content slotted into `right-readout`.
47
-
48
- Default is true. Set via JavaScript property (no HTML attribute). */
34
+ /** Whether to show the right (high) readout label. When false, the right readout is hidden entirely. When true, the readout renders the formatted `high` value or the content slotted into `right-readout`. Default is true. Set via JavaScript property (no HTML attribute). */
49
35
  showRightReadout?: boolean;
50
- /** Removes spacing between the slider and its container edges for seamless layout integration. Reflected to the `hugcontainer` HTML attribute. */
36
+ /** Removes spacing between the slider and its container edges so the slider sits flush. Reflected to the `hugcontainer` HTML attribute. */
51
37
  hugContainer?: boolean;
52
38
  }
53
39
  export interface Events {
@@ -10,54 +10,24 @@
10
10
  export interface Props {
11
11
  class?: string;
12
12
  style?: string;
13
- /** Whether the switch is in the checked (active) state.
14
- When checked, the thumb is on the right side.
15
- When unchecked, the thumb is on the left side.
16
-
17
- Defaults to `false`. */
18
- checked?: boolean;
19
- /** The visual variant for the switch when checked.
20
- - `normal`: Standard blue appearance (default)
21
- - `running`: Green appearance indicating motor/process is running
22
- - `loading`: Light blue appearance indicating a pending/loading state
23
-
24
- This only affects the visual style, not the switch position.
25
-
26
- Defaults to `'normal'`. */
27
- variant?: StartStopSwitchVariant;
28
- /** The size of the switch.
29
- - `regular`: Standard size with 32px track height
30
- - `large`: Larger size with 48px track height
31
-
32
- Defaults to `'regular'`. */
33
- size?: StartStopSwitchSize;
34
- /** Whether the switch is disabled.
35
-
36
- When disabled, the switch cannot be interacted with and displays a muted appearance.
37
- In the disabled state, the thumb is hidden and only the state label is shown.
38
-
39
- Defaults to `false`. */
40
- disabled?: boolean;
41
- /** Whether to show an alert frame around the switch.
42
-
43
- When true, displays a red alert border around the switch to indicate
44
- an alarm or critical state.
45
-
46
- Defaults to `false`. */
47
- hasAlert?: boolean;
48
- /** Whether to show the description below the switch.
49
-
50
- When true, displays the description text below the switch track.
51
- The component's minimum height is maintained at the touch target size.
52
-
53
- Defaults to `false`. */
54
- hasDescription?: boolean;
55
- /** Description text displayed below the switch when `hasDescription` is true.
56
-
57
- Use this to provide additional context about the switch's purpose or current state.
58
-
59
- Defaults to `'Action description'`. */
60
- description?: string
13
+ /** Whether the switch is in the checked (active) state. When checked, the thumb is on the right side. When unchecked, the thumb is on the left side. Defaults to `false`. */
14
+ checked?: boolean;
15
+ /** Visual style of the checked side: `normal` (default) is blue, `running` green for the running state and `loading` light blue for a pending one. It does not move the thumb. */
16
+ variant?: StartStopSwitchVariant;
17
+ /** Switch size: `regular` (default) has a 32px track height, `large` a 48px one. */
18
+ size?: StartStopSwitchSize;
19
+ /** Whether the switch is disabled. When disabled, the switch cannot be interacted with and displays a muted appearance. In the disabled state, the thumb is hidden and only the state label is shown. Defaults to `false`. */
20
+ disabled?: boolean;
21
+ /** Whether to show an alert frame around the switch. When true, displays a red alert border around the switch to indicate an alarm or critical state. Defaults to `false`. */
22
+ hasAlert?: boolean;
23
+ /** Whether to show the description below the switch. When true, displays the description text below the switch track. The component's minimum height is maintained at the touch target size. Defaults to `false`. */
24
+ hasDescription?: boolean;
25
+ /**
26
+ * Description text displayed below the switch when `hasDescription` is true. Use this to provide additional context about the switch's purpose or current state. Defaults to `'Action description'`.
27
+ *
28
+ * Available when `hasDescription==true`.
29
+ */
30
+ description?: string
61
31
  }
62
32
  export interface Events {
63
33
  onChange?: (event: ObcStartStopSwitchChangeEvent) => void
@@ -4,53 +4,23 @@ import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
- /** Whether the switch is in the checked (active) state.
8
- When checked, the thumb is on the right side.
9
- When unchecked, the thumb is on the left side.
10
-
11
- Defaults to `false`. */
7
+ /** Whether the switch is in the checked (active) state. When checked, the thumb is on the right side. When unchecked, the thumb is on the left side. Defaults to `false`. */
12
8
  checked?: boolean;
13
- /** The visual variant for the switch when checked.
14
- - `normal`: Standard blue appearance (default)
15
- - `running`: Green appearance indicating motor/process is running
16
- - `loading`: Light blue appearance indicating a pending/loading state
17
-
18
- This only affects the visual style, not the switch position.
19
-
20
- Defaults to `'normal'`. */
9
+ /** Visual style of the checked side: `normal` (default) is blue, `running` green for the running state and `loading` light blue for a pending one. It does not move the thumb. */
21
10
  variant?: StartStopSwitchVariant;
22
- /** The size of the switch.
23
- - `regular`: Standard size with 32px track height
24
- - `large`: Larger size with 48px track height
25
-
26
- Defaults to `'regular'`. */
11
+ /** Switch size: `regular` (default) has a 32px track height, `large` a 48px one. */
27
12
  size?: StartStopSwitchSize;
28
- /** Whether the switch is disabled.
29
-
30
- When disabled, the switch cannot be interacted with and displays a muted appearance.
31
- In the disabled state, the thumb is hidden and only the state label is shown.
32
-
33
- Defaults to `false`. */
13
+ /** Whether the switch is disabled. When disabled, the switch cannot be interacted with and displays a muted appearance. In the disabled state, the thumb is hidden and only the state label is shown. Defaults to `false`. */
34
14
  disabled?: boolean;
35
- /** Whether to show an alert frame around the switch.
36
-
37
- When true, displays a red alert border around the switch to indicate
38
- an alarm or critical state.
39
-
40
- Defaults to `false`. */
15
+ /** Whether to show an alert frame around the switch. When true, displays a red alert border around the switch to indicate an alarm or critical state. Defaults to `false`. */
41
16
  hasAlert?: boolean;
42
- /** Whether to show the description below the switch.
43
-
44
- When true, displays the description text below the switch track.
45
- The component's minimum height is maintained at the touch target size.
46
-
47
- Defaults to `false`. */
17
+ /** Whether to show the description below the switch. When true, displays the description text below the switch track. The component's minimum height is maintained at the touch target size. Defaults to `false`. */
48
18
  hasDescription?: boolean;
49
- /** Description text displayed below the switch when `hasDescription` is true.
50
-
51
- Use this to provide additional context about the switch's purpose or current state.
52
-
53
- Defaults to `'Action description'`. */
19
+ /**
20
+ * Description text displayed below the switch when `hasDescription` is true. Use this to provide additional context about the switch's purpose or current state. Defaults to `'Action description'`.
21
+ *
22
+ * Available when `hasDescription==true`.
23
+ */
54
24
  description?: string;
55
25
  }
56
26
  export interface Events {
@@ -9,13 +9,8 @@
9
9
  export interface Props {
10
10
  class?: string;
11
11
  style?: string;
12
- /** The visual and behavioral variant of the stepper box.
13
- - `plus-minus` (default): Uses plus and minus icons.
14
- - `up-down`: Uses up and down chevrons.
15
- - `left-right`: Uses left and right chevrons.
16
-
17
- Changing this property updates the icons and directionality of the stepper buttons. */
18
- type?: ObcStepperBoxType;
12
+ /** Icons and directionality of the stepper buttons: `plus-minus` (default) uses plus and minus icons, `up-down` and `left-right` the matching chevrons. */
13
+ type?: ObcStepperBoxType;
19
14
  /** If true, the stepper box is disabled and the buttons are not clickable. */
20
15
  disabled?: boolean;
21
16
  /** The current numeric value displayed in the field. Pass `null` to clear the value and show the `placeholder` instead. */
@@ -4,12 +4,7 @@ import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
- /** The visual and behavioral variant of the stepper box.
8
- - `plus-minus` (default): Uses plus and minus icons.
9
- - `up-down`: Uses up and down chevrons.
10
- - `left-right`: Uses left and right chevrons.
11
-
12
- Changing this property updates the icons and directionality of the stepper buttons. */
7
+ /** Icons and directionality of the stepper buttons: `plus-minus` (default) uses plus and minus icons, `up-down` and `left-right` the matching chevrons. */
13
8
  type?: ObcStepperBoxType;
14
9
  /** If true, the stepper box is disabled and the buttons are not clickable. */
15
10
  disabled?: boolean;
@@ -9,22 +9,12 @@
9
9
  export interface Props {
10
10
  class?: string;
11
11
  style?: string;
12
- /** Controls the visual and interactive mode of the system button.
13
-
14
- - `condensed`: Single icon button for minimal UI.
15
- - `expanded`: Horizontal button showing a row of system status icons.
16
- - `actions`: Segmented button group for quick access to system controls.
17
-
18
- Default: `condensed` */
19
- variant?: SystemButtonVariant;
12
+ /** Visual and interactive mode: `condensed` (default) is a single icon button, `expanded` a horizontal button showing a row of system status icons, and `actions` a segmented group of system controls. */
13
+ variant?: SystemButtonVariant;
20
14
  /** Disables all interactions and renders the button(s) in a disabled state. */
21
15
  disabled?: boolean;
22
- /** Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS).
23
-
24
- Each sub-property (e.g., `wifi.enabled`, `audio.volume`) controls the presence and state of its corresponding icon.
25
-
26
- Default: all indicators disabled except WiFi (connected), audio (volume 65), microphone (sensitivity 80), battery (level 78), GPS (quality medium). */
27
- systemState?: SystemState;
16
+ /** Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS). Each sub-property (e.g., `wifi.connected`, `audio.volume`) controls the presence and state of its corresponding icon. */
17
+ systemState?: SystemState;
28
18
  /** Indicates whether a system panel is currently open (used internally for expanded/actions variants). */
29
19
  menuOpen?: boolean;
30
20
  /** Indicates which panel (if any) is currently active. One of: `'microphone'`, `'volume'`, `'system-icons'`, or `null`. */
@@ -4,21 +4,11 @@ import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
- /** Controls the visual and interactive mode of the system button.
8
-
9
- - `condensed`: Single icon button for minimal UI.
10
- - `expanded`: Horizontal button showing a row of system status icons.
11
- - `actions`: Segmented button group for quick access to system controls.
12
-
13
- Default: `condensed` */
7
+ /** Visual and interactive mode: `condensed` (default) is a single icon button, `expanded` a horizontal button showing a row of system status icons, and `actions` a segmented group of system controls. */
14
8
  variant?: SystemButtonVariant;
15
9
  /** Disables all interactions and renders the button(s) in a disabled state. */
16
10
  disabled?: boolean;
17
- /** Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS).
18
-
19
- Each sub-property (e.g., `wifi.enabled`, `audio.volume`) controls the presence and state of its corresponding icon.
20
-
21
- Default: all indicators disabled except WiFi (connected), audio (volume 65), microphone (sensitivity 80), battery (level 78), GPS (quality medium). */
11
+ /** Object describing the enabled state and current value for each system indicator (WiFi, audio, microphone, battery, GPS). Each sub-property (e.g., `wifi.connected`, `audio.volume`) controls the presence and state of its corresponding icon. */
22
12
  systemState?: SystemState;
23
13
  /** Indicates whether a system panel is currently open (used internally for expanded/actions variants). */
24
14
  menuOpen?: boolean;
@@ -10,73 +10,37 @@
10
10
  export interface Props {
11
11
  class?: string;
12
12
  style?: string;
13
- /** Shrinks the tab width to fit its content instead of using the default fixed width.
14
- When enabled, the tab will use `width: fit-content` and a minimum width.
15
-
16
- Default: false */
17
- hug?: boolean;
18
- /** Centers the content (icon, title, badge) horizontally within the tab.
19
- When enabled, content is centered rather than left-aligned.
20
-
21
- Default: false */
22
- centerContent?: boolean;
23
- /** Marks the tab as selected/active.
24
- Only one tab in a group should have `checked` set to true.
25
-
26
- Default: false */
27
- checked?: boolean;
28
- /** Displays a close button at the end of the tab.
29
- Use for tabs that can be removed by the user.
30
-
31
- Default: false */
32
- hasClose?: boolean;
33
- /** Shows a leading icon at the start of the tab.
34
- Supply icon content via the `leading-icon` slot.
35
-
36
- Default: false */
37
- hasLeadingIcon?: boolean;
38
- /** Displays the tab's title/label.
39
- Content can be provided via the `title` slot or the `title` property.
40
-
41
- Default: false */
42
- hasTitle?: boolean;
43
- /** Shows a vertical divider on the left edge of the tab (except when checked).
44
- Useful for visually separating tabs.
45
-
46
- Default: false */
47
- hasDivider?: boolean;
48
- /** One or more badges (count/status) to display on the tab.
49
-
50
- When this array is non-empty it takes precedence over the deprecated
51
- single-badge props (`hasBadge`, `badgeType`, `badgeSize`, `badgeCount`,
52
- `badgeShowNumber`, `showLeadingBadgeIcon`). When empty, the deprecated
53
- props are used instead (gated by `hasBadge`).
54
-
55
- Default: [] */
56
- badges?: TabItemBadge[];
13
+ /** Shrinks the tab width to fit its content instead of using the default fixed width. When enabled, the tab will use `width: fit-content` and a minimum width. */
14
+ hug?: boolean;
15
+ /** Centers the content (icon, title, badge) horizontally within the tab. When enabled, content is centered rather than left-aligned. */
16
+ centerContent?: boolean;
17
+ /** Marks the tab as selected/active. Only one tab in a group should have `checked` set to true. */
18
+ checked?: boolean;
19
+ /** Displays a close button at the end of the tab. Use for tabs that can be removed by the user. */
20
+ hasClose?: boolean;
21
+ /** Shows a leading icon at the start of the tab. Supply icon content via the `leading-icon` slot. */
22
+ hasLeadingIcon?: boolean;
23
+ /** Displays the tab's title/label. Content can be provided via the `title` slot or the `title` property. */
24
+ hasTitle?: boolean;
25
+ /**
26
+ * Shows a vertical divider on the left edge of the tab (except when checked). Useful for visually separating tabs.
27
+ *
28
+ * Available when `checked==false`.
29
+ */
30
+ hasDivider?: boolean;
31
+ /** Badges shown on the tab. A non-empty array takes precedence over the deprecated single-badge properties (`hasBadge`, `badgeType`, `badgeSize`, `badgeCount`, `badgeShowNumber`, `showLeadingBadgeIcon`); an empty one falls back to them, gated by `hasBadge`. */
32
+ badges?: TabItemBadge[];
57
33
  hasBadge?: boolean;
58
- /** (Deprecated/Unused) Icon name for the tab.
59
- Icon content should be provided via the `leading-icon` slot.
60
-
61
- Default: 'placeholder' */
62
- icon?: string;
63
- /** The tab's title/label text.
64
- Can be overridden by slotting content into the `title` slot.
65
-
66
- Default: 'Tab title' */
67
- title?: string;
68
- /** Shows contextual text below the tab title.
69
-
70
- Default: false */
71
- showSubtitle?: boolean;
72
- /** Contextual text shown below the tab title when `showSubtitle` is true.
73
-
74
- Default: '' */
75
- subtitle?: string;
76
- /** Disables the tab, preventing user interaction and applying disabled styles.
77
-
78
- Default: false */
79
- disabled?: boolean;
34
+ /** (Deprecated/Unused) Icon name for the tab. Icon content should be provided via the `leading-icon` slot. */
35
+ icon?: string;
36
+ /** The tab's title/label text. Can be overridden by slotting content into the `title` slot. */
37
+ title?: string;
38
+ /** Shows contextual text below the tab title. */
39
+ showSubtitle?: boolean;
40
+ /** Contextual text shown below the tab title when `showSubtitle` is true. */
41
+ subtitle?: string;
42
+ /** Disables the tab, preventing user interaction and applying disabled styles. */
43
+ disabled?: boolean;
80
44
  /** Available when `hasBadge==true`. */
81
45
  badgeType?: string;
82
46
  /** Available when `hasBadge==true`. */
@@ -4,72 +4,36 @@ import type { Snippet } from 'svelte';
4
4
  export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
- /** Shrinks the tab width to fit its content instead of using the default fixed width.
8
- When enabled, the tab will use `width: fit-content` and a minimum width.
9
-
10
- Default: false */
7
+ /** Shrinks the tab width to fit its content instead of using the default fixed width. When enabled, the tab will use `width: fit-content` and a minimum width. */
11
8
  hug?: boolean;
12
- /** Centers the content (icon, title, badge) horizontally within the tab.
13
- When enabled, content is centered rather than left-aligned.
14
-
15
- Default: false */
9
+ /** Centers the content (icon, title, badge) horizontally within the tab. When enabled, content is centered rather than left-aligned. */
16
10
  centerContent?: boolean;
17
- /** Marks the tab as selected/active.
18
- Only one tab in a group should have `checked` set to true.
19
-
20
- Default: false */
11
+ /** Marks the tab as selected/active. Only one tab in a group should have `checked` set to true. */
21
12
  checked?: boolean;
22
- /** Displays a close button at the end of the tab.
23
- Use for tabs that can be removed by the user.
24
-
25
- Default: false */
13
+ /** Displays a close button at the end of the tab. Use for tabs that can be removed by the user. */
26
14
  hasClose?: boolean;
27
- /** Shows a leading icon at the start of the tab.
28
- Supply icon content via the `leading-icon` slot.
29
-
30
- Default: false */
15
+ /** Shows a leading icon at the start of the tab. Supply icon content via the `leading-icon` slot. */
31
16
  hasLeadingIcon?: boolean;
32
- /** Displays the tab's title/label.
33
- Content can be provided via the `title` slot or the `title` property.
34
-
35
- Default: false */
17
+ /** Displays the tab's title/label. Content can be provided via the `title` slot or the `title` property. */
36
18
  hasTitle?: boolean;
37
- /** Shows a vertical divider on the left edge of the tab (except when checked).
38
- Useful for visually separating tabs.
39
-
40
- Default: false */
19
+ /**
20
+ * Shows a vertical divider on the left edge of the tab (except when checked). Useful for visually separating tabs.
21
+ *
22
+ * Available when `checked==false`.
23
+ */
41
24
  hasDivider?: boolean;
42
- /** One or more badges (count/status) to display on the tab.
43
-
44
- When this array is non-empty it takes precedence over the deprecated
45
- single-badge props (`hasBadge`, `badgeType`, `badgeSize`, `badgeCount`,
46
- `badgeShowNumber`, `showLeadingBadgeIcon`). When empty, the deprecated
47
- props are used instead (gated by `hasBadge`).
48
-
49
- Default: [] */
25
+ /** Badges shown on the tab. A non-empty array takes precedence over the deprecated single-badge properties (`hasBadge`, `badgeType`, `badgeSize`, `badgeCount`, `badgeShowNumber`, `showLeadingBadgeIcon`); an empty one falls back to them, gated by `hasBadge`. */
50
26
  badges?: TabItemBadge[];
51
27
  hasBadge?: boolean;
52
- /** (Deprecated/Unused) Icon name for the tab.
53
- Icon content should be provided via the `leading-icon` slot.
54
-
55
- Default: 'placeholder' */
28
+ /** (Deprecated/Unused) Icon name for the tab. Icon content should be provided via the `leading-icon` slot. */
56
29
  icon?: string;
57
- /** The tab's title/label text.
58
- Can be overridden by slotting content into the `title` slot.
59
-
60
- Default: 'Tab title' */
30
+ /** The tab's title/label text. Can be overridden by slotting content into the `title` slot. */
61
31
  title?: string;
62
- /** Shows contextual text below the tab title.
63
-
64
- Default: false */
32
+ /** Shows contextual text below the tab title. */
65
33
  showSubtitle?: boolean;
66
- /** Contextual text shown below the tab title when `showSubtitle` is true.
67
-
68
- Default: '' */
34
+ /** Contextual text shown below the tab title when `showSubtitle` is true. */
69
35
  subtitle?: string;
70
- /** Disables the tab, preventing user interaction and applying disabled styles.
71
-
72
- Default: false */
36
+ /** Disables the tab, preventing user interaction and applying disabled styles. */
73
37
  disabled?: boolean;
74
38
  /** Available when `hasBadge==true`. */
75
39
  badgeType?: string;
@@ -10,43 +10,19 @@
10
10
  export interface Props {
11
11
  class?: string;
12
12
  style?: string;
13
- /** The list of tabs to display. Each tab is defined by an object with properties such as `id`, `title`, `subtitle`, `showSubtitle`, `hasLeadingIcon`, `hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`, and `disabled`.
14
-
15
- - `id` (string): Unique identifier for the tab.
16
- - `title` (string): Display label for the tab.
17
- - `subtitle` (string): Contextual text shown below the title when subtitle display is enabled.
18
- - `showSubtitle` (boolean): Optional per-tab override for displaying the subtitle.
19
- - `hasLeadingIcon` (boolean): Whether to show a leading icon (default: true).
20
- - `badges` (TabItemBadge[]): One or more badges to display on the tab. Takes precedence over the deprecated single-badge fields below.
21
- - `hasBadge` (boolean, deprecated): Whether to show a badge on the tab.
22
- - `badgeCount` (number, deprecated): Number to display in the badge.
23
- - `badgeType` (BadgeType, deprecated): Visual style of the badge (e.g., notification, alarm, enhance).
24
- - `badgeSize` (BadgeSize, deprecated): Size of the badge (e.g., regular, large).
25
- - `badgeShowNumber` (boolean, deprecated): If true, shows the badge number.
26
- - `showLeadingBadgeIcon` (boolean, deprecated): If true, shows a badge icon.
27
- - `disabled` (boolean): If true, disables the tab. */
28
- tabs?: TabData[];
29
- /** The `id` of the currently selected tab. Only one tab can be selected at a time.
30
-
31
- Changing this property updates the selected tab visually and emits the `tab-selected` event when changed by user interaction. */
32
- selectedTabId?: string;
33
- /** Whether to display a close button on each tab. When enabled, users can remove tabs individually.
34
-
35
- Default: `false`. */
36
- hasClose?: boolean;
13
+ /** Tabs to display. Each carries a unique `id`, a `title`, an optional `subtitle` with a per-tab `showSubtitle` override, `hasLeadingIcon`, `disabled`, and a `badges` array that takes precedence over the deprecated single-badge fields (`hasBadge`, `badgeCount`, `badgeType`, `badgeSize`, `badgeShowNumber`, `showLeadingBadgeIcon`). */
14
+ tabs?: TabData[];
15
+ /** The `id` of the currently selected tab. Only one tab can be selected at a time. Changing this property updates the selected tab visually and emits the `tab-selected` event when changed by user interaction. */
16
+ selectedTabId?: string;
17
+ /** Whether to display a close button on each tab. When enabled, users can remove tabs individually. */
18
+ hasClose?: boolean;
37
19
  centerContent?: boolean;
38
- /** Enables "hug" mode for a more compact tab layout with reduced padding.
39
-
40
- Default: `false`. */
41
- hug?: boolean;
42
- /** Whether to display subtitle text for each tab. Individual tabs can override this with `tab.showSubtitle`.
43
-
44
- Default: `false`. */
45
- showSubtitle?: boolean;
46
- /** Whether to display an "add new tab" button at the end of the tab row. When clicked, emits the `add-new-tab` event.
47
-
48
- Default: `false`. */
49
- hasAddNewTab?: boolean
20
+ /** Enables "hug" mode for a more compact tab layout with reduced padding. */
21
+ hug?: boolean;
22
+ /** Whether to display subtitle text for each tab. Individual tabs can override this with `tab.showSubtitle`. */
23
+ showSubtitle?: boolean;
24
+ /** Whether to display an "add new tab" button at the end of the tab row. When clicked, emits the `add-new-tab` event. */
25
+ hasAddNewTab?: boolean
50
26
  }
51
27
  export interface Events {
52
28
  onTabSelected?: (event: CustomEvent<{tab: TabData, id: string, index: number}>) => void;