aloha-vue 2.60.1 → 2.61.0

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.
@@ -1,443 +1,463 @@
1
- import {
2
- h,
3
- nextTick,
4
- } from "vue";
5
- import {
6
- AAlert,
7
- AErrors,
8
- } from "../../index";
9
-
10
- import ATableFormCell from "../ATableFormCell/ATableFormCell";
11
- import ATableFormCellAction from "../ATableFormCellAction/ATableFormCellAction";
12
- import ATableFormCellDnd from "../ATableFormCellDnd/ATableFormCellDnd";
13
- import ATableFormTh from "../ATableFormTh/ATableFormTh";
14
-
15
- import ClassAPI from "./compositionAPI/ClassAPI";
16
- import EditAPI from "./compositionAPI/EditAPI";
17
- import ErrorsAPI from "./compositionAPI/ErrorsAPI";
18
- import FocusAPI from "./compositionAPI/FocusAPI";
19
- import IdAPI from "./compositionAPI/IdAPI";
20
-
21
- import {
22
- cloneDeep,
23
- } from "lodash-es";
24
-
25
- export default {
26
- name: "ATableFormRow",
27
- props: {
28
- actionsClasses: {
29
- type: Object,
30
- required: false,
31
- default: () => ({}),
32
- },
33
- actionsDisabledCallback: {
34
- type: Object,
35
- required: false,
36
- default: () => ({}),
37
- },
38
- actionsHideCallback: {
39
- type: Object,
40
- required: false,
41
- default: () => ({}),
42
- },
43
- actionsTitleCallback: {
44
- type: Object,
45
- required: false,
46
- default: () => ({}),
47
- },
48
- allColumnsLength: {
49
- type: Number,
50
- required: true,
51
- },
52
- canMoveRowDown: {
53
- type: Function,
54
- required: true,
55
- },
56
- canMoveRowUp: {
57
- type: Function,
58
- required: true,
59
- },
60
- cellTag: {
61
- type: String,
62
- required: false,
63
- default: undefined,
64
- },
65
- changeModel: {
66
- type: Function,
67
- required: false,
68
- default: undefined,
69
- },
70
- columns: {
71
- type: Array,
72
- required: true,
73
- },
74
- columnsStylesGrow: {
75
- type: Object,
76
- required: false,
77
- default: () => ({}),
78
- },
79
- draggedRowIndex: {
80
- type: Number,
81
- required: false,
82
- default: undefined,
83
- },
84
- editModel: {
85
- type: Object,
86
- required: false,
87
- default: undefined,
88
- },
89
- errorIcon: {
90
- type: String,
91
- required: false,
92
- default: undefined,
93
- },
94
- extra: {
95
- type: Object,
96
- required: false,
97
- default: undefined,
98
- },
99
- hasActionsColumn: {
100
- type: Boolean,
101
- required: false,
102
- default: false,
103
- },
104
- hasActiveEditRow: {
105
- type: Boolean,
106
- required: false,
107
- default: false,
108
- },
109
- id: {
110
- type: String,
111
- required: true,
112
- },
113
- isActionsSticky: {
114
- type: Boolean,
115
- required: false,
116
- default: false,
117
- },
118
- isActiveEditMode: {
119
- type: Boolean,
120
- required: false,
121
- default: false,
122
- },
123
- isCreateMode: {
124
- type: Boolean,
125
- required: false,
126
- default: false,
127
- },
128
- isDeletable: {
129
- type: Boolean,
130
- required: false,
131
- default: false,
132
- },
133
- isDeletableConfirm: {
134
- type: Boolean,
135
- required: false,
136
- default: false,
137
- },
138
- isDndDisabled: {
139
- type: Boolean,
140
- required: false,
141
- default: false,
142
- },
143
- isDragAndDrop: {
144
- type: Boolean,
145
- required: false,
146
- default: false,
147
- },
148
- isEditable: {
149
- type: Boolean,
150
- required: false,
151
- default: false,
152
- },
153
- isFooter: {
154
- type: Boolean,
155
- required: false,
156
- default: false,
157
- },
158
- isHeader: {
159
- type: Boolean,
160
- required: false,
161
- default: false,
162
- },
163
- moveRowDown: {
164
- type: Function,
165
- required: true,
166
- },
167
- moveRowUp: {
168
- type: Function,
169
- required: true,
170
- },
171
- onCancelEditRow: {
172
- type: Function,
173
- required: true,
174
- },
175
- onDeleteRow: {
176
- type: Function,
177
- required: true,
178
- },
179
- onDragend: {
180
- type: Function,
181
- required: true,
182
- },
183
- onDragleave: {
184
- type: Function,
185
- required: false,
186
- default: undefined,
187
- },
188
- onDragover: {
189
- type: Function,
190
- required: false,
191
- default: undefined,
192
- },
193
- onDragstart: {
194
- type: Function,
195
- required: true,
196
- },
197
- onDrop: {
198
- type: Function,
199
- required: false,
200
- default: undefined,
201
- },
202
- onEditRow: {
203
- type: Function,
204
- required: true,
205
- },
206
- row: {
207
- type: Object,
208
- required: true,
209
- },
210
- rowClass: {
211
- type: [String, Object, Array, Function],
212
- required: false,
213
- default: undefined,
214
- },
215
- rowIndex: {
216
- type: Number,
217
- required: true,
218
- },
219
- rows: {
220
- type: Array,
221
- required: true,
222
- },
223
- saveRow: {
224
- type: Function,
225
- required: true,
226
- },
227
- texts: {
228
- type: Object,
229
- required: false,
230
- default: () => ({}),
231
- },
232
- trClass: {
233
- type: [String, Object, Array],
234
- required: false,
235
- default: undefined,
236
- },
237
- widths: {
238
- type: Object,
239
- required: false,
240
- default: () => ({}),
241
- },
242
- },
243
- setup(props) {
244
- const {
245
- idTr,
246
- } = IdAPI(props);
247
-
248
- const {
249
- focusFirstEditableElement,
250
- } = FocusAPI({
251
- idTr,
252
- });
253
-
254
- const {
255
- errorsLocal,
256
- hasErrors,
257
- optionsListForErrors,
258
- } = ErrorsAPI(props);
259
-
260
- const {
261
- rowClassLocal,
262
- trClassLocal,
263
- } = ClassAPI(props, {
264
- hasErrors,
265
- });
266
-
267
- const {
268
- cancelEditRow,
269
- isSaving,
270
- modelLocal,
271
- saveEditRow,
272
- updateModelLocal,
273
- } = EditAPI(props, {
274
- errorsLocal,
275
- });
276
-
277
- return {
278
- cancelEditRow,
279
- errorsLocal,
280
- focusFirstEditableElement,
281
- hasErrors,
282
- rowClassLocal,
283
- idTr,
284
- isSaving,
285
- modelLocal,
286
- optionsListForErrors,
287
- saveEditRow,
288
- trClassLocal,
289
- updateModelLocal,
290
- };
291
- },
292
- computed: {
293
- currentRowData() {
294
- return this.isActiveEditMode && this.modelLocal ? this.modelLocal : this.row;
295
- },
296
- },
297
- watch: {
298
- isActiveEditMode: {
299
- immediate: true,
300
- handler(isActiveEditMode) {
301
- if (isActiveEditMode) {
302
- this.modelLocal = cloneDeep(this.editModel === undefined ? this.row : this.editModel);
303
- this.errorsLocal = {};
304
- nextTick(() => {
305
- this.focusFirstEditableElement();
306
- });
307
- return;
308
- }
309
-
310
- this.errorsLocal = {};
311
- this.isSaving = false;
312
- },
313
- },
314
- },
315
- render() {
316
- const rows = [];
317
-
318
- if (this.isActiveEditMode && this.texts.editInfoText) {
319
- rows.push(h("tr", {
320
- class: "a_table_form__row a_table_form__row_info",
321
- key: `info_${ this.rowIndex }`,
322
- }, [
323
- h("td", {
324
- class: "a_table_form__cell a_table_form__cell_info",
325
- colspan: this.allColumnsLength,
326
- }, [
327
- h(AAlert, {
328
- alertClass: "a_table_form__info",
329
- html: this.texts.editInfoText,
330
- isVisible: true,
331
- type: "info",
332
- }),
333
- ]),
334
- ]));
335
- }
336
-
337
- rows.push(h("tr", {
338
- id: this.idTr,
339
- "aria-grabbed": !this.isHeader && !this.isFooter ? this.draggedRowIndex === this.rowIndex : undefined,
340
- class: this.trClassLocal,
341
- key: `main_${ this.rowIndex }`,
342
- onDragleave: this.onDragleave && ($event => this.onDragleave($event, this.rowIndex)),
343
- onDragover: this.onDragover && ($event => this.onDragover($event, this.rowIndex)),
344
- onDrop: this.onDrop && ($event => this.onDrop($event, this.rowIndex)),
345
- }, [
346
- this.isDragAndDrop ?
347
- h(ATableFormCellDnd, {
348
- id: this.idTr,
349
- canMoveRowDown: this.canMoveRowDown,
350
- canMoveRowUp: this.canMoveRowUp,
351
- isCreateMode: this.isCreateMode,
352
- isDndDisabled: this.isDndDisabled,
353
- isDragAndDrop: this.isDragAndDrop,
354
- isFooter: this.isFooter,
355
- isHeader: this.isHeader,
356
- moveRowDown: this.moveRowDown,
357
- moveRowUp: this.moveRowUp,
358
- onDragend: this.onDragend,
359
- onDragstart: this.onDragstart,
360
- rowIndex: this.rowIndex,
361
- texts: this.texts,
362
- widths: this.widths,
363
- }) :
364
- null,
365
- ...this.columns.map((column, columnIndex) => {
366
- if (this.isHeader) {
367
- return h(ATableFormTh, {
368
- column,
369
- columnStyle: this.columnsStylesGrow[column.id],
370
- isEditable: this.isEditable,
371
- }, this.$slots);
372
- }
373
-
374
- return h(ATableFormCell, {
375
- id: this.idTr,
376
- column,
377
- columnIndex,
378
- columnStyle: this.columnsStylesGrow[column.id],
379
- errorIcon: this.errorIcon,
380
- errors: this.errorsLocal,
381
- isEditable: this.isEditable,
382
- isEditMode: this.isActiveEditMode,
383
- isFooter: this.isFooter,
384
- onUpdateRowData: this.updateModelLocal,
385
- row: this.row,
386
- rowData: this.currentRowData,
387
- rowIndex: this.rowIndex,
388
- rows: this.rows,
389
- tag: this.cellTag,
390
- }, this.$slots);
391
- }),
392
- this.hasActionsColumn ?
393
- h(ATableFormCellAction, {
394
- id: this.idTr,
395
- actionsClasses: this.actionsClasses,
396
- actionsDisabledCallback: this.actionsDisabledCallback,
397
- actionsHideCallback: this.actionsHideCallback,
398
- actionsTitleCallback: this.actionsTitleCallback,
399
- extra: this.extra,
400
- hasActiveEditRow: this.hasActiveEditRow,
401
- isActionsSticky: this.isActionsSticky,
402
- isActiveEditMode: this.isActiveEditMode,
403
- isDeletable: this.isDeletable,
404
- isDeletableConfirm: this.isDeletableConfirm,
405
- isEditable: this.isEditable,
406
- isFooter: this.isFooter,
407
- isHeader: this.isHeader,
408
- isSaving: this.isSaving,
409
- onCancelEditRow: this.cancelEditRow,
410
- onDeleteRow: this.onDeleteRow,
411
- onEditRow: this.onEditRow,
412
- onSaveEditRow: this.saveEditRow,
413
- row: this.row,
414
- rowIndex: this.rowIndex,
415
- texts: this.texts,
416
- widths: this.widths,
417
- }) :
418
- null,
419
- ]));
420
-
421
- if (this.isActiveEditMode && this.hasErrors) {
422
- rows.push(h("tr", {
423
- class: "a_table_form__row a_table_form__row_errors",
424
- key: `errors_${ this.rowIndex }`,
425
- }, [
426
- h("td", {
427
- class: "a_table_form__cell a_table_form__cell_errors",
428
- colspan: this.allColumnsLength,
429
- }, [
430
- h(AErrors, {
431
- autoFocus: true,
432
- closable: false,
433
- errors: this.errorsLocal,
434
- optionsList: this.optionsListForErrors,
435
- idPrefix: this.idTr,
436
- }),
437
- ]),
438
- ]));
439
- }
440
-
441
- return rows;
442
- },
443
- };
1
+ import {
2
+ h,
3
+ nextTick,
4
+ } from "vue";
5
+ import {
6
+ AAlert,
7
+ AErrors,
8
+ } from "../../index";
9
+
10
+ import ATableFormCell from "../ATableFormCell/ATableFormCell";
11
+ import ATableFormCellAction from "../ATableFormCellAction/ATableFormCellAction";
12
+ import ATableFormCellDnd from "../ATableFormCellDnd/ATableFormCellDnd";
13
+ import ATableFormCellList from "../ATableFormCellList/ATableFormCellList";
14
+ import ATableFormTh from "../ATableFormTh/ATableFormTh";
15
+
16
+ import ClassAPI from "./compositionAPI/ClassAPI";
17
+ import EditAPI from "./compositionAPI/EditAPI";
18
+ import ErrorsAPI from "./compositionAPI/ErrorsAPI";
19
+ import FocusAPI from "./compositionAPI/FocusAPI";
20
+ import IdAPI from "./compositionAPI/IdAPI";
21
+
22
+ import {
23
+ cloneDeep,
24
+ } from "lodash-es";
25
+
26
+ export default {
27
+ name: "ATableFormRow",
28
+ props: {
29
+ actionsClasses: {
30
+ type: Object,
31
+ required: false,
32
+ default: () => ({}),
33
+ },
34
+ actionsDisabledCallback: {
35
+ type: Object,
36
+ required: false,
37
+ default: () => ({}),
38
+ },
39
+ actionsHideCallback: {
40
+ type: Object,
41
+ required: false,
42
+ default: () => ({}),
43
+ },
44
+ actionsTitleCallback: {
45
+ type: Object,
46
+ required: false,
47
+ default: () => ({}),
48
+ },
49
+ allColumnsLength: {
50
+ type: Number,
51
+ required: true,
52
+ },
53
+ canMoveRowDown: {
54
+ type: Function,
55
+ required: true,
56
+ },
57
+ canMoveRowUp: {
58
+ type: Function,
59
+ required: true,
60
+ },
61
+ cellTag: {
62
+ type: String,
63
+ required: false,
64
+ default: undefined,
65
+ },
66
+ changeModel: {
67
+ type: Function,
68
+ required: false,
69
+ default: undefined,
70
+ },
71
+ columns: {
72
+ type: Array,
73
+ required: true,
74
+ },
75
+ columnsStylesGrow: {
76
+ type: Object,
77
+ required: false,
78
+ default: () => ({}),
79
+ },
80
+ draggedRowIndex: {
81
+ type: Number,
82
+ required: false,
83
+ default: undefined,
84
+ },
85
+ editModel: {
86
+ type: Object,
87
+ required: false,
88
+ default: undefined,
89
+ },
90
+ errorIcon: {
91
+ type: String,
92
+ required: false,
93
+ default: undefined,
94
+ },
95
+ extra: {
96
+ type: Object,
97
+ required: false,
98
+ default: undefined,
99
+ },
100
+ hasActionsColumn: {
101
+ type: Boolean,
102
+ required: false,
103
+ default: false,
104
+ },
105
+ hasActiveEditRow: {
106
+ type: Boolean,
107
+ required: false,
108
+ default: false,
109
+ },
110
+ id: {
111
+ type: String,
112
+ required: true,
113
+ },
114
+ isActionsSticky: {
115
+ type: Boolean,
116
+ required: false,
117
+ default: false,
118
+ },
119
+ isActiveEditMode: {
120
+ type: Boolean,
121
+ required: false,
122
+ default: false,
123
+ },
124
+ isCreateMode: {
125
+ type: Boolean,
126
+ required: false,
127
+ default: false,
128
+ },
129
+ isDeletable: {
130
+ type: Boolean,
131
+ required: false,
132
+ default: false,
133
+ },
134
+ isDeletableConfirm: {
135
+ type: Boolean,
136
+ required: false,
137
+ default: false,
138
+ },
139
+ isDndDisabled: {
140
+ type: Boolean,
141
+ required: false,
142
+ default: false,
143
+ },
144
+ isDragAndDrop: {
145
+ type: Boolean,
146
+ required: false,
147
+ default: false,
148
+ },
149
+ isEditable: {
150
+ type: Boolean,
151
+ required: false,
152
+ default: false,
153
+ },
154
+ isFooter: {
155
+ type: Boolean,
156
+ required: false,
157
+ default: false,
158
+ },
159
+ isHeader: {
160
+ type: Boolean,
161
+ required: false,
162
+ default: false,
163
+ },
164
+ moveRowDown: {
165
+ type: Function,
166
+ required: true,
167
+ },
168
+ moveRowUp: {
169
+ type: Function,
170
+ required: true,
171
+ },
172
+ onCancelEditRow: {
173
+ type: Function,
174
+ required: true,
175
+ },
176
+ onDeleteRow: {
177
+ type: Function,
178
+ required: true,
179
+ },
180
+ onDragend: {
181
+ type: Function,
182
+ required: true,
183
+ },
184
+ onDragleave: {
185
+ type: Function,
186
+ required: false,
187
+ default: undefined,
188
+ },
189
+ onDragover: {
190
+ type: Function,
191
+ required: false,
192
+ default: undefined,
193
+ },
194
+ onDragstart: {
195
+ type: Function,
196
+ required: true,
197
+ },
198
+ onDrop: {
199
+ type: Function,
200
+ required: false,
201
+ default: undefined,
202
+ },
203
+ onEditRow: {
204
+ type: Function,
205
+ required: true,
206
+ },
207
+ row: {
208
+ type: Object,
209
+ required: true,
210
+ },
211
+ rowClass: {
212
+ type: [String, Object, Array, Function],
213
+ required: false,
214
+ default: undefined,
215
+ },
216
+ rowIndex: {
217
+ type: Number,
218
+ required: true,
219
+ },
220
+ rows: {
221
+ type: Array,
222
+ required: true,
223
+ },
224
+ rowView: {
225
+ type: String,
226
+ required: false,
227
+ default: "table",
228
+ },
229
+ saveRow: {
230
+ type: Function,
231
+ required: true,
232
+ },
233
+ texts: {
234
+ type: Object,
235
+ required: false,
236
+ default: () => ({}),
237
+ },
238
+ trClass: {
239
+ type: [String, Object, Array],
240
+ required: false,
241
+ default: undefined,
242
+ },
243
+ widths: {
244
+ type: Object,
245
+ required: false,
246
+ default: () => ({}),
247
+ },
248
+ },
249
+ setup(props) {
250
+ const {
251
+ idTr,
252
+ } = IdAPI(props);
253
+
254
+ const {
255
+ focusFirstEditableElement,
256
+ } = FocusAPI({
257
+ idTr,
258
+ });
259
+
260
+ const {
261
+ errorsLocal,
262
+ hasErrors,
263
+ optionsListForErrors,
264
+ } = ErrorsAPI(props);
265
+
266
+ const {
267
+ rowClassLocal,
268
+ trClassLocal,
269
+ } = ClassAPI(props, {
270
+ hasErrors,
271
+ });
272
+
273
+ const {
274
+ cancelEditRow,
275
+ isSaving,
276
+ modelLocal,
277
+ saveEditRow,
278
+ updateModelLocal,
279
+ } = EditAPI(props, {
280
+ errorsLocal,
281
+ });
282
+
283
+ return {
284
+ cancelEditRow,
285
+ errorsLocal,
286
+ focusFirstEditableElement,
287
+ hasErrors,
288
+ rowClassLocal,
289
+ idTr,
290
+ isSaving,
291
+ modelLocal,
292
+ optionsListForErrors,
293
+ saveEditRow,
294
+ trClassLocal,
295
+ updateModelLocal,
296
+ };
297
+ },
298
+ computed: {
299
+ currentRowData() {
300
+ return this.isActiveEditMode && this.modelLocal ? this.modelLocal : this.row;
301
+ },
302
+ },
303
+ watch: {
304
+ isActiveEditMode: {
305
+ immediate: true,
306
+ handler(isActiveEditMode) {
307
+ if (isActiveEditMode) {
308
+ this.modelLocal = cloneDeep(this.editModel === undefined ? this.row : this.editModel);
309
+ this.errorsLocal = {};
310
+ nextTick(() => {
311
+ this.focusFirstEditableElement();
312
+ });
313
+ return;
314
+ }
315
+
316
+ this.errorsLocal = {};
317
+ this.isSaving = false;
318
+ },
319
+ },
320
+ },
321
+ render() {
322
+ const rows = [];
323
+
324
+ if (this.isActiveEditMode && this.texts.editInfoText) {
325
+ rows.push(h("tr", {
326
+ class: "a_table_form__row a_table_form__row_info",
327
+ key: `info_${ this.rowIndex }`,
328
+ }, [
329
+ h("td", {
330
+ class: "a_table_form__cell a_table_form__cell_info",
331
+ colspan: this.allColumnsLength,
332
+ }, [
333
+ h(AAlert, {
334
+ alertClass: "a_table_form__info",
335
+ html: this.texts.editInfoText,
336
+ isVisible: true,
337
+ type: "info",
338
+ }),
339
+ ]),
340
+ ]));
341
+ }
342
+
343
+ rows.push(h("tr", {
344
+ id: this.idTr,
345
+ "aria-grabbed": !this.isHeader && !this.isFooter ? this.draggedRowIndex === this.rowIndex : undefined,
346
+ class: this.trClassLocal,
347
+ key: `main_${ this.rowIndex }`,
348
+ onDragleave: this.onDragleave && ($event => this.onDragleave($event, this.rowIndex)),
349
+ onDragover: this.onDragover && ($event => this.onDragover($event, this.rowIndex)),
350
+ onDrop: this.onDrop && ($event => this.onDrop($event, this.rowIndex)),
351
+ }, [
352
+ this.isDragAndDrop ?
353
+ h(ATableFormCellDnd, {
354
+ id: this.idTr,
355
+ canMoveRowDown: this.canMoveRowDown,
356
+ canMoveRowUp: this.canMoveRowUp,
357
+ isCreateMode: this.isCreateMode,
358
+ isDndDisabled: this.isDndDisabled,
359
+ isDragAndDrop: this.isDragAndDrop,
360
+ isFooter: this.isFooter,
361
+ isHeader: this.isHeader,
362
+ moveRowDown: this.moveRowDown,
363
+ moveRowUp: this.moveRowUp,
364
+ onDragend: this.onDragend,
365
+ onDragstart: this.onDragstart,
366
+ rowIndex: this.rowIndex,
367
+ texts: this.texts,
368
+ widths: this.widths,
369
+ }) :
370
+ null,
371
+ ...(this.rowView === "list" && !this.isHeader ?
372
+ [h(ATableFormCellList, {
373
+ id: this.idTr,
374
+ columns: this.columns,
375
+ errors: this.errorsLocal,
376
+ isEditable: this.isEditable,
377
+ isEditMode: this.isActiveEditMode,
378
+ isFooter: this.isFooter,
379
+ onUpdateRowData: this.updateModelLocal,
380
+ row: this.row,
381
+ rowData: this.currentRowData,
382
+ rowIndex: this.rowIndex,
383
+ rows: this.rows,
384
+ }, this.$slots)] :
385
+ this.columns.map((column, columnIndex) => {
386
+ if (this.isHeader) {
387
+ return h(ATableFormTh, {
388
+ column,
389
+ columnStyle: this.columnsStylesGrow[column.id],
390
+ isEditable: this.isEditable,
391
+ }, this.$slots);
392
+ }
393
+
394
+ return h(ATableFormCell, {
395
+ id: this.idTr,
396
+ column,
397
+ columnIndex,
398
+ columnStyle: this.columnsStylesGrow[column.id],
399
+ errorIcon: this.errorIcon,
400
+ errors: this.errorsLocal,
401
+ isEditable: this.isEditable,
402
+ isEditMode: this.isActiveEditMode,
403
+ isFooter: this.isFooter,
404
+ onUpdateRowData: this.updateModelLocal,
405
+ row: this.row,
406
+ rowData: this.currentRowData,
407
+ rowIndex: this.rowIndex,
408
+ rows: this.rows,
409
+ tag: this.cellTag,
410
+ }, this.$slots);
411
+ })),
412
+ this.hasActionsColumn ?
413
+ h(ATableFormCellAction, {
414
+ id: this.idTr,
415
+ actionsClasses: this.actionsClasses,
416
+ actionsDisabledCallback: this.actionsDisabledCallback,
417
+ actionsHideCallback: this.actionsHideCallback,
418
+ actionsTitleCallback: this.actionsTitleCallback,
419
+ extra: this.extra,
420
+ hasActiveEditRow: this.hasActiveEditRow,
421
+ isActionsSticky: this.isActionsSticky,
422
+ isActiveEditMode: this.isActiveEditMode,
423
+ isDeletable: this.isDeletable,
424
+ isDeletableConfirm: this.isDeletableConfirm,
425
+ isEditable: this.isEditable,
426
+ isFooter: this.isFooter,
427
+ isHeader: this.isHeader,
428
+ isSaving: this.isSaving,
429
+ onCancelEditRow: this.cancelEditRow,
430
+ onDeleteRow: this.onDeleteRow,
431
+ onEditRow: this.onEditRow,
432
+ onSaveEditRow: this.saveEditRow,
433
+ row: this.row,
434
+ rowIndex: this.rowIndex,
435
+ texts: this.texts,
436
+ widths: this.widths,
437
+ }) :
438
+ null,
439
+ ]));
440
+
441
+ if (this.rowView === "table" && this.isActiveEditMode && this.hasErrors) {
442
+ rows.push(h("tr", {
443
+ class: "a_table_form__row a_table_form__row_errors",
444
+ key: `errors_${ this.rowIndex }`,
445
+ }, [
446
+ h("td", {
447
+ class: "a_table_form__cell a_table_form__cell_errors",
448
+ colspan: this.allColumnsLength,
449
+ }, [
450
+ h(AErrors, {
451
+ autoFocus: true,
452
+ closable: false,
453
+ errors: this.errorsLocal,
454
+ optionsList: this.optionsListForErrors,
455
+ idPrefix: this.idTr,
456
+ }),
457
+ ]),
458
+ ]));
459
+ }
460
+
461
+ return rows;
462
+ },
463
+ };