@ptsecurity/mosaic 16.0.0 → 16.1.1
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/_theming.scss +9 -1
- package/_visual.scss +1 -1
- package/code-block/_code-block-theme.scss +8 -0
- package/core/locales/en-US.d.ts +7 -0
- package/core/locales/es-LA.d.ts +6 -0
- package/core/locales/fa-IR.d.ts +6 -0
- package/core/locales/locale-service.d.ts +39 -0
- package/core/locales/pt-BR.d.ts +6 -0
- package/core/locales/ru-RU.d.ts +8 -0
- package/core/locales/zh-CN.d.ts +6 -0
- package/core/pop-up/constants.d.ts +2 -1
- package/dropdown/dropdown.scss +6 -6
- package/esm2022/core/locales/en-US.mjs +9 -2
- package/esm2022/core/locales/es-LA.mjs +9 -1
- package/esm2022/core/locales/fa-IR.mjs +7 -1
- package/esm2022/core/locales/pt-BR.mjs +7 -1
- package/esm2022/core/locales/ru-RU.mjs +12 -2
- package/esm2022/core/locales/zh-CN.mjs +7 -1
- package/esm2022/core/option/option.mjs +2 -1
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +11 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker-input.directive.mjs +9 -1
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/form-field/password-hint.mjs +8 -5
- package/esm2022/input/input-number.mjs +260 -42
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +7 -4
- package/esm2022/modal/modal.service.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +4 -4
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/ptsecurity-mosaic-core.mjs +57 -3
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs +8 -0
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +9 -6
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +258 -42
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +7 -4
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-popover.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +3 -3
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/form-field/password-hint.d.ts +2 -1
- package/input/input-number.d.ts +61 -10
- package/loader-overlay/loader-overlay.scss +9 -2
- package/modal/modal.component.d.ts +1 -0
- package/navbar/navbar-item.scss +5 -0
- package/package.json +33 -35
- package/prebuilt-themes/dark-theme.css +1 -1
- 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
|
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.
|
2739
|
+
const VERSION = new Version('16.1.1+sha-81130fd');
|
2686
2740
|
|
2687
2741
|
/**
|
2688
2742
|
* Generated bundle index. Do not edit.
|