@fundamental-ngx/core 0.34.0 → 0.34.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.
Files changed (123) hide show
  1. package/action-bar/package.json +1 -1
  2. package/action-sheet/package.json +1 -1
  3. package/alert/package.json +1 -1
  4. package/avatar/package.json +1 -1
  5. package/avatar-group/package.json +1 -1
  6. package/bar/package.json +1 -1
  7. package/breadcrumb/package.json +1 -1
  8. package/busy-indicator/package.json +1 -1
  9. package/button/package.json +1 -1
  10. package/calendar/package.json +1 -1
  11. package/card/package.json +1 -1
  12. package/carousel/package.json +1 -1
  13. package/checkbox/package.json +1 -1
  14. package/combobox/package.json +1 -1
  15. package/date-picker/package.json +1 -1
  16. package/datetime/package.json +1 -1
  17. package/datetime-picker/package.json +1 -1
  18. package/dialog/package.json +1 -1
  19. package/dynamic-page/dynamic-page.module.d.ts +2 -1
  20. package/dynamic-page/esm2020/dynamic-page-header/header/dynamic-page-header.component.mjs +4 -3
  21. package/dynamic-page/esm2020/dynamic-page.module.mjs +5 -4
  22. package/dynamic-page/fesm2015/fundamental-ngx-core-dynamic-page.mjs +7 -6
  23. package/dynamic-page/fesm2015/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
  24. package/dynamic-page/fesm2020/fundamental-ngx-core-dynamic-page.mjs +7 -6
  25. package/dynamic-page/fesm2020/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
  26. package/dynamic-page/package.json +1 -1
  27. package/dynamic-side-content/package.json +1 -1
  28. package/esm2020/dynamic-page/dynamic-page-header/header/dynamic-page-header.component.mjs +4 -3
  29. package/esm2020/dynamic-page/dynamic-page.module.mjs +5 -4
  30. package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +53 -0
  31. package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +18 -0
  32. package/esm2020/utils/directives/ignore-click-on-selection/tokens.mjs +3 -0
  33. package/esm2020/utils/public_api.mjs +3 -1
  34. package/facets/package.json +1 -1
  35. package/feed-input/package.json +1 -1
  36. package/feed-list-item/package.json +1 -1
  37. package/fesm2015/fundamental-ngx-core-dynamic-page.mjs +7 -6
  38. package/fesm2015/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
  39. package/fesm2015/fundamental-ngx-core-utils.mjs +70 -3
  40. package/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
  41. package/fesm2020/fundamental-ngx-core-dynamic-page.mjs +7 -6
  42. package/fesm2020/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
  43. package/fesm2020/fundamental-ngx-core-utils.mjs +68 -3
  44. package/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  45. package/file-uploader/package.json +1 -1
  46. package/fixed-card-layout/package.json +1 -1
  47. package/flexible-column-layout/package.json +1 -1
  48. package/form/package.json +1 -1
  49. package/formatted-text/package.json +1 -1
  50. package/grid-list/package.json +1 -1
  51. package/icon/package.json +1 -1
  52. package/illustrated-message/package.json +1 -1
  53. package/infinite-scroll/package.json +1 -1
  54. package/info-label/package.json +1 -1
  55. package/inline-help/package.json +1 -1
  56. package/input-group/package.json +1 -1
  57. package/layout-grid/package.json +1 -1
  58. package/layout-panel/package.json +1 -1
  59. package/link/package.json +1 -1
  60. package/list/package.json +1 -1
  61. package/menu/package.json +1 -1
  62. package/message-box/package.json +1 -1
  63. package/message-strip/package.json +1 -1
  64. package/message-toast/package.json +1 -1
  65. package/micro-process-flow/package.json +1 -1
  66. package/mobile-mode/package.json +1 -1
  67. package/multi-input/package.json +1 -1
  68. package/nested-list/package.json +1 -1
  69. package/notification/package.json +1 -1
  70. package/object-identifier/package.json +1 -1
  71. package/object-marker/package.json +1 -1
  72. package/object-number/package.json +1 -1
  73. package/object-status/package.json +1 -1
  74. package/package.json +1 -1
  75. package/pagination/package.json +1 -1
  76. package/panel/package.json +1 -1
  77. package/popover/package.json +1 -1
  78. package/product-switch/package.json +1 -1
  79. package/progress-indicator/package.json +1 -1
  80. package/quick-view/package.json +1 -1
  81. package/radio/package.json +1 -1
  82. package/rating-indicator/package.json +1 -1
  83. package/resizable-card-layout/package.json +1 -1
  84. package/scroll-spy/package.json +1 -1
  85. package/scrollbar/package.json +1 -1
  86. package/segmented-button/package.json +1 -1
  87. package/select/package.json +1 -1
  88. package/shared/package.json +1 -1
  89. package/shellbar/package.json +1 -1
  90. package/side-navigation/package.json +1 -1
  91. package/slider/package.json +1 -1
  92. package/split-button/package.json +1 -1
  93. package/splitter/package.json +1 -1
  94. package/status-indicator/package.json +1 -1
  95. package/step-input/package.json +1 -1
  96. package/switch/package.json +1 -1
  97. package/table/package.json +1 -1
  98. package/tabs/package.json +1 -1
  99. package/text/package.json +1 -1
  100. package/tile/package.json +1 -1
  101. package/time/package.json +1 -1
  102. package/time-picker/package.json +1 -1
  103. package/timeline/package.json +1 -1
  104. package/title/package.json +1 -1
  105. package/token/package.json +1 -1
  106. package/toolbar/package.json +1 -1
  107. package/tree/package.json +1 -1
  108. package/upload-collection/package.json +1 -1
  109. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +17 -0
  110. package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +8 -0
  111. package/utils/directives/ignore-click-on-selection/tokens.d.ts +2 -0
  112. package/utils/esm2020/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +53 -0
  113. package/utils/esm2020/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +18 -0
  114. package/utils/esm2020/directives/ignore-click-on-selection/tokens.mjs +3 -0
  115. package/utils/esm2020/public_api.mjs +3 -1
  116. package/utils/fesm2015/fundamental-ngx-core-utils.mjs +70 -3
  117. package/utils/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
  118. package/utils/fesm2020/fundamental-ngx-core-utils.mjs +68 -3
  119. package/utils/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
  120. package/utils/package.json +1 -1
  121. package/utils/public_api.d.ts +2 -0
  122. package/vertical-navigation/package.json +1 -1
  123. package/wizard/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Input, NgModule, isDevMode, ElementRef, HostListener, InjectionToken, Injectable, Optional, Inject, EventEmitter, Output, ContentChild, ContentChildren, forwardRef, HostBinding, Pipe, NgModuleFactory } from '@angular/core';
2
+ import { InjectionToken, Directive, Inject, HostListener, NgModule, Input, isDevMode, ElementRef, Injectable, Optional, EventEmitter, Output, ContentChild, ContentChildren, forwardRef, HostBinding, Pipe, NgModuleFactory } from '@angular/core';
3
+ import { DOCUMENT, CommonModule } from '@angular/common';
3
4
  import { RIGHT_ARROW, DOWN_ARROW, LEFT_ARROW, UP_ARROW, SPACE, ESCAPE, DELETE, ENTER, TAB, HOME, END, ALT, CONTROL, META, SHIFT, BACKSPACE, A, C, V, X, PAGE_UP, PAGE_DOWN, DASH, NUMPAD_MINUS } from '@angular/cdk/keycodes';
4
5
  import { Observable, fromEvent, NEVER, BehaviorSubject, Subscription, merge, Subject } from 'rxjs';
5
6
  import { map, mapTo, pairwise, filter, takeUntil, tap, take, distinctUntilChanged, debounceTime, delay, startWith } from 'rxjs/operators';
6
- import { CommonModule, DOCUMENT } from '@angular/common';
7
7
  import * as i1 from '@angular/cdk/a11y';
8
8
  import { FocusKeyManager } from '@angular/cdk/a11y';
9
9
  import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
@@ -15,6 +15,71 @@ import { DragDrop, moveItemInArray, transferArrayItem, DragDropModule } from '@a
15
15
  import * as i1$4 from '@angular/router';
16
16
  import { createFocusTrap } from 'focus-trap';
17
17
 
18
+ const IgnoreClickOnSelectionDirectiveToken = new InjectionToken('Ignore click on selection directive');
19
+
20
+ /**
21
+ * Directive will stop propagation and prevent default of click, if selected area is coming from
22
+ * directive's host element. This gives ability to not cancel all clicks on element, just the ones
23
+ * which include selection
24
+ */
25
+ class IgnoreClickOnSelectionDirective {
26
+ /** @hidden */
27
+ constructor(document, _elementRef) {
28
+ this.document = document;
29
+ this._elementRef = _elementRef;
30
+ }
31
+ /** Host click listener. Checks for selection existence and if finds one, checks anchor */
32
+ clicked($event) {
33
+ const selection = this.document.getSelection();
34
+ if (selection.toString()) {
35
+ if (this._elementRef.nativeElement.isSameNode(selection.anchorNode) ||
36
+ this._elementRef.nativeElement.isSameNode(selection.anchorNode.parentElement)) {
37
+ $event.stopPropagation();
38
+ $event.preventDefault();
39
+ }
40
+ }
41
+ }
42
+ }
43
+ IgnoreClickOnSelectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionDirective, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
44
+ IgnoreClickOnSelectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.4", type: IgnoreClickOnSelectionDirective, selector: "[fdIgnoreClickOnSelection]", host: { listeners: { "click": "clicked($event)" } }, providers: [
45
+ {
46
+ provide: IgnoreClickOnSelectionDirectiveToken,
47
+ useExisting: IgnoreClickOnSelectionDirective
48
+ }
49
+ ], ngImport: i0 });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionDirective, decorators: [{
51
+ type: Directive,
52
+ args: [{
53
+ selector: '[fdIgnoreClickOnSelection]',
54
+ providers: [
55
+ {
56
+ provide: IgnoreClickOnSelectionDirectiveToken,
57
+ useExisting: IgnoreClickOnSelectionDirective
58
+ }
59
+ ]
60
+ }]
61
+ }], ctorParameters: function () { return [{ type: Document, decorators: [{
62
+ type: Inject,
63
+ args: [DOCUMENT]
64
+ }] }, { type: i0.ElementRef }]; }, propDecorators: { clicked: [{
65
+ type: HostListener,
66
+ args: ['click', ['$event']]
67
+ }] } });
68
+
69
+ class IgnoreClickOnSelectionModule {
70
+ }
71
+ IgnoreClickOnSelectionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
+ IgnoreClickOnSelectionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionModule, declarations: [IgnoreClickOnSelectionDirective], imports: [CommonModule], exports: [IgnoreClickOnSelectionDirective] });
73
+ IgnoreClickOnSelectionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionModule, imports: [[CommonModule]] });
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: IgnoreClickOnSelectionModule, decorators: [{
75
+ type: NgModule,
76
+ args: [{
77
+ declarations: [IgnoreClickOnSelectionDirective],
78
+ imports: [CommonModule],
79
+ exports: [IgnoreClickOnSelectionDirective]
80
+ }]
81
+ }] });
82
+
18
83
  class TemplateDirective {
19
84
  constructor(templateRef) {
20
85
  this.templateRef = templateRef;
@@ -3131,5 +3196,5 @@ function applyMixins(derivedCtor, baseCtors) {
3131
3196
  * Generated bundle index. Do not edit.
3132
3197
  */
3133
3198
 
3134
- export { ANY_LANGUAGE_LETTERS_GROUP_REGEX, ANY_LANGUAGE_LETTERS_REGEX, AbstractFdNgxClass, AutoCompleteDirective, AutoCompleteModule, ContentDensityEnum, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DefaultTruncateCharCount, DisplayFnPipe, DndItemDirective, DndKeyboardGroupDirective, DndKeyboardItemDirective, DndListDirective, DragAndDropModule, DynamicComponentContainer, DynamicComponentInjector, DynamicComponentService, ELEMENT_REF_EXCEPTION, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, INVALID_DATE_ERROR, InitialFocusDirective, InitialFocusModule, IsCompactDensityPipe, KeyUtil, KeyboardSupportService, LETTERS_UNICODE_RANGE, LIST_ITEM_COMPONENT, LineClampDirective, LineClampModule, LineClampTargetDirective, ListGroupPipe, MOBILE_CONFIG_ERROR, OVERFLOW_PRIORITY_SCORE, OnlyDigitsDirective, OnlyDigitsModule, OverflowListDirective, OverflowListItemDirective, OverflowListModule, PipeModule, RTL_LANGUAGE, RangeSelector, ResizeDirective, ResizeHandleDirective, ResizeModule, RtlService, SafePipe, SearchHighlightPipe, THEME_SWITCHER_ROUTER_MISSING_ERROR, TemplateDirective, TemplateModule, ThemesService, TruncateDirective, TruncateModule, TwoDigitsPipe, UtilsModule, ValueByPathPipe, applyCssClass, applyCssStyle, applyMixins, getElementCapacity, getElementWidth, getRandomColorAccent, intersectionObservable, isCompactDensity, isValidContentDensity, parserFileSize, pxToNum, resizeObservable, scrollTop, toNativeElement, uuidv4 };
3199
+ export { ANY_LANGUAGE_LETTERS_GROUP_REGEX, ANY_LANGUAGE_LETTERS_REGEX, AbstractFdNgxClass, AutoCompleteDirective, AutoCompleteModule, ContentDensityEnum, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DefaultTruncateCharCount, DisplayFnPipe, DndItemDirective, DndKeyboardGroupDirective, DndKeyboardItemDirective, DndListDirective, DragAndDropModule, DynamicComponentContainer, DynamicComponentInjector, DynamicComponentService, ELEMENT_REF_EXCEPTION, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, INVALID_DATE_ERROR, IgnoreClickOnSelectionDirective, IgnoreClickOnSelectionModule, InitialFocusDirective, InitialFocusModule, IsCompactDensityPipe, KeyUtil, KeyboardSupportService, LETTERS_UNICODE_RANGE, LIST_ITEM_COMPONENT, LineClampDirective, LineClampModule, LineClampTargetDirective, ListGroupPipe, MOBILE_CONFIG_ERROR, OVERFLOW_PRIORITY_SCORE, OnlyDigitsDirective, OnlyDigitsModule, OverflowListDirective, OverflowListItemDirective, OverflowListModule, PipeModule, RTL_LANGUAGE, RangeSelector, ResizeDirective, ResizeHandleDirective, ResizeModule, RtlService, SafePipe, SearchHighlightPipe, THEME_SWITCHER_ROUTER_MISSING_ERROR, TemplateDirective, TemplateModule, ThemesService, TruncateDirective, TruncateModule, TwoDigitsPipe, UtilsModule, ValueByPathPipe, applyCssClass, applyCssStyle, applyMixins, getElementCapacity, getElementWidth, getRandomColorAccent, intersectionObservable, isCompactDensity, isValidContentDensity, parserFileSize, pxToNum, resizeObservable, scrollTop, toNativeElement, uuidv4 };
3135
3200
  //# sourceMappingURL=fundamental-ngx-core-utils.mjs.map