ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Components API Review

Open ilhan007 opened this issue 5 years ago • 9 comments

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

ilhan007 avatar Apr 06 '21 13:04 ilhan007

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 titleText and subtitleText in all components where the text has meaning of title and subtitle
  • All: use headerText and footerText in all components where header and footer slots are present.
  • Panel: use headerText and headerLevel (FIX: https://github.com/SAP/ui5-webcomponents/pull/3271)
  • ProductSwitchItem: use titleText and subtitleText (FIX: https://github.com/SAP/ui5-webcomponents/pull/3270)
  • TimeLineItem: use titleText and subtitleText
  • ShellBar: keep primaryTitle and secondaryTitle
  • Reason: The titleText and subtitleText are closest to title and subtitle and we preferred this pair over the heading and subheading, as headings are usually meant for entire page or section. Where header and footer element are present, we would like to to have headerText and footerText. When it comes to the ShellBar's primaryTitle and seconadaryTitle, 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/readonly states for all components. Is readonly needed?
  • [x] Solution: Keep readonly
  • Reason: The readonly state is an important state of the components, both disabled and readonly should remain.

1.3

  • Discussion: Remove busy property where a user can use the default slot of the ui5-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 the growing feature, that requires special handling of the indicator positioning.

1.4

  • Discussion: Don't use the component tag name in 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 image property with image slot (currently people can't pass properties to the img tag - that's why we added image-fit-type).
  • [x] Solution: Introduce new img slot (Fix).
  • Reason: Adds more flexibility and option to use different types of images, custom icons, etc. + styling using standard CSS.

1.2

  • Discussion: Replace icon property with icon slot and initials property with initials slot (if we have slots only as an external API, then we can get rid of the properties background-color, size and shape, 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 avatarSize needed? 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 avatarSize on AvatarGroup is not so valuable, as the Avatar has already avatarSize property that can be used.

Button

  • Discussion: Replace iconSize property 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: hideNavigation property -> 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 hideNavigation to hideNavigationArrows (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: Renametext property to default slot.
  • [x] Solution: Keep the current implementation.

ColorPalette

  • Discussion: Unification of moreColors(previously called showMore) & showRecentColors properties.
  • [x] Solution: Use "show-" Fix https://github.com/SAP/ui5-webcomponents/pull/3225
  • Reason: moreColors does not sound as a config, but more like an array of elements that has to be provided.

ComboBox: @MapTo0 assigned

  • Discussion: Rename filterValue property to liveValue.
  • [x] Solution: Both properties will be removed

DatePicker/DateRangePicker/TimePicker:

  • Discussion: The oDate parameter in the formatValue method -> date parameter (No Hungarian Notation).
  • [x] Solution: Use date Fix.

Duration Picker @vladitasev assigned [refactor Duration Picker API]

  • Discussion: Must not have formatPattern property (inherited from TimePickerBase).
  • Discussion: Must not have formatValue method (also inherited).

Icon

  • Discussion: The interactive property 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 maxlength property to maxLength.
  • [x] Solution: Keep the current implementation.
  • Reason: The maxlength is the term used for native HTML elements.

1.2

  • Discussion: Rename isOpen method to isValueStateOpened.
  • [x] Solution: Hide and rename Fix
  • Reason: The method checks if the value state popover is open.

SuggestionItem

  • Discussion: Remove group property and introduce a separate component, which has default slot for SuggestionItem (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 a element & the Link control in UI5).
  • [x] Solution: Should behave same as the Button web component and openui5 Link.

1.2

  • Discussion: Is design property 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 inset property to indent.
  • [x] Solution: rename to indent (Fix)
  • Reason: The word inset means when something is part of, inside something bigger, indent is more accurate.

ListItem (and derived components)

  • Discussion: Rename info to additionalText.
  • [x] Solution: (Fix)
  • Reason: The term info is too generic as everything is info in some form and additionalText is used in openUI5 as text that is complimentary to the main text.

MultiComboBoxItem

  • Discussion: Rename additionalText property to info
  • [x] Solution: keep theadditionalText property
  • Reason: The term info is too generic as everything is info in some form and additionalText is used in openUI5 as text that is complimentary to the main text.

NotificationListItems

  • Discussion: footnotes slot -> footer
  • [x] Solution: footnotes is 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 openBy method in the docs.
  • [x] Solution: Remove open and use openBy by overriding it to handle the mobile use-case. Fix
  • Reason: To be more consistent with the Popover's openBy, it's better to have openBy.

ShellBar

  • Discussion: Rename notificationCount property to notificationsCount property.
  • [x] Solution: Rename notificationsCount (Fix).
  • Reason: To have consistency with showNotifications property.

Switch

  • Discussion: Replace graphical property (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 tabLayout property 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 tabLayout targets the layout of each tab - the position of the text, icon and additional-text.

Table

1.1

  • Discussion: Replace moreText property 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 moreSubtext property sounds weird, rename to growingButtonSubtext.
  • [x] Solution: Rename to growingButtonSubtext (Fix https://github.com/SAP/ui5-webcomponents/pull/3273)
  • Reason: Use self explanatory name

1.3

  • Discussion: Rename showNoData property to hideNoData property (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 maxlength property to maxLength.
  • [x] Solution: Keep the current implementation.
  • Reason: The maxlength is the term used for native HTML elements.

TimeLineItem:

  • titleName, titleText, itemNameClickable properties & item-name-click event -> single slot
  • [x] Solution: Rename itemName to name, itemNameClickable to nameClickable
  • Reason: Preferred the props to keep the enterprise flavour of this component as it is very specific to Fiori 3

fifoosid avatar Apr 08 '21 14:04 fifoosid

All Components

1.1

  • Discussion: The slot names 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 slot attribute so they do not have to be kebab-case, but more important the internal usage would become a bit uglier - Instead of this.suggestionItems, developers will have to write this["suggestion-items"].

1.2

  • Discussion: Some CSS Shadow Part names 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", others subtitle. Should be unified (keep in mind that title is a reserved word).
  • [x] Solution:
  • All: use titleText and subtitleText in all components where the text has meaning of title and subtitle
  • All: use headerText and footerText in all components where header and footer slots are present.
  • Panel: use headerText and headerLevel (FIX: https://github.com/SAP/ui5-webcomponents/pull/3271)
  • ProductSwitchItem: use titleText and subtitleText (FIX: https://github.com/SAP/ui5-webcomponents/pull/3270)
  • TimeLineItem: use titleText and subtitleText
  • ShellBar: keep primaryTitle and secondaryTitle
  • Reason: The titleText and subtitleText are closest to title and subtitle and we preferred this pair over the heading and subheading, as headings are usually meant for entire page or section. Where header and footer element are present, we would like to to have headerText and footerText. When it comes to the ShellBar's primaryTitle and secondaryTitle, 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 type and design sound generic, we need to be consistent in using the one or the other. The Bar, Page, Button and Link use design, while the AvatarGroup, Input, ListItem, TableRow, MessageStrip use type.
  • [x] Solution: Use design for visual appearance, while type for functional modes. From the components above, only the MessageStrip's type has to be renamed to design (Fix)

1.5

  • Discussion: The properties hide-something and no-something are 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 iconSize property 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: loading property should be renamed to busy.
  • [x] Solution: Keep the current implementation.
  • [x] Reason: The loading serves different purpose, it shows a loading indicator over the items in the popover, the user can keep typing. While busy is 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 with show- or without show-
  • [x] Solution: Use "show-" (Fix https://github.com/SAP/ui5-webcomponents/pull/3225)
  • Reason: The moreColors does 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-navigation property 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 titleText and subtitleText

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 max Fix
  • 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 maxValue to 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 has open(opener) - should be unified
  • [x] Solution: Use openBy for 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 open to show, 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 item is obsolete as the component has item in its name.

ilhan007 avatar Apr 13 '21 13:04 ilhan007

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 Interactive and focus properties. They were added because ui5-avatar should be accessed via keyboard in ui5-avatar-group context and it should have click event

    Duplication of size and backgroundColor property. 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 Avatar size and define the size of the overflow btn according to the first slotted item.

nnaydenow avatar Apr 21 '21 12:04 nnaydenow

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 default slot to replace the existing middleContent slot. 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, close and isOpen, but we would like to keep the door open for introducing property open later on, that's why renamed the first two ones to openPicker and closePicker. Regarding the isOpen, we think it may remain.

DateRangePicker

  • Discussion: The naming of firstDateValue, lastDateValue suggests 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 startDateValue and endDateValue, 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 off to be replaced by checked, not checked to correspond to the checked state. 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 item from the names of the props, that will result in having name, nameClikable props and name-click event FIX https://github.com/SAP/ui5-webcomponents/pull/3387

a-z-ivanov avatar May 18 '21 09:05 a-z-ivanov

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 open of Dialog to show to follow the native Dialog's API
  • Rename the protected method in Popup.js - async open(preventInitialFocus) not to conflict with future open attribute
  • Attribute/property open will 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 openBy method does not conflict with future properties, such as open and open-by, so they can be added later on.

MarcusNotheis avatar May 19 '21 06:05 MarcusNotheis

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/show pair, instead of no-*/show-* or no-*/ *-shown ones.

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/show pair, instead of no-*/show-* or no-*/ *-shown ones.

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

georgimkv avatar May 19 '21 14:05 georgimkv

Carousel

  • add visibleItemsIndexes public 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

ilhan007 avatar May 31 '21 14:05 ilhan007

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-label with accessible-name
  • [ ] Solution: Replace aria-labelledby with: accessible-name-ref
  • [ ] Solution: Add accessible-name-ref only 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 header slot, remove the action slot
  • [ ] 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-button and provide new disable-retry-button
    • no-terminate rename to hide-terminate-button and provide new disable-terminate-button (optional),
    • instead of type="Detail" introduce hide-edit-button and provide new disable-edit-button(optional),
    • instead of mode="Delete", introduce hide-delete-button and rename no-delete to disable-delete-button
  • [x] Solution: file-deleted to be renamed to item-delete Fix

NotificationList

  • Discussion: From ACC perspective the List that holds notifications should have role="list" (currently the List has role=listbox") and the NotificationListItems should have role='lsititem" (currently role="option"). In openui5 NotificationList is introduced with the only difference role="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 accRole to 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 ColorPalettePopover component 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 change event does not seem to be appropriate as nothing really changes, the user just clicks on an color-palette-item. Tsanislav thinks select is better (in OpenUi5 it's called colorSelect) as this what conceptually the purpose of the component is. Other option that I consider good is to name it item-click as perhaps the most accurate in terms of describing the action.
  • [x] Solution: Rename change to item-click (Fix #3429)

Framework

  • Discussion: Possibly replace data-ui5-stable with part (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 getDomRef can be called on abstract components Track with: https://github.com/SAP/ui5-webcomponents/issues/3519

ilhan007 avatar Jun 08 '21 06:06 ilhan007

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

ilhan007 avatar Jul 21 '21 09:07 ilhan007