Components API Review
The goal is to go trough all the components API and check:
- if the naming could be better
- if the property/event/slot make sense at all
- if we should go with a slot, instead of property or the opposite
- if the event parameters are fine
- other
Global
1.1
- Discussion: Decide on header/subHeader vs heading/subHeading vs title/subtitle vs text/description vs default slot/description vs heading/subtitle vs primaryTitle/SecondaryTitle.
- [x] Solution:
- All: use
titleTextandsubtitleTextin all components where the text has meaning oftitleandsubtitle - All: use
headerTextandfooterTextin all components whereheaderandfooterslots are present. - Panel: use
headerTextandheaderLevel(FIX: https://github.com/SAP/ui5-webcomponents/pull/3271) - ProductSwitchItem: use
titleTextandsubtitleText(FIX: https://github.com/SAP/ui5-webcomponents/pull/3270) - TimeLineItem: use
titleTextandsubtitleText - ShellBar: keep
primaryTitleandsecondaryTitle - Reason: The
titleTextandsubtitleTextare closest totitleandsubtitleand we preferred this pair over theheadingandsubheading, as headings are usually meant for entire page or section. Where header and footer element are present, we would like to to haveheaderTextandfooterText. When it comes to the ShellBar'sprimaryTitleandseconadaryTitle, we think that they have special meaning and both are titles, not title and subtitle and this is the reason to keep them as they are.
1.2
- Discussion: Decide on
disabled/readonlystates for all components. Is readonly needed? - [x] Solution: Keep readonly
- Reason: The readonly state is an important state of the components, both
disabledandreadonlyshould remain.
1.3
- Discussion: Remove
busyproperty where a user can use the default slot of theui5-busy-indicator(NotificationListItemBase,List,Table,TableRow) - [x] Solution: Keep the current implementation.
- Reason: The app devs can't use the
ui5-busy-indicator, because the List, Table has too complex UX related to thegrowingfeature, that requires special handling of the indicator positioning.
1.4
- Discussion: Don't use the
component tag namein the JS Doc of properties, events, etc. - [x] Solution: Use "component" everywhere in the JSDoc, instead of mentioning the component tag name. (Fix).
- Reason: The tag names that belong to base classes will appear in derived classes and will confuse the readers.
Avatar
1.1
- Discussion: Replace
imageproperty withimageslot (currently people can't pass properties to the img tag - that's why we addedimage-fit-type). - [x] Solution: Introduce new
imgslot (Fix). - Reason: Adds more flexibility and option to use different types of images, custom icons, etc. + styling using standard CSS.
1.2
- Discussion: Replace
iconproperty withiconslot andinitialsproperty withinitialsslot (if we have slots only as an external API, then we can get rid of the propertiesbackground-color,sizeandshape, which are CSS properties as well). - [x] Solution: Keep the current implementation.
- Reason: We will introduce too much overhead for the developer to display and position an icon or initials.
1.3
- Discussion: the backgroundColor property sounds like the CSS style property and might mislead users that all types of colors are accepted, such as: "red", "green", "#d34343", etc.
- [x] Solution: backgroundColor property -> colorScheme (Fix).
- Reason: to make it consistent with Badge as it follows the same accent colors schema.
Avatar Group
- Discussion: is
avatarSizeneeded? The size can be set on each item passed in the default slot. - [x] Solution: remove it (Fix).
- Reason: In frameworks like Angular, React, a loop of items is rendered based on single item template, that's why
avatarSizeon AvatarGroup is not so valuable, as the Avatar has alreadyavatarSizeproperty that can be used.
Button
- Discussion: Replace
iconSizeproperty with a CSS Shadow part (only used internally by MessageStrip). - [x] Solution: Remove the property and introduce a CSS Shadow Part (Fix) and later adopt the part in the MessageStrip.
- Reason: It's an obsolete API, that otherwise has to be supported.
Carousel
- Discussion:
hideNavigationproperty -> two separate properties (#3136) - one that shows/hides the dots and one that shows/hides the arrows (If arrows are in the navigation, then this property would be needed if only the previous is set to true, otherwise the whole navigation will be hidden, containing the arrows). - [x] Solution: rename
hideNavigationtohideNavigationArrows(Fix). - Reason: more specific name to emphasise that the arrows visibility is determined by this property, while the "dots" visibility is controlled by another property.
CheckBox
- Discussion: Rename
textproperty todefaultslot. - [x] Solution: Keep the current implementation.
ColorPalette
- Discussion: Unification of
moreColors(previously calledshowMore) &showRecentColorsproperties. - [x] Solution: Use "show-" Fix https://github.com/SAP/ui5-webcomponents/pull/3225
- Reason:
moreColorsdoes not sound as a config, but more like an array of elements that has to be provided.
ComboBox: @MapTo0 assigned
- Discussion: Rename
filterValueproperty toliveValue. - [x] Solution: Both properties will be removed
DatePicker/DateRangePicker/TimePicker:
- Discussion: The
oDateparameter in theformatValuemethod ->dateparameter (No Hungarian Notation). - [x] Solution: Use
dateFix.
Duration Picker @vladitasev assigned [refactor Duration Picker API]
- Discussion: Must not have
formatPatternproperty (inherited from TimePickerBase). - Discussion: Must not have
formatValuemethod (also inherited).
Icon
- Discussion: The
interactiveproperty is not enough in order to set all ACC attributes (see #3039). - [ x ] Solution: Use the user defined "role" attribute and set it if present, otherwise keep the current logic. Fix https://github.com/SAP/ui5-webcomponents/pull/3407
Input
1.1
- Discussion: Rename
maxlengthproperty tomaxLength. - [x] Solution: Keep the current implementation.
- Reason: The
maxlengthis the term used for native HTML elements.
1.2
- Discussion: Rename
isOpenmethod toisValueStateOpened. - [x] Solution: Hide and rename Fix
- Reason: The method checks if the value state popover is open.
SuggestionItem
- Discussion: Remove
groupproperty and introduce a separate component, which has default slot forSuggestionItem(As NotificationListGroupItem & NotificationListItem). - [x] Solution: Introduce separate component SuggestionGroupItem (FIX https://github.com/SAP/ui5-webcomponents/pull/3248).
- Reason: SuggestionGroupItem is far more simple than the SuggestionItem and inherits too much properties that do not make sense.
Link
1.1
- Discussion: Event firing: #3007 (difference between the native
aelement & the Link control in UI5). - [x] Solution: Should behave same as the Button web component and openui5 Link.
1.2
- Discussion: Is
designproperty needed? It is basically changing 2 CSS properties. - [x] Solution: Keep current implementation
- Reason: Not so easy to implement the states with CSS as it looks and we would like to keep the property.
List
- Discussion: Rename
insetproperty toindent. - [x] Solution: rename to indent (Fix)
- Reason: The word
insetmeans when something is part of, inside something bigger,indentis more accurate.
ListItem (and derived components)
- Discussion: Rename
infotoadditionalText. - [x] Solution: (Fix)
- Reason: The term
infois too generic as everything is info in some form andadditionalTextis used in openUI5 as text that is complimentary to the main text.
MultiComboBoxItem
- Discussion: Rename
additionalTextproperty toinfo - [x] Solution: keep the
additionalTextproperty - Reason: The term
infois too generic as everything is info in some form andadditionalTextis used in openUI5 as text that is complimentary to the main text.
NotificationListItems
- Discussion:
footnotes slot->footer - [x] Solution:
footnotesis ok for a name. If for some reason the UX/VD can't be full-filled because of the slot, we can always introduce 2 properties in addition.
ResponsivePopover
- Discussion: Should not have
openBymethod in the docs. - [x] Solution: Remove
openand useopenByby overriding it to handle themobileuse-case. Fix - Reason: To be more consistent with the Popover's
openBy, it's better to haveopenBy.
ShellBar
- Discussion: Rename
notificationCountproperty tonotificationsCountproperty. - [x] Solution: Rename notificationsCount (Fix).
- Reason: To have consistency with
showNotificationsproperty.
Switch
- Discussion: Replace
graphicalproperty (boolean) with enum property. - [x] Solution: Change to
design="Textual, Graphical(Fix). - Reason: More future proof - other options can be easily added in future.
TabContainer
- Discussion: The
tabLayoutproperty is NOT about the layout of the tab. It is about the layout of the header of the tab. Think of more accurate name. - [x] Solution: Keep the current implementation
- Reason: In fact, the
tabLayouttargets the layout of each tab - the position of thetext,iconandadditional-text.
Table
1.1
- Discussion: Replace
moreTextproperty with a slot (we already had this use case, it works fine, until developers need to change a couple of attribute of the button) - [x] Solution: Rename to
growingButtonText(Fix https://github.com/SAP/ui5-webcomponents/pull/3273) - Reason: Keep the property approach, instead of slot, because it would require significant styling as the growing button has a special design.
1.2
- Discussion: The
moreSubtextproperty sounds weird, rename togrowingButtonSubtext. - [x] Solution: Rename to
growingButtonSubtext(Fix https://github.com/SAP/ui5-webcomponents/pull/3273) - Reason: Use self explanatory name
1.3
- Discussion: Rename
showNoDataproperty tohideNoDataproperty (this way, by default, the no data text will be shown) - [x] Solution: Rename to ```hideNoData`` (Fix)
- Reason: The default value should be consistent with the UX specs.
TextArea
- Discussion: Rename
maxlengthproperty tomaxLength. - [x] Solution: Keep the current implementation.
- Reason: The
maxlengthis the term used for native HTML elements.
TimeLineItem:
titleName,titleText,itemNameClickableproperties &item-name-clickevent -> single slot- [x] Solution: Rename
itemNametoname,itemNameClickabletonameClickable - Reason: Preferred the props to keep the enterprise flavour of this component as it is very specific to Fiori 3
All Components
1.1
- Discussion: The
slotnames are camelCase, shouldn't they be kebab-case as the events and attributes? - [x] Solution: Keep the current implementation.
- Reason: The slot names are the values of the
slotattribute so they do not have to be kebab-case, but more important the internal usage would become a bit uglier - Instead ofthis.suggestionItems, developers will have to writethis["suggestion-items"].
1.2
- Discussion: Some
CSS Shadow Partnames are camelCase, we have to use kebab-case. - [x] Solution: Rename CSS Shadow Part names to kebab-case.
- Reason: In the Web, all CSS Shadow Parts are kebab-case.
1.3
- Discussion: Some of the components have
subheading, some have "subtitle-text", otherssubtitle. Should be unified (keep in mind thattitleis a reserved word). - [x] Solution:
- All: use
titleTextandsubtitleTextin all components where the text has meaning oftitleandsubtitle - All: use
headerTextandfooterTextin all components whereheaderandfooterslots are present. - Panel: use
headerTextandheaderLevel(FIX: https://github.com/SAP/ui5-webcomponents/pull/3271) - ProductSwitchItem: use
titleTextandsubtitleText(FIX: https://github.com/SAP/ui5-webcomponents/pull/3270) - TimeLineItem: use
titleTextandsubtitleText - ShellBar: keep
primaryTitleandsecondaryTitle - Reason: The
titleTextandsubtitleTextare closest totitleandsubtitleand we preferred this pair over theheadingandsubheading, as headings are usually meant for entire page or section. Where header and footer element are present, we would like to to haveheaderTextandfooterText. When it comes to the ShellBar'sprimaryTitleandsecondaryTitle, we think that they have special meaning and both are titles, not title and subtitle and this is the reason to keep them as they are.
1.4
- Discussion: The properties
typeanddesignsound generic, we need to be consistent in using the one or the other. The Bar, Page, Button and Link usedesign, while the AvatarGroup, Input, ListItem, TableRow, MessageStrip usetype. - [x] Solution: Use
designfor visual appearance, whiletypefor functional modes. From the components above, only the MessageStrip'stypehas to be renamed to design (Fix)
1.5
- Discussion: The properties
hide-somethingandno-somethingare both used and in most of the case they are interchangeable. - Examples of hide-* hideFooter (Page) hideWeekNumbers (Calendar, DatePicker) hideNavigationArrows (Carousel) hideSeconds/Min/H (DurationPicker) hideInput (FileUploader) hideBackdrop (Popover) hideValue(ProgressIndicator)
- Examples no-* noIcon (MessageStrip) Fix noCloseButton (MessageStrip) Fix noArrow (Popover) Fix noArrows(FCL) Fix noDnd (UploadCollection) [Fix] https://github.com/SAP/ui5-webcomponents/pull/3404 noDelete (UploadCollectionItem) [Fix] https://github.com/SAP/ui5-webcomponents/pull/3404 noRetry (UploadCollectionItem) [Fix] https://github.com/SAP/ui5-webcomponents/pull/3404 noTerminate (UploadCollectionItem) [Fix] https://github.com/SAP/ui5-webcomponents/pull/3404
- [x] Solution: Use "hide-" and rename no-* ones, described above
- show/hide sounds better than show/no)
Button
- Discussion: The
iconSizeproperty seems to be added for the purpose of the MessageStrip's close button, it is currently public, perhaps we should make it protected/private. Or, if really needed perhaps we need to introduce a slot / CSS Shadow Part - [x] Solution: Remove the property and introduce a CSS Shadow Part (Fix) and later adopt the part in the MessageStrip.
- Reason: It's an obsolete API, that otherwise has to be supported.
ComboBox
1.1
- Discussion:
loadingproperty should be renamed tobusy. - [x] Solution: Keep the current implementation.
- [x] Reason: The
loadingserves different purpose, it shows a loading indicator over the items in the popover, the user can keep typing. Whilebusyis showing over the component and prevents typing.
1.2
- Discussion: Add selectedComboBoxItem property/attribute #1447
- [x] Solution: We are fine to introduce more convenient API to get the selected item, as it won't be API breaking, can be later added
ColorPalette
- Discussion: ColorPalette have
"more-colors"and"show-recent-colors"- either we should name both withshow-or withoutshow- - [x] Solution: Use "show-" (Fix https://github.com/SAP/ui5-webcomponents/pull/3225)
- Reason: The
moreColorsdoes not sound as a property, but more like an array of elements that has to be provided.
Carousel [discuss with team Rodopi]
- Discussion: Carousel
hide-navigationproperty is confusing. - On desktop the navigation & arrows are hidden and here is no way for users to scroll.
- On mobile: The arrows are hidden by default on mobile(no way to show them), but the items are scrollable left & right (the default mobile behaviour) SAP/openui5#2826.
- [x] Solution: The component is implemented by spec, just the docs should be more clear. Add more description about the UX of the component when it comes to navigation on desktop and mobile: On desktop - the user can navigation with LEFT/RIGHT Arrows or via the navigation arrows On touch devices, the user can use the swipe gesture to navigate through the items. By spec, the navigation arrows are not displayed on touch devices. Fix https://github.com/SAP/ui5-webcomponents/pull/3395
Card [discuss with team Rodopi]
- Discussion: Discuss the slot
"action", could be be removed in favour of slot "header". - [x] Solution: Introduce a new slot "header" for the Card and new component CardHeader to serve as a header (with all the props/slot related to the header part) https://github.com/SAP/ui5-webcomponents/pull/3490
ProductSwitchItem
- Discussion: The component have
"heading"property, and at the same time"subtitle". - [x] Solution: Use
titleTextandsubtitleText
RangeSlider
- Discussion: We have
"starValue"and"endValue", but at the same time"min"(the min value) and"max"(the max value). Isn't more consistent to have either"start, end, min, max", or"startValue, endValue, minValue and maxValue" - [x] Solution: Use
startValue, endValue, min and maxFix - Native Input (type="number") has "min" and "max".
RatingIndicator, Slider and StepInput
- Discussion: RatingIndicator, Slider and StepInput components all have
"value"property. But, the RatingIndicator has"maxValue"in addition, while the Slider and StepInput has"max"property in addition. We have to unify those by naming them both"max"or"maxValue"(the Slider/StepInput have also"min"). - [x] Solution: RatingIndicator
maxValueto become "max" Fix - Native Input (type="number") has "min" and "max".
RadioButton
1.1
- Discussion: Rename the
"select"event to"change", f.e. the CheckBox (Switch, RatingIndicator, ColorPalette) has"change"event, and in general it's more used name. - [x] Solution: Rename the
"select"event to"change"Fix
1.2
- Discussion: Rename the
"selected"property to"checked"in order to be consistent with CheckBox, Switch and the HTML terminology. - [x] Solution: Rename the
"selected"event to `"checked" Fix
Select
- Discussion: Provide a public method to change the selection of ui5-select programmatically #1041
- [x] Solution: IF we add this feature later on , it won't be breaking
SegmentedButton
- Discussion: Discuss the tag name ui5-segmentedbutton or ui5-segmented-button
- [x] Solution: Rename to ui5-segmented-button Fix
Tab
- Discussion: To be more consistent to other components, consider renaming
"semanticColor"to"design"as the property controls several colors of the tab's visual appearance - [x] Solution: Rename
"semanticColor"to"design". Fix https://github.com/SAP/ui5-webcomponents/pull/3336
ToggleButton
- Discussion: Discuss the tag name ui5-togglebutton or ui5-toggle-button
- [x] Solution: Rename to ui5-toggle-button Fix
Popover/ResponsivePopover
- Discussion: Popover has
openBy(opener), ResponsivePopover hasopen(opener)- should be unified - [x] Solution: Use
openByfor both components Fix
Toast
- Discussion: The public method
"show()"can be renamed to"open()"to be more consistent to Popover's openBy, ResponsivePopover - [x] Solution: As we are going to rename the Dialog's
opentoshow, this should remain.
TimelineItem
- Discussion: Suggestions for renaming the props
"itemName"to"name"and"itemNameClickable"to"nameClickable" - [x] Solution: Rename
"itemName"to"name"and"itemNameClickable"to"nameClickable"Fix https://github.com/SAP/ui5-webcomponents/pull/3387 - Reason: The word
itemis obsolete as the component hasitemin its name.
AvatarGroup
1
-
Discussion: Think about replacing ui5-avatar with ui5-avatar-group-item (or something else). To many properties were introduced into the API of ui5-avatar so it can have correct interaction and accessibility behavior so it can fit as item in ui5-avatar-group. Previously it was display only control.
-
Exmples The
Interactiveandfocusproperties. They were added because ui5-avatar should be accessed via keyboard in ui5-avatar-group context and it should have click eventDuplication of
sizeandbackgroundColorproperty. They gives the possibility to managed ui5-avatar internally in ui5-avatar-group -
[x] Solution: Keep the current implementation.
2
- Discussion:
- [ ] Solution: Remove
avatar-size, make use of Avatarsizeand define the size of the overflow btn according to the first slotted item.
Button
- The disabled showcase is part of the design property example.
- [x] Solution: Update the sample https://github.com/SAP/ui5-webcomponents/pull/3365
Bar
-
Discussion: There is no default slot. I would expect middleContent. Or at least the documentation should be corrected. Unless targeting the default slot, use the slot attribute to define the destination slot for each child. Text, along with HTML Elements with no slot attribute, goes the the default slot.
-
[x] Solution: Introduce
defaultslot to replace the existingmiddleContentslot. Fix #3440
ColorPaletteItem
- Discussion: What is
stableDomRef? Like id, right? - [x] Solution: stabeDomRef property has been removed as ColorPaletteItem has its own template and it renders its DOM, and its DOM ref can be get via the UI5Element#getDomRef method
DatePicker
- Discussion:
openPicker,closePicker,isOpen- the last one is inconsistent. Same for the DateRangePicker, DateTimePicker, DurationPicker. - [x] **Solution:**Best to name the methods:
open,closeandisOpen, but we would like to keep the door open for introducing propertyopenlater on, that's why renamed the first two ones toopenPickerandclosePicker. Regarding theisOpen, we think it may remain.
DateRangePicker
- Discussion: The naming of
firstDateValue, lastDateValuesuggests there are multiple single moments in time, in reality a date range is continues and has a start and an end. - [x] Solution: Rename to
startDateValueandendDateValue, more suitable for describing a range.
DurationPicker
- Discussion: There should not be any relation between value and hide-minute, hide-seconds, hide-hours. Now the later options even change the value.
- [x] Solution: duplicated (see the first API review comment)
SegmentedButton
- Discussion: Button is changed with item, haven’t looked at the new implementation. Event selection-change, why not camel case?
- [x] Solution: All events are kebab case now. No change needed.
Switch
- Discussion: The state is called ‘checked’ everywhere, but the text options are called textOn, textOff
- [x] Solution: We would like to keep the current API, but improve the JS Doc of textOn and textOff properties -
switched on, switched offto be replaced bychecked, not checkedto correspond to thecheckedstate. Fix https://github.com/SAP/ui5-webcomponents/pull/3395/
Timeline, TimelineItem
- Discussion: itemName, itemNameClickable, titleText, subtitleText - there are conflicts with the HTMLElement attributes, right?
- [x] Solution: Keep titleText, subtitleText, and remove
itemfrom the names of the props, that will result in havingname,nameClikableprops andname-clickevent FIX https://github.com/SAP/ui5-webcomponents/pull/3387
A couple of months ago we also had a mail thread about changing opening/closing behaviour of all popups (Dialog, Popover, etc) from an imperative way (.open() methods) to a declarative way (open attribute).
If I remember correctly our latest proposal was:
Dialog:
<ui5-dialog open />
(or even follow the HTMLDialogElement Spec) Solution:
- Rename the public method
openof Dialog toshowto follow the native Dialog's API - Rename the protected method in Popup.js - async open(preventInitialFocus) not to conflict with future
openattribute - Attribute/property
openwill be added later on as no conflicts with public methods.
Popovers:
<ui5-button id="info">Info</ui5-button>
<ui5-popup for="info" open></ui5-popup>
This would then also be related (and fix) https://github.com/SAP/ui5-webcomponents-react/issues/1101.
Solution:
- Popover: The
openBymethod does not conflict with future properties, such asopenandopen-by, so they can be added later on.
The names of the properties which act to prevent/disable some behaviour could be improved. We noted the following:
Upload Collection Item
- [ ] Discussion: naming of
oDelete, noRetry, noTerminate - [x] Solution: Rename to hideDelete/hideDeleteButton, hideRetry/hideRetryButton, hideTerminate/hideTerminateButton (Button word seems to make the prop more clear)
- [ ] Reason: Although hide-* may sound like a method, we decided to go with this naming, because from other hand we have show-* properties and we prefer the
hide/showpair, instead ofno-*/show-*orno-*/ *-shownones.
Popover
- [ ] Discussion: naming of
noArrow - [x] Solution: Rename to hideArrow
- [ ] Reason: Although hide-* may sound like a method, we decided to go with this naming, because from other hand we have show-* properties and we prefer the
hide/showpair, instead ofno-*/show-*orno-*/ *-shownones.
Carousel:
- [ ] Discussion: naming of
hideNavigationArrows,hidePageIndicator - [x] Solution: Keep the current names - hideNavigationArrows, hidePageIndicator
TabContainer
- [ ] Discussion: Please also review/remove the feature "tabs-placement" for Tab container, because it has implications for usability and accessibility.
- [x] Solution: make it private for the time being, so you won't have to support it and later we can remove it when we deliver the feature in a custom layer
Carousel
- add
visibleItemsIndexespublic readonly getter returning an array - add
navigateTo(itemIndex)public method that navigates to an item (bringing it at the start of the current page if possible) - make
"selectedIndex"private
const items = 10;
carousel.itemsPerPageS = 2;
// initially
carousel.visibleItemsIndexes; // [0, 1] - page 0
carousel.navigateTo(1);
carousel.visibleItemsIndexes; // [1, 2] - page 1
Leftovers
accessibleName, ariaLabel...
/**
* Defines the text alternative of the component.
* If not provided a default text alternative will be set, if present.
* @public
* @type {string}
*/
accessibleName : {}
/**
* Defines the aria-label attribute for the component.
* @private
*/
ariaLabel: {},
- Discussion: Avatar, StandardListItem, CustomListItem, GroupHeaderListItem, Dialog, Icon, Panel have accessibleName, while Button, Card, CheckBox, ComboBox, DatePicker, Input, Link, List, RatingIndicator, Select, StepInput, TextArea have ariaLabel
- [x] Solution: Replace
aria-labelwithaccessible-name - [ ] Solution: Replace
aria-labelledbywith:accessible-name-ref - [ ] Solution: Add
accessible-name-refonly on ComboBox, DatePicker, Input, Select, StepInput, TextArea & Rating Indicator (Form controls), remove from everywhere else. https://github.com/SAP/ui5-webcomponents/pull/3442
Card
- Discussion: Introduce a
headerslot, remove theactionslot - [ ] Solution: extract all props (texts, status, action, headerInteractive) as new component - CardHeader and provide new slot for the Card - header. Update playground sample + append CardHeader Docs. https://github.com/SAP/ui5-webcomponents/pull/3490
UploadCollectionItem
- Discussion: Discuss the API, compare to openui5
- [x] Solution:
-
- no-retry rename to
hide-retry-buttonand provide newdisable-retry-button
- no-retry rename to
-
- no-terminate rename to
hide-terminate-buttonand provide newdisable-terminate-button(optional),
- no-terminate rename to
-
- instead of type="Detail" introduce hide-edit-button and provide new
disable-edit-button(optional),
- instead of type="Detail" introduce hide-edit-button and provide new
-
- instead of mode="Delete", introduce hide-delete-button and rename no-delete to disable-delete-button
- [x] Solution:
file-deletedto be renamed toitem-deleteFix
NotificationList
- Discussion: From ACC perspective the List that holds notifications should have
role="list"(currently the List has role=listbox") and the NotificationListItems should haverole='lsititem"(currently role="option"). In openui5 NotificationList is introduced with the only differencerole="list". Should we (1) introduce a NotificationList web component or (2) rather introduce private API "role" to the List and recommend setting it<ui5-list role="list" - [x] Solution: Rename
accRoleto accessible-role and make it public and recommend using[Fix] (https://github.com/SAP/ui5-webcomponents/pull/3477)
ColorPalette
- Discussion: Achieving the sap.m.ColorPalettePopover is not so easy, isn't better to introduce
ColorPalettePopovercomponent and remove the show-more-colors/show-recent-colors from ColorPalette - [x] Solution: Plan a new component - ColorPalettePopover and make the show-more-colors/show-recent-colors properties of ColorPalette private (Fix https://github.com/SAP/ui5-webcomponents/pull/3420)
ColorPalette
- Discussion: The
changeevent does not seem to be appropriate as nothing really changes, the user just clicks on an color-palette-item. Tsanislav thinksselectis better (in OpenUi5 it's calledcolorSelect) as this what conceptually the purpose of the component is. Other option that I consider good is to name ititem-clickas perhaps the most accurate in terms of describing the action. - [x] Solution: Rename
changetoitem-click(Fix #3429)
Framework
- Discussion: Possibly replace
data-ui5-stablewithpart(the downside is that we would allow styling from outside) - [x] Solution: keep
data-ui5-stable - [ ] Solution: remove "stable-dom-ref" from all components
- [ ] Solution: make possible calling "getDomRef" on the child directly (f.e. on the Option of the Select)
- [ ] Solution: exept. case TabContainer, introduce component specific methods to get the tabstrip tab and the overflow tab
- [ ] Solution: exept. case ShellBar, introduce component specific methods to get the ShellBar internals (logo, profile, copilot, etc.)
- [ ] Solution: document that
getDomRefcan be called on abstract components Track with: https://github.com/SAP/ui5-webcomponents/issues/3519
Component API Review has been completed.
Moreover, most of the required changes (~60+) are already merged (2 in review at the of writing) and 1 still not started: https://github.com/SAP/ui5-webcomponents/issues/3519
You can track all the breaking changes, that are result from the major API Review here: https://github.com/SAP/ui5-webcomponents/pulls?q=is%3Apr+is%3Aopen+label%3ABREAKING_CHANGE