@volverjs/ui-vue 0.0.10-beta.58 → 0.0.10-beta.59

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 (88) hide show
  1. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +2 -2
  2. package/dist/components/VvAccordion/index.d.ts +2 -2
  3. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +10 -10
  4. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  5. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +14 -14
  6. package/dist/components/VvAccordionGroup/index.d.ts +5 -5
  7. package/dist/components/VvAction/VvAction.vue.d.ts +2 -2
  8. package/dist/components/VvAction/index.d.ts +1 -1
  9. package/dist/components/VvAlert/VvAlert.vue.d.ts +8 -8
  10. package/dist/components/VvAlert/index.d.ts +3 -4
  11. package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +11 -11
  12. package/dist/components/VvAlertGroup/index.d.ts +5 -5
  13. package/dist/components/VvAvatar/VvAvatar.vue.d.ts +2 -2
  14. package/dist/components/VvAvatar/index.d.ts +1 -1
  15. package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +6 -6
  16. package/dist/components/VvAvatarGroup/index.d.ts +3 -3
  17. package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
  18. package/dist/components/VvBadge/index.d.ts +1 -1
  19. package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +15 -15
  20. package/dist/components/VvBreadcrumb/index.d.ts +2 -2
  21. package/dist/components/VvButton/VvButton.vue.d.ts +8 -8
  22. package/dist/components/VvButton/index.d.ts +2 -2
  23. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +6 -6
  24. package/dist/components/VvButtonGroup/index.d.ts +3 -3
  25. package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
  26. package/dist/components/VvCard/index.d.ts +1 -1
  27. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +3 -3
  28. package/dist/components/VvCheckbox/index.d.ts +1 -1
  29. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +6 -6
  30. package/dist/components/VvCheckboxGroup/index.d.ts +2 -2
  31. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +560 -219
  32. package/dist/components/VvCombobox/index.d.ts +241 -21
  33. package/dist/components/VvDialog/VvDialog.vue.d.ts +2 -2
  34. package/dist/components/VvDialog/index.d.ts +1 -1
  35. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +272 -37
  36. package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +8 -16
  37. package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +2 -2
  38. package/dist/components/VvDropdown/index.d.ts +117 -9
  39. package/dist/components/VvIcon/VvIcon.vue.d.ts +1 -1
  40. package/dist/components/VvInputFile/VvInputFile.vue.d.ts +19 -19
  41. package/dist/components/VvInputFile/index.d.ts +8 -8
  42. package/dist/components/VvInputText/VvInputClearAction.d.ts +3 -3
  43. package/dist/components/VvInputText/VvInputPasswordAction.d.ts +5 -5
  44. package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
  45. package/dist/components/VvInputText/VvInputText.es.js +16 -16
  46. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  47. package/dist/components/VvInputText/VvInputText.vue.d.ts +21 -21
  48. package/dist/components/VvInputText/index.d.ts +24 -7
  49. package/dist/components/VvNav/VvNav.vue.d.ts +13 -13
  50. package/dist/components/VvNav/index.d.ts +2 -2
  51. package/dist/components/VvProgress/VvProgress.vue.d.ts +2 -2
  52. package/dist/components/VvProgress/index.d.ts +1 -1
  53. package/dist/components/VvRadio/VvRadio.vue.d.ts +3 -3
  54. package/dist/components/VvRadio/index.d.ts +1 -1
  55. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +6 -6
  56. package/dist/components/VvRadioGroup/index.d.ts +2 -2
  57. package/dist/components/VvSelect/VvSelect.vue.d.ts +183 -62
  58. package/dist/components/VvSelect/index.d.ts +8 -8
  59. package/dist/components/VvTab/VvTab.vue.d.ts +15 -15
  60. package/dist/components/VvTab/index.d.ts +3 -3
  61. package/dist/components/VvTextarea/VvTextarea.es.js +10 -10
  62. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  63. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +11 -11
  64. package/dist/components/VvTextarea/index.d.ts +9 -6
  65. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +4 -4
  66. package/dist/components/VvTooltip/index.d.ts +1 -1
  67. package/dist/components/index.es.js +16 -16
  68. package/dist/components/index.umd.js +1 -1
  69. package/dist/composables/alert/useAlert.d.ts +12 -12
  70. package/dist/composables/dropdown/useDropdownContextmenu.d.ts +1 -1
  71. package/dist/composables/dropdown/useDropdownVirtualElement.d.ts +1 -1
  72. package/dist/composables/group/useGroupStateInject.d.ts +1 -1
  73. package/dist/composables/useBlurhash.d.ts +1 -1
  74. package/dist/composables/useOptions.d.ts +3 -3
  75. package/dist/composables/usePersistence.d.ts +1 -1
  76. package/dist/icons.es.js +3 -3
  77. package/dist/icons.umd.js +1 -1
  78. package/dist/props/index.d.ts +121 -14
  79. package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +362 -298
  80. package/dist/test/expect.d.ts +1 -0
  81. package/dist/utils/DateUtilities.d.ts +9 -0
  82. package/dist/utils/ObjectUtilities.d.ts +1 -1
  83. package/package.json +30 -30
  84. package/src/assets/icons/detailed.json +1 -1
  85. package/src/assets/icons/normal.json +1 -1
  86. package/src/assets/icons/simple.json +1 -1
  87. package/src/composables/usePersistence.ts +13 -12
  88. package/src/utils/DateUtilities.ts +24 -7
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
17
17
  default: string;
18
18
  };
19
19
  iconRemoveSuggestion: {
20
- type: PropType<string | import("../VvIcon").VvIconProps>;
20
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
21
21
  default: "trash";
22
22
  };
23
23
  labelRemoveSuggestion: {
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
34
34
  };
35
35
  resizable: BooleanConstructor;
36
36
  storageType: {
37
- type: PropType<`${import("../../constants").StorageType}`>;
37
+ type: globalThis.PropType<"local" | "session">;
38
38
  default: import("../../constants").StorageType;
39
39
  validator: (value: import("../../constants").StorageType) => boolean;
40
40
  };
@@ -64,11 +64,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
64
64
  default: boolean;
65
65
  };
66
66
  icon: {
67
- type: PropType<string | import("../VvIcon").VvIconProps>;
67
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
68
68
  default: undefined;
69
69
  };
70
70
  iconPosition: {
71
- type: PropType<`${import("../../constants").Position}`>;
71
+ type: globalThis.PropType<"before" | "after">;
72
72
  default: import("../../constants").Position;
73
73
  validation: (value: import("../../constants").Position) => boolean;
74
74
  };
@@ -82,7 +82,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
82
82
  validator: (value: string) => boolean;
83
83
  };
84
84
  modifiers: {
85
- type: PropType<string | string[]>;
85
+ type: globalThis.PropType<string | string[]>;
86
86
  default: undefined;
87
87
  };
88
88
  loading: {
@@ -157,7 +157,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
157
157
  default: string;
158
158
  };
159
159
  iconRemoveSuggestion: {
160
- type: PropType<string | import("../VvIcon").VvIconProps>;
160
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
161
161
  default: "trash";
162
162
  };
163
163
  labelRemoveSuggestion: {
@@ -174,7 +174,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
174
174
  };
175
175
  resizable: BooleanConstructor;
176
176
  storageType: {
177
- type: PropType<`${import("../../constants").StorageType}`>;
177
+ type: globalThis.PropType<"local" | "session">;
178
178
  default: import("../../constants").StorageType;
179
179
  validator: (value: import("../../constants").StorageType) => boolean;
180
180
  };
@@ -204,11 +204,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
204
204
  default: boolean;
205
205
  };
206
206
  icon: {
207
- type: PropType<string | import("../VvIcon").VvIconProps>;
207
+ type: globalThis.PropType<string | import("../VvIcon").VvIconProps>;
208
208
  default: undefined;
209
209
  };
210
210
  iconPosition: {
211
- type: PropType<`${import("../../constants").Position}`>;
211
+ type: globalThis.PropType<"before" | "after">;
212
212
  default: import("../../constants").Position;
213
213
  validation: (value: import("../../constants").Position) => boolean;
214
214
  };
@@ -222,7 +222,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
222
222
  validator: (value: string) => boolean;
223
223
  };
224
224
  modifiers: {
225
- type: PropType<string | string[]>;
225
+ type: globalThis.PropType<string | string[]>;
226
226
  default: undefined;
227
227
  };
228
228
  loading: {
@@ -283,6 +283,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
283
283
  label: string | number;
284
284
  disabled: boolean;
285
285
  modifiers: string | string[];
286
+ invalid: boolean;
286
287
  storageType: "local" | "session";
287
288
  icon: string | import("../VvIcon").VvIconProps;
288
289
  iconPosition: "before" | "after";
@@ -291,7 +292,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<gl
291
292
  loadingLabel: string;
292
293
  readonly: boolean;
293
294
  hintLabel: string;
294
- invalid: boolean;
295
295
  invalidLabel: string | unknown[];
296
296
  valid: boolean;
297
297
  validLabel: string | unknown[];
@@ -53,7 +53,7 @@ export declare const VvTextareaProps: {
53
53
  * @see VVIcon
54
54
  */
55
55
  iconRemoveSuggestion: {
56
- type: PropType<string | VvIconProps>;
56
+ type: globalThis.PropType<string | VvIconProps>;
57
57
  default: "trash";
58
58
  };
59
59
  /**
@@ -82,7 +82,7 @@ export declare const VvTextareaProps: {
82
82
  */
83
83
  resizable: BooleanConstructor;
84
84
  storageType: {
85
- type: PropType<`${import("../../constants").StorageType}`>;
85
+ type: globalThis.PropType<"local" | "session">;
86
86
  default: import("../../constants").StorageType;
87
87
  validator: (value: import("../../constants").StorageType) => boolean;
88
88
  };
@@ -112,11 +112,11 @@ export declare const VvTextareaProps: {
112
112
  default: boolean;
113
113
  };
114
114
  icon: {
115
- type: PropType<string | VvIconProps>;
115
+ type: globalThis.PropType<string | VvIconProps>;
116
116
  default: undefined;
117
117
  };
118
118
  iconPosition: {
119
- type: PropType<`${import("../../constants").Position}`>;
119
+ type: globalThis.PropType<"before" | "after">;
120
120
  default: import("../../constants").Position;
121
121
  validation: (value: import("../../constants").Position) => boolean;
122
122
  };
@@ -130,7 +130,7 @@ export declare const VvTextareaProps: {
130
130
  validator: (value: string) => boolean;
131
131
  };
132
132
  modifiers: {
133
- type: PropType<string | string[]>;
133
+ type: globalThis.PropType<string | string[]>;
134
134
  default: undefined;
135
135
  };
136
136
  loading: {
@@ -152,7 +152,10 @@ export declare const VvTextareaProps: {
152
152
  invalidLabel: {
153
153
  type: (ArrayConstructor | StringConstructor)[];
154
154
  default: undefined;
155
- };
155
+ }; /**
156
+ * Specifies whether the <textarea> is subject to spell checking by the underlying browser/OS.
157
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#wrap
158
+ */
156
159
  valid: {
157
160
  type: BooleanConstructor;
158
161
  default: boolean;
@@ -1,25 +1,25 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
2
  position: {
3
- type: PropType<`${import("../../constants").Side}`>;
3
+ type: globalThis.PropType<"top" | "right" | "bottom" | "left">;
4
4
  default: import("../../constants").Side;
5
5
  };
6
6
  value: {
7
7
  type: StringConstructor;
8
8
  };
9
9
  modifiers: {
10
- type: PropType<string | string[]>;
10
+ type: globalThis.PropType<string | string[]>;
11
11
  default: undefined;
12
12
  };
13
13
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
14
14
  position: {
15
- type: PropType<`${import("../../constants").Side}`>;
15
+ type: globalThis.PropType<"top" | "right" | "bottom" | "left">;
16
16
  default: import("../../constants").Side;
17
17
  };
18
18
  value: {
19
19
  type: StringConstructor;
20
20
  };
21
21
  modifiers: {
22
- type: PropType<string | string[]>;
22
+ type: globalThis.PropType<string | string[]>;
23
23
  default: undefined;
24
24
  };
25
25
  }>> & Readonly<{}>, {
@@ -6,7 +6,7 @@ export declare const VvTooltipProps: {
6
6
  * @default Side.bottom
7
7
  */
8
8
  position: {
9
- type: PropType<`${Side}`>;
9
+ type: PropType<"top" | "right" | "bottom" | "left">;
10
10
  default: Side;
11
11
  };
12
12
  value: {
@@ -946,6 +946,9 @@ function usePersistence(storageKey, storageType = StorageType.local, defaultValu
946
946
  (storageValue == null ? void 0 : storageValue.value) ?? localValue.value,
947
947
  storage
948
948
  );
949
+ if (storageValue.value) {
950
+ localValue.value = storageValue.value;
951
+ }
949
952
  return;
950
953
  }
951
954
  storageValue = void 0;
@@ -974,18 +977,15 @@ function usePersistence(storageKey, storageType = StorageType.local, defaultValu
974
977
  });
975
978
  }
976
979
  });
977
- return computed({
978
- get: () => {
979
- return (storageValue == null ? void 0 : storageValue.value) ?? localValue.value;
980
- },
981
- set: (value) => {
982
- if (storageValue) {
983
- storageValue.value = value;
984
- return;
985
- }
986
- localValue.value = value;
980
+ watch(localValue, (newValue) => {
981
+ if (storageValue) {
982
+ storageValue.value = newValue;
987
983
  }
984
+ }, {
985
+ deep: true,
986
+ immediate: true
988
987
  });
988
+ return localValue;
989
989
  }
990
990
  function useGroupStateProvide(key, groupState) {
991
991
  provide(key, groupState);
@@ -6022,6 +6022,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6022
6022
  };
6023
6023
  }
6024
6024
  });
6025
+ const padTwoDigits = (num) => num.toString().padStart(2, "0");
6025
6026
  function isDateIsoString(dateString) {
6026
6027
  if (typeof dateString !== "string") {
6027
6028
  return false;
@@ -6042,16 +6043,15 @@ function getInputValueFromDate(date, typeOfInput = "date", withSeconds) {
6042
6043
  if (Number.isNaN(currentDate.getTime())) {
6043
6044
  return "";
6044
6045
  }
6045
- const span = (num) => num.toString().padStart(2, "0");
6046
- let toReturn = `${currentDate.getFullYear()}-${span(currentDate.getMonth() + 1)}`;
6046
+ let toReturn = `${currentDate.getFullYear()}-${padTwoDigits(currentDate.getMonth() + 1)}`;
6047
6047
  if (typeOfInput === "month") {
6048
6048
  return toReturn;
6049
6049
  }
6050
- toReturn += `-${span(currentDate.getDate())}`;
6050
+ toReturn += `-${padTwoDigits(currentDate.getDate())}`;
6051
6051
  if (typeOfInput === "date") {
6052
6052
  return toReturn;
6053
6053
  }
6054
- const time = withSeconds ? `${span(currentDate.getHours())}:${span(currentDate.getMinutes())}:${span(currentDate.getSeconds())}` : `${span(currentDate.getHours())}:${span(currentDate.getMinutes())}`;
6054
+ const time = withSeconds ? `${padTwoDigits(currentDate.getHours())}:${padTwoDigits(currentDate.getMinutes())}:${padTwoDigits(currentDate.getSeconds())}` : `${padTwoDigits(currentDate.getHours())}:${padTwoDigits(currentDate.getMinutes())}`;
6055
6055
  if (typeOfInput === "time") {
6056
6056
  return time;
6057
6057
  }
@@ -6082,9 +6082,9 @@ function getDateFromInputValue(value, typeOfInput = "date") {
6082
6082
  throw new Error("Invalid time format. Expected: HH:mm or HH:mm:ss");
6083
6083
  }
6084
6084
  if (value.length === 8) {
6085
- return /* @__PURE__ */ new Date(`${currentYear}-${currentMonth + 1}-${currentDate}T${value}`);
6085
+ return /* @__PURE__ */ new Date(`${currentYear}-${padTwoDigits(currentMonth + 1)}-${padTwoDigits(currentDate)}T${value}`);
6086
6086
  }
6087
- return /* @__PURE__ */ new Date(`${currentYear}-${currentMonth + 1}-${currentDate}T${value}:00`);
6087
+ return /* @__PURE__ */ new Date(`${currentYear}-${padTwoDigits(currentMonth + 1)}-${padTwoDigits(currentDate)}T${value}:00`);
6088
6088
  }
6089
6089
  if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$/.test(value)) {
6090
6090
  throw new Error("Invalid datetime format. Expected: YYYY-MM-DDThh:mm or YYYY-MM-DDThh:mm:ss");