@oicl/openbridge-webcomponents-svelte 2.0.0-next.150 → 2.0.0-next.151

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 (166) hide show
  1. package/dist/NamedSlot.svelte +26 -0
  2. package/dist/NamedSlot.svelte.d.ts +11 -0
  3. package/dist/ar/building-blocks/poi-header/ObcPoiHeader.svelte +2 -3
  4. package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte +5 -12
  5. package/dist/ar/poi/ObcPoi.svelte +3 -6
  6. package/dist/ar/poi/ObcPoiAton.svelte +2 -3
  7. package/dist/ar/poi/ObcPoiData.svelte +2 -3
  8. package/dist/ar/poi/ObcPoiVessel.svelte +4 -9
  9. package/dist/ar/poi-button/ObcPoiButton.svelte +3 -6
  10. package/dist/ar/poi-button/ObcPoiButtonAton.svelte +3 -6
  11. package/dist/ar/poi-button/ObcPoiButtonData.svelte +3 -6
  12. package/dist/ar/poi-button/ObcPoiButtonVessel.svelte +5 -12
  13. package/dist/ar/poi-card/ObcPoiCard.svelte +3 -6
  14. package/dist/ar/poi-card-header/ObcPoiCardHeader.svelte +3 -6
  15. package/dist/ar/poi-controller/ObcPoiController.svelte +3 -6
  16. package/dist/ar/poi-object/ObcPoiObjectVessel.svelte +3 -6
  17. package/dist/automation/automation-badge/ObcAutomationBadge.svelte +2 -3
  18. package/dist/automation/automation-button/ObcAutomationButton.svelte +10 -27
  19. package/dist/automation/automation-input-modal/ObcAutomationInputModal.svelte +5 -12
  20. package/dist/automation/automation-tank/ObcAutomationTank.svelte +11 -30
  21. package/dist/automation/gauge-generator/ObcGaugeGenerator.svelte +3 -6
  22. package/dist/automation/gauge-motors-and-pumps/ObcGaugeMotorsAndPumps.svelte +3 -6
  23. package/dist/automation/gauge-valve/ObcGaugeValve.svelte +2 -3
  24. package/dist/automation/heat-exchanger/ObcHeatExchanger.svelte +6 -15
  25. package/dist/automation/heat-pump/ObcHeatPump.svelte +6 -15
  26. package/dist/automation/hydraulic-separator/ObcHydraulicSeparator.svelte +6 -15
  27. package/dist/automation/indicator-battery/ObcIndicatorBattery.svelte +2 -3
  28. package/dist/automation/indicator-generator/ObcIndicatorGenerator.svelte +2 -3
  29. package/dist/automation/indicator-tank-atmospheric/ObcIndicatorTankAtmospheric.svelte +2 -3
  30. package/dist/automation/transmitter/ObcTransmitter.svelte +2 -3
  31. package/dist/automation/transmitter-button/ObcTransmitterButton.svelte +2 -3
  32. package/dist/building-blocks/alert-list/ObcAlertList.svelte +4 -9
  33. package/dist/building-blocks/readout-block/ObcReadoutBlock.svelte +2 -3
  34. package/dist/components/accordion-card/ObcAccordionCard.svelte +6 -15
  35. package/dist/components/accordion-item/ObcAccordionItem.svelte +2 -3
  36. package/dist/components/advice-button/ObcAdviceButton.svelte +2 -3
  37. package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +8 -21
  38. package/dist/components/advice-menu-item/ObcAdviceMenuItem.svelte +2 -3
  39. package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +2 -3
  40. package/dist/components/alert-floating-item/ObcAlertFloatingItem.svelte +8 -21
  41. package/dist/components/alert-frame/ObcAlertFrame.svelte +4 -9
  42. package/dist/components/alert-menu/ObcAlertMenu.svelte +4 -9
  43. package/dist/components/alert-menu-item/ObcAlertMenuItem.svelte +5 -12
  44. package/dist/components/alert-subsystem-counter/ObcAlertSubsystemCounter.svelte +3 -6
  45. package/dist/components/app-button/ObcAppButton.svelte +2 -3
  46. package/dist/components/attachment-list-item/ObcAttachmentListItem.svelte +4 -9
  47. package/dist/components/badge/ObcBadge.svelte +2 -3
  48. package/dist/components/button/ObcButton.svelte +3 -6
  49. package/dist/components/card/ObcCard.svelte +4 -9
  50. package/dist/components/check-button/ObcCheckButton.svelte +4 -9
  51. package/dist/components/command-menu/ObcCommandMenu.svelte +10 -27
  52. package/dist/components/dropdown-button/ObcDropdownButton.svelte +2 -3
  53. package/dist/components/elevated-card/ObcElevatedCard.svelte +8 -21
  54. package/dist/components/floating-item/ObcFloatingItem.svelte +9 -24
  55. package/dist/components/form-container/ObcFormContainer.svelte +4 -9
  56. package/dist/components/form-group/ObcFormGroup.svelte +3 -6
  57. package/dist/components/form-item/ObcFormItem.svelte +2 -3
  58. package/dist/components/icon-button/ObcIconButton.svelte +2 -3
  59. package/dist/components/icon-check-button/ObcIconCheckButton.svelte +2 -3
  60. package/dist/components/keyboard-numeric/ObcKeyboardNumeric.svelte +2 -3
  61. package/dist/components/menu-button/ObcMenuButton.svelte +2 -3
  62. package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +7 -18
  63. package/dist/components/modal-window/ObcModalWindow.svelte +7 -18
  64. package/dist/components/navigation-item/ObcNavigationItem.svelte +3 -6
  65. package/dist/components/navigation-item-group/ObcNavigationItemGroup.svelte +2 -3
  66. package/dist/components/navigation-menu/ObcNavigationMenu.svelte +4 -9
  67. package/dist/components/notification-button/ObcNotificationButton.svelte +2 -3
  68. package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +8 -21
  69. package/dist/components/notification-menu-item/ObcNotificationMenuItem.svelte +2 -3
  70. package/dist/components/notification-message-item/ObcNotificationMessageItem.svelte +2 -3
  71. package/dist/components/number-input-field/ObcNumberInputField.svelte +4 -9
  72. package/dist/components/pivot-item/ObcPivotItem.svelte +2 -3
  73. package/dist/components/progress-bar/ObcProgressBar.svelte +2 -3
  74. package/dist/components/progress-button/ObcProgressButton.svelte +4 -9
  75. package/dist/components/rich-button/ObcRichButton.svelte +3 -6
  76. package/dist/components/sequence-card/ObcSequenceCard.svelte +8 -21
  77. package/dist/components/sequence-item/ObcSequenceItem.svelte +5 -12
  78. package/dist/components/sequence-modal/ObcSequenceModal.svelte +2 -3
  79. package/dist/components/sequence-toolbar/ObcSequenceToolbar.svelte +5 -12
  80. package/dist/components/slide-button/ObcSlideButton.svelte +3 -6
  81. package/dist/components/slider/ObcSlider.svelte +3 -6
  82. package/dist/components/slider-double/ObcSliderDouble.svelte +3 -6
  83. package/dist/components/split-button/ObcSplitButton.svelte +2 -3
  84. package/dist/components/start-stop-switch/ObcStartStopSwitch.svelte +7 -18
  85. package/dist/components/system-menu/ObcSystemMenu.svelte +2 -3
  86. package/dist/components/tab-item/ObcTabItem.svelte +4 -9
  87. package/dist/components/tab-row/ObcTabRow.svelte +3 -6
  88. package/dist/components/tabbed-card/ObcTabbedCard.svelte +16 -45
  89. package/dist/components/table-header-item/ObcTableHeaderItem.svelte +2 -3
  90. package/dist/components/text-input-field/ObcTextInputField.svelte +4 -9
  91. package/dist/components/textarea-field/ObcTextareaField.svelte +2 -3
  92. package/dist/components/textbox/ObcTextbox.svelte +2 -3
  93. package/dist/components/title-container/ObcTitleContainer.svelte +5 -12
  94. package/dist/components/toggle-button-option/ObcToggleButtonOption.svelte +2 -3
  95. package/dist/components/toggle-button-vertical-option/ObcToggleButtonVerticalOption.svelte +2 -3
  96. package/dist/components/toggle-switch/ObcToggleSwitch.svelte +2 -3
  97. package/dist/components/toggletip/ObcToggletip.svelte +4 -9
  98. package/dist/components/tooltip/ObcTooltip.svelte +2 -3
  99. package/dist/components/top-bar/ObcTopBar.svelte +5 -12
  100. package/dist/components/topbar-message-item/ObcTopbarMessageItem.svelte +10 -27
  101. package/dist/components/tree-navigation-group/ObcTreeNavigationGroup.svelte +2 -3
  102. package/dist/components/tree-navigation-item/ObcTreeNavigationItem.svelte +2 -3
  103. package/dist/components/user-button/ObcUserButton.svelte +2 -3
  104. package/dist/components/user-menu/ObcUserMenu.svelte +2 -3
  105. package/dist/icons/ObiBipolarTransistor01.svelte +32 -0
  106. package/dist/icons/ObiBipolarTransistor01.svelte.d.ts +16 -0
  107. package/dist/icons/ObiBipolarTransistor02.svelte +32 -0
  108. package/dist/icons/ObiBipolarTransistor02.svelte.d.ts +16 -0
  109. package/dist/icons/ObiBipolarTransistor02Off.svelte +32 -0
  110. package/dist/icons/ObiBipolarTransistor02Off.svelte.d.ts +16 -0
  111. package/dist/icons/ObiBipolarTransistor02On.svelte +32 -0
  112. package/dist/icons/ObiBipolarTransistor02On.svelte.d.ts +16 -0
  113. package/dist/icons/ObiBipolarTransistor03.svelte +32 -0
  114. package/dist/icons/ObiBipolarTransistor03.svelte.d.ts +16 -0
  115. package/dist/icons/ObiBipolarTransistor03Flat.svelte +32 -0
  116. package/dist/icons/ObiBipolarTransistor03Flat.svelte.d.ts +16 -0
  117. package/dist/icons/ObiBipolarTransistor03Off.svelte +32 -0
  118. package/dist/icons/ObiBipolarTransistor03Off.svelte.d.ts +16 -0
  119. package/dist/icons/ObiBipolarTransistor03On.svelte +32 -0
  120. package/dist/icons/ObiBipolarTransistor03On.svelte.d.ts +16 -0
  121. package/dist/icons/ObiBipolarTransistor04.svelte +32 -0
  122. package/dist/icons/ObiBipolarTransistor04.svelte.d.ts +16 -0
  123. package/dist/icons/ObiBipolarTransistor04Flat.svelte +32 -0
  124. package/dist/icons/ObiBipolarTransistor04Flat.svelte.d.ts +16 -0
  125. package/dist/icons/ObiBipolarTransistor04Off.svelte +32 -0
  126. package/dist/icons/ObiBipolarTransistor04Off.svelte.d.ts +16 -0
  127. package/dist/icons/ObiBipolarTransistor04On.svelte +32 -0
  128. package/dist/icons/ObiBipolarTransistor04On.svelte.d.ts +16 -0
  129. package/dist/icons/ObiBipolarTransistorOff.svelte +32 -0
  130. package/dist/icons/ObiBipolarTransistorOff.svelte.d.ts +16 -0
  131. package/dist/icons/ObiBipolarTransistorOn.svelte +32 -0
  132. package/dist/icons/ObiBipolarTransistorOn.svelte.d.ts +16 -0
  133. package/dist/icons/ObiBypass.svelte +32 -0
  134. package/dist/icons/ObiBypass.svelte.d.ts +16 -0
  135. package/dist/icons/{ObiChevronTrippleLeft.svelte → ObiChevronTripleLeft.svelte} +3 -3
  136. package/dist/icons/{ObiChevronTrippleRight.svelte.d.ts → ObiChevronTripleLeft.svelte.d.ts} +4 -4
  137. package/dist/icons/{ObiChevronTrippleRight.svelte → ObiChevronTripleRight.svelte} +3 -3
  138. package/dist/icons/{ObiChevronTrippleLeft.svelte.d.ts → ObiChevronTripleRight.svelte.d.ts} +4 -4
  139. package/dist/icons/ObiHeatPumpBalance.svelte +32 -0
  140. package/dist/icons/ObiHeatPumpBalance.svelte.d.ts +16 -0
  141. package/dist/icons/ObiOutput.svelte +32 -0
  142. package/dist/icons/ObiOutput.svelte.d.ts +16 -0
  143. package/dist/icons/ObiPhase.svelte +32 -0
  144. package/dist/icons/ObiPhase.svelte.d.ts +16 -0
  145. package/dist/icons/ObiSensorWaterDewpoint.svelte +32 -0
  146. package/dist/icons/ObiSensorWaterDewpoint.svelte.d.ts +16 -0
  147. package/dist/icons/ObiSensorWaterHumidity.svelte +32 -0
  148. package/dist/icons/ObiSensorWaterHumidity.svelte.d.ts +16 -0
  149. package/dist/index.d.ts +22 -2
  150. package/dist/index.js +22 -2
  151. package/dist/integration-systems/integration-app-bar/ObcIntegrationAppBar.svelte +2 -3
  152. package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte +4 -9
  153. package/dist/integration-systems/integration-bar-dropdown/ObcIntegrationBarDropdown.svelte +9 -24
  154. package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte +9 -24
  155. package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +2 -3
  156. package/dist/integration-systems/integration-fleet-button/ObcIntegrationFleetButton.svelte +2 -3
  157. package/dist/integration-systems/integration-vessel-menu/ObcIntegrationVesselMenu.svelte +4 -9
  158. package/dist/integration-systems/integration-vessel-selector/ObcIntegrationVesselSelector.svelte +3 -6
  159. package/dist/navigation-instruments/gauge-proportional/ObcGaugeProportional.svelte +3 -6
  160. package/dist/navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte +2 -3
  161. package/dist/navigation-instruments/instrument-field/ObcInstrumentField.svelte +2 -3
  162. package/dist/navigation-instruments/readout/ObcReadout.svelte +6 -15
  163. package/dist/navigation-instruments/readout-list-item/ObcReadoutListItem.svelte +5 -12
  164. package/dist/util.d.ts +20 -0
  165. package/dist/util.js +42 -0
  166. package/package.json +2 -2
@@ -3,6 +3,7 @@
3
3
  export type {ObcAckAllVisibleClickEvent} from '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcAckAllVisibleClickEvent} from '@oicl/openbridge-webcomponents/dist/components/alert-menu/alert-menu.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -55,20 +56,14 @@ showAlertListButton?: boolean
55
56
  {/if}
56
57
 
57
58
  {#if emptyTitle}
58
- <div slot="empty-<tab>-title">
59
- {@render emptyTitle()}
60
- </div>
59
+ <NamedSlot name="empty-<tab>-title" content={emptyTitle} />
61
60
  {/if}
62
61
 
63
62
  {#if emptyDescription}
64
- <div slot="empty-<tab>-description">
65
- {@render emptyDescription()}
66
- </div>
63
+ <NamedSlot name="empty-<tab>-description" content={emptyDescription} />
67
64
  {/if}
68
65
 
69
66
  {#if emptyIcon}
70
- <div slot="empty-<tab>-icon">
71
- {@render emptyIcon()}
72
- </div>
67
+ <NamedSlot name="empty-<tab>-icon" content={emptyIcon} />
73
68
  {/if}
74
69
  </obc-alert-menu>
@@ -4,6 +4,7 @@
4
4
  export type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/components/alert-menu-item/alert-menu-item.js';
6
6
  import { setProperties, forwardEvents } from "../../util.js";
7
+ import NamedSlot from "../../NamedSlot.svelte";
7
8
  import type {ObcAlertMenuItemStatus, ObcAlertMenuItemActionState} from '@oicl/openbridge-webcomponents/dist/components/alert-menu-item/alert-menu-item.js';
8
9
  import type {ObcMessageMenuItemSize} from '@oicl/openbridge-webcomponents/dist/components/message-menu-item/message-menu-item.js';
9
10
  import type { Snippet } from 'svelte';
@@ -59,26 +60,18 @@ secondaryActionState?: ObcAlertMenuItemActionState
59
60
  use:forwardEvents={{'ack-click': onAckClick, 'ack-secondary-click': onAckSecondaryClick, 'item-click': onItemClick}} >
60
61
 
61
62
  {#if alertIcon}
62
- <div slot="alert-icon">
63
- {@render alertIcon()}
64
- </div>
63
+ <NamedSlot name="alert-icon" content={alertIcon} />
65
64
  {/if}
66
65
 
67
66
  {#if titleSnippet}
68
- <div slot="title">
69
- {@render titleSnippet()}
70
- </div>
67
+ <NamedSlot name="title" content={titleSnippet} />
71
68
  {/if}
72
69
 
73
70
  {#if descriptionSnippet}
74
- <div slot="description">
75
- {@render descriptionSnippet()}
76
- </div>
71
+ <NamedSlot name="description" content={descriptionSnippet} />
77
72
  {/if}
78
73
 
79
74
  {#if icon}
80
- <div slot="icon">
81
- {@render icon()}
82
- </div>
75
+ <NamedSlot name="icon" content={icon} />
83
76
  {/if}
84
77
  </obc-alert-menu-item>
@@ -3,6 +3,7 @@
3
3
  export type {ObcAlertSubsystemCounterOrientation} from '@oicl/openbridge-webcomponents/dist/components/alert-subsystem-counter/alert-subsystem-counter.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/alert-subsystem-counter/alert-subsystem-counter.js';
5
5
  import { setProperties } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcAlertSubsystemCounterOrientation} from '@oicl/openbridge-webcomponents/dist/components/alert-subsystem-counter/alert-subsystem-counter.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -39,14 +40,10 @@
39
40
  >
40
41
 
41
42
  {#if icon}
42
- <div slot="icon">
43
- {@render icon()}
44
- </div>
43
+ <NamedSlot name="icon" content={icon} />
45
44
  {/if}
46
45
 
47
46
  {#if badges}
48
- <div slot="badges">
49
- {@render badges()}
50
- </div>
47
+ <NamedSlot name="badges" content={badges} />
51
48
  {/if}
52
49
  </obc-alert-subsystem-counter>
@@ -3,6 +3,7 @@
3
3
  export type {AppButtonSize} from '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {AppButtonSize} from '@oicl/openbridge-webcomponents/dist/components/app-button/app-button.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -37,8 +38,6 @@ size?: AppButtonSize;
37
38
  use:forwardEvents={{'click': onClick}} >
38
39
 
39
40
  {#if icon}
40
- <div slot="icon">
41
- {@render icon()}
42
- </div>
41
+ <NamedSlot name="icon" content={icon} />
43
42
  {/if}
44
43
  </obc-app-button>
@@ -3,6 +3,7 @@
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/attachment-list-item/attachment-list-item.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
 
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -64,20 +65,14 @@
64
65
  use:forwardEvents={{'attachment-item-click': onAttachmentItemClick}} >
65
66
 
66
67
  {#if leadingIcon}
67
- <div slot="leading-icon">
68
- {@render leadingIcon()}
69
- </div>
68
+ <NamedSlot name="leading-icon" content={leadingIcon} />
70
69
  {/if}
71
70
 
72
71
  {#if tag}
73
- <div slot="tag">
74
- {@render tag()}
75
- </div>
72
+ <NamedSlot name="tag" content={tag} />
76
73
  {/if}
77
74
 
78
75
  {#if trailingAction}
79
- <div slot="trailing-action">
80
- {@render trailingAction()}
81
- </div>
76
+ <NamedSlot name="trailing-action" content={trailingAction} />
82
77
  {/if}
83
78
  </obc-attachment-list-item>
@@ -3,6 +3,7 @@
3
3
  export type {BadgeVariant} from '@oicl/openbridge-webcomponents/dist/components/badge/badge.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/badge/badge.js';
5
5
  import { setProperties } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {BadgeVariant} from '@oicl/openbridge-webcomponents/dist/components/badge/badge.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -54,8 +55,6 @@ showIcon?: boolean
54
55
  >
55
56
 
56
57
  {#if badgeIcon}
57
- <div slot="badge-icon">
58
- {@render badgeIcon()}
59
- </div>
58
+ <NamedSlot name="badge-icon" content={badgeIcon} />
60
59
  {/if}
61
60
  </obc-badge>
@@ -3,6 +3,7 @@
3
3
  export type {ButtonVariant, segmentPosition} from '@oicl/openbridge-webcomponents/dist/components/button/button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/button/button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ButtonVariant, segmentPosition} from '@oicl/openbridge-webcomponents/dist/components/button/button.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -55,14 +56,10 @@ segmentPosition?: segmentPosition
55
56
  {/if}
56
57
 
57
58
  {#if leadingIcon}
58
- <div slot="leading-icon">
59
- {@render leadingIcon()}
60
- </div>
59
+ <NamedSlot name="leading-icon" content={leadingIcon} />
61
60
  {/if}
62
61
 
63
62
  {#if trailingIcon}
64
- <div slot="trailing-icon">
65
- {@render trailingIcon()}
66
- </div>
63
+ <NamedSlot name="trailing-icon" content={trailingIcon} />
67
64
  {/if}
68
65
  </obc-button>
@@ -3,6 +3,7 @@
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/card/card.js';
5
5
  import { setProperties } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
 
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -42,9 +43,7 @@ dialogVisibleTimerSeconds?: number
42
43
  >
43
44
 
44
45
  {#if title}
45
- <div slot="title">
46
- {@render title()}
47
- </div>
46
+ <NamedSlot name="title" content={title} />
48
47
  {/if}
49
48
 
50
49
  {#if children}
@@ -52,14 +51,10 @@ dialogVisibleTimerSeconds?: number
52
51
  {/if}
53
52
 
54
53
  {#if dialogTitle}
55
- <div slot="dialog-title">
56
- {@render dialogTitle()}
57
- </div>
54
+ <NamedSlot name="dialog-title" content={dialogTitle} />
58
55
  {/if}
59
56
 
60
57
  {#if dialogContent}
61
- <div slot="dialog-content">
62
- {@render dialogContent()}
63
- </div>
58
+ <NamedSlot name="dialog-content" content={dialogContent} />
64
59
  {/if}
65
60
  </obc-card>
@@ -3,6 +3,7 @@
3
3
  export type {CheckButtonType, CheckButtonCheckboxAppearance} from '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {CheckButtonType, CheckButtonCheckboxAppearance} from '@oicl/openbridge-webcomponents/dist/components/check-button/check-button.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -72,20 +73,14 @@ checkboxAppearance?: CheckButtonCheckboxAppearance
72
73
  {/if}
73
74
 
74
75
  {#if icon}
75
- <div slot="icon">
76
- {@render icon()}
77
- </div>
76
+ <NamedSlot name="icon" content={icon} />
78
77
  {/if}
79
78
 
80
79
  {#if checkedIcon}
81
- <div slot="checked-icon">
82
- {@render checkedIcon()}
83
- </div>
80
+ <NamedSlot name="checked-icon" content={checkedIcon} />
84
81
  {/if}
85
82
 
86
83
  {#if uncheckedIcon}
87
- <div slot="unchecked-icon">
88
- {@render uncheckedIcon()}
89
- </div>
84
+ <NamedSlot name="unchecked-icon" content={uncheckedIcon} />
90
85
  {/if}
91
86
  </obc-check-button>
@@ -3,6 +3,7 @@
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/command-menu/command-menu.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
 
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -38,56 +39,38 @@
38
39
  use:forwardEvents={{'change': onChange}} >
39
40
 
40
41
  {#if commandIcon}
41
- <div slot="command-icon">
42
- {@render commandIcon()}
43
- </div>
42
+ <NamedSlot name="command-icon" content={commandIcon} />
44
43
  {/if}
45
44
 
46
45
  {#if commandStatus}
47
- <div slot="command-status">
48
- {@render commandStatus()}
49
- </div>
46
+ <NamedSlot name="command-status" content={commandStatus} />
50
47
  {/if}
51
48
 
52
49
  {#if commandDescription}
53
- <div slot="command-description">
54
- {@render commandDescription()}
55
- </div>
50
+ <NamedSlot name="command-description" content={commandDescription} />
56
51
  {/if}
57
52
 
58
53
  {#if commandLocation}
59
- <div slot="command-location">
60
- {@render commandLocation()}
61
- </div>
54
+ <NamedSlot name="command-location" content={commandLocation} />
62
55
  {/if}
63
56
 
64
57
  {#if toogleActionToInCommandLabel}
65
- <div slot="toogle-action-to-in-command-label">
66
- {@render toogleActionToInCommandLabel()}
67
- </div>
58
+ <NamedSlot name="toogle-action-to-in-command-label" content={toogleActionToInCommandLabel} />
68
59
  {/if}
69
60
 
70
61
  {#if toogleActionToNoCommandLabel}
71
- <div slot="toogle-action-to-no-command-label">
72
- {@render toogleActionToNoCommandLabel()}
73
- </div>
62
+ <NamedSlot name="toogle-action-to-no-command-label" content={toogleActionToNoCommandLabel} />
74
63
  {/if}
75
64
 
76
65
  {#if toogleStateInCommandLabel}
77
- <div slot="toogle-state-in-command-label">
78
- {@render toogleStateInCommandLabel()}
79
- </div>
66
+ <NamedSlot name="toogle-state-in-command-label" content={toogleStateInCommandLabel} />
80
67
  {/if}
81
68
 
82
69
  {#if toogleStateNoCommandLabel}
83
- <div slot="toogle-state-no-command-label">
84
- {@render toogleStateNoCommandLabel()}
85
- </div>
70
+ <NamedSlot name="toogle-state-no-command-label" content={toogleStateNoCommandLabel} />
86
71
  {/if}
87
72
 
88
73
  {#if toogleStateInCommandIcon}
89
- <div slot="toogle-state-in-command-icon">
90
- {@render toogleStateInCommandIcon()}
91
- </div>
74
+ <NamedSlot name="toogle-state-in-command-icon" content={toogleStateInCommandIcon} />
92
75
  {/if}
93
76
  </obc-command-menu>
@@ -3,6 +3,7 @@
3
3
  export type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcDropdownButtonChangeEvent, DropdownButtonOption, DropdownButtonType} from '@oicl/openbridge-webcomponents/dist/components/dropdown-button/dropdown-button.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -59,8 +60,6 @@ type?: DropdownButtonType;
59
60
  {/if}
60
61
 
61
62
  {#if icon}
62
- <div slot="icon">
63
- {@render icon()}
64
- </div>
63
+ <NamedSlot name="icon" content={icon} />
65
64
  {/if}
66
65
  </obc-dropdown-button>
@@ -3,6 +3,7 @@
3
3
  export type {ObcElevatedCardPosition, ObcElevatedCardSize, ObcElevatedCardTag} from '@oicl/openbridge-webcomponents/dist/components/elevated-card/elevated-card.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/elevated-card/elevated-card.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcElevatedCardPosition, ObcElevatedCardSize, ObcElevatedCardTag} from '@oicl/openbridge-webcomponents/dist/components/elevated-card/elevated-card.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -83,44 +84,30 @@ overrideTag?: ObcElevatedCardTag | undefined;
83
84
  use:forwardEvents={{'action-click': onActionClick}} >
84
85
 
85
86
  {#if graphic}
86
- <div slot="graphic">
87
- {@render graphic()}
88
- </div>
87
+ <NamedSlot name="graphic" content={graphic} />
89
88
  {/if}
90
89
 
91
90
  {#if leadingIcon}
92
- <div slot="leading-icon">
93
- {@render leadingIcon()}
94
- </div>
91
+ <NamedSlot name="leading-icon" content={leadingIcon} />
95
92
  {/if}
96
93
 
97
94
  {#if label}
98
- <div slot="label">
99
- {@render label()}
100
- </div>
95
+ <NamedSlot name="label" content={label} />
101
96
  {/if}
102
97
 
103
98
  {#if description}
104
- <div slot="description">
105
- {@render description()}
106
- </div>
99
+ <NamedSlot name="description" content={description} />
107
100
  {/if}
108
101
 
109
102
  {#if status}
110
- <div slot="status">
111
- {@render status()}
112
- </div>
103
+ <NamedSlot name="status" content={status} />
113
104
  {/if}
114
105
 
115
106
  {#if action}
116
- <div slot="action">
117
- {@render action()}
118
- </div>
107
+ <NamedSlot name="action" content={action} />
119
108
  {/if}
120
109
 
121
110
  {#if trailingIcon}
122
- <div slot="trailing-icon">
123
- {@render trailingIcon()}
124
- </div>
111
+ <NamedSlot name="trailing-icon" content={trailingIcon} />
125
112
  {/if}
126
113
  </obc-elevated-card>
@@ -3,6 +3,7 @@
3
3
  export type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcFloatingItemType, ObcFloatingItemDirection, ObcFloatingItemLineType} from '@oicl/openbridge-webcomponents/dist/components/floating-item/floating-item.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -69,50 +70,34 @@ lineType?: ObcFloatingItemLineType
69
70
  use:forwardEvents={{'action-click': onActionClick, 'action2-click': onAction2Click, 'dismiss-click': onDismissClick}} >
70
71
 
71
72
  {#if primaryIcon}
72
- <div slot="primary-icon">
73
- {@render primaryIcon()}
74
- </div>
73
+ <NamedSlot name="primary-icon" content={primaryIcon} />
75
74
  {/if}
76
75
 
77
76
  {#if secondaryIcon}
78
- <div slot="secondary-icon">
79
- {@render secondaryIcon()}
80
- </div>
77
+ <NamedSlot name="secondary-icon" content={secondaryIcon} />
81
78
  {/if}
82
79
 
83
80
  {#if title}
84
- <div slot="title">
85
- {@render title()}
86
- </div>
81
+ <NamedSlot name="title" content={title} />
87
82
  {/if}
88
83
 
89
84
  {#if description}
90
- <div slot="description">
91
- {@render description()}
92
- </div>
85
+ <NamedSlot name="description" content={description} />
93
86
  {/if}
94
87
 
95
88
  {#if time}
96
- <div slot="time">
97
- {@render time()}
98
- </div>
89
+ <NamedSlot name="time" content={time} />
99
90
  {/if}
100
91
 
101
92
  {#if day}
102
- <div slot="day">
103
- {@render day()}
104
- </div>
93
+ <NamedSlot name="day" content={day} />
105
94
  {/if}
106
95
 
107
96
  {#if actionSnippet}
108
- <div slot="action">
109
- {@render actionSnippet()}
110
- </div>
97
+ <NamedSlot name="action" content={actionSnippet} />
111
98
  {/if}
112
99
 
113
100
  {#if action2Snippet}
114
- <div slot="action2">
115
- {@render action2Snippet()}
116
- </div>
101
+ <NamedSlot name="action2" content={action2Snippet} />
117
102
  {/if}
118
103
  </obc-floating-item>
@@ -3,6 +3,7 @@
3
3
  export type {ObcFormContainerType} from '@oicl/openbridge-webcomponents/dist/components/form-container/form-container.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/form-container/form-container.js';
5
5
  import { setProperties } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcFormContainerType} from '@oicl/openbridge-webcomponents/dist/components/form-container/form-container.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -31,15 +32,11 @@
31
32
  >
32
33
 
33
34
  {#if title}
34
- <div slot="title">
35
- {@render title()}
36
- </div>
35
+ <NamedSlot name="title" content={title} />
37
36
  {/if}
38
37
 
39
38
  {#if contentTitleSnippet}
40
- <div slot="content-title">
41
- {@render contentTitleSnippet()}
42
- </div>
39
+ <NamedSlot name="content-title" content={contentTitleSnippet} />
43
40
  {/if}
44
41
 
45
42
  {#if children}
@@ -47,8 +44,6 @@
47
44
  {/if}
48
45
 
49
46
  {#if footer}
50
- <div slot="footer">
51
- {@render footer()}
52
- </div>
47
+ <NamedSlot name="footer" content={footer} />
53
48
  {/if}
54
49
  </obc-form-container>
@@ -4,6 +4,7 @@
4
4
  export type {ObcFormGroupType} from '@oicl/openbridge-webcomponents/dist/components/form-group/form-group.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/components/form-group/form-group.js';
6
6
  import { setProperties, forwardEvents } from "../../util.js";
7
+ import NamedSlot from "../../NamedSlot.svelte";
7
8
  import type {ObcFormItemActionChangeEvent} from '@oicl/openbridge-webcomponents/dist/components/form-item/form-item.js';
8
9
  import type {ObcFormGroupType} from '@oicl/openbridge-webcomponents/dist/components/form-group/form-group.js';
9
10
  import type { Snippet } from 'svelte';
@@ -31,15 +32,11 @@ import type {ObcFormGroupType} from '@oicl/openbridge-webcomponents/dist/compone
31
32
  use:forwardEvents={{'action-change': onActionChange}} >
32
33
 
33
34
  {#if subtitle}
34
- <div slot="subtitle">
35
- {@render subtitle()}
36
- </div>
35
+ <NamedSlot name="subtitle" content={subtitle} />
37
36
  {/if}
38
37
 
39
38
  {#if text}
40
- <div slot="text">
41
- {@render text()}
42
- </div>
39
+ <NamedSlot name="text" content={text} />
43
40
  {/if}
44
41
 
45
42
  {#if children}
@@ -3,6 +3,7 @@
3
3
  export type {ObcFormItemActionChangeEvent, ObcFormItemType, ObcFormItemBasicState, ObcFormItemStatusIcon} from '@oicl/openbridge-webcomponents/dist/components/form-item/form-item.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/form-item/form-item.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {ObcFormItemActionChangeEvent, ObcFormItemType, ObcFormItemBasicState, ObcFormItemStatusIcon} from '@oicl/openbridge-webcomponents/dist/components/form-item/form-item.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -39,9 +40,7 @@
39
40
  use:forwardEvents={{'action-change': onActionChange}} >
40
41
 
41
42
  {#if icon}
42
- <div slot="icon">
43
- {@render icon()}
44
- </div>
43
+ <NamedSlot name="icon" content={icon} />
45
44
  {/if}
46
45
 
47
46
  {#if children}
@@ -3,6 +3,7 @@
3
3
  export type {IconButtonVariant} from '@oicl/openbridge-webcomponents/dist/components/icon-button/icon-button.js';
4
4
  import '@oicl/openbridge-webcomponents/dist/components/icon-button/icon-button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
  import type {IconButtonVariant} from '@oicl/openbridge-webcomponents/dist/components/icon-button/icon-button.js';
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -56,8 +57,6 @@ variant?: IconButtonVariant;
56
57
  {/if}
57
58
 
58
59
  {#if label}
59
- <div slot="label">
60
- {@render label()}
61
- </div>
60
+ <NamedSlot name="label" content={label} />
62
61
  {/if}
63
62
  </obc-icon-button>
@@ -3,6 +3,7 @@
3
3
 
4
4
  import '@oicl/openbridge-webcomponents/dist/components/icon-check-button/icon-check-button.js';
5
5
  import { setProperties, forwardEvents } from "../../util.js";
6
+ import NamedSlot from "../../NamedSlot.svelte";
6
7
 
7
8
  import type { Snippet } from 'svelte';
8
9
 
@@ -50,8 +51,6 @@ externalControl?: boolean
50
51
  use:forwardEvents={{'icon-check-button-click': onIconCheckButtonClick}} >
51
52
 
52
53
  {#if icon}
53
- <div slot="icon">
54
- {@render icon()}
55
- </div>
54
+ <NamedSlot name="icon" content={icon} />
56
55
  {/if}
57
56
  </obc-icon-check-button>
@@ -4,6 +4,7 @@
4
4
  export type {ObcNumberInputFieldTextAlign} from '@oicl/openbridge-webcomponents/dist/components/number-input-field/number-input-field.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/components/keyboard-numeric/keyboard-numeric.js';
6
6
  import { setProperties, forwardEvents } from "../../util.js";
7
+ import NamedSlot from "../../NamedSlot.svelte";
7
8
  import type {ObcKeyboardNumericType} from '@oicl/openbridge-webcomponents/dist/components/keyboard-numeric/keyboard-numeric.js';
8
9
  import type {ObcNumberInputFieldTextAlign} from '@oicl/openbridge-webcomponents/dist/components/number-input-field/number-input-field.js';
9
10
  import type { Snippet } from 'svelte';
@@ -59,8 +60,6 @@ import type {ObcNumberInputFieldTextAlign} from '@oicl/openbridge-webcomponents/
59
60
  use:forwardEvents={{'close-click': onCloseClick, 'value-change': onValueChange, 'done-click': onDoneClick}} >
60
61
 
61
62
  {#if leadingIcon}
62
- <div slot="leading-icon">
63
- {@render leadingIcon()}
64
- </div>
63
+ <NamedSlot name="leading-icon" content={leadingIcon} />
65
64
  {/if}
66
65
  </obc-keyboard-numeric>
@@ -4,6 +4,7 @@
4
4
  export type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
5
5
  import '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
6
6
  import { setProperties, forwardEvents } from "../../util.js";
7
+ import NamedSlot from "../../NamedSlot.svelte";
7
8
  import type {ObcSplitButtonChangeEvent, ObcMenuButtonItemClickEvent} from '@oicl/openbridge-webcomponents/dist/components/menu-button/menu-button.js';
8
9
  import type {ContextMenuOption, ContextMenuType, ColumnGroup} from '@oicl/openbridge-webcomponents/dist/components/context-menu-input/context-menu-input.js';
9
10
  import type { Snippet } from 'svelte';
@@ -72,8 +73,6 @@ menuType?: ContextMenuType;
72
73
  use:forwardEvents={{'change': onChange, 'item-click': onItemClick, 'open': onOpen, 'close': onClose}} >
73
74
 
74
75
  {#if icon}
75
- <div slot="icon">
76
- {@render icon()}
77
- </div>
76
+ <NamedSlot name="icon" content={icon} />
78
77
  {/if}
79
78
  </obc-menu-button>