@ptsecurity/mosaic 16.0.0 → 16.1.0

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.
Files changed (68) hide show
  1. package/_theming.scss +9 -1
  2. package/_visual.scss +1 -1
  3. package/code-block/_code-block-theme.scss +8 -0
  4. package/core/locales/en-US.d.ts +7 -0
  5. package/core/locales/es-LA.d.ts +6 -0
  6. package/core/locales/fa-IR.d.ts +6 -0
  7. package/core/locales/locale-service.d.ts +39 -0
  8. package/core/locales/pt-BR.d.ts +6 -0
  9. package/core/locales/ru-RU.d.ts +8 -0
  10. package/core/locales/zh-CN.d.ts +6 -0
  11. package/core/pop-up/constants.d.ts +2 -1
  12. package/dropdown/dropdown.scss +6 -6
  13. package/esm2022/core/locales/en-US.mjs +9 -2
  14. package/esm2022/core/locales/es-LA.mjs +9 -1
  15. package/esm2022/core/locales/fa-IR.mjs +7 -1
  16. package/esm2022/core/locales/pt-BR.mjs +7 -1
  17. package/esm2022/core/locales/ru-RU.mjs +12 -2
  18. package/esm2022/core/locales/zh-CN.mjs +7 -1
  19. package/esm2022/core/option/option.mjs +2 -1
  20. package/esm2022/core/pop-up/constants.mjs +2 -1
  21. package/esm2022/core/pop-up/pop-up-trigger.mjs +11 -2
  22. package/esm2022/core/version.mjs +2 -2
  23. package/esm2022/datepicker/datepicker-input.directive.mjs +9 -1
  24. package/esm2022/dropdown/dropdown.component.mjs +3 -3
  25. package/esm2022/form-field/form-field.mjs +3 -3
  26. package/esm2022/form-field/password-hint.mjs +8 -5
  27. package/esm2022/input/input-number.mjs +260 -42
  28. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  29. package/esm2022/modal/modal.component.mjs +7 -4
  30. package/esm2022/modal/modal.service.mjs +2 -2
  31. package/esm2022/navbar/navbar.component.mjs +2 -2
  32. package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
  33. package/esm2022/popover/popover.component.mjs +3 -3
  34. package/esm2022/select/select.component.mjs +4 -4
  35. package/esm2022/timezone/timezone-select.component.mjs +3 -3
  36. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  37. package/fesm2022/ptsecurity-mosaic-core.mjs +57 -3
  38. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  39. package/fesm2022/ptsecurity-mosaic-datepicker.mjs +8 -0
  40. package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
  41. package/fesm2022/ptsecurity-mosaic-dropdown.mjs +2 -2
  42. package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  43. package/fesm2022/ptsecurity-mosaic-form-field.mjs +9 -6
  44. package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
  45. package/fesm2022/ptsecurity-mosaic-input.mjs +258 -42
  46. package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
  47. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
  48. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  49. package/fesm2022/ptsecurity-mosaic-modal.mjs +7 -4
  50. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
  51. package/fesm2022/ptsecurity-mosaic-navbar.mjs +4 -4
  52. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
  53. package/fesm2022/ptsecurity-mosaic-popover.mjs +2 -2
  54. package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -1
  55. package/fesm2022/ptsecurity-mosaic-select.mjs +3 -3
  56. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  57. package/fesm2022/ptsecurity-mosaic-timezone.mjs +2 -2
  58. package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
  59. package/fesm2022/ptsecurity-mosaic-tree-select.mjs +2 -2
  60. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  61. package/form-field/password-hint.d.ts +2 -1
  62. package/input/input-number.d.ts +61 -10
  63. package/loader-overlay/loader-overlay.scss +9 -2
  64. package/modal/modal.component.d.ts +1 -0
  65. package/navbar/navbar-item.scss +5 -0
  66. package/package.json +19 -18
  67. package/prebuilt-themes/dark-theme.css +1 -1
  68. package/prebuilt-themes/default-theme.css +1 -1
@@ -516,7 +516,8 @@ const enUSLocaleData = {
516
516
  'en-US': {
517
517
  select: { hiddenItemsText: 'one more' },
518
518
  datepicker: {
519
- placeholder: 'dd/mm/yyyy'
519
+ placeholder: 'yyyy-mm-dd',
520
+ dateInput: 'yyyy-MM-dd'
520
521
  },
521
522
  formatters: {
522
523
  number: {
@@ -529,6 +530,12 @@ const enUSLocaleData = {
529
530
  trillion: 'T'
530
531
  }
531
532
  }
533
+ },
534
+ input: {
535
+ number: {
536
+ groupSeparator: [','],
537
+ fractionSeparator: '.'
538
+ }
532
539
  }
533
540
  }
534
541
  };
@@ -556,6 +563,14 @@ const esLALocaleData = {
556
563
  trillion: 'B'
557
564
  }
558
565
  }
566
+ },
567
+ input: {
568
+ number: {
569
+ // nbsp is generated automatically and used by default in spec
570
+ // tslint:disable-next-line:no-irregular-whitespace
571
+ groupSeparator: [' ', ' '],
572
+ fractionSeparator: ','
573
+ }
559
574
  }
560
575
  }
561
576
  };
@@ -584,6 +599,12 @@ const faIRLocaleData = {
584
599
  rtl: true
585
600
  }
586
601
  }
602
+ },
603
+ input: {
604
+ number: {
605
+ groupSeparator: ['\u066C'],
606
+ fractionSeparator: '\u066B'
607
+ }
587
608
  }
588
609
  }
589
610
  };
@@ -611,6 +632,12 @@ const ptBRLocaleData = {
611
632
  trillion: 'tri'
612
633
  }
613
634
  }
635
+ },
636
+ input: {
637
+ number: {
638
+ groupSeparator: ['.'],
639
+ fractionSeparator: ','
640
+ }
614
641
  }
615
642
  }
616
643
  };
@@ -619,7 +646,8 @@ const ruRULocaleData = {
619
646
  'ru-RU': {
620
647
  select: { hiddenItemsText: 'еще' },
621
648
  datepicker: {
622
- placeholder: 'дд.мм.гггг'
649
+ placeholder: 'дд.мм.гггг',
650
+ dateInput: 'dd.MM.yyyy'
623
651
  },
624
652
  formatters: {
625
653
  number: {
@@ -632,6 +660,15 @@ const ruRULocaleData = {
632
660
  trillion: 'Т'
633
661
  }
634
662
  }
663
+ },
664
+ input: {
665
+ number: {
666
+ // nbsp is generated automatically and used by default in spec
667
+ // tslint:disable-next-line:no-irregular-whitespace
668
+ groupSeparator: [' ', ' '],
669
+ fractionSeparator: ',',
670
+ startFormattingFrom: 4
671
+ }
635
672
  }
636
673
  }
637
674
  };
@@ -658,6 +695,12 @@ const znCNLocaleData = {
658
695
  trillion: '兆'
659
696
  }
660
697
  }
698
+ },
699
+ input: {
700
+ number: {
701
+ groupSeparator: [','],
702
+ fractionSeparator: '.'
703
+ }
661
704
  }
662
705
  }
663
706
  };
@@ -1621,6 +1664,7 @@ class McOption extends McOptionBase {
1621
1664
  this.selectViaInteraction();
1622
1665
  // Prevent the page from scrolling down and form submits.
1623
1666
  event.preventDefault();
1667
+ event.stopPropagation();
1624
1668
  }
1625
1669
  }
1626
1670
  /**
@@ -2142,6 +2186,7 @@ var PopUpTriggers;
2142
2186
  PopUpTriggers["Click"] = "click";
2143
2187
  PopUpTriggers["Focus"] = "focus";
2144
2188
  PopUpTriggers["Hover"] = "hover";
2189
+ PopUpTriggers["Keydown"] = "keydown";
2145
2190
  })(PopUpTriggers || (PopUpTriggers = {}));
2146
2191
  var PopUpSizes;
2147
2192
  (function (PopUpSizes) {
@@ -2420,6 +2465,15 @@ class McPopUpTrigger {
2420
2465
  .set('blur', () => this.hide())
2421
2466
  .forEach(this.addEventListener);
2422
2467
  }
2468
+ if (this.trigger.includes(PopUpTriggers.Keydown)) {
2469
+ this.listeners
2470
+ .set('keydown', (event) => {
2471
+ if (event instanceof KeyboardEvent && [ENTER, SPACE].includes(event.keyCode)) {
2472
+ this.show();
2473
+ }
2474
+ })
2475
+ .forEach(this.addEventListener);
2476
+ }
2423
2477
  }
2424
2478
  /** Updates the position of the current popover. */
2425
2479
  updatePosition(reapplyPosition = false) {
@@ -2682,7 +2736,7 @@ const validationTooltipShowDelay = 10;
2682
2736
  const validationTooltipHideDelay = 3000;
2683
2737
  const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
2684
2738
 
2685
- const VERSION = new Version('16.0.0+sha-5a897cb');
2739
+ const VERSION = new Version('16.1.0+sha-2948d7e');
2686
2740
 
2687
2741
  /**
2688
2742
  * Generated bundle index. Do not edit.