aloha-vue 2.81.0 → 2.82.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/aloha-vue.es.js +314 -10
  3. package/dist/aloha-vue.umd.js +15 -15
  4. package/package.json +1 -1
  5. package/src/ui/ACheckbox/ACheckbox.js +6 -0
  6. package/src/ui/ACheckbox/ACheckboxItem/ACheckboxItem.js +6 -0
  7. package/src/ui/ADatepicker/ADatepicker.js +6 -0
  8. package/src/ui/ADatepickerRange/ADatepickerRange.js +6 -1
  9. package/src/ui/AFieldset/AFieldset.js +7 -1
  10. package/src/ui/AForm/AForm.js +6 -0
  11. package/src/ui/AFormElement/AFormElement.js +5 -0
  12. package/src/ui/AFormReadonly/AFormReadonly.js +1 -1
  13. package/src/ui/AGroup/AGroup.js +8 -1
  14. package/src/ui/AInput/AInput.js +6 -0
  15. package/src/ui/AInputCurrency/AInputCurrency.js +6 -0
  16. package/src/ui/AInputFile/AInputFile.js +40 -5
  17. package/src/ui/AInputNumber/AInputNumber.js +6 -0
  18. package/src/ui/AInputNumberRange/AInputNumberRange.js +6 -1
  19. package/src/ui/AJson/AJson.js +6 -0
  20. package/src/ui/AMultiselectOrdered/AMultiselectOrdered.js +30 -24
  21. package/src/ui/AOneCheckbox/AOneCheckbox.js +6 -0
  22. package/src/ui/ARadio/ARadio.js +6 -0
  23. package/src/ui/ARadio/ARadioItem/ARadioItem.js +6 -0
  24. package/src/ui/ARouterLinkConfig/ARouterLinkConfig.js +7 -0
  25. package/src/ui/ASelect/ASelect.js +6 -0
  26. package/src/ui/ASelectIcon/ASelectIcon.js +16 -11
  27. package/src/ui/ASelectStyle/ASelectStyle.js +16 -11
  28. package/src/ui/ASlider/ASlider.js +6 -0
  29. package/src/ui/ASwitch/ASwitch.js +11 -5
  30. package/src/ui/ATemplate/ATemplate.js +7 -2
  31. package/src/ui/ATextarea/ATextarea.js +6 -0
  32. package/src/ui/AValidatedJson/AValidatedJson.js +10 -2
  33. package/src/ui/AValidatedJson/AValidatedJsonItem/AValidatedJsonItem.js +6 -0
  34. package/src/ui/__tests__/ReadonlyValueParentClass.test.js +217 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.81.0",
3
+ "version": "2.82.0",
4
4
  "description": "Aloha-vue is a JavaScript library that provides a wide range of accessible components and directives for Vue.js. Accessibility is of paramount importance to us, and we have designed all our components to meet accessibility compliance criteria. This library is a valuable tool for frontend developers and has already been used in three projects, including two large-scale ones",
5
5
  "keywords": [
6
6
  "accessibility compliance criteria",
@@ -274,6 +274,11 @@ export default {
274
274
  type: Boolean,
275
275
  required: false,
276
276
  },
277
+ readonlyValueParentClass: {
278
+ type: [String, Object, Array],
279
+ required: false,
280
+ default: undefined,
281
+ },
277
282
  readonlyDefault: {
278
283
  type: String,
279
284
  required: false,
@@ -623,6 +628,7 @@ export default {
623
628
  if (this.readonly) {
624
629
  return h(AFormReadonly, {
625
630
  ...this.$attrs,
631
+ valueParentClass: this.readonlyValueParentClass,
626
632
  id: this.htmlIdLocal,
627
633
  alwaysTranslate: this.alwaysTranslate,
628
634
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -97,6 +97,11 @@ export default {
97
97
  type: Boolean,
98
98
  required: false,
99
99
  },
100
+ readonlyValueParentClass: {
101
+ type: [String, Object, Array],
102
+ required: false,
103
+ default: undefined,
104
+ },
100
105
  searching: {
101
106
  type: Boolean,
102
107
  required: false,
@@ -190,6 +195,7 @@ export default {
190
195
  render() {
191
196
  if (this.readonly) {
192
197
  return h(AElement, {
198
+ class: this.readonlyValueParentClass,
193
199
  alwaysTranslate: this.alwaysTranslate,
194
200
  classDefault: "",
195
201
  extra: {
@@ -206,6 +206,11 @@ export default {
206
206
  type: Boolean,
207
207
  required: false,
208
208
  },
209
+ readonlyValueParentClass: {
210
+ type: [String, Object, Array],
211
+ required: false,
212
+ default: undefined,
213
+ },
209
214
  readonlyDefault: {
210
215
  type: String,
211
216
  required: false,
@@ -555,6 +560,7 @@ export default {
555
560
  if (this.readonly) {
556
561
  return h(AFormReadonly, {
557
562
  ...this.$attrs,
563
+ valueParentClass: this.readonlyValueParentClass,
558
564
  id: this.htmlIdLocal,
559
565
  alwaysTranslate: this.alwaysTranslate,
560
566
  class: this.class,
@@ -246,6 +246,11 @@ export default {
246
246
  type: Boolean,
247
247
  required: false,
248
248
  },
249
+ readonlyValueParentClass: {
250
+ type: [String, Object, Array],
251
+ required: false,
252
+ default: undefined,
253
+ },
249
254
  readonlyDefault: {
250
255
  type: String,
251
256
  required: false,
@@ -385,7 +390,7 @@ export default {
385
390
  required: this.required,
386
391
  style: this.componentStyleHide,
387
392
  type: "dateRange",
388
- valueParentClass: "a_form_element_readonly_value_range",
393
+ valueParentClass: ["a_form_element_readonly_value_range", this.readonlyValueParentClass],
389
394
  }, () => [
390
395
  h(ADatepicker, {
391
396
  id: this.idFrom,
@@ -205,6 +205,11 @@ export default {
205
205
  type: Boolean,
206
206
  required: false,
207
207
  },
208
+ readonlyValueParentClass: {
209
+ type: [String, Object, Array],
210
+ required: false,
211
+ default: undefined,
212
+ },
208
213
  readonlyDefault: {
209
214
  type: String,
210
215
  required: false,
@@ -409,6 +414,7 @@ export default {
409
414
  idPrefix: this.idPrefix,
410
415
  onUpdateData: ({ dataKeyByKeyId }) => this.onUpdateDataLocal({ item, dataKeyByKeyId }),
411
416
  class: classColumn,
417
+ readonlyValueParentClass: this.readonlyValueParentClass,
412
418
  ...item,
413
419
  change: ({ currentModel, id, item: _item, model, props, fullModel }) => this.onUpdateModelLocal({
414
420
  currentModel, id, item: _item, model, props, component: item, fullModel,
@@ -451,7 +457,7 @@ export default {
451
457
  required: this.required,
452
458
  style: this.componentStyleHide,
453
459
  type: "fieldset",
454
- valueParentClass: this.classColumnsReadonly,
460
+ valueParentClass: [this.classColumnsReadonly, this.readonlyValueParentClass],
455
461
  }, () => CONTENT);
456
462
  }
457
463
 
@@ -86,6 +86,11 @@ export default {
86
86
  type: Boolean,
87
87
  required: false,
88
88
  },
89
+ readonlyValueParentClass: {
90
+ type: [String, Object, Array],
91
+ required: false,
92
+ default: undefined,
93
+ },
89
94
  readonlyDefault: {
90
95
  type: String,
91
96
  required: false,
@@ -246,6 +251,7 @@ export default {
246
251
  useFlatModel: IS_CONTAINER ? this.useFlatModel : undefined,
247
252
  idPrefix: this.idPrefix,
248
253
  excludeRenderAttributes: this.excludeRenderAttributes,
254
+ readonlyValueParentClass: this.readonlyValueParentClass,
249
255
  ...item,
250
256
  change: ({ currentModel, id, item: _item, model, props, fullModel }) => this.onUpdateModelLocal({
251
257
  currentModel, id, item: _item, model, props, component: item, fullModel,
@@ -124,6 +124,11 @@ export default {
124
124
  type: Boolean,
125
125
  required: false,
126
126
  },
127
+ readonlyValueParentClass: {
128
+ type: [String, Object, Array],
129
+ required: false,
130
+ default: undefined,
131
+ },
127
132
  readonlyDefault: {
128
133
  type: String,
129
134
  required: false,
@@ -100,7 +100,7 @@ export default {
100
100
  default: undefined,
101
101
  },
102
102
  valueParentClass: {
103
- type: [String, Object],
103
+ type: [String, Object, Array],
104
104
  required: false,
105
105
  default: undefined,
106
106
  },
@@ -170,6 +170,11 @@ export default {
170
170
  type: Boolean,
171
171
  required: false,
172
172
  },
173
+ readonlyValueParentClass: {
174
+ type: [String, Object, Array],
175
+ required: false,
176
+ default: undefined,
177
+ },
173
178
  readonlyDefault: {
174
179
  type: String,
175
180
  required: false,
@@ -328,7 +333,7 @@ export default {
328
333
  "aria-describedby": this.ariaDescribedbyLocal,
329
334
  }, [
330
335
  h("div", {
331
- class: this.classColumns,
336
+ class: [this.classColumns, this.readonly && this.readonlyValueParentClass],
332
337
  }, [
333
338
  this.firstChild.label && h(ALabel, {
334
339
  id: this.htmlIdFirstChild,
@@ -394,10 +399,12 @@ export default {
394
399
  parentId,
395
400
  idPrefix: this.idPrefix,
396
401
  onUpdateData: ({ dataKeyByKeyId }) => this.onUpdateDataLocal({ item, dataKeyByKeyId }),
402
+ readonlyValueParentClass: this.readonlyValueParentClass,
397
403
  ...item,
398
404
  change: ({ currentModel, id, item: _item, model, props }) => this.onUpdateModelLocal({
399
405
  currentModel, id, item: _item, model, props, component: item,
400
406
  }),
407
+ readonly: this.readonly || item.readonly,
401
408
  disabled: this.disabled || item.disabled,
402
409
  ...this.specificAttributes[item.id],
403
410
  label: itemIndex === 0 ? undefined : item.label,
@@ -199,6 +199,11 @@ export default {
199
199
  type: Boolean,
200
200
  required: false,
201
201
  },
202
+ readonlyValueParentClass: {
203
+ type: [String, Object, Array],
204
+ required: false,
205
+ default: undefined,
206
+ },
202
207
  readonlyDefault: {
203
208
  type: String,
204
209
  required: false,
@@ -374,6 +379,7 @@ export default {
374
379
  if (this.readonly) {
375
380
  return h(AFormReadonly, {
376
381
  ...this.$attrs,
382
+ valueParentClass: this.readonlyValueParentClass,
377
383
  id: this.htmlIdLocal,
378
384
  alwaysTranslate: this.alwaysTranslate,
379
385
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -264,6 +264,11 @@ export default {
264
264
  type: Boolean,
265
265
  required: false,
266
266
  },
267
+ readonlyValueParentClass: {
268
+ type: [String, Object, Array],
269
+ required: false,
270
+ default: undefined,
271
+ },
267
272
  readonlyDefault: {
268
273
  type: String,
269
274
  required: false,
@@ -451,6 +456,7 @@ export default {
451
456
  if (this.readonly) {
452
457
  return h(AFormReadonly, {
453
458
  ...this.$attrs,
459
+ valueParentClass: this.readonlyValueParentClass,
454
460
  id: this.htmlIdLocal,
455
461
  alwaysTranslate: this.alwaysTranslate,
456
462
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -6,6 +6,7 @@ import {
6
6
  } from "vue";
7
7
  import {
8
8
  AFormLabelDescription,
9
+ AFormReadonly,
9
10
  } from "../../index";
10
11
 
11
12
  import AErrorsText from "../AErrorsText/AErrorsText";
@@ -57,6 +58,20 @@ export default {
57
58
  type: [String, Number, Object, Array],
58
59
  required: false,
59
60
  },
61
+ readonly: {
62
+ type: Boolean,
63
+ required: false,
64
+ },
65
+ readonlyDefault: {
66
+ type: String,
67
+ required: false,
68
+ default: "",
69
+ },
70
+ readonlyValueParentClass: {
71
+ type: [String, Object, Array],
72
+ required: false,
73
+ default: undefined,
74
+ },
60
75
  text: {
61
76
  type: String,
62
77
  required: false,
@@ -164,6 +179,26 @@ export default {
164
179
  return null;
165
180
  }
166
181
 
182
+ if (this.readonly) {
183
+ return h(AFormReadonly, {
184
+ ...this.$attrs,
185
+ id: this.htmlIdLocal,
186
+ alwaysTranslate: this.alwaysTranslate,
187
+ excludeRenderAttributes: this.excludeRenderAttributes,
188
+ extra: this.extra,
189
+ helpText: this.helpText,
190
+ label: this.label,
191
+ labelClass: this.labelClass,
192
+ labelScreenReader: this.labelScreenReader,
193
+ readonlyDefault: this.readonlyDefault,
194
+ style: this.componentStyleHide,
195
+ type: this.type,
196
+ valueParentClass: this.readonlyValueParentClass,
197
+ }, this.isModel ?
198
+ () => h("ul", {}, this.modelValueListLocal.map(model => h("li", {}, model.name))) :
199
+ undefined);
200
+ }
201
+
167
202
  return h("div", {
168
203
  ...this.$attrs,
169
204
  style: this.componentStyleHide,
@@ -172,11 +207,11 @@ export default {
172
207
  h("div", {
173
208
  class: "a_form_element__parent",
174
209
  }, [
175
- this.label && h(ALabel, {
176
- id: this.htmlIdLocal,
177
- alwaysTranslate: this.alwaysTranslate,
178
- extra: this.extra,
179
- label: this.label,
210
+ this.label && h(ALabel, {
211
+ id: this.htmlIdLocal,
212
+ alwaysTranslate: this.alwaysTranslate,
213
+ extra: this.extra,
214
+ label: this.label,
180
215
  labelClass: this.labelClass,
181
216
  labelScreenReader: this.labelScreenReader,
182
217
  required: this.required,
@@ -139,6 +139,11 @@ export default {
139
139
  type: Boolean,
140
140
  required: false,
141
141
  },
142
+ readonlyValueParentClass: {
143
+ type: [String, Object, Array],
144
+ required: false,
145
+ default: undefined,
146
+ },
142
147
  readonlyDefault: {
143
148
  type: String,
144
149
  required: false,
@@ -331,6 +336,7 @@ export default {
331
336
  if (this.readonly) {
332
337
  return h(AFormReadonly, {
333
338
  ...this.$attrs,
339
+ valueParentClass: this.readonlyValueParentClass,
334
340
  id: this.htmlIdLocal,
335
341
  alwaysTranslate: this.alwaysTranslate,
336
342
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -214,6 +214,11 @@ export default {
214
214
  type: Boolean,
215
215
  required: false,
216
216
  },
217
+ readonlyValueParentClass: {
218
+ type: [String, Object, Array],
219
+ required: false,
220
+ default: undefined,
221
+ },
217
222
  readonlyDefault: {
218
223
  type: String,
219
224
  required: false,
@@ -368,7 +373,7 @@ export default {
368
373
  required: this.required,
369
374
  style: this.componentStyleHide,
370
375
  type: "numberRange",
371
- valueParentClass: "a_form_element_readonly_value_range",
376
+ valueParentClass: ["a_form_element_readonly_value_range", this.readonlyValueParentClass],
372
377
  }, () => [
373
378
  h(AInputNumber, {
374
379
  id: this.idMin,
@@ -161,6 +161,11 @@ export default {
161
161
  type: Boolean,
162
162
  required: false,
163
163
  },
164
+ readonlyValueParentClass: {
165
+ type: [String, Object, Array],
166
+ required: false,
167
+ default: undefined,
168
+ },
164
169
  readonlyDefault: {
165
170
  type: String,
166
171
  required: false,
@@ -267,6 +272,7 @@ export default {
267
272
  if (this.readonly) {
268
273
  return h(AFormReadonly, {
269
274
  ...this.$attrs,
275
+ valueParentClass: this.readonlyValueParentClass,
270
276
  id: this.htmlIdLocal,
271
277
  alwaysTranslate: this.alwaysTranslate,
272
278
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -119,17 +119,17 @@ export default {
119
119
  required: false,
120
120
  default: undefined,
121
121
  },
122
- dataExtra: {
123
- type: Array,
124
- required: false,
125
- default: () => [],
126
- },
127
- mergeData: {
128
- type: Boolean,
129
- required: false,
130
- default: false,
131
- },
132
- dependencies: {
122
+ dataExtra: {
123
+ type: Array,
124
+ required: false,
125
+ default: () => [],
126
+ },
127
+ mergeData: {
128
+ type: Boolean,
129
+ required: false,
130
+ default: false,
131
+ },
132
+ dependencies: {
133
133
  type: [Array, Object],
134
134
  required: false,
135
135
  default: undefined,
@@ -294,6 +294,11 @@ export default {
294
294
  type: Boolean,
295
295
  required: false,
296
296
  },
297
+ readonlyValueParentClass: {
298
+ type: [String, Object, Array],
299
+ required: false,
300
+ default: undefined,
301
+ },
297
302
  readonlyDefault: {
298
303
  type: String,
299
304
  required: false,
@@ -443,16 +448,16 @@ export default {
443
448
  required: false,
444
449
  default: () => AMultiselectOrderedPluginOptions.propsDefault.texts,
445
450
  },
446
- translateData: {
447
- type: Boolean,
448
- required: false,
449
- default: () => AMultiselectOrderedPluginOptions.propsDefault.translateData,
450
- },
451
- translateGroup: {
452
- type: Boolean,
453
- required: false,
454
- default: () => AMultiselectOrderedPluginOptions.propsDefault.translateGroup,
455
- },
451
+ translateData: {
452
+ type: Boolean,
453
+ required: false,
454
+ default: () => AMultiselectOrderedPluginOptions.propsDefault.translateData,
455
+ },
456
+ translateGroup: {
457
+ type: Boolean,
458
+ required: false,
459
+ default: () => AMultiselectOrderedPluginOptions.propsDefault.translateGroup,
460
+ },
456
461
  url: {
457
462
  type: String,
458
463
  required: false,
@@ -680,6 +685,7 @@ export default {
680
685
  if (this.readonly) {
681
686
  return h(AFormReadonly, {
682
687
  ...this.$attrs,
688
+ valueParentClass: this.readonlyValueParentClass,
683
689
  id: this.htmlIdLocal,
684
690
  alwaysTranslate: this.alwaysTranslate,
685
691
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -929,9 +935,9 @@ export default {
929
935
  searchTimeout: this.searchTimeout,
930
936
  searchTextInHtml: this.searchTextInHtml,
931
937
  selectMenuClass: this.selectMenuClass,
932
- slotName: this.slotName,
933
- translateGroup: this.translateGroup,
934
- type: "multiselect",
938
+ slotName: this.slotName,
939
+ translateGroup: this.translateGroup,
940
+ type: "multiselect",
935
941
  }, this.$slots),
936
942
  ]),
937
943
  ]),
@@ -157,6 +157,11 @@ export default {
157
157
  type: Boolean,
158
158
  required: false,
159
159
  },
160
+ readonlyValueParentClass: {
161
+ type: [String, Object, Array],
162
+ required: false,
163
+ default: undefined,
164
+ },
160
165
  readonlyDefault: {
161
166
  type: String,
162
167
  required: false,
@@ -249,6 +254,7 @@ export default {
249
254
  if (this.readonly) {
250
255
  return h(AFormReadonly, {
251
256
  ...this.$attrs,
257
+ valueParentClass: this.readonlyValueParentClass,
252
258
  id: this.htmlIdLocal,
253
259
  alwaysTranslate: this.alwaysTranslate,
254
260
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -285,6 +285,11 @@ export default {
285
285
  type: Boolean,
286
286
  required: false,
287
287
  },
288
+ readonlyValueParentClass: {
289
+ type: [String, Object, Array],
290
+ required: false,
291
+ default: undefined,
292
+ },
288
293
  readonlyDefault: {
289
294
  type: String,
290
295
  required: false,
@@ -626,6 +631,7 @@ export default {
626
631
  if (this.readonly) {
627
632
  return h(AFormReadonly, {
628
633
  ...this.$attrs,
634
+ valueParentClass: this.readonlyValueParentClass,
629
635
  id: this.htmlIdLocal,
630
636
  alwaysTranslate: this.alwaysTranslate,
631
637
  excludeRenderAttributes: this.excludeRenderAttributes,
@@ -97,6 +97,11 @@ export default {
97
97
  type: Boolean,
98
98
  required: false,
99
99
  },
100
+ readonlyValueParentClass: {
101
+ type: [String, Object, Array],
102
+ required: false,
103
+ default: undefined,
104
+ },
100
105
  searching: {
101
106
  type: Boolean,
102
107
  required: false,
@@ -191,6 +196,7 @@ export default {
191
196
  render() {
192
197
  if (this.readonly) {
193
198
  return h(AElement, {
199
+ class: this.readonlyValueParentClass,
194
200
  alwaysTranslate: this.alwaysTranslate,
195
201
  classDefault: "",
196
202
  extra: {
@@ -206,6 +206,11 @@ export default {
206
206
  type: Boolean,
207
207
  required: false,
208
208
  },
209
+ readonlyValueParentClass: {
210
+ type: [String, Object, Array],
211
+ required: false,
212
+ default: undefined,
213
+ },
209
214
  readonlyDefault: {
210
215
  type: String,
211
216
  required: false,
@@ -353,6 +358,7 @@ export default {
353
358
  modelDependencies: this.modelDependencies,
354
359
  modelValue: this.modelLocal,
355
360
  readonly: this.readonly,
361
+ readonlyValueParentClass: this.readonlyValueParentClass,
356
362
  readonlyDefault: this.readonlyDefault,
357
363
  required: this.required,
358
364
  slotName: this.slotName,
@@ -387,6 +393,7 @@ export default {
387
393
  modelDependencies: this.modelDependencies,
388
394
  modelValue: this.modelLocal,
389
395
  readonly: this.readonly,
396
+ readonlyValueParentClass: this.readonlyValueParentClass,
390
397
  readonlyDefault: this.readonlyDefault,
391
398
  required: this.required,
392
399
  search: true,
@@ -409,6 +409,11 @@ export default {
409
409
  type: Boolean,
410
410
  required: false,
411
411
  },
412
+ readonlyValueParentClass: {
413
+ type: [String, Object, Array],
414
+ required: false,
415
+ default: undefined,
416
+ },
412
417
  readonlyDefault: {
413
418
  type: String,
414
419
  required: false,
@@ -1007,6 +1012,7 @@ export default {
1007
1012
  if (this.readonly) {
1008
1013
  return h(AFormReadonly, {
1009
1014
  ...this.$attrs,
1015
+ valueParentClass: this.readonlyValueParentClass,
1010
1016
  id: this.htmlIdLocal,
1011
1017
  alwaysTranslate: this.alwaysTranslate,
1012
1018
  class: this.class,
@@ -279,6 +279,11 @@ export default {
279
279
  type: Boolean,
280
280
  required: false,
281
281
  },
282
+ readonlyValueParentClass: {
283
+ type: [String, Object, Array],
284
+ required: false,
285
+ default: undefined,
286
+ },
282
287
  readonlyDefault: {
283
288
  type: String,
284
289
  required: false,
@@ -325,17 +330,17 @@ export default {
325
330
  required: false,
326
331
  default: () => ASelectPluginOptions.propsDefault.textDeselectAll,
327
332
  },
328
- textSelectAll: {
329
- type: String,
330
- required: false,
331
- default: () => ASelectPluginOptions.propsDefault.textSelectAll,
332
- },
333
- translateGroup: {
334
- type: Boolean,
335
- required: false,
336
- default: () => ASelectPluginOptions.propsDefault.translateGroup,
337
- },
338
- type: {
333
+ textSelectAll: {
334
+ type: String,
335
+ required: false,
336
+ default: () => ASelectPluginOptions.propsDefault.textSelectAll,
337
+ },
338
+ translateGroup: {
339
+ type: Boolean,
340
+ required: false,
341
+ default: () => ASelectPluginOptions.propsDefault.translateGroup,
342
+ },
343
+ type: {
339
344
  type: String,
340
345
  required: false,
341
346
  default: () => ASelectPluginOptions.propsDefault.type,
@@ -282,6 +282,11 @@ export default {
282
282
  type: Boolean,
283
283
  required: false,
284
284
  },
285
+ readonlyValueParentClass: {
286
+ type: [String, Object, Array],
287
+ required: false,
288
+ default: undefined,
289
+ },
285
290
  readonlyDefault: {
286
291
  type: String,
287
292
  required: false,
@@ -329,17 +334,17 @@ export default {
329
334
  required: false,
330
335
  default: () => ASelectPluginOptions.propsDefault.textDeselectAll,
331
336
  },
332
- textSelectAll: {
333
- type: String,
334
- required: false,
335
- default: () => ASelectPluginOptions.propsDefault.textSelectAll,
336
- },
337
- translateGroup: {
338
- type: Boolean,
339
- required: false,
340
- default: () => ASelectPluginOptions.propsDefault.translateGroup,
341
- },
342
- type: {
337
+ textSelectAll: {
338
+ type: String,
339
+ required: false,
340
+ default: () => ASelectPluginOptions.propsDefault.textSelectAll,
341
+ },
342
+ translateGroup: {
343
+ type: Boolean,
344
+ required: false,
345
+ default: () => ASelectPluginOptions.propsDefault.translateGroup,
346
+ },
347
+ type: {
343
348
  type: String,
344
349
  required: false,
345
350
  default: () => ASelectPluginOptions.propsDefault.type,
@@ -216,6 +216,11 @@ export default {
216
216
  type: Boolean,
217
217
  required: false,
218
218
  },
219
+ readonlyValueParentClass: {
220
+ type: [String, Object, Array],
221
+ required: false,
222
+ default: undefined,
223
+ },
219
224
  readonlyDefault: {
220
225
  type: String,
221
226
  required: false,
@@ -474,6 +479,7 @@ export default {
474
479
  if (this.readonly) {
475
480
  return h(AFormReadonly, {
476
481
  ...this.$attrs,
482
+ valueParentClass: this.readonlyValueParentClass,
477
483
  id: this.htmlIdLocal,
478
484
  alwaysTranslate: this.alwaysTranslate,
479
485
  excludeRenderAttributes: this.excludeRenderAttributes,