mediacube-ui 0.1.174 → 0.1.176

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,10 @@
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.176](https://github.com/MediaCubeCo/mcui/compare/v0.1.175...v0.1.176) (2023-11-29)
6
+
7
+ ### [0.1.175](https://github.com/MediaCubeCo/mcui/compare/v0.1.174...v0.1.175) (2023-11-24)
8
+
5
9
  ### [0.1.174](https://github.com/MediaCubeCo/mcui/compare/v0.1.173...v0.1.174) (2023-11-22)
6
10
 
7
11
  ### [0.1.173](https://github.com/MediaCubeCo/mcui/compare/v0.1.172...v0.1.173) (2023-11-20)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.174",
3
+ "version": "0.1.176",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -257,7 +257,7 @@ export default {
257
257
  */
258
258
  name: {
259
259
  type: String,
260
- default: null,
260
+ required: true,
261
261
  },
262
262
  /**
263
263
  * Если нужен тултип
@@ -338,6 +338,7 @@ export default {
338
338
  hideSelected: this.hideSelected,
339
339
  allowEmpty: this.allowEmpty,
340
340
  openDirection: this.openDirection,
341
+ id: this.name,
341
342
  taggable: this.taggable,
342
343
  tagPlaceholder: '',
343
344
  placeholder: this.placeholder,
@@ -518,18 +518,18 @@ export default {
518
518
  passwordTooltipProps() {
519
519
  return this.passwordTooltip
520
520
  ? {
521
- is: 'mc-tooltip',
522
- content: this.isPasswordType
523
- ? this.passwordTooltip
524
- : this.passwordHideTooltip || this.passwordTooltip,
525
- placement: 'top',
526
- trigger: this.isMobile ? 'focus click' : 'hover focus',
527
- size: 's',
528
- }
521
+ is: 'mc-tooltip',
522
+ content: this.isPasswordType
523
+ ? this.passwordTooltip
524
+ : this.passwordHideTooltip || this.passwordTooltip,
525
+ placement: 'top',
526
+ trigger: this.isMobile ? 'focus click' : 'hover focus',
527
+ size: 's',
528
+ }
529
529
  : {
530
- is: 'div',
531
- class: 'mc-field-text__empty-tooltip',
532
- }
530
+ is: 'div',
531
+ class: 'mc-field-text__empty-tooltip',
532
+ }
533
533
  },
534
534
  },
535
535
 
@@ -603,8 +603,10 @@ export default {
603
603
  e.target.value = value
604
604
  break
605
605
  case 'password':
606
+ const cursor_position = this.getCaretPos(e.target)?.start
606
607
  value = value?.replace(' ', '')
607
608
  e.target.value = value
609
+ this.setCaretPos(e.target, cursor_position, cursor_position)
608
610
  break
609
611
  }
610
612
 
@@ -612,11 +614,11 @@ export default {
612
614
  },
613
615
  formattedToNumber(value) {
614
616
  const [first] =
615
- /-?\d*[\.]?\d*/.exec(
616
- String(value)
617
- ?.replace(/ /gm, '')
618
- ?.trim(),
619
- ) || []
617
+ /-?\d*[\.]?\d*/.exec(
618
+ String(value)
619
+ ?.replace(/ /gm, '')
620
+ ?.trim(),
621
+ ) || []
620
622
 
621
623
  return first
622
624
  },
@@ -769,7 +771,7 @@ export default {
769
771
  &__prepend {
770
772
  inset-inline-start: 0;
771
773
  padding: $space-100 0;
772
- padding-inline: $space-100 $space-50;
774
+ padding-inline: $space-100 $space-50;
773
775
  }
774
776
 
775
777
  &__append {