aloha-vue 1.2.200 → 1.2.202

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
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.200",
17
+ "version": "1.2.202",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -28,6 +28,12 @@ export default function LinkAPI(props) {
28
28
  const TO = cloneDeep(column.value.to);
29
29
  const PARAMS = TO.params || {};
30
30
  const QUERY = TO.query || {};
31
+ if (column.value.to.nameDynamic && !column.value.to.name) {
32
+ const NAME = get(row.value, column.value.to.nameDynamic);
33
+ if (NAME) {
34
+ TO.name = NAME;
35
+ }
36
+ }
31
37
  if (column.value.to.paramsDynamic) {
32
38
  let hasParamsDynamicError = false;
33
39
  forEach(column.value.to.paramsDynamic, (value, key) => {
@@ -144,6 +144,12 @@ export default function RowActionsAPI(props) {
144
144
  const TO = cloneDeep(rowAction.to);
145
145
  const PARAMS = TO.params || {};
146
146
  const QUERY = TO.query || {};
147
+ if (rowAction.to.nameDynamic && !rowAction.to.name) {
148
+ const NAME = get(row.value, rowAction.to.nameDynamic);
149
+ if (NAME) {
150
+ TO.name = NAME;
151
+ }
152
+ }
147
153
  if (rowAction.to.paramsDynamic) {
148
154
  let hasParamsDynamicError = false;
149
155
  forEach(rowAction.to.paramsDynamic, (value, key) => {
@@ -207,6 +213,20 @@ export default function RowActionsAPI(props) {
207
213
  return undefined;
208
214
  };
209
215
 
216
+ const getRowActionTextScreenReader = ({ rowAction }) => {
217
+ if (rowAction.textScreenReader) {
218
+ return rowAction.textScreenReader;
219
+ }
220
+ if (isFunction(rowAction.textScreenReaderCallback)) {
221
+ return rowAction.textScreenReaderCallback({
222
+ row: row.value,
223
+ rowIndex: rowIndex.value,
224
+ rowAction,
225
+ });
226
+ }
227
+ return undefined;
228
+ };
229
+
210
230
  const getRowActionIds = ({ rowActionIndexVisible }) => {
211
231
  if (columnActionsView.value === "dropdown") {
212
232
  return {
@@ -283,6 +303,10 @@ export default function RowActionsAPI(props) {
283
303
  if (EXTRA) {
284
304
  rowAction.extra = EXTRA;
285
305
  }
306
+ const TEXT_SCREEN_READER = getRowActionTextScreenReader({ rowAction });
307
+ if (EXTRA) {
308
+ rowAction.textScreenReader = TEXT_SCREEN_READER;
309
+ }
286
310
  if (rowAction.type === "link") {
287
311
  const TO = getRowActionTo({ rowAction });
288
312
  if (TO) {