@koobiq/components 16.0.0-beta.15 → 16.0.0-beta.17

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 (69) hide show
  1. package/checkbox/_checkbox-theme.scss +9 -6
  2. package/core/common-behaviors/index.d.ts +2 -0
  3. package/core/pop-up/pop-up.d.ts +7 -0
  4. package/core/styles/_variables.scss +1 -1
  5. package/core/styles/theming/_components-theming.scss +4 -0
  6. package/core/styles/theming/_theming.scss +1 -0
  7. package/esm2022/core/common-behaviors/index.mjs +3 -1
  8. package/esm2022/core/highlight/highlight.pipe.mjs +2 -2
  9. package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -2
  10. package/esm2022/core/pop-up/pop-up.mjs +8 -1
  11. package/esm2022/form-field/form-field.mjs +7 -1
  12. package/esm2022/icon/icon-button.component.mjs +2 -1
  13. package/esm2022/icon/icon-item.component.mjs +2 -1
  14. package/esm2022/icon/icon.component.mjs +13 -1
  15. package/esm2022/input/input-number.mjs +4 -2
  16. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  17. package/esm2022/modal/modal.component.mjs +17 -3
  18. package/esm2022/navbar/navbar-item.component.mjs +11 -8
  19. package/esm2022/navbar/navbar.component.mjs +18 -8
  20. package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
  21. package/esm2022/popover/popover.component.mjs +6 -1
  22. package/esm2022/tabs/tab-group.component.mjs +5 -5
  23. package/esm2022/textarea/textarea.component.mjs +32 -21
  24. package/esm2022/tree/control/base-tree-control.mjs +4 -4
  25. package/esm2022/tree/control/flat-tree-control.filters.mjs +3 -2
  26. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  27. package/esm2022/tree/control/tree-control.mjs +1 -1
  28. package/esm2022/tree/toggle.mjs +2 -2
  29. package/esm2022/tree/tree-option.component.mjs +4 -1
  30. package/fesm2022/koobiq-components-core.mjs +14 -5
  31. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  32. package/fesm2022/koobiq-components-form-field.mjs +6 -0
  33. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  34. package/fesm2022/koobiq-components-icon.mjs +14 -0
  35. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  36. package/fesm2022/koobiq-components-input.mjs +3 -1
  37. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  38. package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
  39. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  40. package/fesm2022/koobiq-components-modal.mjs +16 -2
  41. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  42. package/fesm2022/koobiq-components-navbar.mjs +29 -16
  43. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  44. package/fesm2022/koobiq-components-popover.mjs +5 -0
  45. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  46. package/fesm2022/koobiq-components-tabs.mjs +3 -3
  47. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  48. package/fesm2022/koobiq-components-textarea.mjs +31 -20
  49. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  50. package/fesm2022/koobiq-components-tree.mjs +12 -8
  51. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  52. package/form-field/form-field.d.ts +2 -0
  53. package/icon/icon-button.component.d.ts +1 -0
  54. package/icon/icon-item.component.d.ts +1 -0
  55. package/icon/icon.component.d.ts +3 -0
  56. package/input/input-number.d.ts +3 -2
  57. package/modal/modal.component.d.ts +3 -0
  58. package/navbar/_navbar-theme.scss +2 -2
  59. package/navbar/navbar-item.component.d.ts +1 -0
  60. package/navbar/navbar-item.scss +2 -2
  61. package/navbar/navbar.component.d.ts +3 -0
  62. package/package.json +31 -31
  63. package/popover/popover.component.d.ts +5 -0
  64. package/prebuilt-themes/dark-theme.css +1 -1
  65. package/prebuilt-themes/light-theme.css +1 -1
  66. package/splitter/_splitter-theme.scss +4 -4
  67. package/textarea/textarea.component.d.ts +4 -3
  68. package/tree/control/base-tree-control.d.ts +1 -1
  69. 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';
@@ -256,6 +256,8 @@ function mixinErrorState(base) {
256
256
  };
257
257
  }
258
258
 
259
+ const KBQ_PARENT_ANIMATION_COMPONENT = new InjectionToken('kbq-parent-animation-component');
260
+
259
261
  const KBQ_DATE_FORMATS = new InjectionToken('kbq-date-formats');
260
262
 
261
263
  /** InjectionToken for datepicker that can be used to override default locale code. */
@@ -1318,7 +1320,7 @@ function escapeRegExp(value) {
1318
1320
  }
1319
1321
  class KbqHighlightPipe {
1320
1322
  transform(value, args) {
1321
- if (!args) {
1323
+ if (!args || typeof args !== 'string') {
1322
1324
  return value;
1323
1325
  }
1324
1326
  return value.replace(new RegExp(`(${escapeRegExp(args)})`, 'gi'), '<mark class="kbq-highlight">$1</mark>');
@@ -2252,6 +2254,13 @@ class KbqPopUp {
2252
2254
  this.markForCheck();
2253
2255
  }, delay);
2254
2256
  }
2257
+ /**
2258
+ * Hides the popup after a specified delay.
2259
+ *
2260
+ * The hide timeout triggers the hiding of the popup by updating visibility and emitting relevant events.
2261
+ * Also, it marks for check to ensure proper change detection, especially for parent components with OnPush strategy.
2262
+ * @param delay - The delay in milliseconds before hiding the popup.
2263
+ */
2255
2264
  hide(delay) {
2256
2265
  if (this.showTimeoutId) {
2257
2266
  clearTimeout(this.showTimeoutId);
@@ -2436,7 +2445,7 @@ class KbqPopUpTrigger {
2436
2445
  }
2437
2446
  hide(delay = this.leaveDelay) {
2438
2447
  if (this.instance) {
2439
- this.instance.hide(delay);
2448
+ this.ngZone.run(() => this.instance.hide(delay));
2440
2449
  }
2441
2450
  }
2442
2451
  /** Create the overlay config and position strategy */
@@ -2821,5 +2830,5 @@ const VERSION = new Version('16.0.0-beta.14+sha-675bf518');
2821
2830
  * Generated bundle index. Do not edit.
2822
2831
  */
2823
2832
 
2824
- export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER, KBQ_DATE_FORMATS, KBQ_DATE_LOCALE, KBQ_DATE_LOCALE_FACTORY, KBQ_DEFAULT_LOCALE_DATA_FACTORY, KBQ_DEFAULT_LOCALE_ID, KBQ_FORM_FIELD_REF, KBQ_LABEL_GLOBAL_OPTIONS, KBQ_LOCALE_DATA, KBQ_LOCALE_ID, KBQ_LOCALE_SERVICE, KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS, KBQ_NUMBER_FORMATTER_OPTIONS, KBQ_OPTION_ACTION_PARENT, KBQ_OPTION_PARENT_COMPONENT, KBQ_SANITY_CHECKS, KBQ_SELECT_SCROLL_STRATEGY, KBQ_SELECT_SCROLL_STRATEGY_PROVIDER, KBQ_TITLE_TEXT_REF, KBQ_VALIDATION, KbqCommonModule, KbqComponentColors, KbqDataSizeModule, KbqDataSizePipe, KbqDecimalPipe, KbqDefaultThemes, KbqForm, KbqFormElement, KbqFormattersModule, KbqFormsModule, KbqHighlightModule, KbqHighlightPipe, KbqLine, KbqLineModule, KbqLineSetter, KbqLocaleService, KbqLocaleServiceModule, KbqMeasureScrollbarService, KbqOptgroup, KbqOptgroupBase, KbqOptgroupMixinBase, KbqOption, KbqOptionActionBase, KbqOptionActionComponent, KbqOptionActionMixinBase, KbqOptionBase, KbqOptionModule, KbqOptionSelectionChange, KbqPopUp, KbqPopUpTrigger, KbqPseudoCheckbox, KbqPseudoCheckboxBase, KbqPseudoCheckboxMixinBase, KbqPseudoCheckboxModule, KbqRoundDecimalPipe, KbqTableNumberPipe, KbqVirtualOption, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, 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, ThemeService, VERSION, countGroupLabelsBeforeOption, escapeRegExp, fadeAnimation, formatDataSize, getHumanizedBytes, getKbqSelectDynamicMultipleError, getKbqSelectNonArrayValueError, getKbqSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, kbqSelectAnimations, kbqSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
2833
+ export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DateAdapter, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER, KBQ_DATE_FORMATS, KBQ_DATE_LOCALE, KBQ_DATE_LOCALE_FACTORY, KBQ_DEFAULT_LOCALE_DATA_FACTORY, KBQ_DEFAULT_LOCALE_ID, KBQ_FORM_FIELD_REF, KBQ_LABEL_GLOBAL_OPTIONS, KBQ_LOCALE_DATA, KBQ_LOCALE_ID, KBQ_LOCALE_SERVICE, KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS, KBQ_NUMBER_FORMATTER_OPTIONS, KBQ_OPTION_ACTION_PARENT, KBQ_OPTION_PARENT_COMPONENT, KBQ_PARENT_ANIMATION_COMPONENT, KBQ_SANITY_CHECKS, KBQ_SELECT_SCROLL_STRATEGY, KBQ_SELECT_SCROLL_STRATEGY_PROVIDER, KBQ_TITLE_TEXT_REF, KBQ_VALIDATION, KbqCommonModule, KbqComponentColors, KbqDataSizeModule, KbqDataSizePipe, KbqDecimalPipe, KbqDefaultThemes, KbqForm, KbqFormElement, KbqFormattersModule, KbqFormsModule, KbqHighlightModule, KbqHighlightPipe, KbqLine, KbqLineModule, KbqLineSetter, KbqLocaleService, KbqLocaleServiceModule, KbqMeasureScrollbarService, KbqOptgroup, KbqOptgroupBase, KbqOptgroupMixinBase, KbqOption, KbqOptionActionBase, KbqOptionActionComponent, KbqOptionActionMixinBase, KbqOptionBase, KbqOptionModule, KbqOptionSelectionChange, KbqPopUp, KbqPopUpTrigger, KbqPseudoCheckbox, KbqPseudoCheckboxBase, KbqPseudoCheckboxMixinBase, KbqPseudoCheckboxModule, KbqRoundDecimalPipe, KbqTableNumberPipe, KbqVirtualOption, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, 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, ThemeService, VERSION, countGroupLabelsBeforeOption, escapeRegExp, fadeAnimation, formatDataSize, getHumanizedBytes, getKbqSelectDynamicMultipleError, getKbqSelectNonArrayValueError, getKbqSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, isWithin, kbqSelectAnimations, kbqSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, sizeUnitsConfig, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
2825
2834
  //# sourceMappingURL=koobiq-components-core.mjs.map