mediacube-ui 0.1.337 → 0.1.339
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.
|
@@ -219,6 +219,11 @@
|
|
|
219
219
|
"value": "#DEE0E2",
|
|
220
220
|
"compiledValue": ""
|
|
221
221
|
},
|
|
222
|
+
{
|
|
223
|
+
"name": "$color-light-gray",
|
|
224
|
+
"value": "#F3F5F7",
|
|
225
|
+
"compiledValue": ""
|
|
226
|
+
},
|
|
222
227
|
{
|
|
223
228
|
"name": "$color-hover-gray",
|
|
224
229
|
"value": "#EDF0F3",
|
|
@@ -671,6 +676,16 @@
|
|
|
671
676
|
"value": "linear-gradient(90deg, #18bfe3 20%, #8756ff 70%)",
|
|
672
677
|
"compiledValue": ""
|
|
673
678
|
},
|
|
679
|
+
{
|
|
680
|
+
"name": "$gradient-dark-blue",
|
|
681
|
+
"value": "linear-gradient(90deg, #5550EF 0%, #7F4EFF 100%)",
|
|
682
|
+
"compiledValue": ""
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"name": "$gradient-light-blue",
|
|
686
|
+
"value": "linear-gradient(277.29deg, #d6e8ff 5.67%, #efe9ff 94.33%)",
|
|
687
|
+
"compiledValue": ""
|
|
688
|
+
},
|
|
674
689
|
{
|
|
675
690
|
"name": "$gradient-primary-radial",
|
|
676
691
|
"value": "radial-gradient(rgb(179, 211, 255), rgb(62, 132, 244))",
|
|
@@ -590,6 +590,9 @@ export default {
|
|
|
590
590
|
},
|
|
591
591
|
prepareHandleInput(e) {
|
|
592
592
|
let value = e.target.value
|
|
593
|
+
const number_types = ['num', 'amount_format']
|
|
594
|
+
// For number types add possibility to write ","
|
|
595
|
+
if (number_types.includes(this.type)) value = value?.replace(',', '.')
|
|
593
596
|
switch (this.type) {
|
|
594
597
|
case 'num': {
|
|
595
598
|
let [num] = /-?\d*[\.]?\d*/.exec(String(value)) || []
|
|
@@ -660,7 +663,9 @@ export default {
|
|
|
660
663
|
switch (this.type) {
|
|
661
664
|
case 'amount_format':
|
|
662
665
|
case 'num': {
|
|
663
|
-
|
|
666
|
+
const exluded_symbols = ['.', ',']
|
|
667
|
+
const already_has_symbol = exluded_symbols.some(symbol => this.value.includes(symbol))
|
|
668
|
+
if (exluded_symbols.includes(e.key) && typeof this.value === 'string' && already_has_symbol) {
|
|
664
669
|
e.preventDefault()
|
|
665
670
|
}
|
|
666
671
|
break
|