aloha-vue 1.2.200 → 1.2.201
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/package.json
CHANGED
|
@@ -207,6 +207,20 @@ export default function RowActionsAPI(props) {
|
|
|
207
207
|
return undefined;
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
+
const getRowActionTextScreenReader = ({ rowAction }) => {
|
|
211
|
+
if (rowAction.textScreenReader) {
|
|
212
|
+
return rowAction.textScreenReader;
|
|
213
|
+
}
|
|
214
|
+
if (isFunction(rowAction.textScreenReaderCallback)) {
|
|
215
|
+
return rowAction.textScreenReaderCallback({
|
|
216
|
+
row: row.value,
|
|
217
|
+
rowIndex: rowIndex.value,
|
|
218
|
+
rowAction,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return undefined;
|
|
222
|
+
};
|
|
223
|
+
|
|
210
224
|
const getRowActionIds = ({ rowActionIndexVisible }) => {
|
|
211
225
|
if (columnActionsView.value === "dropdown") {
|
|
212
226
|
return {
|
|
@@ -283,6 +297,10 @@ export default function RowActionsAPI(props) {
|
|
|
283
297
|
if (EXTRA) {
|
|
284
298
|
rowAction.extra = EXTRA;
|
|
285
299
|
}
|
|
300
|
+
const TEXT_SCREEN_READER = getRowActionTextScreenReader({ rowAction });
|
|
301
|
+
if (EXTRA) {
|
|
302
|
+
rowAction.textScreenReader = TEXT_SCREEN_READER;
|
|
303
|
+
}
|
|
286
304
|
if (rowAction.type === "link") {
|
|
287
305
|
const TO = getRowActionTo({ rowAction });
|
|
288
306
|
if (TO) {
|