@ansible/ansible-ui-framework 0.0.296 → 0.0.297

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { ITableColumn } from './PageTable';
3
- /**
4
- * BulkActionDialogProps
5
- * @typedef {Object} BulkActionDialogProps
6
- */
7
3
  export interface BulkActionDialogProps<T extends object> {
8
4
  /** The title of the model.
9
5
  * @link https://www.patternfly.org/v4/components/modal/design-guidelines#confirmation-dialogs
@@ -101,8 +101,13 @@ var useTableItems_1 = require("./useTableItems");
101
101
  * BulkActionDialog
102
102
  * @param {string} title - The title of the model.
103
103
  * @param {Array(T)} items - The items to confirm for the bulk action.
104
- * @param {function(T) : (string | number)} keyFn - A function that gets a unique key for each item.
104
+ * @param {function} keyFn - A function that gets a unique key for each item.
105
105
  * @param {Array(ITableColumn<T>)} actionColumns - The columns to display when processing the actions.
106
+ * @param {function} actionFn - The action function to perform on each item
107
+ * @param {function=} onComplete - Callback when all the actions are complete. Returns the successful items.
108
+ * @param {function=} onClose - Callback called when the dialog closes.
109
+ * @param {string=} processingText - The text to show for each item when the action is happening.
110
+ * @param {boolean=} isDanger - Indicates if this is a destructive operation.
106
111
  */
107
112
  function BulkActionDialog(props) {
108
113
  var title = props.title, items = props.items, keyFn = props.keyFn, actionColumns = props.actionColumns, actionFn = props.actionFn, onComplete = props.onComplete, onClose = props.onClose, processingText = props.processingText, isDanger = props.isDanger;
@@ -1,10 +1,15 @@
1
- ## BulkActionDialog(title, items, keyFn, actionColumns)
1
+ # BulkActionDialog
2
2
 
3
3
  BulkActionDialog
4
4
 
5
- | Param | Type | Description |
6
- | ------------- | ------------------------ | --------------------------------------------------- |
7
- | title | `string` | The title of the model. |
8
- | items | `Array(T)` | The items to confirm for the bulk action. |
9
- | keyFn | `function` | A function that gets a unique key for each item. |
10
- | actionColumns | `Array(ITableColumn<T>)` | The columns to display when processing the actions. |
5
+ | Param | Type | Description |
6
+ | ---------------- | ------------------------ | ------------------------------------------------------------------------- |
7
+ | title | `string` | The title of the model. |
8
+ | items | `Array(T)` | The items to confirm for the bulk action. |
9
+ | keyFn | `function` | A function that gets a unique key for each item. |
10
+ | actionColumns | `Array(ITableColumn<T>)` | The columns to display when processing the actions. |
11
+ | actionFn | `function` | The action function to perform on each item |
12
+ | [onComplete] | `function` | Callback when all the actions are complete. Returns the successful items. |
13
+ | [onClose] | `function` | Callback called when the dialog closes. |
14
+ | [processingText] | `string` | The text to show for each item when the action is happening. |
15
+ | [isDanger] | `boolean` | Indicates if this is a destructive operation. |
File without changes
@@ -1,4 +1,4 @@
1
- ## PageHeader(breadcrumbs, title, titleHelpTitle, titleHelp, description, controls, headerActions)
1
+ # PageHeader
2
2
 
3
3
  PageHeader enables the responsive layout of the header.
4
4
 
@@ -12,7 +12,7 @@ PageHeader enables the responsive layout of the header.
12
12
  | controls | `ReactNode` | Support for extra page controls. |
13
13
  | headerActions | `ReactNode` | The actions for the page. |
14
14
 
15
- **Example**
15
+ ## Example
16
16
 
17
17
  ```js
18
18
  <Page>
@@ -1,8 +1,8 @@
1
- ## PageLayout()
1
+ # PageLayout
2
2
 
3
3
  PageLayout enables the layout of the page to be responsive.
4
4
 
5
- **Example**
5
+ ## Example
6
6
 
7
7
  ```js
8
8
  <Page>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "Framework for building consistent responsive web applications using PatternFly.",
4
- "version": "0.0.296",
4
+ "version": "0.0.297",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "repository": {