edvoyui-component-library-test-flight 0.0.162 → 0.0.164
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/dist/input/EUINumberInput.vue.d.ts +1 -1
- package/dist/library-vue-ts.cjs.js +6 -6
- package/dist/library-vue-ts.css +1 -1
- package/dist/library-vue-ts.es.js +220 -202
- package/dist/library-vue-ts.umd.js +14 -14
- package/dist/table/EUIDashboardTable.vue.d.ts +1 -1
- package/dist/table/EUITable.vue.d.ts +1 -1
- package/dist/table/GrowthTable.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/HelloWorld.vue +12 -1
- package/src/components/input/EUINumberInput.vue +13 -1
- package/src/components/table/ColumnResizeTable.vue +1 -1
- package/src/components/table/EUIDashboardTable.vue +1 -1
- package/src/components/table/EUITable.vue +1 -1
- package/src/components/table/GrowthTable.vue +1 -1
- package/src/components/table/UTable.vue +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUIDashboardTable.vue?vue&type=style&index=0&scoped=3d989b7f&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUIDashboardTable.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/EUITable.vue?vue&type=style&index=0&scoped=7695a283&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=EUITable.vue.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=script&setup=true&lang.ts";
|
|
2
|
-
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=style&index=0&scoped=
|
|
2
|
+
import "/Volumes/work/repos/edvoy-ui-v2/src/components/table/GrowthTable.vue?vue&type=style&index=0&scoped=f7c99f58&lang.scss";
|
|
3
3
|
declare const _default: any;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=GrowthTable.vue.d.ts.map
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div
|
|
19
19
|
class="flex flex-col max-w-screen-sm gap-4 p-6 mx-auto mb-10 border rounded-xl"
|
|
20
20
|
>
|
|
21
|
-
<pre>{{ inputNumber }}</pre>
|
|
21
|
+
<pre>{{ inputNumber }} ==> {{ inputNumberPoints }}</pre>
|
|
22
22
|
<EUINumberInput
|
|
23
23
|
v-model.trim="inputNumber"
|
|
24
24
|
name="addnote"
|
|
@@ -27,6 +27,16 @@
|
|
|
27
27
|
placeholder="Note here..."
|
|
28
28
|
:min="0"
|
|
29
29
|
:max="100"
|
|
30
|
+
:step="1"
|
|
31
|
+
/>
|
|
32
|
+
<EUINumberInput
|
|
33
|
+
v-model.trim="inputNumberPoints"
|
|
34
|
+
name="addnote"
|
|
35
|
+
id="addnote"
|
|
36
|
+
label="Add Note"
|
|
37
|
+
placeholder="Note here..."
|
|
38
|
+
:min="0"
|
|
39
|
+
:max="100"
|
|
30
40
|
:step="0.5"
|
|
31
41
|
/>
|
|
32
42
|
</div>
|
|
@@ -1626,6 +1636,7 @@ const datepicker = ref(new Date());
|
|
|
1626
1636
|
const loading = ref(false);
|
|
1627
1637
|
|
|
1628
1638
|
const inputNumber = ref();
|
|
1639
|
+
const inputNumberPoints = ref()
|
|
1629
1640
|
|
|
1630
1641
|
const form = reactive({
|
|
1631
1642
|
input: "Lorem ipsum dolor sit",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
autocomplete="off"
|
|
74
74
|
inputmode="numeric"
|
|
75
75
|
pattern="^([0-9]{1,5}(\.[0-9]{1,2})?|100000(\.0{1,2})?)$"
|
|
76
|
-
@keypress="
|
|
76
|
+
@keypress="handleKeyPress"
|
|
77
77
|
@wheel.prevent=""
|
|
78
78
|
@keydown.up.prevent=""
|
|
79
79
|
@keydown.down.prevent=""
|
|
@@ -201,6 +201,18 @@ const emitInput = (event: Event) => {
|
|
|
201
201
|
};
|
|
202
202
|
|
|
203
203
|
|
|
204
|
+
const handleKeyPress = (e: KeyboardEvent) => {
|
|
205
|
+
const inputEl = e.target as HTMLInputElement | null;
|
|
206
|
+
if (!inputEl) return; // Safety check
|
|
207
|
+
const allowDecimal = props.step < 1;
|
|
208
|
+
// Allow digits
|
|
209
|
+
if (/[0-9]/.test(e.key)) return;
|
|
210
|
+
// Allow one '.' only if step < 1
|
|
211
|
+
if (allowDecimal && e.key === '.' && !inputEl.value.includes('.')) return;
|
|
212
|
+
// Otherwise block input
|
|
213
|
+
e.preventDefault();
|
|
214
|
+
};
|
|
215
|
+
|
|
204
216
|
|
|
205
217
|
const inputValue = computed(() => {
|
|
206
218
|
return props.modelValue === 0 ? true : !!props.modelValue;
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<div
|
|
78
78
|
class="w-full text-sm font-bold text-current truncate font-inter"
|
|
79
79
|
>
|
|
80
|
-
<slot name="header" :header="header">
|
|
80
|
+
<slot name="header" :header="header" :index="headerIndex">
|
|
81
81
|
{{ capitalizeText(header?.text ?? header?.name ?? "") }}
|
|
82
82
|
</slot>
|
|
83
83
|
<slot
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<div
|
|
58
58
|
class="flex items-center gap-2 text-sm font-normal text-current"
|
|
59
59
|
>
|
|
60
|
-
<slot name="header" :header="header">
|
|
60
|
+
<slot name="header" :header="header" :index="headerIndex">
|
|
61
61
|
{{ capitalizeText(header?.text ?? header.name ?? "") }}
|
|
62
62
|
</slot>
|
|
63
63
|
<slot name="headerOptionalItem"></slot>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<div
|
|
65
65
|
class="flex items-center justify-between gap-2 text-sm font-medium text-current font-inter"
|
|
66
66
|
>
|
|
67
|
-
<slot name="header" :header="header">
|
|
67
|
+
<slot name="header" :header="header" :index="headerIndex">
|
|
68
68
|
{{ capitalizeText(header?.text ?? header?.name ?? "") }}
|
|
69
69
|
</slot>
|
|
70
70
|
<slot name="headerOptionalItem"></slot>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<div
|
|
60
60
|
class="flex items-center gap-2 text-xs font-semibold text-current"
|
|
61
61
|
>
|
|
62
|
-
<slot name="header" :header="header">
|
|
62
|
+
<slot name="header" :header="header" :index="headerIndex">
|
|
63
63
|
<template v-if="!header?.activeYear">{{
|
|
64
64
|
capitalizeText(header?.text ?? header.name ?? "")
|
|
65
65
|
}}</template>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
class="w-full text-sm font-bold text-current font-inter"
|
|
75
75
|
:class="{'truncate':!header?.showHeaderInfoText}"
|
|
76
76
|
>
|
|
77
|
-
<slot name="header" :header="header">
|
|
77
|
+
<slot name="header" :header="header" :index="headerIndex">
|
|
78
78
|
{{ capitalizeText(header?.text ?? header?.name ?? "") }}
|
|
79
79
|
</slot>
|
|
80
80
|
<slot
|