@ptsecurity/mosaic 17.2.14 → 17.2.16

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 (38) hide show
  1. package/core/locales/index.d.ts +1 -0
  2. package/core/locales/locale-service.d.ts +62 -0
  3. package/core/locales/tk-TM.d.ts +64 -0
  4. package/core/pop-up/constants.d.ts +0 -4
  5. package/core/pop-up/pop-up-trigger.d.ts +1 -1
  6. package/dropdown/dropdown-trigger.directive.d.ts +1 -1
  7. package/esm2022/core/locales/en-US.mjs +2 -2
  8. package/esm2022/core/locales/es-LA.mjs +2 -2
  9. package/esm2022/core/locales/fa-IR.mjs +2 -2
  10. package/esm2022/core/locales/index.mjs +2 -1
  11. package/esm2022/core/locales/locale-service.mjs +6 -3
  12. package/esm2022/core/locales/pt-BR.mjs +2 -2
  13. package/esm2022/core/locales/ru-RU.mjs +2 -2
  14. package/esm2022/core/locales/tk-TM.mjs +63 -0
  15. package/esm2022/core/locales/zh-CN.mjs +2 -2
  16. package/esm2022/core/pop-up/constants.mjs +1 -5
  17. package/esm2022/core/pop-up/pop-up-trigger.mjs +8 -9
  18. package/esm2022/core/version.mjs +2 -2
  19. package/esm2022/dropdown/dropdown-trigger.directive.mjs +2 -2
  20. package/esm2022/popover/popover.component.mjs +6 -1
  21. package/esm2022/select/select.component.mjs +4 -3
  22. package/esm2022/tooltip/tooltip.component.mjs +6 -1
  23. package/esm2022/tree-select/tree-select.component.mjs +3 -3
  24. package/fesm2022/ptsecurity-mosaic-core.mjs +81 -21
  25. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  26. package/fesm2022/ptsecurity-mosaic-dropdown.mjs +1 -1
  27. package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
  28. package/fesm2022/ptsecurity-mosaic-popover.mjs +5 -0
  29. package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -1
  30. package/fesm2022/ptsecurity-mosaic-select.mjs +3 -2
  31. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  32. package/fesm2022/ptsecurity-mosaic-tooltip.mjs +5 -0
  33. package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  34. package/fesm2022/ptsecurity-mosaic-tree-select.mjs +2 -2
  35. package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
  36. package/package.json +5 -5
  37. package/popover/popover.component.d.ts +5 -0
  38. package/tooltip/tooltip.component.d.ts +5 -0
@@ -514,7 +514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
514
514
 
515
515
  const enUSLocaleData = {
516
516
  'en-US': {
517
- select: { hiddenItemsText: 'one more' },
517
+ select: { hiddenItemsText: '{{ number }} more' },
518
518
  datepicker: {
519
519
  placeholder: 'yyyy-mm-dd',
520
520
  dateInput: 'yyyy-MM-dd'
@@ -559,7 +559,7 @@ const enUSLocaleData = {
559
559
 
560
560
  const esLALocaleData = {
561
561
  'es-LA': {
562
- select: { hiddenItemsText: 'más' },
562
+ select: { hiddenItemsText: '{{ number }} más' },
563
563
  datepicker: {
564
564
  placeholder: 'dd/mm/aaaa'
565
565
  },
@@ -611,7 +611,7 @@ const esLALocaleData = {
611
611
 
612
612
  const faIRLocaleData = {
613
613
  'fa-IR': {
614
- select: { hiddenItemsText: 'أكثر' },
614
+ select: { hiddenItemsText: '{{ number }} بیشتر' },
615
615
  datepicker: {
616
616
  placeholder: 'روز/ ماه/سال'
617
617
  },
@@ -662,7 +662,7 @@ const faIRLocaleData = {
662
662
 
663
663
  const ptBRLocaleData = {
664
664
  'pt-BR': {
665
- select: { hiddenItemsText: 'mais' },
665
+ select: { hiddenItemsText: '{{ number }} mais' },
666
666
  datepicker: {
667
667
  placeholder: 'dd/mm/yyyy'
668
668
  },
@@ -712,7 +712,7 @@ const ptBRLocaleData = {
712
712
 
713
713
  const ruRULocaleData = {
714
714
  'ru-RU': {
715
- select: { hiddenItemsText: 'еще' },
715
+ select: { hiddenItemsText: 'еще {{ number }}' },
716
716
  datepicker: {
717
717
  placeholder: 'дд.мм.гггг',
718
718
  dateInput: 'dd.MM.yyyy'
@@ -758,9 +758,72 @@ const ruRULocaleData = {
758
758
  }
759
759
  };
760
760
 
761
+ const tkTMLocaleData = {
762
+ 'tk-TM': {
763
+ select: { hiddenItemsText: 'ýene {{ number }}' },
764
+ datepicker: {
765
+ placeholder: 'gg.aa.ýý.'
766
+ },
767
+ timepicker: {
768
+ placeholder: {
769
+ full: 'ss:mm:seksek',
770
+ short: 'ss:mm'
771
+ }
772
+ },
773
+ formatters: {
774
+ number: {
775
+ rounding: {
776
+ separator: ' ',
777
+ groupSeparator: '',
778
+ thousand: 'M',
779
+ million: 'Mn',
780
+ billion: 'Mr',
781
+ trillion: 'Tn'
782
+ }
783
+ }
784
+ },
785
+ input: {
786
+ number: {
787
+ groupSeparator: [' '],
788
+ fractionSeparator: ','
789
+ }
790
+ },
791
+ codeBlock: {
792
+ softWrapOnTooltip: 'Sözler boýunça geçirmäni işjeňleşdirmek',
793
+ softWrapOffTooltip: 'Sözler boýunça geçirmäni öçürmek',
794
+ downloadTooltip: 'Ýüklemek',
795
+ copiedTooltip: '✓ Göçürildi',
796
+ copyTooltip: 'Göçürmek',
797
+ viewAllText: 'Hemmesini görkezmek',
798
+ viewLessText: 'Ýygyrmak',
799
+ openExternalSystemTooltip: 'Daşarky ulgamda açmak'
800
+ },
801
+ timezone: {
802
+ searchPlaceholder: 'Şäher ýa-da sagat guşagy'
803
+ },
804
+ fileUpload: {
805
+ single: {
806
+ captionText: 'Faýly geçiriň ýa-da {{ browseLink }} ',
807
+ browseLink: 'saýlaň'
808
+ },
809
+ multiple: {
810
+ captionText: 'Şu ýere geçiriň ýa-da {{ browseLink }}',
811
+ captionTextWhenSelected: 'Ýene geçiriň ýa-da {{ browseLink }}',
812
+ captionTextForCompactSize: 'Faýllary geçiriň ýa-da {{ browseLink }}',
813
+ browseLink: 'saýlaň',
814
+ title: 'Faýl ýükläň',
815
+ gridHeaders: {
816
+ file: 'Faýl',
817
+ size: 'Ölçegi'
818
+ }
819
+ }
820
+ }
821
+ }
822
+ };
823
+
761
824
  const znCNLocaleData = {
762
825
  'zh-CN': {
763
- select: { hiddenItemsText: '更多的' },
826
+ select: { hiddenItemsText: '另外 {{ number }} 个' },
764
827
  datepicker: {
765
828
  placeholder: '年/月/日'
766
829
  },
@@ -817,14 +880,16 @@ function MC_DEFAULT_LOCALE_DATA_FACTORY() {
817
880
  { id: 'es-LA', name: 'Español' },
818
881
  { id: 'pt-BR', name: 'Português' },
819
882
  { id: 'ru-RU', name: 'Русский' },
820
- { id: 'fa-IR', name: 'فارسی' }
883
+ { id: 'fa-IR', name: 'فارسی' },
884
+ { id: 'tk-TM', name: 'Türkmen' }
821
885
  ],
822
886
  ...ruRULocaleData,
823
887
  ...enUSLocaleData,
824
888
  ...esLALocaleData,
825
889
  ...faIRLocaleData,
826
890
  ...ptBRLocaleData,
827
- ...znCNLocaleData
891
+ ...znCNLocaleData,
892
+ ...tkTMLocaleData
828
893
  };
829
894
  }
830
895
  const MC_LOCALE_DATA = new InjectionToken('MC_LOCALE_DATA', { providedIn: 'root', factory: MC_DEFAULT_LOCALE_DATA_FACTORY });
@@ -2373,10 +2438,6 @@ var PopUpSizes;
2373
2438
  PopUpSizes["Normal"] = "medium";
2374
2439
  PopUpSizes["Large"] = "large";
2375
2440
  })(PopUpSizes || (PopUpSizes = {}));
2376
- /**
2377
- * Variable used for offsetY(X) calculations when applying Angular Overlay
2378
- */
2379
- const arrowBottomMarginAndHalfHeight = 18;
2380
2441
 
2381
2442
  // tslint:disable-next-line:naming-convention
2382
2443
  class McPopUp {
@@ -2477,15 +2538,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
2477
2538
  }] });
2478
2539
 
2479
2540
  // tslint:disable: no-unbound-method
2480
- const getOffset = ({ originX, overlayX, originY, overlayY }, { width, height }) => {
2541
+ const getOffset = ({ originX, overlayX, originY, overlayY }, { width, height }, arrowOffset) => {
2481
2542
  const offset = {};
2482
2543
  // tslint:disable-next-line:no-magic-numbers
2483
2544
  const elementWidthHalf = width / 2;
2484
2545
  // tslint:disable-next-line:no-magic-numbers
2485
2546
  const elementHeightHalf = height / 2;
2486
2547
  // alignment should be applied only if the element is small
2487
- if (arrowBottomMarginAndHalfHeight > elementWidthHalf) {
2488
- const PADDING = arrowBottomMarginAndHalfHeight - elementWidthHalf;
2548
+ if (arrowOffset > elementWidthHalf) {
2549
+ const PADDING = arrowOffset - elementWidthHalf;
2489
2550
  if (originX === overlayX) {
2490
2551
  if (originX === 'start') {
2491
2552
  offset.offsetX = -PADDING;
@@ -2496,8 +2557,8 @@ const getOffset = ({ originX, overlayX, originY, overlayY }, { width, height })
2496
2557
  }
2497
2558
  }
2498
2559
  // alignment should be applied only if the element is small
2499
- if (arrowBottomMarginAndHalfHeight > elementHeightHalf) {
2500
- const PADDING = arrowBottomMarginAndHalfHeight - elementHeightHalf;
2560
+ if (arrowOffset > elementHeightHalf) {
2561
+ const PADDING = arrowOffset - elementHeightHalf;
2501
2562
  if (originY === overlayY) {
2502
2563
  if (originY === 'top') {
2503
2564
  offset.offsetY = -PADDING;
@@ -2710,12 +2771,11 @@ class McPopUpTrigger {
2710
2771
  }
2711
2772
  /**
2712
2773
  * Returns a list of positions that are aligned with the element's dimensions and offsets.
2713
- * @protected
2714
2774
  */
2715
2775
  getAdjustedPositions() {
2716
2776
  return this.getPrioritizedPositions().map((pos) => ({
2717
2777
  ...pos,
2718
- ...getOffset(pos, this.elementRef.nativeElement.getBoundingClientRect())
2778
+ ...getOffset(pos, this.elementRef.nativeElement.getBoundingClientRect(), this.arrowOffset)
2719
2779
  }));
2720
2780
  }
2721
2781
  getPriorityPlacementStrategy(value) {
@@ -3097,11 +3157,11 @@ const validationTooltipShowDelay = 10;
3097
3157
  const validationTooltipHideDelay = 3000;
3098
3158
  const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
3099
3159
 
3100
- const VERSION = new Version('17.2.14+sha-0d88356');
3160
+ const VERSION = new Version('17.2.16+sha-6ed67e7');
3101
3161
 
3102
3162
  /**
3103
3163
  * Generated bundle index. Do not edit.
3104
3164
  */
3105
3165
 
3106
- export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, FileValidators, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_CUSTOM_SCROLL_STRATEGY_PROVIDER, MC_DATE_FORMATS, MC_DATE_LOCALE, MC_DATE_LOCALE_FACTORY, MC_DEFAULT_LOCALE_DATA_FACTORY, MC_DEFAULT_LOCALE_ID, MC_FORM_FIELD_REF, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_DATA, MC_LOCALE_ID, MC_LOCALE_SERVICE, MC_NUMBER_FORMATTER_DEFAULT_OPTIONS, MC_NUMBER_FORMATTER_OPTIONS, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_PARENT_ANIMATION_COMPONENT, MC_PARENT_POPUP, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_TITLE_TEXT_REF, MC_VALIDATION, McCommonModule, McDataSizeModule, McDataSizePipe, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McLocaleService, McLocaleServiceModule, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, McRoundDecimalPipe, McSelectFooter, McSelectMatcher, McSelectSearch, McSelectSearchEmptyResult, McSelectTrigger, McTableNumberPipe, McVirtualOption, MeasurementSystem, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, arrowBottomMarginAndHalfHeight, checkAndNormalizeLocalizedNumber, countGroupLabelsBeforeOption, enUSLocaleData, esLALocaleData, escapeRegExp, faIRLocaleData, fadeAnimation, formatDataSize, getHumanizedBytes, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, normalizeNumber, ptBRLocaleData, ruRULocaleData, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay, znCNLocaleData };
3166
+ export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, FileValidators, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_CUSTOM_SCROLL_STRATEGY_PROVIDER, MC_DATE_FORMATS, MC_DATE_LOCALE, MC_DATE_LOCALE_FACTORY, MC_DEFAULT_LOCALE_DATA_FACTORY, MC_DEFAULT_LOCALE_ID, MC_FORM_FIELD_REF, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_DATA, MC_LOCALE_ID, MC_LOCALE_SERVICE, MC_NUMBER_FORMATTER_DEFAULT_OPTIONS, MC_NUMBER_FORMATTER_OPTIONS, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_PARENT_ANIMATION_COMPONENT, MC_PARENT_POPUP, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_TITLE_TEXT_REF, MC_VALIDATION, McCommonModule, McDataSizeModule, McDataSizePipe, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McLocaleService, McLocaleServiceModule, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, McRoundDecimalPipe, McSelectFooter, McSelectMatcher, McSelectSearch, McSelectSearchEmptyResult, McSelectTrigger, McTableNumberPipe, McVirtualOption, MeasurementSystem, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, checkAndNormalizeLocalizedNumber, countGroupLabelsBeforeOption, enUSLocaleData, esLALocaleData, escapeRegExp, faIRLocaleData, fadeAnimation, formatDataSize, getHumanizedBytes, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, normalizeNumber, ptBRLocaleData, ruRULocaleData, selectEvents, sizeUnitsConfig, tkTMLocaleData, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay, znCNLocaleData };
3107
3167
  //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map