@volverjs/ui-vue 0.0.10-beta.65 → 0.0.10-beta.67

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 (65) hide show
  1. package/README.md +1 -2
  2. package/dist/Volver.d.ts +13 -1
  3. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -1
  4. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +1 -1
  5. package/dist/components/VvAction/VvAction.vue.d.ts +1 -3
  6. package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
  7. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
  8. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +1 -1
  9. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +1 -1
  10. package/dist/components/VvBadge/VvBadge.vue.d.ts +1 -1
  11. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
  12. package/dist/components/VvButton/VvButton.vue.d.ts +1 -180
  13. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
  14. package/dist/components/VvCard/VvCard.vue.d.ts +1 -1
  15. package/dist/components/VvCheckbox/VvCheckbox.es.js +1 -1
  16. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  17. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +1 -3
  18. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +1 -1
  19. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  20. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +1 -1
  21. package/dist/components/VvCombobox/VvCombobox.es.js +6 -5
  22. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  23. package/dist/components/VvDialog/VvDialog.vue.d.ts +1 -4
  24. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +1 -5
  25. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +3 -3
  26. package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -3
  27. package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
  28. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
  29. package/dist/components/VvInputFile/VvInputFile.es.js +1 -1
  30. package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
  31. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +1 -3
  32. package/dist/components/VvInputText/VvInputText.es.js +14 -13
  33. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  34. package/dist/components/VvInputText/VvInputText.vue.d.ts +1 -710
  35. package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
  36. package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
  37. package/dist/components/VvRadio/VvRadio.es.js +1 -1
  38. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  39. package/dist/components/VvRadio/VvRadio.vue.d.ts +1 -3
  40. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +1 -1
  41. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  42. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +1 -1
  43. package/dist/components/VvSelect/VvSelect.es.js +2 -2
  44. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  45. package/dist/components/VvTab/VvTab.vue.d.ts +1 -1
  46. package/dist/components/VvTextarea/VvTextarea.es.js +3 -2
  47. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  48. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +1 -709
  49. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +1 -1
  50. package/dist/components/index.es.js +21 -18
  51. package/dist/components/index.umd.js +1 -1
  52. package/dist/composables/useComponentFocus.d.ts +1 -1
  53. package/dist/icons.es.js +3 -3
  54. package/dist/icons.umd.js +1 -1
  55. package/dist/index.es.js +9 -1
  56. package/dist/index.umd.js +1 -1
  57. package/dist/resolvers/unplugin.d.ts +1 -1
  58. package/dist/resolvers/unplugin.es.js +4 -4
  59. package/dist/resolvers/unplugin.umd.js +1 -1
  60. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +28 -28
  61. package/dist/stories/CheckboxGroup/CheckboxGroup.settings.d.ts +1 -1
  62. package/dist/stories/Radio/Radio.settings.d.ts +1 -1
  63. package/dist/stories/RadioGroup/RadioGroup.settings.d.ts +1 -1
  64. package/dist/utils/ObjectUtilities.d.ts +1 -1
  65. package/package.json +240 -240
@@ -25,7 +25,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<globalThis
25
25
  }>> & Readonly<{}>, {
26
26
  modifiers: string | string[];
27
27
  position: "top" | "right" | "bottom" | "left";
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLSpanElement>, {
28
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
29
29
  default?: ((props: {}) => any) | undefined;
30
30
  }>;
31
31
  export default _default;
@@ -2408,7 +2408,7 @@ function isEmpty(value) {
2408
2408
  return ((value2) => value2 === null || value2 === void 0 || value2 === "" || Array.isArray(value2) && value2.length === 0 || !(value2 instanceof Date) && typeof value2 === "object" && Object.keys(value2).length === 0)(unref(value));
2409
2409
  }
2410
2410
  function isString(value) {
2411
- return typeof value === "string" || value instanceof String;
2411
+ return typeof value === "string";
2412
2412
  }
2413
2413
  const _hoisted_1$h = {
2414
2414
  key: 1,
@@ -4349,7 +4349,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
4349
4349
  "icon-before": hasIconBefore.value !== void 0,
4350
4350
  "icon-after": hasIconAfter.value !== void 0,
4351
4351
  "dirty": isDirty.value,
4352
- "focus": focused.value,
4352
+ "focus": focused.value && !isDisabledOrReadonly.value,
4353
4353
  "floating": floating.value,
4354
4354
  "multiple": multiple.value
4355
4355
  }))
@@ -4716,7 +4716,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4716
4716
  "valid": valid.value,
4717
4717
  "invalid": invalid.value,
4718
4718
  "dirty": isDirty.value,
4719
- "focus": focused.value || focusedWithin.value || expanded.value,
4719
+ "focus": (focused.value || focusedWithin.value || expanded.value) && !isDisabledOrReadonly.value,
4720
4720
  "floating": floating.value,
4721
4721
  "badges": props.badges
4722
4722
  }))
@@ -4791,9 +4791,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
4791
4791
  });
4792
4792
  } else if (!isSelected && isSelectable.value) {
4793
4793
  if (!props.multiple) {
4794
- localModelValue.value = [];
4794
+ localModelValue.value = [optionValue];
4795
+ } else {
4796
+ localModelValue.value = [...localModelValue.value, optionValue];
4795
4797
  }
4796
- localModelValue.value = [...localModelValue.value, optionValue];
4797
4798
  }
4798
4799
  if (!props.multiple && !props.keepOpen) {
4799
4800
  collapse();
@@ -6627,6 +6628,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6627
6628
  const props = __props;
6628
6629
  const emit = __emit;
6629
6630
  const slots = useSlots();
6631
+ const volver = useVolver();
6630
6632
  const propsDefaults = useDefaults(
6631
6633
  "VvInputText",
6632
6634
  VvInputTextProps,
@@ -6646,7 +6648,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6646
6648
  minlength,
6647
6649
  modelValue,
6648
6650
  step,
6649
- storageKey,
6650
6651
  storageType,
6651
6652
  type,
6652
6653
  valid
@@ -6874,7 +6875,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6874
6875
  );
6875
6876
  const isNumber = computed(() => props.type === INPUT_TYPES.NUMBER);
6876
6877
  function onStepUp() {
6877
- if (isClickable.value) {
6878
+ if (!isDisabledOrReadonly.value) {
6878
6879
  if (props.iMask) {
6879
6880
  typed.value = Number(typed.value) + Number((step == null ? void 0 : step.value) ?? 1);
6880
6881
  return;
@@ -6884,7 +6885,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6884
6885
  }
6885
6886
  }
6886
6887
  function onStepDown() {
6887
- if (isClickable.value) {
6888
+ if (!isDisabledOrReadonly.value) {
6888
6889
  if (props.iMask) {
6889
6890
  typed.value = Number(typed.value) - Number((step == null ? void 0 : step.value) ?? 1);
6890
6891
  return;
@@ -6922,10 +6923,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6922
6923
  upperLimit: Number(maxlength == null ? void 0 : maxlength.value),
6923
6924
  lowerLimit: Number(minlength == null ? void 0 : minlength.value)
6924
6925
  });
6925
- const isClickable = computed(() => !props.disabled && !props.readonly);
6926
- const hasTabindex = computed(
6927
- () => isClickable.value ? props.tabindex : -1
6928
- );
6926
+ const isDisabledOrReadonly = computed(() => props.disabled || props.readonly);
6927
+ const hasTabindex = computed(() => {
6928
+ return isDisabledOrReadonly.value ? -1 : props.tabindex;
6929
+ });
6929
6930
  const isDirty = computed(() => !isEmpty(modelValue));
6930
6931
  const isInvalid = computed(() => {
6931
6932
  if (invalid.value === true) {
@@ -6936,6 +6937,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6936
6937
  }
6937
6938
  return void 0;
6938
6939
  });
6940
+ const storageKey = computed(() => props.storageKey ?? ((volver == null ? void 0 : volver.experimentalFeatures.forceInputSuggestions) ? props.name : void 0));
6939
6941
  const suggestions = usePersistence(
6940
6942
  storageKey,
6941
6943
  storageType,
@@ -6976,7 +6978,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6976
6978
  "icon-after": !!iconAfter.value,
6977
6979
  "floating": props.floating && !isEmpty(props.label),
6978
6980
  "dirty": isDirty.value,
6979
- "focus": isFocused.value,
6981
+ "focus": isFocused.value && !isDisabledOrReadonly.value,
6980
6982
  "auto-width": props.autoWidth
6981
6983
  }))
6982
6984
  );
@@ -7055,7 +7057,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7055
7057
  props
7056
7058
  );
7057
7059
  function onClickInner() {
7058
- if (isClickable.value) {
7060
+ if (!isDisabledOrReadonly.value) {
7059
7061
  focused.value = true;
7060
7062
  }
7061
7063
  }
@@ -7152,14 +7154,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7152
7154
  null,
7153
7155
  16
7154
7156
  /* FULL_PROPS */
7155
- )) : unref(isPassword) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(PasswordInputActions), {
7157
+ )) : unref(isPassword) && !_ctx.hideActions && !unref(isDisabledOrReadonly) ? (openBlock(), createBlock(unref(PasswordInputActions), {
7156
7158
  key: 2,
7157
7159
  onTogglePassword
7158
- })) : unref(isNumber) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(NumberInputActions), {
7160
+ })) : unref(isNumber) && !_ctx.hideActions && !unref(isDisabledOrReadonly) ? (openBlock(), createBlock(unref(NumberInputActions), {
7159
7161
  key: 3,
7160
7162
  onStepUp,
7161
7163
  onStepDown
7162
- })) : unref(isSearch) && !_ctx.hideActions && unref(isClickable) ? (openBlock(), createBlock(unref(SearchInputActions), {
7164
+ })) : unref(isSearch) && !_ctx.hideActions && !unref(isDisabledOrReadonly) ? (openBlock(), createBlock(unref(SearchInputActions), {
7163
7165
  key: 4,
7164
7166
  onClear
7165
7167
  })) : createCommentVNode("v-if", true),
@@ -7975,6 +7977,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7975
7977
  const props = __props;
7976
7978
  const emit = __emit;
7977
7979
  const slots = useSlots();
7980
+ const volver = useVolver();
7978
7981
  const propsDefaults = useDefaults(
7979
7982
  "VvTextarea",
7980
7983
  VvTextareaProps,
@@ -7999,7 +8002,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7999
8002
  debounce,
8000
8003
  minlength,
8001
8004
  maxlength,
8002
- storageKey,
8003
8005
  storageType
8004
8006
  } = toRefs(props);
8005
8007
  const hasId = useUniqueId(id);
@@ -8060,6 +8062,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8060
8062
  }
8061
8063
  return void 0;
8062
8064
  });
8065
+ const storageKey = computed(() => props.storageKey ?? ((volver == null ? void 0 : volver.experimentalFeatures.forceInputSuggestions) ? props.name : void 0));
8063
8066
  const suggestions = usePersistence(
8064
8067
  storageKey,
8065
8068
  storageType,