@patternfly/react-table 4.89.1 → 4.90.1
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 +27 -0
- package/dist/umd/react-table.css +798 -8
- package/dist/umd/react-table.js +42 -11
- package/dist/umd/react-table.min.css +798 -8
- package/dist/umd/react-table.min.js +4 -4
- package/package.json +6 -6
- package/src/demos/Table.md +5 -0
- package/src/demos/table-demos/StickyFirstColumn.jsx +210 -0
package/dist/umd/react-table.js
CHANGED
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
/*!
|
|
133
|
-
* tabbable 5.3.
|
|
133
|
+
* tabbable 5.3.3
|
|
134
134
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
135
135
|
*/
|
|
136
136
|
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
@@ -165,6 +165,12 @@
|
|
|
165
165
|
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
166
166
|
*/
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* @callback ShadowRootFilter
|
|
170
|
+
* @param {Element} shadowHostNode the element which contains shadow content
|
|
171
|
+
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
172
|
+
*/
|
|
173
|
+
|
|
168
174
|
/**
|
|
169
175
|
* @typedef {Object} CandidatesScope
|
|
170
176
|
* @property {Element} scope contains inner candidates
|
|
@@ -178,6 +184,7 @@
|
|
|
178
184
|
* or a boolean stating if it has an undisclosed shadow root
|
|
179
185
|
* @property {(node: Element) => boolean} filter filter candidates
|
|
180
186
|
* @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
|
|
187
|
+
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
181
188
|
*/
|
|
182
189
|
|
|
183
190
|
/**
|
|
@@ -220,8 +227,9 @@
|
|
|
220
227
|
|
|
221
228
|
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
222
229
|
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
230
|
+
var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
|
|
223
231
|
|
|
224
|
-
if (shadowRoot) {
|
|
232
|
+
if (shadowRoot && validShadowRoot) {
|
|
225
233
|
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
226
234
|
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
227
235
|
// child candidates found because they're likely slotted elements (elements that are
|
|
@@ -502,6 +510,18 @@
|
|
|
502
510
|
|
|
503
511
|
return true;
|
|
504
512
|
};
|
|
513
|
+
|
|
514
|
+
var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
|
|
515
|
+
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
516
|
+
|
|
517
|
+
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
518
|
+
return true;
|
|
519
|
+
} // If a custom element has an explicit negative tabindex,
|
|
520
|
+
// browsers will not allow tab targeting said element's children.
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
return false;
|
|
524
|
+
};
|
|
505
525
|
/**
|
|
506
526
|
* @param {Array.<Element|CandidatesScope>} candidates
|
|
507
527
|
* @returns Element[]
|
|
@@ -543,7 +563,8 @@
|
|
|
543
563
|
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
544
564
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
545
565
|
flatten: false,
|
|
546
|
-
getShadowRoot: options.getShadowRoot
|
|
566
|
+
getShadowRoot: options.getShadowRoot,
|
|
567
|
+
shadowRootFilter: isValidShadowRootTabbable
|
|
547
568
|
});
|
|
548
569
|
} else {
|
|
549
570
|
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
@@ -4016,7 +4037,8 @@
|
|
|
4016
4037
|
"end": "pf-m-end",
|
|
4017
4038
|
"overpassFont": "pf-m-overpass-font"
|
|
4018
4039
|
},
|
|
4019
|
-
"spinner": "pf-c-spinner"
|
|
4040
|
+
"spinner": "pf-c-spinner",
|
|
4041
|
+
"themeDark": "pf-theme-dark"
|
|
4020
4042
|
};
|
|
4021
4043
|
|
|
4022
4044
|
Promise.resolve().then(function () { return spinner; });
|
|
@@ -4250,6 +4272,7 @@
|
|
|
4250
4272
|
"rightBottom": "pf-m-right-bottom",
|
|
4251
4273
|
"textAlignLeft": "pf-m-text-align-left"
|
|
4252
4274
|
},
|
|
4275
|
+
"themeDark": "pf-theme-dark",
|
|
4253
4276
|
"tooltip": "pf-c-tooltip",
|
|
4254
4277
|
"tooltipArrow": "pf-c-tooltip__arrow",
|
|
4255
4278
|
"tooltipContent": "pf-c-tooltip__content"
|
|
@@ -4425,7 +4448,8 @@
|
|
|
4425
4448
|
"placeholder": "pf-m-placeholder",
|
|
4426
4449
|
"resizeVertical": "pf-m-resize-vertical",
|
|
4427
4450
|
"resizeHorizontal": "pf-m-resize-horizontal"
|
|
4428
|
-
}
|
|
4451
|
+
},
|
|
4452
|
+
"themeDark": "pf-theme-dark"
|
|
4429
4453
|
};
|
|
4430
4454
|
|
|
4431
4455
|
Promise.resolve().then(function () { return dropdown; });
|
|
@@ -4475,7 +4499,8 @@
|
|
|
4475
4499
|
"ariaDisabled": "pf-m-aria-disabled",
|
|
4476
4500
|
"icon": "pf-m-icon",
|
|
4477
4501
|
"description": "pf-m-description"
|
|
4478
|
-
}
|
|
4502
|
+
},
|
|
4503
|
+
"themeDark": "pf-theme-dark"
|
|
4479
4504
|
};
|
|
4480
4505
|
|
|
4481
4506
|
var DropdownPosition;
|
|
@@ -5092,7 +5117,8 @@
|
|
|
5092
5117
|
"modifiers": {
|
|
5093
5118
|
"read": "pf-m-read",
|
|
5094
5119
|
"unread": "pf-m-unread"
|
|
5095
|
-
}
|
|
5120
|
+
},
|
|
5121
|
+
"themeDark": "pf-theme-dark"
|
|
5096
5122
|
};
|
|
5097
5123
|
|
|
5098
5124
|
const EllipsisVIconConfig = {
|
|
@@ -5361,7 +5387,8 @@
|
|
|
5361
5387
|
"selectToggleStatusIcon": "pf-c-select__toggle-status-icon",
|
|
5362
5388
|
"selectToggleText": "pf-c-select__toggle-text",
|
|
5363
5389
|
"selectToggleTypeahead": "pf-c-select__toggle-typeahead",
|
|
5364
|
-
"selectToggleWrapper": "pf-c-select__toggle-wrapper"
|
|
5390
|
+
"selectToggleWrapper": "pf-c-select__toggle-wrapper",
|
|
5391
|
+
"themeDark": "pf-theme-dark"
|
|
5365
5392
|
};
|
|
5366
5393
|
|
|
5367
5394
|
const TimesCircleIconConfig = {
|
|
@@ -5428,7 +5455,8 @@
|
|
|
5428
5455
|
"inactive": "pf-m-inactive",
|
|
5429
5456
|
"hidden": "pf-m-hidden",
|
|
5430
5457
|
"expanded": "pf-m-expanded"
|
|
5431
|
-
}
|
|
5458
|
+
},
|
|
5459
|
+
"themeDark": "pf-theme-dark"
|
|
5432
5460
|
};
|
|
5433
5461
|
|
|
5434
5462
|
Promise.resolve().then(function () { return check; });
|
|
@@ -6046,7 +6074,8 @@
|
|
|
6046
6074
|
"modifiers": {
|
|
6047
6075
|
"overflow": "pf-m-overflow",
|
|
6048
6076
|
"draggable": "pf-m-draggable"
|
|
6049
|
-
}
|
|
6077
|
+
},
|
|
6078
|
+
"themeDark": "pf-theme-dark"
|
|
6050
6079
|
};
|
|
6051
6080
|
|
|
6052
6081
|
class Chip extends React__namespace.Component {
|
|
@@ -7154,6 +7183,7 @@
|
|
|
7154
7183
|
"popoverTitle": "pf-c-popover__title",
|
|
7155
7184
|
"popoverTitleIcon": "pf-c-popover__title-icon",
|
|
7156
7185
|
"popoverTitleText": "pf-c-popover__title-text",
|
|
7186
|
+
"themeDark": "pf-theme-dark",
|
|
7157
7187
|
"title": "pf-c-title"
|
|
7158
7188
|
};
|
|
7159
7189
|
|
|
@@ -7597,7 +7627,8 @@
|
|
|
7597
7627
|
"tableSubhead": "pf-c-table__subhead",
|
|
7598
7628
|
"tableText": "pf-c-table__text",
|
|
7599
7629
|
"tableToggle": "pf-c-table__toggle",
|
|
7600
|
-
"tableToggleIcon": "pf-c-table__toggle-icon"
|
|
7630
|
+
"tableToggleIcon": "pf-c-table__toggle-icon",
|
|
7631
|
+
"themeDark": "pf-theme-dark"
|
|
7601
7632
|
};
|
|
7602
7633
|
|
|
7603
7634
|
Promise.resolve().then(function () { return tableGrid; });
|