@ptsecurity/mosaic 16.3.0 → 16.4.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 (56) hide show
  1. package/_theming.scss +3 -3
  2. package/checkbox/_checkbox-theme.scss +1 -1
  3. package/core/common-behaviors/index.d.ts +2 -0
  4. package/core/pop-up/pop-up.d.ts +7 -0
  5. package/core/styles/_variables.scss +1 -1
  6. package/esm2022/core/common-behaviors/index.mjs +3 -1
  7. package/esm2022/core/highlight/highlight.pipe.mjs +2 -2
  8. package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -2
  9. package/esm2022/core/pop-up/pop-up.mjs +8 -1
  10. package/esm2022/core/version.mjs +2 -2
  11. package/esm2022/form-field/form-field.mjs +7 -1
  12. package/esm2022/icon/icon.component.mjs +9 -1
  13. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  14. package/esm2022/navbar/navbar-item.component.mjs +15 -8
  15. package/esm2022/navbar/navbar.component.mjs +18 -8
  16. package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
  17. package/esm2022/popover/popover.component.mjs +6 -1
  18. package/esm2022/tabs/tab-group.component.mjs +5 -5
  19. package/esm2022/textarea/textarea.component.mjs +17 -6
  20. package/esm2022/tree/control/base-tree-control.mjs +4 -4
  21. package/esm2022/tree/control/flat-tree-control.filters.mjs +3 -2
  22. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  23. package/esm2022/tree/control/tree-control.mjs +1 -1
  24. package/esm2022/tree/toggle.mjs +2 -2
  25. package/esm2022/tree/tree-option.component.mjs +4 -1
  26. package/fesm2022/ptsecurity-mosaic-core.mjs +15 -6
  27. package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
  28. package/fesm2022/ptsecurity-mosaic-form-field.mjs +6 -0
  29. package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
  30. package/fesm2022/ptsecurity-mosaic-icon.mjs +8 -0
  31. package/fesm2022/ptsecurity-mosaic-icon.mjs.map +1 -1
  32. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
  33. package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
  34. package/fesm2022/ptsecurity-mosaic-navbar.mjs +33 -16
  35. package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
  36. package/fesm2022/ptsecurity-mosaic-popover.mjs +5 -0
  37. package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -1
  38. package/fesm2022/ptsecurity-mosaic-tabs.mjs +3 -3
  39. package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
  40. package/fesm2022/ptsecurity-mosaic-textarea.mjs +16 -5
  41. package/fesm2022/ptsecurity-mosaic-textarea.mjs.map +1 -1
  42. package/fesm2022/ptsecurity-mosaic-tree.mjs +12 -8
  43. package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -1
  44. package/form-field/form-field.d.ts +2 -0
  45. package/icon/icon.component.d.ts +2 -0
  46. package/navbar/_navbar-theme.scss +2 -2
  47. package/navbar/navbar-item.component.d.ts +4 -1
  48. package/navbar/navbar-item.scss +7 -3
  49. package/navbar/navbar.component.d.ts +3 -0
  50. package/package.json +11 -11
  51. package/popover/popover.component.d.ts +5 -0
  52. package/prebuilt-themes/dark-theme.css +1 -1
  53. package/prebuilt-themes/default-theme.css +1 -1
  54. package/textarea/textarea.component.d.ts +3 -2
  55. package/tree/control/base-tree-control.d.ts +1 -1
  56. package/tree/control/tree-control.d.ts +1 -1
@@ -1,8 +1,8 @@
1
1
  import { trigger, state, style, transition, animate, group } from '@angular/animations';
2
- import * as i2$1 from '@angular/cdk/bidi';
3
- import { BidiModule } from '@angular/cdk/bidi';
4
2
  import * as i0 from '@angular/core';
5
3
  import { InjectionToken, isDevMode, NgModule, Optional, Inject, inject, LOCALE_ID, Injectable, Pipe, Directive, ContentChildren, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, EventEmitter, ViewChild, Output, ContentChild, TemplateRef, Version } from '@angular/core';
4
+ import * as i2$1 from '@angular/cdk/bidi';
5
+ import { BidiModule } from '@angular/cdk/bidi';
6
6
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
7
7
  import * as i1 from '@mosaic-design/date-adapter';
8
8
  import { DateAdapter as DateAdapter$1 } from '@mosaic-design/date-adapter';
@@ -244,6 +244,8 @@ function mixinErrorState(base) {
244
244
  };
245
245
  }
246
246
 
247
+ const MC_PARENT_ANIMATION_COMPONENT = new InjectionToken('mc-parent-animation-component');
248
+
247
249
  const MC_DATE_FORMATS = new InjectionToken('mc-date-formats');
248
250
 
249
251
  /** InjectionToken for datepicker that can be used to override default locale code. */
@@ -1299,7 +1301,7 @@ function escapeRegExp(value) {
1299
1301
  }
1300
1302
  class McHighlightPipe {
1301
1303
  transform(value, args) {
1302
- if (!args) {
1304
+ if (!args || typeof args !== 'string') {
1303
1305
  return value;
1304
1306
  }
1305
1307
  return value.replace(new RegExp(`(${escapeRegExp(args)})`, 'gi'), '<mark class="mc-highlight">$1</mark>');
@@ -2228,6 +2230,13 @@ class McPopUp {
2228
2230
  this.markForCheck();
2229
2231
  }, delay);
2230
2232
  }
2233
+ /**
2234
+ * Hides the popup after a specified delay.
2235
+ *
2236
+ * The hide timeout triggers the hiding of the popup by updating visibility and emitting relevant events.
2237
+ * Also, it marks for check to ensure proper change detection, especially for parent components with OnPush strategy.
2238
+ * @param delay - The delay in milliseconds before hiding the popup.
2239
+ */
2231
2240
  hide(delay) {
2232
2241
  if (this.showTimeoutId) {
2233
2242
  clearTimeout(this.showTimeoutId);
@@ -2412,7 +2421,7 @@ class McPopUpTrigger {
2412
2421
  }
2413
2422
  hide(delay = this.leaveDelay) {
2414
2423
  if (this.instance) {
2415
- this.instance.hide(delay);
2424
+ this.ngZone.run(() => this.instance.hide(delay));
2416
2425
  }
2417
2426
  }
2418
2427
  /** Create the overlay config and position strategy */
@@ -2734,11 +2743,11 @@ const validationTooltipShowDelay = 10;
2734
2743
  const validationTooltipHideDelay = 3000;
2735
2744
  const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
2736
2745
 
2737
- const VERSION = new Version('16.3.0+sha-47cabea');
2746
+ const VERSION = new Version('16.4.0+sha-01d1359');
2738
2747
 
2739
2748
  /**
2740
2749
  * Generated bundle index. Do not edit.
2741
2750
  */
2742
2751
 
2743
- 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_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 };
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 };
2744
2753
  //# sourceMappingURL=ptsecurity-mosaic-core.mjs.map