@patternfly/react-table 5.0.0-alpha.95 → 5.0.0-alpha.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/esm/components/Table/EditableSelectInputCell.d.ts +2 -2
- package/dist/esm/components/Table/EditableSelectInputCell.d.ts.map +1 -1
- package/dist/esm/components/Table/EditableSelectInputCell.js +2 -2
- package/dist/esm/components/Table/EditableSelectInputCell.js.map +1 -1
- package/dist/esm/components/Table/EditableTextCell.js +1 -1
- package/dist/esm/components/Table/EditableTextCell.js.map +1 -1
- package/dist/js/components/Table/EditableSelectInputCell.d.ts +2 -2
- package/dist/js/components/Table/EditableSelectInputCell.d.ts.map +1 -1
- package/dist/js/components/Table/EditableSelectInputCell.js +2 -2
- package/dist/js/components/Table/EditableSelectInputCell.js.map +1 -1
- package/dist/js/components/Table/EditableTextCell.js +1 -1
- package/dist/js/components/Table/EditableTextCell.js.map +1 -1
- package/dist/js/components/Table/package.json +1 -1
- package/dist/js/components/Table/utils/decorators/package.json +1 -1
- package/dist/js/components/Table/utils/package.json +1 -1
- package/dist/js/components/package.json +1 -1
- package/dist/js/deprecated/components/Table/base/package.json +1 -1
- package/dist/js/deprecated/components/Table/package.json +1 -1
- package/dist/js/deprecated/components/package.json +1 -1
- package/dist/js/deprecated/package.json +1 -1
- package/dist/js/package.json +1 -1
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/components/Table/EditableSelectInputCell.tsx +4 -4
- package/src/components/Table/EditableTextCell.tsx +1 -1
- package/src/deprecated/components/Table/examples/Table.md +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-alpha.96](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@5.0.0-alpha.95...@patternfly/react-table@5.0.0-alpha.96) (2023-05-09)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **Table:** swapped param order of onSelect and clearSelection ([#9057](https://github.com/patternfly/patternfly-react/issues/9057)) ([93baf4e](https://github.com/patternfly/patternfly-react/commit/93baf4eae9e289c403cab160a75f2157e0a6f6d8))
|
|
11
|
+
- **TextInput:** swapped onChange params ([#9064](https://github.com/patternfly/patternfly-react/issues/9064)) ([8735c8d](https://github.com/patternfly/patternfly-react/commit/8735c8d6260c9faf5416946d7cba4d91d33e8ff9))
|
|
12
|
+
|
|
6
13
|
# 5.0.0-alpha.95 (2023-05-08)
|
|
7
14
|
|
|
8
15
|
### Features
|
package/components/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-esm","main":"index.js","module":"./components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-esm","main":"index.js","module":"./components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
package/deprecated/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated-deprecated-esm","main":"index.js","module":"./deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-deprecated-deprecated-esm","main":"index.js","module":"./deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -9,7 +9,7 @@ export interface IEditableSelectInputCell extends Omit<React.HTMLProps<HTMLEleme
|
|
|
9
9
|
/** Props to build the select component */
|
|
10
10
|
props: EditableSelectInputProps;
|
|
11
11
|
/** Event handler which fires when user selects an option in this cell */
|
|
12
|
-
onSelect: (
|
|
12
|
+
onSelect: (event: React.MouseEvent | React.ChangeEvent, newValue: string | SelectOptionObject, rowIndex: number, cellIndex: number, isPlaceholder?: boolean) => void;
|
|
13
13
|
/** Options to display in the expandable select menu */
|
|
14
14
|
options?: React.ReactElement[];
|
|
15
15
|
/** Flag indicating the select input is disabled */
|
|
@@ -21,7 +21,7 @@ export interface IEditableSelectInputCell extends Omit<React.HTMLProps<HTMLEleme
|
|
|
21
21
|
/** Event handler which fires when the select toggle is toggled */
|
|
22
22
|
onToggle?: (event: React.MouseEvent | React.ChangeEvent | React.KeyboardEvent | Event, isExpanded: boolean) => void;
|
|
23
23
|
/** Event handler which fires when the user clears the selections */
|
|
24
|
-
clearSelection?: (rowIndex: number, cellIndex: number
|
|
24
|
+
clearSelection?: (event: React.MouseEvent, rowIndex: number, cellIndex: number) => void;
|
|
25
25
|
}
|
|
26
26
|
export declare const EditableSelectInputCell: React.FunctionComponent<IEditableSelectInputCell>;
|
|
27
27
|
//# sourceMappingURL=EditableSelectInputCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableSelectInputCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,kBAAkB,EACnB,MAAM,8DAA8D,CAAC;AAGtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,cAAc,CAAC,EAAE,UAAU,CAAC;IAC/G,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,KAAK,EAAE,wBAAwB,CAAC;IAChC,yEAAyE;IACzE,QAAQ,EAAE,CACR,
|
|
1
|
+
{"version":3,"file":"EditableSelectInputCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,M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uBAAuB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAgDrF,CAAC"}
|
|
@@ -5,10 +5,10 @@ import inlineStyles from '@patternfly/react-styles/css/components/InlineEdit/inl
|
|
|
5
5
|
import formStyles from '@patternfly/react-styles/css/components/Form/form';
|
|
6
6
|
export const EditableSelectInputCell = ({ value, rowIndex, cellIndex, onSelect = () => { }, clearSelection, isOpen = false, onToggle = () => { }, selections = [''], options = [], props }) => {
|
|
7
7
|
const onSelectHandler = (event, newValue, isPlaceholder) => {
|
|
8
|
-
onSelect(
|
|
8
|
+
onSelect(event, newValue, rowIndex, cellIndex, isPlaceholder);
|
|
9
9
|
};
|
|
10
10
|
const onClear = (event) => {
|
|
11
|
-
clearSelection(rowIndex, cellIndex
|
|
11
|
+
clearSelection(event, rowIndex, cellIndex);
|
|
12
12
|
};
|
|
13
13
|
const select = (React.createElement(Select, Object.assign({}, props.editableSelectProps, { onSelect: onSelectHandler }, (clearSelection && { onClear }), { isOpen: isOpen, onToggle: onToggle, selections: selections }), options));
|
|
14
14
|
return (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableSelectInputCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACL,MAAM,EAEP,MAAM,8DAA8D,CAAC;AACtE,OAAO,YAAY,MAAM,gEAAgE,CAAC;AAC1F,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAgC3E,MAAM,CAAC,MAAM,uBAAuB,GAAsD,CAAC,EACzF,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,cAAc,EACd,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,UAAU,GAAG,CAAC,EAAE,CAAC,EACjB,OAAO,GAAG,EAA0B,EACpC,KAAK,EACoB,EAAE,EAAE;IAC7B,MAAM,eAAe,GAAG,CACtB,KAA2C,EAC3C,QAAqC,EACrC,aAAsB,EACtB,EAAE;QACF,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"EditableSelectInputCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EACL,MAAM,EAEP,MAAM,8DAA8D,CAAC;AACtE,OAAO,YAAY,MAAM,gEAAgE,CAAC;AAC1F,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAgC3E,MAAM,CAAC,MAAM,uBAAuB,GAAsD,CAAC,EACzF,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,cAAc,EACd,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,UAAU,GAAG,CAAC,EAAE,CAAC,EACjB,OAAO,GAAG,EAA0B,EACpC,KAAK,EACoB,EAAE,EAAE;IAC7B,MAAM,eAAe,GAAG,CACtB,KAA2C,EAC3C,QAAqC,EACrC,aAAsB,EACtB,EAAE;QACF,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,KAAuB,EAAE,EAAE;QAC1C,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CACb,oBAAC,MAAM,oBACD,KAAK,CAAC,mBAAmB,IAC7B,QAAQ,EAAE,eAAe,IACrB,CAAC,cAAc,IAAI,EAAE,OAAO,EAAE,CAAC,IACnC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,KAErB,OAAO,CACD,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe,IAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAO;QACrG,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe;YACzC,MAAM;YACP,6BAAK,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,eAAY,QAAQ,IAC3F,KAAK,CAAC,SAAS,CACZ,CACF,CACS,CAClB,CAAC;AACJ,CAAC,CAAC;AACF,uBAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { css } from '@patternfly/react-styles';
|
|
|
6
6
|
export const EditableTextCell = ({ value, rowIndex, cellIndex, props, handleTextInputChange, inputAriaLabel, isDisabled = false }) => (React.createElement(React.Fragment, null,
|
|
7
7
|
React.createElement("div", { className: inlineStyles.inlineEditValue }, value),
|
|
8
8
|
React.createElement("div", { className: inlineStyles.inlineEditInput },
|
|
9
|
-
React.createElement(TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (
|
|
9
|
+
React.createElement(TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (event, newValue) => {
|
|
10
10
|
handleTextInputChange(newValue, event, rowIndex, cellIndex);
|
|
11
11
|
}, "aria-label": inputAriaLabel }),
|
|
12
12
|
React.createElement("div", { className: css(formStyles.formHelperText, formStyles.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableTextCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableTextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,YAAY,MAAM,gEAAgE,CAAC;AAC1F,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAyB/C,MAAM,CAAC,MAAM,gBAAgB,GAA+C,CAAC,EAC3E,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,UAAU,GAAG,KAAK,EACA,EAAE,EAAE,CAAC,CACvB,oBAAC,KAAK,CAAC,QAAQ;IACb,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe,IAAG,KAAK,CAAO;IAC3D,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe;QAC1C,oBAAC,SAAS,IACR,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EACtE,SAAS,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACxD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"EditableTextCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableTextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,YAAY,MAAM,gEAAgE,CAAC;AAC1F,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAyB/C,MAAM,CAAC,MAAM,gBAAgB,GAA+C,CAAC,EAC3E,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,UAAU,GAAG,KAAK,EACA,EAAE,EAAE,CAAC,CACvB,oBAAC,KAAK,CAAC,QAAQ;IACb,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe,IAAG,KAAK,CAAO;IAC3D,6BAAK,SAAS,EAAE,YAAY,CAAC,eAAe;QAC1C,oBAAC,SAAS,IACR,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EACtE,SAAS,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACxD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC5B,qBAAqB,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC9D,CAAC,gBACW,cAAc,GAC1B;QACF,6BAAK,SAAS,EAAE,GAAG,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,eAAY,QAAQ,IAC3F,KAAK,CAAC,SAAS,CACZ,CACF,CACS,CAClB,CAAC;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export interface IEditableSelectInputCell extends Omit<React.HTMLProps<HTMLEleme
|
|
|
9
9
|
/** Props to build the select component */
|
|
10
10
|
props: EditableSelectInputProps;
|
|
11
11
|
/** Event handler which fires when user selects an option in this cell */
|
|
12
|
-
onSelect: (
|
|
12
|
+
onSelect: (event: React.MouseEvent | React.ChangeEvent, newValue: string | SelectOptionObject, rowIndex: number, cellIndex: number, isPlaceholder?: boolean) => void;
|
|
13
13
|
/** Options to display in the expandable select menu */
|
|
14
14
|
options?: React.ReactElement[];
|
|
15
15
|
/** Flag indicating the select input is disabled */
|
|
@@ -21,7 +21,7 @@ export interface IEditableSelectInputCell extends Omit<React.HTMLProps<HTMLEleme
|
|
|
21
21
|
/** Event handler which fires when the select toggle is toggled */
|
|
22
22
|
onToggle?: (event: React.MouseEvent | React.ChangeEvent | React.KeyboardEvent | Event, isExpanded: boolean) => void;
|
|
23
23
|
/** Event handler which fires when the user clears the selections */
|
|
24
|
-
clearSelection?: (rowIndex: number, cellIndex: number
|
|
24
|
+
clearSelection?: (event: React.MouseEvent, rowIndex: number, cellIndex: number) => void;
|
|
25
25
|
}
|
|
26
26
|
export declare const EditableSelectInputCell: React.FunctionComponent<IEditableSelectInputCell>;
|
|
27
27
|
//# sourceMappingURL=EditableSelectInputCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableSelectInputCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,kBAAkB,EACnB,MAAM,8DAA8D,CAAC;AAGtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,cAAc,CAAC,EAAE,UAAU,CAAC;IAC/G,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,KAAK,EAAE,wBAAwB,CAAC;IAChC,yEAAyE;IACzE,QAAQ,EAAE,CACR,
|
|
1
|
+
{"version":3,"file":"EditableSelectInputCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/EditableS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EAAE,MAAM,KAAK,IAAI,CAAC;CACzF;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,iBAAiB,CAAC,wBAAwB,CAgDrF,CAAC"}
|
|
@@ -9,10 +9,10 @@ const inline_edit_1 = tslib_1.__importDefault(require("@patternfly/react-styles/
|
|
|
9
9
|
const form_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Form/form"));
|
|
10
10
|
const EditableSelectInputCell = ({ value, rowIndex, cellIndex, onSelect = () => { }, clearSelection, isOpen = false, onToggle = () => { }, selections = [''], options = [], props }) => {
|
|
11
11
|
const onSelectHandler = (event, newValue, isPlaceholder) => {
|
|
12
|
-
onSelect(
|
|
12
|
+
onSelect(event, newValue, rowIndex, cellIndex, isPlaceholder);
|
|
13
13
|
};
|
|
14
14
|
const onClear = (event) => {
|
|
15
|
-
clearSelection(rowIndex, cellIndex
|
|
15
|
+
clearSelection(event, rowIndex, cellIndex);
|
|
16
16
|
};
|
|
17
17
|
const select = (React.createElement(Select_1.Select, Object.assign({}, props.editableSelectProps, { onSelect: onSelectHandler }, (clearSelection && { onClear }), { isOpen: isOpen, onToggle: onToggle, selections: selections }), options));
|
|
18
18
|
return (React.createElement(React.Fragment, null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableSelectInputCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,wFAGsE;AACtE,yHAA0F;AAC1F,qGAA2E;AAgCpE,MAAM,uBAAuB,GAAsD,CAAC,EACzF,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,cAAc,EACd,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,UAAU,GAAG,CAAC,EAAE,CAAC,EACjB,OAAO,GAAG,EAA0B,EACpC,KAAK,EACoB,EAAE,EAAE;IAC7B,MAAM,eAAe,GAAG,CACtB,KAA2C,EAC3C,QAAqC,EACrC,aAAsB,EACtB,EAAE;QACF,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"EditableSelectInputCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableSelectInputCell.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2DAA+C;AAC/C,wFAGsE;AACtE,yHAA0F;AAC1F,qGAA2E;AAgCpE,MAAM,uBAAuB,GAAsD,CAAC,EACzF,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,cAAc,EACd,MAAM,GAAG,KAAK,EACd,QAAQ,GAAG,GAAG,EAAE,GAAE,CAAC,EACnB,UAAU,GAAG,CAAC,EAAE,CAAC,EACjB,OAAO,GAAG,EAA0B,EACpC,KAAK,EACoB,EAAE,EAAE;IAC7B,MAAM,eAAe,GAAG,CACtB,KAA2C,EAC3C,QAAqC,EACrC,aAAsB,EACtB,EAAE;QACF,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IAChE,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,CAAC,KAAuB,EAAE,EAAE;QAC1C,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CACb,oBAAC,eAAM,oBACD,KAAK,CAAC,mBAAmB,IAC7B,QAAQ,EAAE,eAAe,IACrB,CAAC,cAAc,IAAI,EAAE,OAAO,EAAE,CAAC,IACnC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,UAAU,KAErB,OAAO,CACD,CACV,CAAC;IAEF,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ;QACb,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe,IAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAO;QACrG,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe;YACzC,MAAM;YACP,6BAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,cAAU,CAAC,cAAc,EAAE,cAAU,CAAC,SAAS,CAAC,KAAK,CAAC,eAAY,QAAQ,IAC3F,KAAK,CAAC,SAAS,CACZ,CACF,CACS,CAClB,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,uBAAuB,2BAgDlC;AACF,+BAAuB,CAAC,WAAW,GAAG,yBAAyB,CAAC"}
|
|
@@ -10,7 +10,7 @@ const react_styles_1 = require("@patternfly/react-styles");
|
|
|
10
10
|
const EditableTextCell = ({ value, rowIndex, cellIndex, props, handleTextInputChange, inputAriaLabel, isDisabled = false }) => (React.createElement(React.Fragment, null,
|
|
11
11
|
React.createElement("div", { className: inline_edit_1.default.inlineEditValue }, value),
|
|
12
12
|
React.createElement("div", { className: inline_edit_1.default.inlineEditInput },
|
|
13
|
-
React.createElement(TextInput_1.TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (
|
|
13
|
+
React.createElement(TextInput_1.TextInput, { isDisabled: isDisabled, value: props.editableValue !== undefined ? props.editableValue : value, validated: props.isValid !== false ? 'default' : 'error', type: "text", onChange: (event, newValue) => {
|
|
14
14
|
handleTextInputChange(newValue, event, rowIndex, cellIndex);
|
|
15
15
|
}, "aria-label": inputAriaLabel }),
|
|
16
16
|
React.createElement("div", { className: (0, react_styles_1.css)(form_1.default.formHelperText, form_1.default.modifiers.error), "aria-live": "polite" }, props.errorText))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditableTextCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableTextCell.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,mFAAiF;AACjF,yHAA0F;AAC1F,qGAA2E;AAC3E,2DAA+C;AAyBxC,MAAM,gBAAgB,GAA+C,CAAC,EAC3E,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,UAAU,GAAG,KAAK,EACA,EAAE,EAAE,CAAC,CACvB,oBAAC,KAAK,CAAC,QAAQ;IACb,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe,IAAG,KAAK,CAAO;IAC3D,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe;QAC1C,oBAAC,qBAAS,IACR,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EACtE,SAAS,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACxD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"EditableTextCell.js","sourceRoot":"","sources":["../../../../src/components/Table/EditableTextCell.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,mFAAiF;AACjF,yHAA0F;AAC1F,qGAA2E;AAC3E,2DAA+C;AAyBxC,MAAM,gBAAgB,GAA+C,CAAC,EAC3E,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,qBAAqB,EACrB,cAAc,EACd,UAAU,GAAG,KAAK,EACA,EAAE,EAAE,CAAC,CACvB,oBAAC,KAAK,CAAC,QAAQ;IACb,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe,IAAG,KAAK,CAAO;IAC3D,6BAAK,SAAS,EAAE,qBAAY,CAAC,eAAe;QAC1C,oBAAC,qBAAS,IACR,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,EACtE,SAAS,EAAE,KAAK,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACxD,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;gBAC5B,qBAAqB,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC9D,CAAC,gBACW,cAAc,GAC1B;QACF,6BAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,cAAU,CAAC,cAAc,EAAE,cAAU,CAAC,SAAS,CAAC,KAAK,CAAC,eAAY,QAAQ,IAC3F,KAAK,CAAC,SAAS,CACZ,CACF,CACS,CAClB,CAAC;AA3BW,QAAA,gBAAgB,oBA2B3B;AACF,wBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-cjs","main":"index.js","module":"./dist/js/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-table-cjs","main":"index.js","module":"./dist/js/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-decorators-cjs","main":"index.js","module":"./dist/js/components/Table/utils/decorators/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-decorators-cjs","main":"index.js","module":"./dist/js/components/Table/utils/decorators/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-utils-cjs","main":"index.js","module":"./dist/js/components/Table/utils/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-utils-cjs","main":"index.js","module":"./dist/js/components/Table/utils/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-cjs","main":"index.js","module":"./dist/js/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-cjs","main":"index.js","module":"./dist/js/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-base-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/base/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-base-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/base/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-table-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-components-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-deprecated-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|
package/dist/js/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-js-cjs","main":"index.js","module":"./dist/js/index.js","typings":"index.d.ts","version":"5.0.0-alpha.
|
|
1
|
+
{"name":"@patternfly/react-table-js-cjs","main":"index.js","module":"./dist/js/index.js","typings":"index.d.ts","version":"5.0.0-alpha.95"}
|