vueless 0.0.499 → 0.0.500

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": "vueless",
3
- "version": "0.0.499",
3
+ "version": "0.0.500",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -340,7 +340,7 @@ const unwatchInit = watch(
340
340
  () => {
341
341
  if (isInit) unwatchInit();
342
342
 
343
- if (selectedDate.value && isTimepickerEnabled.value && isInputRefs.value) {
343
+ if (selectedDate.value && isTimepickerEnabled.value && isInputRefs.value && props.timepicker) {
344
344
  hoursRef.value!.value = String(selectedDate.value.getHours()).padStart(2, "0");
345
345
  minutesRef.value!.value = String(selectedDate.value.getMinutes()).padStart(2, "0");
346
346
  secondsRef.value!.value = String(selectedDate.value.getSeconds()).padStart(2, "0");
@@ -349,8 +349,14 @@ const unwatchInit = watch(
349
349
 
350
350
  isInit = true;
351
351
  }
352
+
353
+ if (selectedDate.value) {
354
+ emit("userDateChange", userFormattedDate.value);
355
+
356
+ isInit = true;
357
+ }
352
358
  },
353
- { deep: true },
359
+ { deep: true, immediate: true },
354
360
  );
355
361
 
356
362
  function getCurrentValueType(value: DateValue): DateValue {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.499",
4
+ "version": "0.0.500",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",