@oicl/openbridge-webcomponents-full-bundle 2.0.0-next.141 → 2.0.0-next.142

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.
@@ -213,7 +213,21 @@ const compentStyle = css`* {
213
213
 
214
214
  .wrapper.active-size-multi-line .text-container {
215
215
  grid-template-areas: "title date chevron" "description description description";
216
- grid-template-columns: 1fr min-content min-content;
216
+ grid-template-columns: minmax(0, 1fr) min-content min-content;
217
+ }
218
+
219
+ .wrapper.active-size-multi-line .title-container {
220
+ white-space: normal;
221
+ overflow-wrap: break-word;
222
+ }
223
+
224
+ .wrapper.active-size-multi-line .description-container {
225
+ overflow-wrap: break-word;
226
+ }
227
+
228
+ .wrapper.active-size-multi-line .date-container {
229
+ align-self: start;
230
+ height: var(--app-components-message-menu-item-icon-size-regular);
217
231
  }
218
232
 
219
233
  .wrapper.active-size-multi-line .icon-container {
@@ -1 +1 @@
1
- {"version":3,"file":"message-menu-item.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"message-menu-item.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-full-bundle",
3
- "version": "2.0.0-next.141",
3
+ "version": "2.0.0-next.142",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,6 +21,7 @@ const meta: Meta<ObcAlertMenuItem> = {
21
21
  status: ObcAlertMenuItemStatus.Unacknowledged,
22
22
  hasIcon: false,
23
23
  shelved: false,
24
+ open: false,
24
25
  secondaryActionLabel: '',
25
26
  primaryActionState: ObcAlertMenuItemActionState.Enabled,
26
27
  secondaryActionState: ObcAlertMenuItemActionState.Enabled,
@@ -33,6 +34,7 @@ const meta: Meta<ObcAlertMenuItem> = {
33
34
  .time=${args.time}
34
35
  .shelved=${args.shelved}
35
36
  .hasIcon=${args.hasIcon}
37
+ .open=${args.open}
36
38
  .status=${args.status}
37
39
  .secondaryActionLabel=${args.secondaryActionLabel}
38
40
  .primaryActionState=${args.primaryActionState}
@@ -53,6 +55,7 @@ const meta: Meta<ObcAlertMenuItem> = {
53
55
  },
54
56
  hasIcon: {control: 'boolean'},
55
57
  shelved: {control: 'boolean'},
58
+ open: {control: 'boolean'},
56
59
  secondaryActionLabel: {control: 'text'},
57
60
  primaryActionState: {
58
61
  control: 'select',
@@ -68,6 +71,27 @@ const meta: Meta<ObcAlertMenuItem> = {
68
71
  export default meta;
69
72
  type Story = StoryObj<ObcAlertMenuItem>;
70
73
 
74
+ const renderInNarrowContainer: Story['render'] = (args) => html`
75
+ <div style="width: 480px">
76
+ <obc-alert-menu-item
77
+ .title=${args.title}
78
+ .description=${args.description}
79
+ .day=${args.day}
80
+ .time=${args.time}
81
+ .shelved=${args.shelved}
82
+ .hasIcon=${args.hasIcon}
83
+ .open=${args.open}
84
+ .status=${args.status}
85
+ .secondaryActionLabel=${args.secondaryActionLabel}
86
+ .primaryActionState=${args.primaryActionState}
87
+ .secondaryActionState=${args.secondaryActionState}
88
+ >
89
+ <obc-alert-icon slot="alert-icon" type="alarm" active></obc-alert-icon>
90
+ ${args.hasIcon ? html`<obi-engine slot="icon"></obi-engine>` : nothing}
91
+ </obc-alert-menu-item>
92
+ </div>
93
+ `;
94
+
71
95
  export const Default: Story = {
72
96
  args: {},
73
97
  };
@@ -122,3 +146,49 @@ export const PrimaryActionNone: Story = {
122
146
  primaryActionState: ObcAlertMenuItemActionState.None,
123
147
  },
124
148
  };
149
+
150
+ export const OpenWithLongText: Story = {
151
+ args: {
152
+ open: true,
153
+ title:
154
+ 'A title that is far too long to fit on a single line in a narrow list',
155
+ description:
156
+ 'A description that is long enough to span several lines once the item is expanded, so the text has to wrap inside the available width instead of making the item wider.',
157
+ },
158
+ render: renderInNarrowContainer,
159
+ };
160
+
161
+ export const OpenWithLongWord: Story = {
162
+ args: {
163
+ open: true,
164
+ title: 'Averylongunbrokenwordthatdoesnotfitthecolumnwidth',
165
+ description:
166
+ 'A description ending in averylongunbrokenwordthatdoesnotfitthecolumnwidth',
167
+ },
168
+ render: renderInNarrowContainer,
169
+ };
170
+
171
+ export const OpenShelvedWithLongText: Story = {
172
+ args: {
173
+ open: true,
174
+ shelved: true,
175
+ title:
176
+ 'A title that is far too long to fit on a single line in a narrow list',
177
+ description:
178
+ 'A description that is long enough to span several lines once the item is expanded, so the text has to wrap inside the available width instead of making the item wider.',
179
+ },
180
+ render: renderInNarrowContainer,
181
+ };
182
+
183
+ export const OpenShelvedWithSecondaryAction: Story = {
184
+ args: {
185
+ open: true,
186
+ shelved: true,
187
+ secondaryActionLabel: 'Mute',
188
+ title:
189
+ 'A title that is far too long to fit on a single line in a narrow list',
190
+ description:
191
+ 'A description that is long enough to span several lines once the item is expanded, so the text has to wrap inside the available width instead of making the item wider.',
192
+ },
193
+ render: renderInNarrowContainer,
194
+ };
@@ -137,7 +137,21 @@
137
137
  &.active-size-multi-line {
138
138
  .text-container {
139
139
  grid-template-areas: "title date chevron" "description description description";
140
- grid-template-columns: 1fr min-content min-content;
140
+ grid-template-columns: minmax(0, 1fr) min-content min-content;
141
+ }
142
+
143
+ .title-container {
144
+ white-space: normal;
145
+ overflow-wrap: break-word;
146
+ }
147
+
148
+ .description-container {
149
+ overflow-wrap: break-word;
150
+ }
151
+
152
+ .date-container {
153
+ align-self: start;
154
+ height: var(--app-components-message-menu-item-icon-size-regular);
141
155
  }
142
156
 
143
157
  .icon-container {