aloha-vue 2.70.0 → 2.71.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
- "version": "2.70.0",
3
+ "version": "2.71.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",
@@ -374,19 +374,23 @@ export default {
374
374
  };
375
375
  },
376
376
  render() {
377
- return h("div", {
378
- class: "a_table_form",
379
- }, [
380
- this.label && h(ATranslation, {
381
- class: [
382
- "a_table_form__label",
383
- this.labelClass,
384
- ],
385
- html: this.label,
386
- tag: this.labelTag,
387
- }),
388
- this.hasRequiredEditableColumns && h(ARequired),
389
- h("div", {
377
+ return h("div", {
378
+ class: "a_table_form",
379
+ }, [
380
+ this.$slots.label ?
381
+ this.$slots.label() :
382
+ this.label && h(ATranslation, {
383
+ class: [
384
+ "a_table_form__label",
385
+ this.labelClass,
386
+ ],
387
+ html: this.label,
388
+ tag: this.labelTag,
389
+ }),
390
+ this.$slots.requiredPrepend && this.$slots.requiredPrepend(),
391
+ this.hasRequiredEditableColumns && h(ARequired),
392
+ this.$slots.requiredAppend && this.$slots.requiredAppend(),
393
+ h("div", {
390
394
  class: "a_table_form__wrapper",
391
395
  }, [
392
396
  h("table", {
@@ -388,6 +388,8 @@ export default function InputEventsAPI(props, {
388
388
  const keyValue = $event.key;
389
389
  const keyIsNumber = keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105;
390
390
  const keyIsZero = keyCode === 48 || keyCode === 96;
391
+ const keyIsMinus = keyValue === "-";
392
+ const keyIsPlus = keyValue === "+";
391
393
  const keyIsDecimalDivider = keyValue === decimalDivider.value && !!decimalPartLength.value;
392
394
  const decimalDividerIndex = $event.target.value.indexOf(decimalDivider.value);
393
395
  const hasDecimalDivider = decimalDividerIndex !== -1;
@@ -416,13 +418,13 @@ export default function InputEventsAPI(props, {
416
418
 
417
419
  return;
418
420
  }
419
- if (keyCode === AKeysCode.minus || keyCode === AKeysCode.numMinus) {
421
+ if (keyIsMinus) {
420
422
  handleMinus(valueProps);
421
423
  $event.preventDefault();
422
424
 
423
425
  return;
424
426
  }
425
- if (keyCode === AKeysCode.plus && $event.shiftKey || keyCode === AKeysCode.numPlus) {
427
+ if (keyIsPlus) {
426
428
  handlePlus(valueProps);
427
429
  $event.preventDefault();
428
430