@milaboratories/uikit 2.3.9 → 2.3.11
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/.turbo/turbo-build.log +22 -22
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/components/PlNumberField/PlNumberField.vue.d.ts.map +1 -1
- package/dist/components/PlNumberField/PlNumberField.vue.js +75 -70
- package/dist/components/PlNumberField/PlNumberField.vue.js.map +1 -1
- package/dist/lib/model/common/dist/index.js +10 -10
- package/dist/sdk/model/dist/index.js +55 -55
- package/dist/sdk/model/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/PlNumberField/PlNumberField.vue +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/uikit",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"d3": "^7.9.0",
|
|
25
25
|
"resize-observer-polyfill": "^1.5.1",
|
|
26
26
|
"@milaboratories/helpers": "^1.6.17",
|
|
27
|
-
"@platforma-sdk/model": "^1.
|
|
27
|
+
"@platforma-sdk/model": "^1.40.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"yarpm": "^1.2.0",
|
|
36
36
|
"svgo": "^3.3.2",
|
|
37
37
|
"@milaboratories/ts-configs": "1.0.4",
|
|
38
|
-
"@milaboratories/
|
|
39
|
-
"@milaboratories/
|
|
38
|
+
"@milaboratories/eslint-config": "^1.0.4",
|
|
39
|
+
"@milaboratories/build-configs": "1.0.4"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "vite",
|
|
@@ -152,6 +152,10 @@ const isDecrementDisabled = computed(() => {
|
|
|
152
152
|
return false;
|
|
153
153
|
});
|
|
154
154
|
|
|
155
|
+
const multiplier = computed(() =>
|
|
156
|
+
10 ** (props.step.toString().split('.').at(1)?.length ?? 0),
|
|
157
|
+
);
|
|
158
|
+
|
|
155
159
|
function increment() {
|
|
156
160
|
const parsedValue = innerNumberValue.value;
|
|
157
161
|
if (!isIncrementDisabled.value) {
|
|
@@ -159,7 +163,9 @@ function increment() {
|
|
|
159
163
|
if (parsedValue === undefined) {
|
|
160
164
|
nV = props.minValue ? props.minValue : 0;
|
|
161
165
|
} else {
|
|
162
|
-
nV = (parsedValue || 0)
|
|
166
|
+
nV = ((parsedValue || 0) * multiplier.value
|
|
167
|
+
+ props.step * multiplier.value)
|
|
168
|
+
/ multiplier.value;
|
|
163
169
|
}
|
|
164
170
|
modelValue.value = props.maxValue !== undefined ? Math.min(props.maxValue, nV) : nV;
|
|
165
171
|
}
|
|
@@ -172,7 +178,9 @@ function decrement() {
|
|
|
172
178
|
if (parsedValue === undefined) {
|
|
173
179
|
nV = 0;
|
|
174
180
|
} else {
|
|
175
|
-
nV =
|
|
181
|
+
nV = ((parsedValue || 0) * multiplier.value
|
|
182
|
+
- props.step * multiplier.value)
|
|
183
|
+
/ multiplier.value;
|
|
176
184
|
}
|
|
177
185
|
modelValue.value = props.minValue !== undefined ? Math.max(props.minValue, nV) : nV;
|
|
178
186
|
}
|