Skip to content

Commit e41a7da

Browse files
authored
feat(deps): update ui5 webcomponents 2.11 (#221)
1 parent 1eafa4d commit e41a7da

File tree

9 files changed

+607
-357
lines changed

9 files changed

+607
-357
lines changed

apps/documentation/.storybook/preview.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import '@ui5/webcomponents-icons/dist/AllIcons';
22
import '@ui5/webcomponents-fiori/dist/illustrations/AllIllustrations.js';
3+
import "@ui5/webcomponents/dist/dynamic-date-range-options/Today.js";
4+
import "@ui5/webcomponents/dist/dynamic-date-range-options/Yesterday.js";
5+
import "@ui5/webcomponents/dist/dynamic-date-range-options/Tomorrow.js";
6+
import "@ui5/webcomponents/dist/dynamic-date-range-options/DateRange.js";
7+
import "@ui5/webcomponents/dist/dynamic-date-range-options/SingleDate.js";
8+
import "@ui5/webcomponents/dist/dynamic-date-range-options/toDates.js";
39
import applyDirection from '@ui5/webcomponents-base/dist/locale/applyDirection.js';
410
import { getTheme, setTheme } from '@ui5/webcomponents-base/dist/config/Theme';
511
import 'zone.js';

apps/documentation/src/api-json.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { Meta, StoryObj, moduleMetadata } from '@storybook/angular';
2+
import { Ui5WebcomponentsModule } from '@ui5/webcomponents-ngx';
3+
import { DynamicDateRangeComponent } from '@ui5/webcomponents-ngx/main/dynamic-date-range';
4+
import { extractArgTypes, extractDescription } from '../../arg-type-tools';
5+
6+
const description = `
7+
8+
### Module Import
9+
10+
<code>import { DynamicDateRangeComponent } from "@ui5/webcomponents-ngx/main/dynamic-date-range";</code>`;
11+
export default {
12+
title: 'UI5 Web Components / Main / Dynamic Date Range',
13+
component: DynamicDateRangeComponent,
14+
decorators: [
15+
moduleMetadata({
16+
imports: [Ui5WebcomponentsModule],
17+
}),
18+
],
19+
parameters: {
20+
docs: {
21+
extractArgTypes,
22+
description: {
23+
component: extractDescription('DynamicDateRangeComponent', DynamicDateRangeComponent, description),
24+
},
25+
},
26+
},
27+
} as Meta;
28+
29+
export const basicDynamicDateRange: StoryObj<DynamicDateRangeComponent> = {
30+
render: (args) => ({
31+
props: args,
32+
template: `
33+
<ui5-dynamic-date-range options="TODAY, TOMORROW, YESTERDAY, DATERANGE, DATE"></ui5-dynamic-date-range>
34+
`,
35+
}),
36+
};

libs/transformer/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"author": "SAP SE (https://www.sap.com)",
66
"license": "Apache-2.0",
77
"peerDependencies": {
8-
"@ui5/webcomponents": "2.10.0",
9-
"@ui5/webcomponents-ai": "2.10.0",
10-
"@ui5/webcomponents-base": "2.10.0",
11-
"@ui5/webcomponents-fiori": "2.10.0",
12-
"@ui5/webcomponents-icons": "2.10.0",
13-
"@ui5/webcomponents-icons-business-suite": "2.10.0",
14-
"@ui5/webcomponents-icons-tnt": "2.10.0"
8+
"@ui5/webcomponents": "2.11.0",
9+
"@ui5/webcomponents-ai": "2.11.0",
10+
"@ui5/webcomponents-base": "2.11.0",
11+
"@ui5/webcomponents-fiori": "2.11.0",
12+
"@ui5/webcomponents-icons": "2.11.0",
13+
"@ui5/webcomponents-icons-business-suite": "2.11.0",
14+
"@ui5/webcomponents-icons-tnt": "2.11.0"
1515
}
1616
}

libs/ui5-angular/__snapshots__/fiori-snapshot-test.spec.ts.snap

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,17 @@ For TNT illustrations:
580580
As \`IllustratedMessage\` adapts itself around the \`Illustration\`, the other
581581
elements of the component are displayed differently on the different breakpoints/illustration designs.
582582
*/
583-
design!: 'Auto' | 'Base' | 'Dot' | 'Spot' | 'Dialog' | 'Scene';
583+
design!:
584+
| 'Auto'
585+
| 'Base'
586+
| 'Dot'
587+
| 'Spot'
588+
| 'Dialog'
589+
| 'Scene'
590+
| 'ExtraSmall'
591+
| 'Small'
592+
| 'Medium'
593+
| 'Large';
584594
/**
585595
Defines the subtitle of the component.
586596
@@ -1355,25 +1365,30 @@ exports[`Snapshot test Fiori Search Item should match the snapshot 1`] = `
13551365
import '@ui5/webcomponents-fiori/dist/SearchItem.js';
13561366
import SearchItem from '@ui5/webcomponents-fiori/dist/SearchItem.js';
13571367
import { ProxyInputs, ProxyOutputs } from '@ui5/webcomponents-ngx/utils';
1358-
@ProxyInputs(['text', 'icon', 'selected', 'scopeName'])
1368+
@ProxyInputs(['text', 'description', 'icon', 'selected', 'scopeName'])
13591369
@ProxyOutputs(['delete: ui5Delete'])
13601370
@Component({
13611371
standalone: true,
13621372
selector: 'ui5-search-item',
13631373
template: '<ng-content></ng-content>',
1364-
inputs: ['text', 'icon', 'selected', 'scopeName'],
1374+
inputs: ['text', 'description', 'icon', 'selected', 'scopeName'],
13651375
outputs: ['ui5Delete'],
13661376
exportAs: 'ui5SearchItem',
13671377
})
13681378
class SearchItemComponent {
13691379
/**
13701380
Defines the heading text of the search item.
13711381
*/
1372-
text!: string;
1382+
text!: string | undefined;
1383+
/**
1384+
Defines the description that appears right under the item text, if available.
1385+
*/
1386+
description!: string | undefined;
13731387
/**
13741388
Defines the icon name of the search item.
1389+
**Note:** If provided, the image slot will be ignored.
13751390
*/
1376-
icon!: string;
1391+
icon!: string | undefined;
13771392
/**
13781393
Defines whether the search item is selected.
13791394
*/
@@ -1899,8 +1914,8 @@ import { ProxyInputs, ProxyOutputs } from '@ui5/webcomponents-ngx/utils';
18991914
'notificationsCount',
19001915
'showNotifications',
19011916
'showProductSwitch',
1902-
'accessibilityAttributes',
19031917
'showSearchField',
1918+
'accessibilityAttributes',
19041919
])
19051920
@ProxyOutputs([
19061921
'notifications-click: ui5NotificationsClick',
@@ -1924,8 +1939,8 @@ import { ProxyInputs, ProxyOutputs } from '@ui5/webcomponents-ngx/utils';
19241939
'notificationsCount',
19251940
'showNotifications',
19261941
'showProductSwitch',
1927-
'accessibilityAttributes',
19281942
'showSearchField',
1943+
'accessibilityAttributes',
19291944
],
19301945
outputs: [
19311946
'ui5NotificationsClick',
@@ -1981,6 +1996,13 @@ displayed in the notification icon top-right corner.
19811996
*/
19821997
@InputDecorator({ transform: booleanAttribute })
19831998
showProductSwitch!: boolean;
1999+
/**
2000+
Defines, if the Search Field would be displayed when there is a valid \`searchField\` slot.
2001+
2002+
**Note:** By default the Search Field is not displayed.
2003+
*/
2004+
@InputDecorator({ transform: booleanAttribute })
2005+
showSearchField!: boolean;
19842006
/**
19852007
Defines additional accessibility attributes on different areas of the component.
19862008
@@ -2012,13 +2034,6 @@ Accepts the following string values: \`dialog\`, \`grid\`, \`listbox\`, \`menu\`
20122034
Accepts any string.
20132035
*/
20142036
accessibilityAttributes!: ShellBarAccessibilityAttributes;
2015-
/**
2016-
Defines, if the Search Field would be displayed when there is a valid \`searchField\` slot.
2017-
2018-
**Note:** By default the Search Field is not displayed.
2019-
*/
2020-
@InputDecorator({ transform: booleanAttribute })
2021-
showSearchField!: boolean;
20222037
20232038
/**
20242039
Fired, when the notification icon is activated.
@@ -2151,6 +2166,7 @@ exports[`Snapshot test Fiori Side Navigation Item should match the snapshot 1`]
21512166
} from '@angular/core';
21522167
import '@ui5/webcomponents-fiori/dist/SideNavigationItem.js';
21532168
import SideNavigationItem from '@ui5/webcomponents-fiori/dist/SideNavigationItem.js';
2169+
import { SideNavigationItemClickEventDetail } from '@ui5/webcomponents-fiori/dist/SideNavigationItemBase.js';
21542170
import { SideNavigationItemAccessibilityAttributes } from '@ui5/webcomponents-fiori/dist/SideNavigationSelectableItemBase.js';
21552171
import { ProxyInputs, ProxyOutputs } from '@ui5/webcomponents-ngx/utils';
21562172
@ProxyInputs([
@@ -2278,7 +2294,7 @@ Accepts the following string values: \`dialog\`, \`grid\`, \`listbox\`, \`menu\`
22782294
/**
22792295
Fired when the component is activated either with a click/tap or by using the [Enter] or [Space] keys.
22802296
*/
2281-
ui5Click!: EventEmitter<void>;
2297+
ui5Click!: EventEmitter<SideNavigationItemClickEventDetail>;
22822298
22832299
private elementRef: ElementRef<SideNavigationItem> = inject(ElementRef);
22842300
private zone = inject(NgZone);
@@ -2307,6 +2323,7 @@ exports[`Snapshot test Fiori Side Navigation Sub Item should match the snapshot
23072323
booleanAttribute,
23082324
inject,
23092325
} from '@angular/core';
2326+
import { SideNavigationItemClickEventDetail } from '@ui5/webcomponents-fiori/dist/SideNavigationItemBase.js';
23102327
import { SideNavigationItemAccessibilityAttributes } from '@ui5/webcomponents-fiori/dist/SideNavigationSelectableItemBase.js';
23112328
import '@ui5/webcomponents-fiori/dist/SideNavigationSubItem.js';
23122329
import SideNavigationSubItem from '@ui5/webcomponents-fiori/dist/SideNavigationSubItem.js';
@@ -2429,7 +2446,7 @@ Accepts the following string values: \`dialog\`, \`grid\`, \`listbox\`, \`menu\`
24292446
/**
24302447
Fired when the component is activated either with a click/tap or by using the [Enter] or [Space] keys.
24312448
*/
2432-
ui5Click!: EventEmitter<void>;
2449+
ui5Click!: EventEmitter<SideNavigationItemClickEventDetail>;
24332450
24342451
private elementRef: ElementRef<SideNavigationSubItem> = inject(ElementRef);
24352452
private zone = inject(NgZone);

0 commit comments

Comments
 (0)