* Gets the aria- and data- attributes to attach to the component * @param keytipProps - options for Keytip * @param describedByPrepend - ariaDescribedBy value to prepend
(keytipManager, keytipProps, describedByPrepend)
| 34433 | * @param keytipProps - options for Keytip |
| 34434 | * @param describedByPrepend - ariaDescribedBy value to prepend |
| 34435 | */ function getKeytipData(keytipManager, keytipProps, describedByPrepend) { |
| 34436 | // Add the parent overflow sequence if necessary |
| 34437 | var newKeytipProps = keytipManager.addParentOverflow(keytipProps); |
| 34438 | // Construct aria-describedby and data-ktp-id attributes |
| 34439 | var ariaDescribedBy = (0, _utilities.mergeAriaAttributeValues)(describedByPrepend, (0, _index.getAriaDescribedBy)(newKeytipProps.keySequences)); |
| 34440 | var keySequences = (0, _tslib.__spreadArrays)(newKeytipProps.keySequences); |
| 34441 | if (newKeytipProps.overflowSetSequence) keySequences = (0, _index.mergeOverflows)(keySequences, newKeytipProps.overflowSetSequence); |
| 34442 | var keytipId = (0, _index.sequencesToID)(keySequences); |
| 34443 | return { |
| 34444 | ariaDescribedBy: ariaDescribedBy, |
| 34445 | keytipId: keytipId |
| 34446 | }; |
| 34447 | } |
| 34448 | |
| 34449 | },{"tslib":"01Tx1","react":"8ePka","@uifabric/react-hooks":"ga2ba","../../Utilities":"2F07a","../../utilities/keytips/index":"9cwIS","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"ga2ba":[function(require,module,exports) { |
| 34450 | var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); |