@volverjs/ui-vue 0.0.10-beta.53 → 0.0.10-beta.54

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 (39) hide show
  1. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +13 -1
  2. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  3. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +9 -0
  4. package/dist/components/VvCheckboxGroup/index.d.ts +4 -0
  5. package/dist/components/VvInputFile/VvInputFile.es.js +17 -3
  6. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  7. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +9 -0
  8. package/dist/components/VvInputFile/index.d.ts +4 -0
  9. package/dist/components/VvInputText/VvInputText.es.js +1 -1
  10. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  11. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +13 -1
  12. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  13. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +9 -0
  14. package/dist/components/VvRadioGroup/index.d.ts +4 -0
  15. package/dist/components/VvTextarea/VvTextarea.es.js +290 -290
  16. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  17. package/dist/components/index.es.js +16 -6
  18. package/dist/components/index.umd.js +1 -1
  19. package/dist/icons.es.js +3 -3
  20. package/dist/icons.umd.js +1 -1
  21. package/dist/props/index.d.ts +8 -1
  22. package/dist/stories/InputText/InputText.stories.d.ts +2 -0
  23. package/dist/stories/InputText/InputText.test.d.ts +2 -0
  24. package/package.json +3 -3
  25. package/src/assets/icons/detailed.json +1 -1
  26. package/src/assets/icons/normal.json +1 -1
  27. package/src/assets/icons/simple.json +1 -1
  28. package/src/components/VvCheckbox/VvCheckbox.vue +2 -2
  29. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +2 -0
  30. package/src/components/VvInputFile/VvInputFile.vue +12 -8
  31. package/src/components/VvInputFile/index.ts +2 -0
  32. package/src/components/VvInputText/VvInputText.vue +2 -2
  33. package/src/components/VvRadio/VvRadio.vue +2 -2
  34. package/src/components/VvRadioGroup/VvRadioGroup.vue +2 -0
  35. package/src/components/VvTextarea/VvTextarea.vue +1 -1
  36. package/src/props/index.ts +2 -1
  37. package/src/stories/InputText/InputText.stories.ts +37 -1
  38. package/src/stories/InputText/InputText.test.ts +18 -0
  39. package/src/stories/Textarea/Textarea.stories.ts +1 -1
@@ -538,6 +538,7 @@ const CheckboxRadioGroupProps = {
538
538
  ...ModifiersProps,
539
539
  ...LabelProps,
540
540
  ...LoadingProps,
541
+ ...RequiredProps,
541
542
  /**
542
543
  * Input value
543
544
  */
@@ -3225,6 +3226,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3225
3226
  computed(() => ({
3226
3227
  disabled: disabled.value,
3227
3228
  readonly: readonly.value,
3229
+ required: props.required,
3228
3230
  horizontal: !vertical.value,
3229
3231
  valid: valid.value,
3230
3232
  invalid: invalid.value
@@ -3235,7 +3237,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
3235
3237
  id: `${props.name}_opt${index}`,
3236
3238
  name: props.name,
3237
3239
  label: getOptionLabel(option),
3238
- value: getOptionValue(option)
3240
+ value: getOptionValue(option),
3241
+ required: props.required
3239
3242
  };
3240
3243
  }
3241
3244
  const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);
@@ -5471,6 +5474,7 @@ const VvInputFileProps = {
5471
5474
  ...LoadingProps,
5472
5475
  ...ReadonlyProps,
5473
5476
  ...DisabledProps,
5477
+ ...RequiredProps,
5474
5478
  ...IconProps,
5475
5479
  /**
5476
5480
  * Input value
@@ -5581,7 +5585,7 @@ const _hoisted_1$6 = ["for"];
5581
5585
  const _hoisted_2$4 = { class: "vv-input-file__preview" };
5582
5586
  const _hoisted_3$2 = ["src", "alt"];
5583
5587
  const _hoisted_4$2 = { class: "vv-input-file__wrapper" };
5584
- const _hoisted_5$2 = ["id", "readonly", "disabled", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
5588
+ const _hoisted_5$2 = ["id", "readonly", "disabled", "required", "placeholder", "aria-describedby", "aria-invalid", "aria-errormessage", "multiple", "accept", "capture", "name"];
5585
5589
  const _hoisted_6$2 = ["value"];
5586
5590
  const _hoisted_7$2 = ["onClick"];
5587
5591
  const _hoisted_8$1 = ["title", "onClick"];
@@ -5620,10 +5624,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5620
5624
  "vv-input-file",
5621
5625
  modifiers,
5622
5626
  computed(() => ({
5623
- "dragging": isDragging.value,
5624
- "loading": props.loading && !hasProgress.value,
5625
5627
  "valid": props.valid === true,
5626
5628
  "invalid": props.invalid === true,
5629
+ "loading": props.loading && !hasProgress.value,
5630
+ "disabled": props.disabled,
5631
+ "required": props.required,
5632
+ "readonly": props.readonly,
5633
+ "dragging": isDragging.value,
5627
5634
  "icon-before": !!hasIconBefore.value,
5628
5635
  "icon-after": !!hasIconAfter.value,
5629
5636
  "drop-area": hasDropArea.value
@@ -5886,6 +5893,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5886
5893
  type: "file",
5887
5894
  readonly: unref(readonly),
5888
5895
  disabled: unref(disabled),
5896
+ required: _ctx.required,
5889
5897
  placeholder: _ctx.placeholder,
5890
5898
  "aria-describedby": unref(hasHintLabelOrSlot) ? hasHintId.value : void 0,
5891
5899
  "aria-invalid": _ctx.invalid,
@@ -6667,7 +6675,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6667
6675
  );
6668
6676
  function updateMaskValue(newValue) {
6669
6677
  var _a;
6670
- if (newValue === void 0) {
6678
+ if (newValue === void 0 || newValue === null) {
6671
6679
  typed.value = "";
6672
6680
  unmasked.value = "";
6673
6681
  return;
@@ -7538,6 +7546,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7538
7546
  computed(() => ({
7539
7547
  disabled: disabled.value,
7540
7548
  readonly: readonly.value,
7549
+ required: props.required,
7541
7550
  horizontal: !vertical.value,
7542
7551
  valid: valid.value,
7543
7552
  invalid: invalid.value
@@ -7548,7 +7557,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7548
7557
  id: `${props.name}_opt${index}`,
7549
7558
  name: props.name,
7550
7559
  label: getOptionLabel(option),
7551
- value: getOptionValue(option)
7560
+ value: getOptionValue(option),
7561
+ required: props.required
7552
7562
  };
7553
7563
  }
7554
7564
  const { HintSlot, hintSlotScope } = HintSlotFactory(propsDefaults, slots);