aloha-vue 1.2.236 → 1.2.237

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.236",
17
+ "version": "1.2.237",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -292,56 +292,60 @@ export default {
292
292
  required: this.required,
293
293
  isError: this.isErrors,
294
294
  }),
295
- h(AElement, {
296
- class: [
297
- "switch_button",
298
- {
299
- switch_button_undefined: this.isModelDefault,
300
- switch_button_invalid: this.isErrors,
301
- switch_button_auto: !this.fullWidth,
302
- },
303
- ],
304
- classDefault: "",
305
- isTitleHtml: this.isTitleHtml,
306
- tag: "div",
307
- title: this.title,
308
- titlePlacement: this.titlePlacement,
309
- type: "text",
310
- }, {
311
- default: () => [
312
- h("input", {
313
- id: this.htmlIdLocal,
314
- "aria-describedby": this.ariaDescribedbyLocal,
315
- ariaInvalid: this.isErrors,
316
- ariaRequired: this.required,
317
- checked: this.isChecked,
318
- class: [
319
- "switch_button__input",
320
- this.inputClass,
321
- ],
322
- disabled: this.disabledAttribut,
323
- type: "checkbox",
324
- ...this.inputAttributes,
325
- onClick: this.onInput,
326
- onKeydown: this.onKeydown,
327
- onFocus: this.onFocus,
328
- onBlur: this.onBlur,
329
- }),
330
- h(ATranslation, {
331
- alwaysTranslate: this.alwaysTranslate,
332
- tag: "label",
333
- class: [
334
- "switch_button__label",
335
- {
336
- switch_button__label_full: this.fullWidth,
337
- },
338
- ],
339
- for: this.htmlIdLocal,
340
- extra: this.extra,
341
- html: this.labelValueLocal,
342
- }),
343
- ],
344
- }),
295
+ h("div", {
296
+ class: "switch_button__wrapper",
297
+ }, [
298
+ h(AElement, {
299
+ class: [
300
+ "switch_button",
301
+ {
302
+ switch_button_undefined: this.isModelDefault,
303
+ switch_button_invalid: this.isErrors,
304
+ switch_button_auto: !this.fullWidth,
305
+ },
306
+ ],
307
+ classDefault: "",
308
+ isTitleHtml: this.isTitleHtml,
309
+ tag: "div",
310
+ title: this.title,
311
+ titlePlacement: this.titlePlacement,
312
+ type: "text",
313
+ }, {
314
+ default: () => [
315
+ h("input", {
316
+ id: this.htmlIdLocal,
317
+ "aria-describedby": this.ariaDescribedbyLocal,
318
+ ariaInvalid: this.isErrors,
319
+ ariaRequired: this.required,
320
+ checked: this.isChecked,
321
+ class: [
322
+ "switch_button__input",
323
+ this.inputClass,
324
+ ],
325
+ disabled: this.disabledAttribut,
326
+ type: "checkbox",
327
+ ...this.inputAttributes,
328
+ onClick: this.onInput,
329
+ onKeydown: this.onKeydown,
330
+ onFocus: this.onFocus,
331
+ onBlur: this.onBlur,
332
+ }),
333
+ h(ATranslation, {
334
+ alwaysTranslate: this.alwaysTranslate,
335
+ tag: "label",
336
+ class: [
337
+ "switch_button__label",
338
+ {
339
+ switch_button__label_full: this.fullWidth,
340
+ },
341
+ ],
342
+ for: this.htmlIdLocal,
343
+ extra: this.extra,
344
+ html: this.labelValueLocal,
345
+ }),
346
+ ],
347
+ }),
348
+ ]),
345
349
  h(AFormHelpText, {
346
350
  id: this.helpTextId,
347
351
  alwaysTranslate: this.alwaysTranslate,