@ptsecurity/mosaic 16.4.1 → 16.4.3

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 (58) hide show
  1. package/core/locales/en-US.d.ts +17 -0
  2. package/core/locales/es-LA.d.ts +17 -0
  3. package/core/locales/fa-IR.d.ts +17 -0
  4. package/core/locales/index.d.ts +6 -0
  5. package/core/locales/locale-service.d.ts +102 -0
  6. package/core/locales/pt-BR.d.ts +17 -0
  7. package/core/locales/ru-RU.d.ts +17 -0
  8. package/core/locales/zh-CN.d.ts +17 -0
  9. package/core/pop-up/pop-up-trigger.d.ts +3 -1
  10. package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
  11. package/esm2022/core/locales/en-US.mjs +18 -1
  12. package/esm2022/core/locales/es-LA.mjs +18 -1
  13. package/esm2022/core/locales/fa-IR.mjs +18 -1
  14. package/esm2022/core/locales/index.mjs +7 -1
  15. package/esm2022/core/locales/pt-BR.mjs +18 -1
  16. package/esm2022/core/locales/ru-RU.mjs +18 -1
  17. package/esm2022/core/locales/zh-CN.mjs +18 -1
  18. package/esm2022/core/pop-up/pop-up-trigger.mjs +19 -11
  19. package/esm2022/core/version.mjs +2 -2
  20. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
  21. package/esm2022/file-upload/multiple-file-upload.component.mjs +49 -26
  22. package/esm2022/file-upload/single-file-upload.component.mjs +38 -14
  23. package/esm2022/input/input-password.mjs +2 -3
  24. package/esm2022/modal/modal.component.mjs +6 -6
  25. package/esm2022/navbar/navbar-item.component.mjs +9 -9
  26. package/esm2022/select/select-option.directive.mjs +7 -5
  27. package/esm2022/timezone/timezone-option.directive.mjs +7 -5
  28. package/esm2022/title/title.directive.mjs +2 -3
  29. package/esm2022/tooltip/tooltip.component.mjs +27 -12
  30. package/fesm2022/ptsecurity-mosaic-core.mjs +122 -12
  31. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  32. package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +5 -4
  33. package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
  34. package/fesm2022/ptsecurity-mosaic-file-upload.mjs +80 -36
  35. package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
  36. package/fesm2022/ptsecurity-mosaic-input.mjs +1 -2
  37. package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
  38. package/fesm2022/ptsecurity-mosaic-modal.mjs +5 -5
  39. package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
  40. package/fesm2022/ptsecurity-mosaic-navbar.mjs +8 -8
  41. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
  42. package/fesm2022/ptsecurity-mosaic-select.mjs +10 -9
  43. package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
  44. package/fesm2022/ptsecurity-mosaic-timezone.mjs +5 -4
  45. package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
  46. package/fesm2022/ptsecurity-mosaic-title.mjs +1 -2
  47. package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
  48. package/fesm2022/ptsecurity-mosaic-tooltip.mjs +25 -11
  49. package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
  50. package/file-upload/multiple-file-upload.component.d.ts +17 -6
  51. package/file-upload/single-file-upload.component.d.ts +15 -6
  52. package/input/input-password.d.ts +0 -1
  53. package/navbar/navbar-item.component.d.ts +4 -4
  54. package/package.json +28 -28
  55. package/select/select-option.directive.d.ts +3 -2
  56. package/timezone/timezone-option.directive.d.ts +3 -2
  57. package/title/title.directive.d.ts +0 -1
  58. package/tooltip/tooltip.component.d.ts +12 -8
@@ -538,6 +538,23 @@ const enUSLocaleData = {
538
538
  groupSeparator: [','],
539
539
  fractionSeparator: '.'
540
540
  }
541
+ },
542
+ fileUpload: {
543
+ single: {
544
+ captionText: 'Drag file here or {{ browseLink }}',
545
+ browseLink: 'choose'
546
+ },
547
+ multiple: {
548
+ captionText: 'Drag here or {{ browseLink }}',
549
+ captionTextWhenSelected: 'Drag more files or {{ browseLink }}',
550
+ captionTextForCompactSize: 'Drag files or {{ browseLink }}',
551
+ browseLink: 'choose',
552
+ title: 'Upload files',
553
+ gridHeaders: {
554
+ file: 'File',
555
+ size: 'Size'
556
+ }
557
+ }
541
558
  }
542
559
  }
543
560
  };
@@ -573,6 +590,23 @@ const esLALocaleData = {
573
590
  groupSeparator: [' ', ' '],
574
591
  fractionSeparator: ','
575
592
  }
593
+ },
594
+ fileUpload: {
595
+ single: {
596
+ captionText: 'Arrastre el archivo aquí o {{ browseLink }}',
597
+ browseLink: 'elija'
598
+ },
599
+ multiple: {
600
+ captionText: 'Arrastre aquí o {{ browseLink }}',
601
+ captionTextWhenSelected: 'Arrastre más archivos aquí o {{ browseLink }}',
602
+ captionTextForCompactSize: 'Arrastre archivos o {{ browseLink }}',
603
+ browseLink: 'elija',
604
+ title: 'Cargue los archivos',
605
+ gridHeaders: {
606
+ file: 'Archivo',
607
+ size: 'Tamaño'
608
+ }
609
+ }
576
610
  }
577
611
  }
578
612
  };
@@ -607,6 +641,23 @@ const faIRLocaleData = {
607
641
  groupSeparator: ['\u066C'],
608
642
  fractionSeparator: '\u066B'
609
643
  }
644
+ },
645
+ fileUpload: {
646
+ single: {
647
+ captionText: 'فایل را به اینجا بکشید یا {{ browseLink }}',
648
+ browseLink: 'انتخاب کنید'
649
+ },
650
+ multiple: {
651
+ captionText: 'به اینجا بکشید یا {{ browseLink }}',
652
+ captionTextWhenSelected: 'فایل های بیشتری را بکشید یا {{ browseLink }}',
653
+ captionTextForCompactSize: 'فایل ها را بکشید یا {{ browseLink }}',
654
+ browseLink: 'انتخاب کنید',
655
+ title: 'فایل ها را آپلود کنید',
656
+ gridHeaders: {
657
+ file: 'فایل',
658
+ size: 'اندازه'
659
+ }
660
+ }
610
661
  }
611
662
  }
612
663
  };
@@ -640,6 +691,23 @@ const ptBRLocaleData = {
640
691
  groupSeparator: ['.'],
641
692
  fractionSeparator: ','
642
693
  }
694
+ },
695
+ fileUpload: {
696
+ single: {
697
+ captionText: 'Arrastar o arquivo aqui ou {{ browseLink }}',
698
+ browseLink: 'escolher'
699
+ },
700
+ multiple: {
701
+ captionText: 'Arrastar aqui ou {{ browseLink }}',
702
+ captionTextWhenSelected: 'Arrastar mais arquivos aqui ou {{ browseLink }}',
703
+ captionTextForCompactSize: 'Arrastar arquivos ou {{ browseLink }}',
704
+ browseLink: 'escolher',
705
+ title: 'Carregar arquivos',
706
+ gridHeaders: {
707
+ file: 'Arquivo',
708
+ size: 'Tamanho'
709
+ }
710
+ }
643
711
  }
644
712
  }
645
713
  };
@@ -671,6 +739,23 @@ const ruRULocaleData = {
671
739
  fractionSeparator: ',',
672
740
  startFormattingFrom: 4
673
741
  }
742
+ },
743
+ fileUpload: {
744
+ single: {
745
+ captionText: 'Перетащите файл или {{ browseLink }}',
746
+ browseLink: 'выберите'
747
+ },
748
+ multiple: {
749
+ captionText: 'Перетащите сюда или {{ browseLink }}',
750
+ captionTextWhenSelected: 'Перетащите еще или {{ browseLink }}',
751
+ captionTextForCompactSize: 'Перетащите файлы или {{ browseLink }}',
752
+ browseLink: 'выберите',
753
+ title: 'Загрузите файлы',
754
+ gridHeaders: {
755
+ file: 'Файл',
756
+ size: 'Размер'
757
+ }
758
+ }
674
759
  }
675
760
  }
676
761
  };
@@ -703,6 +788,23 @@ const znCNLocaleData = {
703
788
  groupSeparator: [','],
704
789
  fractionSeparator: '.'
705
790
  }
791
+ },
792
+ fileUpload: {
793
+ single: {
794
+ captionText: '将文件拖到此处或{{ browseLink }}',
795
+ browseLink: '选择'
796
+ },
797
+ multiple: {
798
+ captionText: '拖到此处或{{ browseLink }}',
799
+ captionTextWhenSelected: '拖动更多文件或{{ browseLink }}',
800
+ captionTextForCompactSize: '拖动文件或{{ browseLink }}',
801
+ browseLink: '选择',
802
+ title: '上传文件',
803
+ gridHeaders: {
804
+ file: '文件',
805
+ size: '大小'
806
+ }
807
+ }
706
808
  }
707
809
  }
708
810
  };
@@ -2294,6 +2396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
2294
2396
  type: Directive
2295
2397
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
2296
2398
 
2399
+ // tslint:disable: no-unbound-method
2297
2400
  // tslint:disable-next-line:naming-convention
2298
2401
  class McPopUpTrigger {
2299
2402
  constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction) {
@@ -2457,20 +2560,17 @@ class McPopUpTrigger {
2457
2560
  this.clearListeners();
2458
2561
  if (this.trigger.includes(PopUpTriggers.Click)) {
2459
2562
  this.listeners
2460
- .set('click', () => this.show())
2461
- .forEach(this.addEventListener);
2563
+ .set(...this.createListener('click', this.show));
2462
2564
  }
2463
2565
  if (this.trigger.includes(PopUpTriggers.Hover)) {
2464
2566
  this.listeners
2465
- .set('mouseenter', () => this.show())
2466
- .set('mouseleave', () => this.hide())
2467
- .forEach(this.addEventListener);
2567
+ .set(...this.createListener('mouseenter', this.show))
2568
+ .set(...this.createListener('mouseleave', this.hide));
2468
2569
  }
2469
2570
  if (this.trigger.includes(PopUpTriggers.Focus)) {
2470
2571
  this.listeners
2471
- .set('focus', () => this.show())
2472
- .set('blur', () => this.hide())
2473
- .forEach(this.addEventListener);
2572
+ .set(...this.createListener('focus', this.show))
2573
+ .set(...this.createListener('blur', this.hide));
2474
2574
  }
2475
2575
  if (this.trigger.includes(PopUpTriggers.Keydown)) {
2476
2576
  this.listeners
@@ -2478,9 +2578,10 @@ class McPopUpTrigger {
2478
2578
  if (event instanceof KeyboardEvent && [ENTER, SPACE].includes(event.keyCode)) {
2479
2579
  this.show();
2480
2580
  }
2481
- })
2482
- .forEach(this.addEventListener);
2581
+ });
2483
2582
  }
2583
+ this.listeners
2584
+ .forEach(this.addEventListener);
2484
2585
  }
2485
2586
  /** Updates the position of the current popover. */
2486
2587
  updatePosition(reapplyPosition = false) {
@@ -2518,6 +2619,15 @@ class McPopUpTrigger {
2518
2619
  this.listeners.forEach(this.removeEventListener);
2519
2620
  this.listeners.clear();
2520
2621
  }
2622
+ createListener(name, listener) {
2623
+ return [
2624
+ name,
2625
+ () => {
2626
+ this.triggerName = name;
2627
+ return listener.call(this);
2628
+ }
2629
+ ];
2630
+ }
2521
2631
  subscribeOnClosingActions() {
2522
2632
  this.closingActionsSubscription?.unsubscribe();
2523
2633
  this.closingActionsSubscription = this.closingActions()
@@ -2743,11 +2853,11 @@ const validationTooltipShowDelay = 10;
2743
2853
  const validationTooltipHideDelay = 3000;
2744
2854
  const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
2745
2855
 
2746
- const VERSION = new Version('16.4.1+sha-dadc53f');
2856
+ const VERSION = new Version('16.4.3+sha-996831f');
2747
2857
 
2748
2858
  /**
2749
2859
  * Generated bundle index. Do not edit.
2750
2860
  */
2751
2861
 
2752
- export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, 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_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_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, 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, countGroupLabelsBeforeOption, escapeRegExp, fadeAnimation, formatDataSize, getHumanizedBytes, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
2862
+ export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, 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_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_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, 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, countGroupLabelsBeforeOption, enUSLocaleData, esLALocaleData, escapeRegExp, faIRLocaleData, fadeAnimation, formatDataSize, getHumanizedBytes, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, ptBRLocaleData, ruRULocaleData, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay, znCNLocaleData };
2753
2863
  //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map