mediacube-ui 0.1.421 → 0.1.422
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### 0.1.422 (2025-10-01)
|
|
6
|
+
|
|
5
7
|
### [0.1.421](https://github.com/MediaCubeCo/mcui/compare/v0.1.420...v0.1.421) (2025-09-30)
|
|
6
8
|
|
|
7
9
|
### [0.1.420](https://github.com/MediaCubeCo/mcui/compare/v0.1.419...v0.1.420) (2025-09-29)
|
package/package.json
CHANGED
|
@@ -387,6 +387,13 @@ export default {
|
|
|
387
387
|
type: Boolean,
|
|
388
388
|
default: true,
|
|
389
389
|
},
|
|
390
|
+
/**
|
|
391
|
+
* Разрешаем вводить '-' для числовых типов num/amount_format
|
|
392
|
+
*/
|
|
393
|
+
allowNegative: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
default: false,
|
|
396
|
+
},
|
|
390
397
|
},
|
|
391
398
|
data() {
|
|
392
399
|
return {
|
|
@@ -689,6 +696,7 @@ export default {
|
|
|
689
696
|
const is_space = e.code?.match(/Space/)
|
|
690
697
|
|
|
691
698
|
const excluded_symbols = ['.', ',']
|
|
699
|
+
this.allowNegative && excluded_symbols.push('-')
|
|
692
700
|
const is_excluded_symbol = excluded_symbols.includes(e.key)
|
|
693
701
|
|
|
694
702
|
if ((isNaN(+e.key) && !e.key?.match(/Arrow|Backspace|\.,/) && !is_excluded_symbol) || is_space) {
|