@geneui/components 3.0.0-next-9ffcb93-16102024 → 3.0.0-next-48d0ef7-31102024
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/Avatar.js +63 -0
- package/CHANGELOG.md +7 -0
- package/Divider.js +23 -0
- package/{GeneUIProvider/index.js → GeneUIProvider.js} +52 -65
- package/HelperText.js +69 -0
- package/Info.js +64 -0
- package/Label.js +38 -0
- package/Loader.js +21 -0
- package/Pill.js +64 -0
- package/TextLink.js +20 -0
- package/{index-65217440.js → Tooltip.js} +104 -80
- package/{lib → components}/atoms/Avatar/Avatar.d.ts +7 -6
- package/components/atoms/Avatar/index.d.ts +1 -0
- package/{lib → components}/atoms/Divider/Divider.d.ts +5 -5
- package/components/atoms/Divider/index.d.ts +1 -0
- package/{lib → components}/atoms/HelperText/HelperText.d.ts +6 -5
- package/components/atoms/HelperText/index.d.ts +1 -0
- package/{lib → components}/atoms/Info/Info.d.ts +5 -5
- package/components/atoms/Info/index.d.ts +1 -0
- package/{lib → components}/atoms/Label/Label.d.ts +3 -3
- package/components/atoms/Label/index.d.ts +1 -0
- package/{lib → components}/atoms/Loader/Loader.d.ts +5 -5
- package/components/atoms/Loader/index.d.ts +1 -0
- package/{lib → components}/atoms/Pill/Pill.d.ts +7 -6
- package/components/atoms/Pill/index.d.ts +1 -0
- package/{lib → components}/atoms/TextLink/TextLink.d.ts +5 -5
- package/components/atoms/TextLink/index.d.ts +1 -0
- package/{lib → components}/molecules/Tooltip/Tooltip.d.ts +26 -21
- package/components/molecules/Tooltip/index.d.ts +1 -0
- package/components/providers/GeneUIProvider/GeneUIProvider.d.ts +30 -0
- package/components/providers/GeneUIProvider/index.d.ts +1 -0
- package/hooks/index.d.ts +2 -20
- package/hooks/useDebounceCallback/index.d.ts +1 -0
- package/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/hooks/useEllipsisDetection/index.d.ts +1 -1
- package/hooks/useEllipsisDetection/useEllipsisDetection.d.ts +2 -2
- package/{index-031ff73c.js → index-ce02421b.js} +4 -4
- package/index.d.ts +11 -121
- package/index.js +12 -159
- package/package.json +24 -43
- package/tokens-0abb4e1b.js +6 -0
- package/types/index.d.ts +0 -3
- package/useEllipsisDetection-46d712b6.js +34 -0
- package/ActionableList/index.js +0 -1694
- package/AdvancedSearch/index.js +0 -892
- package/Alert/index.js +0 -98
- package/Avatar/index.js +0 -58
- package/Badge/index.js +0 -29
- package/Breadcrumb/index.js +0 -130
- package/BusyLoader/index.js +0 -31
- package/Button/index.js +0 -30
- package/Card/index.js +0 -502
- package/CardList/index.js +0 -662
- package/CellMeasurerCache-80be385d.js +0 -229
- package/Charts/index.js +0 -17662
- package/Checkbox/index.js +0 -229
- package/CheckboxGroup/index.js +0 -203
- package/CheckboxGroupWithSearch/index.js +0 -280
- package/Collapse/index.js +0 -195
- package/ColorPicker/index.js +0 -210
- package/ComboBox/index.js +0 -524
- package/Copy/index.js +0 -56
- package/Counter/index.js +0 -312
- package/DateFilter/index.js +0 -183
- package/DatePicker/index.js +0 -1229
- package/DatePickerInput/index.js +0 -883
- package/Divider/index.js +0 -23
- package/Drawer/index.js +0 -261
- package/Dropdown/index.js +0 -43
- package/Editor/index.js +0 -22975
- package/Empty/index.js +0 -76
- package/ExtendedInput/index.js +0 -590
- package/Form/index.js +0 -85
- package/FormContainer/index.js +0 -189
- package/FormableCheckbox/index.js +0 -24
- package/FormableDatePicker/index.js +0 -43
- package/FormableDropdown/index.js +0 -50
- package/FormableEditor/index.js +0 -26
- package/FormableHOC-85f89a81.js +0 -83
- package/FormableMultiSelectDropdown/index.js +0 -50
- package/FormableNumberInput/index.js +0 -34
- package/FormableRadio/index.js +0 -22
- package/FormableSwitcher/index.js +0 -22
- package/FormableTextInput/index.js +0 -34
- package/FormableUploader/index.js +0 -44
- package/Grid/index.js +0 -167
- package/HelperText/index.js +0 -86
- package/Holder/index.js +0 -261
- package/Icon/index.js +0 -62
- package/Image/index.js +0 -45
- package/ImagePreview/index.js +0 -217
- package/Info/index.js +0 -41
- package/InfoOutline-dd2e89d9.js +0 -29
- package/InteractiveWidget/index.js +0 -78
- package/KeyValue/index.js +0 -22
- package/Label/index.js +0 -48
- package/LinkButton/index.js +0 -34
- package/Loader/index.js +0 -23
- package/Menu/index.js +0 -281
- package/MobileNavigation/index.js +0 -94
- package/MobilePopup/index.js +0 -182
- package/Modal/index.js +0 -251
- package/ModuleTitle/index.js +0 -141
- package/NavigationMenu/index.js +0 -222
- package/Notification/index.js +0 -120
- package/Option/index.js +0 -184
- package/Overlay/index.js +0 -187
- package/Overspread/index.js +0 -291
- package/Pagination/index.js +0 -261
- package/Paper/index.js +0 -96
- package/Pill/index.js +0 -67
- package/Popover/index.js +0 -725
- package/PopoverV2/index.js +0 -19
- package/Portal/index.js +0 -58
- package/Products/index.js +0 -115
- package/Profile/index.js +0 -589
- package/Progress/index.js +0 -200
- package/QRCode/index.js +0 -814
- package/Radio/index.js +0 -151
- package/RadioGroup/index.js +0 -104
- package/Range/index.js +0 -191
- package/Rating/index.js +0 -174
- package/RichEditor/index.js +0 -13
- package/RichEditor-78c2617e.js +0 -228
- package/Scrollbar/index.js +0 -1585
- package/Search/index.js +0 -75
- package/SearchWithDropdown/index.js +0 -140
- package/Section/index.js +0 -61
- package/SkeletonLoader/index.js +0 -81
- package/Slider/index.js +0 -261
- package/Status/index.js +0 -97
- package/Steps/index.js +0 -314
- package/SuggestionList/index.js +0 -385
- package/Switcher/index.js +0 -193
- package/Table/index.js +0 -57
- package/TableCompositions/index.js +0 -16995
- package/Tabs/index.js +0 -235
- package/Tag/index.js +0 -102
- package/TextLink/index.js +0 -20
- package/Textarea/index.js +0 -242
- package/Time/index.js +0 -62
- package/TimePicker/index.js +0 -575
- package/Timeline/index.js +0 -113
- package/Title/index.js +0 -65
- package/Toaster/index.js +0 -116
- package/Tooltip/index.js +0 -6
- package/TransferList/index.js +0 -493
- package/Uploader/index.js +0 -992
- package/ValidatableCheckbox/index.js +0 -123
- package/ValidatableDatePicker/index.js +0 -316
- package/ValidatableDropdown/index.js +0 -141
- package/ValidatableElements/index.js +0 -67
- package/ValidatableMultiSelectDropdown/index.js +0 -152
- package/ValidatableNumberInput/index.js +0 -204
- package/ValidatableRadio/index.js +0 -116
- package/ValidatableSwitcher/index.js +0 -93
- package/ValidatableTextInput/index.js +0 -167
- package/ValidatableTimeInput/index.js +0 -174
- package/ValidatableUploader/index.js +0 -98
- package/Widget/index.js +0 -225
- package/_commonjsHelpers-24198af3.js +0 -35
- package/_rollupPluginBabelHelpers-a83240e1.js +0 -11
- package/callAfterDelay-7272faca.js +0 -12
- package/checkTimeValidation-e56771be.js +0 -16
- package/checkboxRadioSwitcher-5b69d7bd.js +0 -4
- package/clsx.m-2bb6df4b.js +0 -3
- package/config-1053d64d.js +0 -20
- package/configs-00612ce0.js +0 -103
- package/configs.js +0 -111
- package/dateValidation-67caec66.js +0 -225
- package/debounce-4419bc2f.js +0 -17
- package/guid-8ddf77b3.js +0 -16
- package/hooks/useBodyScroll.js +0 -16
- package/hooks/useClick.js +0 -18
- package/hooks/useClickOutside.js +0 -25
- package/hooks/useDebounce.js +0 -28
- package/hooks/useDeviceType.js +0 -17
- package/hooks/useDidMount.js +0 -15
- package/hooks/useForceUpdate.js +0 -8
- package/hooks/useHover.js +0 -20
- package/hooks/useImgDownload.js +0 -18
- package/hooks/useKeyDown.js +0 -21
- package/hooks/useMount.js +0 -13
- package/hooks/useMutationObserver.js +0 -21
- package/hooks/usePrevious.js +0 -10
- package/hooks/useThrottle.js +0 -16
- package/hooks/useToggle.js +0 -11
- package/hooks/useUpdatableRef.js +0 -14
- package/hooks/useUpdate.js +0 -10
- package/hooks/useWidth.js +0 -16
- package/hooks/useWindowSize.js +0 -40
- package/index-122432cd.js +0 -270
- package/index-262edd7a.js +0 -77
- package/index-2f5aa51e.js +0 -6483
- package/index-370f9acd.js +0 -4
- package/index-45eafea6.js +0 -90
- package/index-480fd7d9.js +0 -10032
- package/index-5f37f281.js +0 -168
- package/index-73aaa093.js +0 -1940
- package/index.mobile.d.ts +0 -14
- package/lib/atoms/Avatar/index.d.ts +0 -1
- package/lib/atoms/Badge/Badge.d.ts +0 -36
- package/lib/atoms/Badge/index.d.ts +0 -1
- package/lib/atoms/BusyLoader/BusyLoader.d.ts +0 -32
- package/lib/atoms/BusyLoader/BusyLoaderHolderHOC.d.ts +0 -8
- package/lib/atoms/BusyLoader/index.d.ts +0 -1
- package/lib/atoms/Button/Button.d.ts +0 -70
- package/lib/atoms/Button/index.d.ts +0 -1
- package/lib/atoms/Divider/index.d.ts +0 -1
- package/lib/atoms/Empty/Empty.d.ts +0 -39
- package/lib/atoms/Empty/index.d.ts +0 -1
- package/lib/atoms/Empty/utils.d.ts +0 -9
- package/lib/atoms/HelperText/index.d.ts +0 -1
- package/lib/atoms/Image/Image.d.ts +0 -51
- package/lib/atoms/Image/index.d.ts +0 -1
- package/lib/atoms/ImagePreview/ImagePreview.d.ts +0 -56
- package/lib/atoms/ImagePreview/ImagePreviewHOC.d.ts +0 -4
- package/lib/atoms/ImagePreview/Magnifier.d.ts +0 -40
- package/lib/atoms/ImagePreview/index.d.ts +0 -1
- package/lib/atoms/Info/index.d.ts +0 -1
- package/lib/atoms/KeyValue/KeyValue.d.ts +0 -29
- package/lib/atoms/KeyValue/index.d.ts +0 -1
- package/lib/atoms/Label/index.d.ts +0 -1
- package/lib/atoms/LinkButton/LinkButton.d.ts +0 -46
- package/lib/atoms/LinkButton/index.d.ts +0 -1
- package/lib/atoms/Loader/index.d.ts +0 -1
- package/lib/atoms/Pill/index.d.ts +0 -1
- package/lib/atoms/Rating/DefaultSvg.d.ts +0 -3
- package/lib/atoms/Rating/Rating.d.ts +0 -49
- package/lib/atoms/Rating/index.d.ts +0 -1
- package/lib/atoms/TextLink/index.d.ts +0 -1
- package/lib/molecules/Copy/Copy.d.ts +0 -38
- package/lib/molecules/Copy/index.d.ts +0 -1
- package/lib/molecules/InteractiveWidget/InteractiveWidget.d.ts +0 -70
- package/lib/molecules/InteractiveWidget/InteractiveWidgetIcon.d.ts +0 -8
- package/lib/molecules/InteractiveWidget/index.d.ts +0 -1
- package/lib/molecules/Tooltip/index.d.ts +0 -1
- package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +0 -30
- package/lib/providers/GeneUIProvider/index.d.ts +0 -1
- package/localization-4ba17032.js +0 -46
- package/objectWithoutPropertiesLoose-e1596bdb.js +0 -62
- package/rangeAndSlider-693a3d41.js +0 -8684
- package/react-beautiful-dnd.esm-b637016a.js +0 -10116
- package/react-lifecycles-compat.es-6e1f3768.js +0 -158
- package/redux-e591c1b8.js +0 -536
- package/tokens-8ab1179c.js +0 -6
- package/tslib.es6-f211516f.js +0 -35
- package/useEllipsisDetection-c1c9ad94.js +0 -38
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { _ as _createClass, a as _classCallCheck } from './index-480fd7d9.js';
|
|
2
|
-
import { _ as _defineProperty } from './objectWithoutPropertiesLoose-e1596bdb.js';
|
|
3
|
-
|
|
4
|
-
var DEFAULT_HEIGHT = 30;
|
|
5
|
-
var DEFAULT_WIDTH = 100; // Enables more intelligent mapping of a given column and row index to an item ID.
|
|
6
|
-
// This prevents a cell cache from being invalidated when its parent collection is modified.
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Caches measurements for a given cell.
|
|
10
|
-
*/
|
|
11
|
-
var CellMeasurerCache =
|
|
12
|
-
/*#__PURE__*/
|
|
13
|
-
function () {
|
|
14
|
-
function CellMeasurerCache() {
|
|
15
|
-
var _this = this;
|
|
16
|
-
|
|
17
|
-
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18
|
-
|
|
19
|
-
_classCallCheck(this, CellMeasurerCache);
|
|
20
|
-
|
|
21
|
-
_defineProperty(this, "_cellHeightCache", {});
|
|
22
|
-
|
|
23
|
-
_defineProperty(this, "_cellWidthCache", {});
|
|
24
|
-
|
|
25
|
-
_defineProperty(this, "_columnWidthCache", {});
|
|
26
|
-
|
|
27
|
-
_defineProperty(this, "_rowHeightCache", {});
|
|
28
|
-
|
|
29
|
-
_defineProperty(this, "_defaultHeight", void 0);
|
|
30
|
-
|
|
31
|
-
_defineProperty(this, "_defaultWidth", void 0);
|
|
32
|
-
|
|
33
|
-
_defineProperty(this, "_minHeight", void 0);
|
|
34
|
-
|
|
35
|
-
_defineProperty(this, "_minWidth", void 0);
|
|
36
|
-
|
|
37
|
-
_defineProperty(this, "_keyMapper", void 0);
|
|
38
|
-
|
|
39
|
-
_defineProperty(this, "_hasFixedHeight", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(this, "_hasFixedWidth", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(this, "_columnCount", 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(this, "_rowCount", 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(this, "columnWidth", function (_ref) {
|
|
48
|
-
var index = _ref.index;
|
|
49
|
-
|
|
50
|
-
var key = _this._keyMapper(0, index);
|
|
51
|
-
|
|
52
|
-
return _this._columnWidthCache[key] !== undefined ? _this._columnWidthCache[key] : _this._defaultWidth;
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
_defineProperty(this, "rowHeight", function (_ref2) {
|
|
56
|
-
var index = _ref2.index;
|
|
57
|
-
|
|
58
|
-
var key = _this._keyMapper(index, 0);
|
|
59
|
-
|
|
60
|
-
return _this._rowHeightCache[key] !== undefined ? _this._rowHeightCache[key] : _this._defaultHeight;
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
var defaultHeight = params.defaultHeight,
|
|
64
|
-
defaultWidth = params.defaultWidth,
|
|
65
|
-
fixedHeight = params.fixedHeight,
|
|
66
|
-
fixedWidth = params.fixedWidth,
|
|
67
|
-
keyMapper = params.keyMapper,
|
|
68
|
-
minHeight = params.minHeight,
|
|
69
|
-
minWidth = params.minWidth;
|
|
70
|
-
this._hasFixedHeight = fixedHeight === true;
|
|
71
|
-
this._hasFixedWidth = fixedWidth === true;
|
|
72
|
-
this._minHeight = minHeight || 0;
|
|
73
|
-
this._minWidth = minWidth || 0;
|
|
74
|
-
this._keyMapper = keyMapper || defaultKeyMapper;
|
|
75
|
-
this._defaultHeight = Math.max(this._minHeight, typeof defaultHeight === 'number' ? defaultHeight : DEFAULT_HEIGHT);
|
|
76
|
-
this._defaultWidth = Math.max(this._minWidth, typeof defaultWidth === 'number' ? defaultWidth : DEFAULT_WIDTH);
|
|
77
|
-
|
|
78
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
79
|
-
if (this._hasFixedHeight === false && this._hasFixedWidth === false) {
|
|
80
|
-
console.warn("CellMeasurerCache should only measure a cell's width or height. " + 'You have configured CellMeasurerCache to measure both. ' + 'This will result in poor performance.');
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (this._hasFixedHeight === false && this._defaultHeight === 0) {
|
|
84
|
-
console.warn('Fixed height CellMeasurerCache should specify a :defaultHeight greater than 0. ' + 'Failing to do so will lead to unnecessary layout and poor performance.');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (this._hasFixedWidth === false && this._defaultWidth === 0) {
|
|
88
|
-
console.warn('Fixed width CellMeasurerCache should specify a :defaultWidth greater than 0. ' + 'Failing to do so will lead to unnecessary layout and poor performance.');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
_createClass(CellMeasurerCache, [{
|
|
94
|
-
key: "clear",
|
|
95
|
-
value: function clear(rowIndex) {
|
|
96
|
-
var columnIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
97
|
-
|
|
98
|
-
var key = this._keyMapper(rowIndex, columnIndex);
|
|
99
|
-
|
|
100
|
-
delete this._cellHeightCache[key];
|
|
101
|
-
delete this._cellWidthCache[key];
|
|
102
|
-
|
|
103
|
-
this._updateCachedColumnAndRowSizes(rowIndex, columnIndex);
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "clearAll",
|
|
107
|
-
value: function clearAll() {
|
|
108
|
-
this._cellHeightCache = {};
|
|
109
|
-
this._cellWidthCache = {};
|
|
110
|
-
this._columnWidthCache = {};
|
|
111
|
-
this._rowHeightCache = {};
|
|
112
|
-
this._rowCount = 0;
|
|
113
|
-
this._columnCount = 0;
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
key: "hasFixedHeight",
|
|
117
|
-
value: function hasFixedHeight() {
|
|
118
|
-
return this._hasFixedHeight;
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "hasFixedWidth",
|
|
122
|
-
value: function hasFixedWidth() {
|
|
123
|
-
return this._hasFixedWidth;
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
key: "getHeight",
|
|
127
|
-
value: function getHeight(rowIndex) {
|
|
128
|
-
var columnIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
129
|
-
|
|
130
|
-
if (this._hasFixedHeight) {
|
|
131
|
-
return this._defaultHeight;
|
|
132
|
-
} else {
|
|
133
|
-
var _key = this._keyMapper(rowIndex, columnIndex);
|
|
134
|
-
|
|
135
|
-
return this._cellHeightCache[_key] !== undefined ? Math.max(this._minHeight, this._cellHeightCache[_key]) : this._defaultHeight;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}, {
|
|
139
|
-
key: "getWidth",
|
|
140
|
-
value: function getWidth(rowIndex) {
|
|
141
|
-
var columnIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
142
|
-
|
|
143
|
-
if (this._hasFixedWidth) {
|
|
144
|
-
return this._defaultWidth;
|
|
145
|
-
} else {
|
|
146
|
-
var _key2 = this._keyMapper(rowIndex, columnIndex);
|
|
147
|
-
|
|
148
|
-
return this._cellWidthCache[_key2] !== undefined ? Math.max(this._minWidth, this._cellWidthCache[_key2]) : this._defaultWidth;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}, {
|
|
152
|
-
key: "has",
|
|
153
|
-
value: function has(rowIndex) {
|
|
154
|
-
var columnIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
155
|
-
|
|
156
|
-
var key = this._keyMapper(rowIndex, columnIndex);
|
|
157
|
-
|
|
158
|
-
return this._cellHeightCache[key] !== undefined;
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
key: "set",
|
|
162
|
-
value: function set(rowIndex, columnIndex, width, height) {
|
|
163
|
-
var key = this._keyMapper(rowIndex, columnIndex);
|
|
164
|
-
|
|
165
|
-
if (columnIndex >= this._columnCount) {
|
|
166
|
-
this._columnCount = columnIndex + 1;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
if (rowIndex >= this._rowCount) {
|
|
170
|
-
this._rowCount = rowIndex + 1;
|
|
171
|
-
} // Size is cached per cell so we don't have to re-measure if cells are re-ordered.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
this._cellHeightCache[key] = height;
|
|
175
|
-
this._cellWidthCache[key] = width;
|
|
176
|
-
|
|
177
|
-
this._updateCachedColumnAndRowSizes(rowIndex, columnIndex);
|
|
178
|
-
}
|
|
179
|
-
}, {
|
|
180
|
-
key: "_updateCachedColumnAndRowSizes",
|
|
181
|
-
value: function _updateCachedColumnAndRowSizes(rowIndex, columnIndex) {
|
|
182
|
-
// :columnWidth and :rowHeight are derived based on all cells in a column/row.
|
|
183
|
-
// Pre-cache these derived values for faster lookup later.
|
|
184
|
-
// Reads are expected to occur more frequently than writes in this case.
|
|
185
|
-
// Only update non-fixed dimensions though to avoid doing unnecessary work.
|
|
186
|
-
if (!this._hasFixedWidth) {
|
|
187
|
-
var columnWidth = 0;
|
|
188
|
-
|
|
189
|
-
for (var i = 0; i < this._rowCount; i++) {
|
|
190
|
-
columnWidth = Math.max(columnWidth, this.getWidth(i, columnIndex));
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
var columnKey = this._keyMapper(0, columnIndex);
|
|
194
|
-
|
|
195
|
-
this._columnWidthCache[columnKey] = columnWidth;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (!this._hasFixedHeight) {
|
|
199
|
-
var rowHeight = 0;
|
|
200
|
-
|
|
201
|
-
for (var _i = 0; _i < this._columnCount; _i++) {
|
|
202
|
-
rowHeight = Math.max(rowHeight, this.getHeight(rowIndex, _i));
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
var rowKey = this._keyMapper(rowIndex, 0);
|
|
206
|
-
|
|
207
|
-
this._rowHeightCache[rowKey] = rowHeight;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}, {
|
|
211
|
-
key: "defaultHeight",
|
|
212
|
-
get: function get() {
|
|
213
|
-
return this._defaultHeight;
|
|
214
|
-
}
|
|
215
|
-
}, {
|
|
216
|
-
key: "defaultWidth",
|
|
217
|
-
get: function get() {
|
|
218
|
-
return this._defaultWidth;
|
|
219
|
-
}
|
|
220
|
-
}]);
|
|
221
|
-
|
|
222
|
-
return CellMeasurerCache;
|
|
223
|
-
}();
|
|
224
|
-
|
|
225
|
-
function defaultKeyMapper(rowIndex, columnIndex) {
|
|
226
|
-
return "".concat(rowIndex, "-").concat(columnIndex);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export { CellMeasurerCache as C };
|