pixel-react 1.21.26 → 1.21.28
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/lib/components/AudioPlayer/AudioPlayer.d.ts +5 -0
- package/lib/components/AudioPlayer/AudioPlayer.js +129 -0
- package/lib/components/AudioPlayer/AudioPlayer.js.map +1 -0
- package/lib/components/AudioPlayer/index.d.ts +2 -0
- package/lib/components/AudioPlayer/index.js +3 -0
- package/lib/components/AudioPlayer/index.js.map +1 -0
- package/lib/components/AudioPlayer/types.d.ts +67 -0
- package/lib/components/AudioPlayer/types.js +2 -0
- package/lib/components/AudioPlayer/types.js.map +1 -0
- package/lib/components/Audioplayercontainer/Audioplayercontainer.d.ts +3 -0
- package/lib/components/Audioplayercontainer/Audioplayercontainer.js +68 -0
- package/lib/components/Audioplayercontainer/Audioplayercontainer.js.map +1 -0
- package/lib/components/Charts/BarChart/BarChart.js +32 -29
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Icon/iconList.js +10 -0
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/MenuOption/MenuOption.js +3 -1
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/MenuOption/types.d.ts +2 -0
- package/lib/components/NLPInput/NlpInput.d.ts +1 -1
- package/lib/components/NLPInput/NlpInput.js +3 -3
- package/lib/components/NLPInput/NlpInput.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +2 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.js.map +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +1 -1
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js +8 -5
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.js.map +1 -1
- package/lib/components/NLPInput/types.d.ts +2 -0
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js +2 -2
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.js.map +1 -1
- package/lib/components/SequentialConnectingBranch/types.d.ts +1 -0
- package/lib/components/Table/EditComponent.js +6 -6
- package/lib/components/Table/EditComponent.js.map +1 -1
- package/lib/components/Table/NoDataContent.js +1 -1
- package/lib/components/Table/NoDataContent.js.map +1 -1
- package/lib/components/Table/Table.js +78 -156
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Table/Types.d.ts +6 -11
- package/lib/components/Table/components/SortableRow.d.ts +1 -1
- package/lib/components/Table/components/SortableRow.js +69 -60
- package/lib/components/Table/components/SortableRow.js.map +1 -1
- package/lib/components/Table/components/TableHeader.js +15 -20
- package/lib/components/Table/components/TableHeader.js.map +1 -1
- package/lib/components/Table/components/VirtualizedRows.d.ts +1 -1
- package/lib/components/Table/components/VirtualizedRows.js +17 -32
- package/lib/components/Table/components/VirtualizedRows.js.map +1 -1
- package/lib/components/Table/utils/virtualization.d.ts +3 -10
- package/lib/components/Table/utils/virtualization.js +13 -40
- package/lib/components/Table/utils/virtualization.js.map +1 -1
- package/lib/components/TableWithAccordion/TableWithAccordion.js +13 -38
- package/lib/components/TableWithAccordion/TableWithAccordion.js.map +1 -1
- package/lib/components/TableWithAccordion/types.d.ts +2 -2
- package/lib/components/Weightagetable/Weightagetable.d.ts +5 -0
- package/lib/components/Weightagetable/Weightagetable.js +41 -0
- package/lib/components/Weightagetable/Weightagetable.js.map +1 -0
- package/lib/components/Weightagetable/index.d.ts +2 -0
- package/lib/components/Weightagetable/index.js +3 -0
- package/lib/components/Weightagetable/index.js.map +1 -0
- package/lib/components/Weightagetable/types.d.ts +112 -0
- package/lib/components/Weightagetable/types.js +2 -0
- package/lib/components/Weightagetable/types.js.map +1 -0
- package/lib/index.d.ts +10 -7
- package/lib/index.js +9 -9
- package/lib/styles.css +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/TreeNavigateUtils/getNavigateToKey.d.ts +1 -1
- package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.d.ts +1 -1
- package/lib/utils/getTreeDetails/getTreeDetails.d.ts +1 -1
- package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.d.ts +1 -1
- package/lib/utils/handleTreeNodeExpandCollapse/handleTreeNodeExpandCollapse.d.ts +1 -1
- package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.d.ts +1 -1
- package/lib/utils/toggleShowHideEntity/toggleShowHideEntity.d.ts +1 -1
- package/package.json +2 -2
- package/lib/components/Table/utils/TableCell.d.ts +0 -2
- package/lib/components/Table/utils/TableCell.js +0 -27
- package/lib/components/Table/utils/TableCell.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './WeightageTable.scss';
|
|
3
|
+
import Icon from '../Icon';
|
|
4
|
+
import Input from '../Input';
|
|
5
|
+
import Typography from '../Typography';
|
|
6
|
+
import AutoTruncateText from '../AutoTruncateText';
|
|
7
|
+
const WeightageTable = ({ title = 'Success Criteria Weightage', totalWeightage, maxWeightage = 100, principleColumnLabel = 'Principle', guidelinesColumnLabel = 'Guidelines', weightageColumnLabel = 'Weightage in %', groups = [], onWeightageChange = () => { }, onReset = () => { }, showResetIcon = true, disabled = false, minValue = -Infinity, maxValue = Infinity, className = '', }) => {
|
|
8
|
+
const computedTotal = totalWeightage ??
|
|
9
|
+
groups.reduce((sum, group) => sum +
|
|
10
|
+
group.guidelines.reduce((rowSum, row) => rowSum + (row.value || 0), 0), 0);
|
|
11
|
+
const handleRowChange = (groupIndex, rowIndex, row, rowMin, rowMax, event) => {
|
|
12
|
+
const rawValue = event.target.value;
|
|
13
|
+
const numericValue = rawValue === '' ? 0 : Number(rawValue);
|
|
14
|
+
let error = false;
|
|
15
|
+
let helperText = '';
|
|
16
|
+
if (numericValue < rowMin || numericValue > rowMax) {
|
|
17
|
+
error = true;
|
|
18
|
+
helperText = `Value must be between ${rowMin} and ${rowMax}`;
|
|
19
|
+
}
|
|
20
|
+
onWeightageChange(groupIndex, rowIndex, {
|
|
21
|
+
...row,
|
|
22
|
+
value: numericValue,
|
|
23
|
+
error,
|
|
24
|
+
helperText,
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return (_jsxs("div", { className: `ff-weightage-table ${className}`, children: [_jsxs("div", { className: "ff-weightage-head", children: [_jsx(Typography, { fontWeight: "semi-bold", children: _jsx(AutoTruncateText, { children: title }) }), _jsxs("span", { className: "ff-weightage-total", children: [_jsx(Typography, { fontWeight: "semi-bold", children: _jsxs(AutoTruncateText, { children: ["Total Weightage : ", computedTotal, "/", maxWeightage] }) }), showResetIcon && (_jsx(Icon, { name: "reset_default_value", onClick: onReset, cursorType: "pointer" }))] })] }), _jsxs("div", { className: "ff-weightage-grid", children: [_jsxs("div", { className: "ff-weightage-row ff-weightage-row-head", children: [_jsx("div", { className: "ff-weightage-principle", children: _jsx(Typography, { fontWeight: "semi-bold", children: _jsx(AutoTruncateText, { children: principleColumnLabel }) }) }), _jsx("div", { className: "ff-weightage-guideline", children: _jsx(Typography, { fontWeight: "semi-bold", children: _jsx(AutoTruncateText, { children: guidelinesColumnLabel }) }) }), _jsx("div", { className: "ff-weightage-value", children: _jsx(Typography, { fontWeight: "semi-bold", children: _jsx(AutoTruncateText, { children: weightageColumnLabel }) }) })] }), groups.map((group, groupIndex) => {
|
|
28
|
+
const groupKey = group.key ?? group.principle;
|
|
29
|
+
return (_jsx("div", { className: "ff-weightage-group", children: group.guidelines.map((row, rowIndex) => {
|
|
30
|
+
const rowKey = row.key ?? `${groupKey}-${row.label}`;
|
|
31
|
+
const rowMin = row.minValue ?? minValue;
|
|
32
|
+
const rowMax = row.maxValue ?? maxValue;
|
|
33
|
+
return (_jsxs("div", { className: "ff-weightage-row", children: [rowIndex === 0 && (_jsx("div", { className: "ff-weightage-principle", style: { gridRow: `span ${group.guidelines.length}` }, children: _jsx(Typography, { fontWeight: "medium", children: _jsx(AutoTruncateText, { children: group.principle }) }) })), _jsx("div", { className: "ff-weightage-guideline", children: _jsx(Typography, { children: _jsx(AutoTruncateText, { className: "auto-truncate", children: row.label }) }) }), _jsx("div", { className: "ff-weightage-value", children: _jsx("div", { className: "ff-weightage-input", children: _jsx(Input, { type: "number", name: rowKey, value: row.value, minValue: rowMin, maxValue: rowMax, disabled: disabled || row.disabled, error: row.error, helperText: row.helperText, variant: "primary", isLabelRequired: false, size: "small", onChange: (event) => handleRowChange(groupIndex, rowIndex, row, rowMin, rowMax, event), setUpdatedNumberValue: (value) => onWeightageChange(groupIndex, rowIndex, {
|
|
34
|
+
...row,
|
|
35
|
+
value,
|
|
36
|
+
}) }) }) })] }, rowKey));
|
|
37
|
+
}) }, groupKey));
|
|
38
|
+
})] })] }));
|
|
39
|
+
};
|
|
40
|
+
export default WeightageTable;
|
|
41
|
+
//# sourceMappingURL=Weightagetable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Weightagetable.js","sourceRoot":"","sources":["../../../src/components/Weightagetable/Weightagetable.tsx"],"names":[],"mappings":";AAEA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,KAAK,MAAM,UAAU,CAAC;AAC7B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,MAAM,cAAc,GAAkC,CAAC,EACrD,KAAK,GAAG,4BAA4B,EACpC,cAAc,EACd,YAAY,GAAG,GAAG,EAClB,oBAAoB,GAAG,WAAW,EAClC,qBAAqB,GAAG,YAAY,EACpC,oBAAoB,GAAG,gBAAgB,EACvC,MAAM,GAAG,EAAE,EACX,iBAAiB,GAAG,GAAG,EAAE,GAAE,CAAC,EAC5B,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,aAAa,GAAG,IAAI,EACpB,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,CAAC,QAAQ,EACpB,QAAQ,GA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0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Weightagetable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface WeightageRow {
|
|
3
|
+
/**
|
|
4
|
+
* Label for the guideline row, e.g. "1.1 - Text alternative"
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Weightage value in % for this row
|
|
9
|
+
*/
|
|
10
|
+
value: number;
|
|
11
|
+
/**
|
|
12
|
+
* Unique key for the row, falls back to label if not provided
|
|
13
|
+
*/
|
|
14
|
+
key?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Disable the input for this row
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum allowed value for this row's input (passed to Input's minValue)
|
|
21
|
+
*/
|
|
22
|
+
minValue?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum allowed value for this row's input (passed to Input's maxValue)
|
|
25
|
+
*/
|
|
26
|
+
maxValue?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Error state for this row's input, controlled internally unless passed in
|
|
29
|
+
*/
|
|
30
|
+
error?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Helper text for this row's input, controlled internally unless passed in
|
|
33
|
+
*/
|
|
34
|
+
helperText?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface WeightageGroup {
|
|
37
|
+
/**
|
|
38
|
+
* Principle / group label, e.g. "1. Perceivable"
|
|
39
|
+
*/
|
|
40
|
+
principle: string;
|
|
41
|
+
/**
|
|
42
|
+
* Unique key for the group, falls back to principle if not provided
|
|
43
|
+
*/
|
|
44
|
+
key?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Guideline rows belonging to this principle
|
|
47
|
+
*/
|
|
48
|
+
guidelines: WeightageRow[];
|
|
49
|
+
}
|
|
50
|
+
export interface WeightageTableProps {
|
|
51
|
+
/**
|
|
52
|
+
* Title shown on the left side of the header bar
|
|
53
|
+
*/
|
|
54
|
+
title?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Total weightage value shown on the right side of the header bar, e.g. 100.
|
|
57
|
+
* If not passed, it is auto-computed as the sum of all row values.
|
|
58
|
+
*/
|
|
59
|
+
totalWeightage?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Max possible weightage, used to render "total/max", e.g. 100
|
|
62
|
+
*/
|
|
63
|
+
maxWeightage?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Column heading for the principle column
|
|
66
|
+
*/
|
|
67
|
+
principleColumnLabel?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Column heading for the guidelines column
|
|
70
|
+
*/
|
|
71
|
+
guidelinesColumnLabel?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Column heading for the weightage column
|
|
74
|
+
*/
|
|
75
|
+
weightageColumnLabel?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Data for the table body, grouped by principle. This component is controlled —
|
|
78
|
+
* the parent owns this array and updates it inside onWeightageChange.
|
|
79
|
+
*/
|
|
80
|
+
groups: WeightageGroup[];
|
|
81
|
+
/**
|
|
82
|
+
* Called whenever a single row's value changes. Only that row's data is passed back —
|
|
83
|
+
* use groupIndex/rowIndex to update just that one row in your state.
|
|
84
|
+
*/
|
|
85
|
+
onWeightageChange?: (groupIndex: number, rowIndex: number, updatedRow: WeightageRow) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Called when the refresh/reset icon in the header is clicked
|
|
88
|
+
*/
|
|
89
|
+
onReset?: () => void;
|
|
90
|
+
/**
|
|
91
|
+
* Show or hide the refresh/reset icon in the header
|
|
92
|
+
*/
|
|
93
|
+
showResetIcon?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Makes all weightage inputs disabled/read-only
|
|
96
|
+
*/
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Default minValue applied to every row's Input unless the row overrides it
|
|
100
|
+
*/
|
|
101
|
+
minValue?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Default maxValue applied to every row's Input unless the row overrides it
|
|
104
|
+
*/
|
|
105
|
+
maxValue?: number;
|
|
106
|
+
/**
|
|
107
|
+
* To add styles in WeightageTable
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
style?: React.CSSProperties;
|
|
111
|
+
[key: string]: any;
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/Weightagetable/types.ts"],"names":[],"mappings":""}
|
package/lib/index.d.ts
CHANGED
|
@@ -1223,6 +1223,7 @@ interface OptionClick {
|
|
|
1223
1223
|
* @required
|
|
1224
1224
|
*/
|
|
1225
1225
|
value: any;
|
|
1226
|
+
keepMenuOpen?: boolean;
|
|
1226
1227
|
}
|
|
1227
1228
|
interface OptionType extends OptionClick {
|
|
1228
1229
|
/**
|
|
@@ -1232,6 +1233,7 @@ interface OptionType extends OptionClick {
|
|
|
1232
1233
|
*/
|
|
1233
1234
|
icon?: string | ReactNode;
|
|
1234
1235
|
iconColor?: string;
|
|
1236
|
+
keepMenuOpen?: boolean;
|
|
1235
1237
|
name?: string | ReactNode;
|
|
1236
1238
|
/**
|
|
1237
1239
|
* Indicates whether the option is disabled.
|
|
@@ -1367,7 +1369,6 @@ interface SelectedItemProps$1 {
|
|
|
1367
1369
|
*/
|
|
1368
1370
|
[key: string]: string | number | boolean;
|
|
1369
1371
|
}
|
|
1370
|
-
type TableRef = LegacyRef<HTMLTableSectionElement> | React__default.RefObject<HTMLTableSectionElement> | LegacyRef<HTMLDivElement> | React__default.RefObject<HTMLDivElement> | null;
|
|
1371
1372
|
interface TableProps$2 {
|
|
1372
1373
|
/**
|
|
1373
1374
|
* Data for table
|
|
@@ -1477,7 +1478,7 @@ interface TableProps$2 {
|
|
|
1477
1478
|
/**
|
|
1478
1479
|
* enable editMode by setting state row id
|
|
1479
1480
|
*/
|
|
1480
|
-
editMode?: string |
|
|
1481
|
+
editMode?: string | null;
|
|
1481
1482
|
/**
|
|
1482
1483
|
* The content that to be displayed if editComponent
|
|
1483
1484
|
*/
|
|
@@ -1485,7 +1486,7 @@ interface TableProps$2 {
|
|
|
1485
1486
|
/**
|
|
1486
1487
|
* tableRef to get the scroll position & to pass control of table to parent component
|
|
1487
1488
|
*/
|
|
1488
|
-
tableRef?:
|
|
1489
|
+
tableRef?: LegacyRef<HTMLTableSectionElement> | React__default.RefObject<HTMLTableSectionElement> | null;
|
|
1489
1490
|
/**
|
|
1490
1491
|
* Explicitly handling the checkbox disability for the row.
|
|
1491
1492
|
*/
|
|
@@ -1502,10 +1503,9 @@ interface TableProps$2 {
|
|
|
1502
1503
|
displayCard?: boolean;
|
|
1503
1504
|
selectedNode?: {
|
|
1504
1505
|
key: string;
|
|
1505
|
-
selected: string
|
|
1506
|
+
selected: string;
|
|
1506
1507
|
};
|
|
1507
1508
|
uniqueRowIdForAccordion?: string | number;
|
|
1508
|
-
openAccordionId?: string | number | null;
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
declare const Table: React$1.ForwardRefExoticComponent<TableProps$2 & React$1.RefAttributes<any>>;
|
|
@@ -3034,6 +3034,7 @@ interface SelectProps {
|
|
|
3034
3034
|
showLabel?: boolean;
|
|
3035
3035
|
onHelpIconClick?: () => void;
|
|
3036
3036
|
webServiceClick?: () => void;
|
|
3037
|
+
accessibilityClick?: () => void;
|
|
3037
3038
|
aiIconClick?: () => void;
|
|
3038
3039
|
rightIconColor: string;
|
|
3039
3040
|
optionsList: any[];
|
|
@@ -3053,6 +3054,7 @@ interface SelectProps {
|
|
|
3053
3054
|
selectedChips?: any;
|
|
3054
3055
|
loadMoreOptions?: () => void;
|
|
3055
3056
|
isWebservice?: boolean;
|
|
3057
|
+
isAccessibility?: boolean;
|
|
3056
3058
|
closeInputOnOutsideClick?: () => void;
|
|
3057
3059
|
tooltipText?: string;
|
|
3058
3060
|
ChipsAccordionWidth?: string;
|
|
@@ -3069,7 +3071,7 @@ interface NlpRenderOption {
|
|
|
3069
3071
|
name?: string;
|
|
3070
3072
|
}
|
|
3071
3073
|
|
|
3072
|
-
declare const NlpInput: ({ label, leftIcon, rightIcon, rightIconColor, showLabel, onHelpIconClick, aiIconClick, webServiceClick, containerWidth, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, value, onSelect, chipOptionList, selectedChips, loadMoreOptions, isWebservice, closeInputOnOutsideClick, tooltipText, ChipsAccordionWidth, dropDownMessage, }: SelectProps) => React$1.JSX.Element;
|
|
3074
|
+
declare const NlpInput: ({ label, leftIcon, rightIcon, rightIconColor, showLabel, onHelpIconClick, aiIconClick, webServiceClick, accessibilityClick, containerWidth, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, value, onSelect, chipOptionList, selectedChips, loadMoreOptions, isWebservice, isAccessibility, closeInputOnOutsideClick, tooltipText, ChipsAccordionWidth, dropDownMessage, }: SelectProps) => React$1.JSX.Element;
|
|
3073
3075
|
|
|
3074
3076
|
interface IconRadioItem {
|
|
3075
3077
|
/**
|
|
@@ -3168,6 +3170,7 @@ interface SequentialConnectingBranchProps {
|
|
|
3168
3170
|
maxRunCount?: number;
|
|
3169
3171
|
environmentVariableMaps?: EnvironmentVariableMaps;
|
|
3170
3172
|
isRequired?: boolean;
|
|
3173
|
+
showIcon?: boolean;
|
|
3171
3174
|
}
|
|
3172
3175
|
interface IntegrationInstance {
|
|
3173
3176
|
usename: string;
|
|
@@ -3843,7 +3846,7 @@ interface ColumnProps$1 {
|
|
|
3843
3846
|
/**
|
|
3844
3847
|
* width of a column
|
|
3845
3848
|
*/
|
|
3846
|
-
width?:
|
|
3849
|
+
width?: number;
|
|
3847
3850
|
/**
|
|
3848
3851
|
* data for the column
|
|
3849
3852
|
*/
|