vueless 0.0.315 → 0.0.317

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.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M181.91-182.15h44.24l459.81-458.81-43.76-44-460.29 459.05v43.76Zm-67.89 68.13V-253.5l574.52-573.76q8.24-8.48 19.81-13.22 11.56-4.74 24.11-4.74 11.47 0 22.95 4.74 11.48 4.74 21.2 12.98l51.89 51.17q9.24 9.72 13.48 21.32t4.24 23.31q0 11.72-4.74 23.7-4.74 11.98-12.98 20.46L253.74-114.02H114.02ZM775.17-732.7l-41.24-41.47 41.24 41.47ZM664.2-663.2l-22-21.76 43.76 44-21.76-22.24Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M846.22-480 674.83-237.89q-14.2 19.67-33.86 31.77-19.67 12.1-43.36 12.1H182.15q-28.1 0-48.12-20.01-20.01-20.02-20.01-48.12v-435.7q0-28.2 20.01-48.28 20.02-20.09 48.12-20.09h415.46q23.69 0 43.36 12.34 19.67 12.34 33.86 31.77L846.22-480Zm-85.29 0L608.56-697.85H182.15v435.7h426.46L760.93-480Zm-578.78 0v217.85-435.7V-480Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M425.93-154.02v-544.07H194.02v-108.13h572.2v108.13H534.3v544.07H425.93Z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.315",
3
+ "version": "0.0.317",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -37,7 +37,7 @@
37
37
  "@release-it/bumper": "^6.0.1",
38
38
  "@vitejs/plugin-vue": "^5.0.5",
39
39
  "@vue/eslint-config-prettier": "^9.0.0",
40
- "@vueless/plugin-vite": "^0.0.55",
40
+ "@vueless/plugin-vite": "^0.0.56",
41
41
  "@vueless/storybook": "^0.0.34",
42
42
  "@vueless/web-types": "^0.0.14",
43
43
  "autoprefixer": "^10.4.19",
@@ -140,7 +140,7 @@
140
140
  </template>
141
141
 
142
142
  <script setup>
143
- import { computed, onMounted, ref, watch } from "vue";
143
+ import { computed, ref, watch } from "vue";
144
144
  import { merge } from "lodash-es";
145
145
 
146
146
  import UButton from "../ui.button";
@@ -543,16 +543,26 @@ watch(
543
543
  },
544
544
  );
545
545
 
546
- onMounted(() => {
547
- if (selectedDate.value && isTimepickerEnabled.value) {
548
- hoursRef.value.value = String(selectedDate.value.getHours()).padStart(2, "0");
549
- minutesRef.value.value = String(selectedDate.value.getMinutes()).padStart(2, "0");
550
- secondsRef.value.value = String(selectedDate.value.getSeconds()).padStart(2, "0");
551
- }
546
+ let isInit = false;
552
547
 
553
- emit("userDateChange", userFormattedDate.value);
554
- emit("formattedDateChange", userFormattedDate.value);
555
- });
548
+ const unwatchInit = watch(
549
+ () => selectedDate.value,
550
+ () => {
551
+ if (isInit) unwatchInit();
552
+
553
+ if (selectedDate.value && isTimepickerEnabled.value) {
554
+ hoursRef.value.value = String(selectedDate.value.getHours()).padStart(2, "0");
555
+ minutesRef.value.value = String(selectedDate.value.getMinutes()).padStart(2, "0");
556
+ secondsRef.value.value = String(selectedDate.value.getSeconds()).padStart(2, "0");
557
+
558
+ emit("formattedDateChange", userFormattedDate.value);
559
+ emit("userDateChange", userFormattedDate.value);
560
+
561
+ isInit = true;
562
+ }
563
+ },
564
+ { deep: true },
565
+ );
556
566
 
557
567
  function getCurrentValueType(value) {
558
568
  if (props.range && value === null) {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.315",
4
+ "version": "0.0.317",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",