Skip to content

Commit

Permalink
docs: add experimental jsdoc tag to components (#9304)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaydenow authored Jun 26, 2024
1 parent 36c9c8f commit ed263d0
Show file tree
Hide file tree
Showing 22 changed files with 18 additions and 54 deletions.
5 changes: 1 addition & 4 deletions packages/ai/src/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import ButtonCss from "./generated/themes/Button.css.js";
* @extends UI5Element
* @since 2.0
* @public
* @experimental The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.
*/

@customElement({
Expand All @@ -59,10 +60,6 @@ import ButtonCss from "./generated/themes/Button.css.js";
* @public
*/
@event("click")

/**
* @experimental
*/
class Button extends UI5Element {
/**
* Defines the component design.
Expand Down
5 changes: 1 addition & 4 deletions packages/ai/src/ButtonState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
* @abstract
* @since 2.0
* @public
* @experimental The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.
*/
@customElement("ui5-ai-button-state")

/**
* @experimental
*/
class ButtonState extends UI5Element {
/**
* Defines the name of the button state.
Expand Down
1 change: 1 addition & 0 deletions packages/ai/src/PromptInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import PromptInputCss from "./generated/themes/PromptInput.css.js";
* @constructor
* @public
* @extends UI5Element
* @experimental The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.
*/
@customElement({
tag: "ui5-ai-prompt-input",
Expand Down
7 changes: 7 additions & 0 deletions packages/main/src/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import TableCell from "./TableCell.js";
* Interface for components that can be slotted inside the <code>features</code> slot of the <code>ui5-table</code>.
*
* @public
* @experimental
*/
interface ITableFeature extends UI5Element {
/**
Expand All @@ -46,6 +47,7 @@ interface ITableFeature extends UI5Element {
* Interface for components that can be slotted inside the <code>features</code> slot of the <code>ui5-table</code>
* and provide growing/data loading functionality.
* @public
* @experimental
*/
interface ITableGrowing extends ITableFeature {
/**
Expand Down Expand Up @@ -141,6 +143,11 @@ type TableRowClickEventDetail = {
* @extends UI5Element
* @since 2.0
* @public
* @experimental This Table web component is available since 2.0 and has been newly implemented to provide better screen reader and keyboard handling support.
* Currently, it's considered experimental as its API is subject to change.
* This Table replaces the previous Table web component, that has been part of **@ui5/webcomponents** version 1.x.
* For compatibility reasons, we moved the previous Tabple implementation to the **@ui5/webcomponents-compat** package
* and will be maintained until the new Table is experimental.
*/
@customElement({
tag: "ui5-table",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { LABEL_COLON } from "./generated/i18n/i18n-defaults.js";
* @extends TableCellBase
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({
tag: "ui5-table-cell",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableGrowing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
* @extends UI5Element
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({
tag: "ui5-table-growing",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableHeaderCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import TableHeaderCellStyles from "./generated/themes/TableHeaderCell.css.js";
* @extends TableCellBase
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({
tag: "ui5-table-header-cell",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableHeaderRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
* @extends TableRowBase
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({
tag: "ui5-table-header-row",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableRow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import RadioButton from "./RadioButton.js";
* @extends TableRowBase
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({
tag: "ui5-table-row",
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/TableSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { isSelectionCheckbox, isHeaderSelector, findRowInPath } from "./TableUti
* @extends UI5Element
* @since 2.0
* @public
* @experimental This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
*/
@customElement({ tag: "ui5-table-selection" })

Expand Down
4 changes: 0 additions & 4 deletions packages/website/docs/_components_pages/ai/Button/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ sidebar_class_name: newComponentBadge expComponentBadge
import ButtonMenu from "../../../_samples/ai/Button/ButtonMenu/ButtonMenu.md";
import IconOnlyButton from "../../../_samples/ai/Button/IconOnlyButton/IconOnlyButton.md";

:::info
The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.
:::

<%COMPONENT_OVERVIEW%>

## AI Button with Menu in one of the states
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ slug: ../ButtonState
sidebar_class_name: newComponentBadge expComponentBadge
---

:::info
The Button and ButtonState web components are availabe since 2.0 under an experimental flag and their API and behaviour are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
6 changes: 0 additions & 6 deletions packages/website/docs/_components_pages/ai/PromptInput.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ sidebar_class_name: newComponentBadge expComponentBadge

import Basic from "../../_samples/ai/PromptInput/Basic/Basic.md";


:::info
The **@ui5/webcomponents-ai** package is under development and considered experimental - components' APIs are subject to change.
:::


<%COMPONENT_OVERVIEW%>

## Basic Sample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
slug: ../DynamicPageHeader
sidebar_class_name: newComponentBadge
---

<%COMPONENT_OVERVIEW%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
slug: ../DynamicPageTitle
sidebar_class_name: newComponentBadge
---

<%COMPONENT_OVERVIEW%>
Expand Down
8 changes: 0 additions & 8 deletions packages/website/docs/_components_pages/main/Table/Table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ import StickyHeaderContainer from "../../../_samples/main/Table/StickyHeaderCont
import NoDataSlot from "../../../_samples/main/Table/NoDataSlot/NoDataSlot.md";
import Interactive from "../../../_samples/main/Table/Interactive/Interactive.md";

:::info
This Table web component is available since 2.0 and has been newly implemented to provide better screen reader and keyboard handling support.
Currently, it's considered experimental as its API is subject to change.
This Table replaces the previous Table web component, that has been part of **@ui5/webcomponents** version 1.x.
For compatibility reasons, we moved the previous Tabple implementation to the **@ui5/webcomponents-compat** package
and will be maintained until the new Table is experimental.
:::

<%COMPONENT_OVERVIEW%>

## Basic Sample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ slug: ../../TableCell
sidebar_class_name: newComponentBadge expComponentBadge
---

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ sidebar_class_name: newComponentBadge expComponentBadge
import Growing from "../../../_samples/main/Table/Growing/Growing.md";
import ScrollToLoad from "../../../_samples/main/Table/ScrollToLoad/ScrollToLoad.md";

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ sidebar_class_name: newComponentBadge expComponentBadge
import Popin from "../../../_samples/main/Table/Popin/Popin.md";
import ColumnWidths from "../../../_samples/main/Table/ColumnWidths/ColumnWidths.md";

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ sidebar_class_name: newComponentBadge expComponentBadge
import StickyHeader from "../../../_samples/main/Table/StickyHeader/StickyHeader.md";
import StickyHeaderContainer from "../../../_samples/main/Table/StickyHeaderContainer/StickyHeaderContainer.md";

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ sidebar_class_name: newComponentBadge expComponentBadge

import Interactive from "../../../_samples/main/Table/Interactive/Interactive.md";

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ sidebar_class_name: newComponentBadge expComponentBadge

import Selection from "../../../_samples/main/Table/Selection/Selection.md";

:::info
This web component is available since 2.0 with an experimental flag and its API and behavior are subject to change.
:::

<%COMPONENT_OVERVIEW%>

<%COMPONENT_METADATA%>
Expand Down

0 comments on commit ed263d0

Please sign in to comment.