@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.
- package/action-bar/package.json +1 -1
- package/action-sheet/package.json +1 -1
- package/alert/package.json +1 -1
- package/avatar/package.json +1 -1
- package/avatar-group/package.json +1 -1
- package/bar/package.json +1 -1
- package/breadcrumb/package.json +1 -1
- package/busy-indicator/package.json +1 -1
- package/button/package.json +1 -1
- package/calendar/package.json +1 -1
- package/card/package.json +1 -1
- package/carousel/package.json +1 -1
- package/checkbox/package.json +1 -1
- package/combobox/package.json +1 -1
- package/date-picker/package.json +1 -1
- package/datetime/package.json +1 -1
- package/datetime-picker/package.json +1 -1
- package/dialog/package.json +1 -1
- package/dynamic-page/dynamic-page.module.d.ts +2 -1
- package/dynamic-page/esm2020/dynamic-page-header/header/dynamic-page-header.component.mjs +4 -3
- package/dynamic-page/esm2020/dynamic-page.module.mjs +5 -4
- package/dynamic-page/fesm2015/fundamental-ngx-core-dynamic-page.mjs +7 -6
- package/dynamic-page/fesm2015/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/dynamic-page/fesm2020/fundamental-ngx-core-dynamic-page.mjs +7 -6
- package/dynamic-page/fesm2020/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/dynamic-page/package.json +1 -1
- package/dynamic-side-content/package.json +1 -1
- package/esm2020/dynamic-page/dynamic-page-header/header/dynamic-page-header.component.mjs +4 -3
- package/esm2020/dynamic-page/dynamic-page.module.mjs +5 -4
- package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +53 -0
- package/esm2020/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +18 -0
- package/esm2020/utils/directives/ignore-click-on-selection/tokens.mjs +3 -0
- package/esm2020/utils/public_api.mjs +3 -1
- package/facets/package.json +1 -1
- package/feed-input/package.json +1 -1
- package/feed-list-item/package.json +1 -1
- package/fesm2015/fundamental-ngx-core-dynamic-page.mjs +7 -6
- package/fesm2015/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-utils.mjs +70 -3
- package/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-dynamic-page.mjs +7 -6
- package/fesm2020/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-utils.mjs +68 -3
- package/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
- package/file-uploader/package.json +1 -1
- package/fixed-card-layout/package.json +1 -1
- package/flexible-column-layout/package.json +1 -1
- package/form/package.json +1 -1
- package/formatted-text/package.json +1 -1
- package/grid-list/package.json +1 -1
- package/icon/package.json +1 -1
- package/illustrated-message/package.json +1 -1
- package/infinite-scroll/package.json +1 -1
- package/info-label/package.json +1 -1
- package/inline-help/package.json +1 -1
- package/input-group/package.json +1 -1
- package/layout-grid/package.json +1 -1
- package/layout-panel/package.json +1 -1
- package/link/package.json +1 -1
- package/list/package.json +1 -1
- package/menu/package.json +1 -1
- package/message-box/package.json +1 -1
- package/message-strip/package.json +1 -1
- package/message-toast/package.json +1 -1
- package/micro-process-flow/package.json +1 -1
- package/mobile-mode/package.json +1 -1
- package/multi-input/package.json +1 -1
- package/nested-list/package.json +1 -1
- package/notification/package.json +1 -1
- package/object-identifier/package.json +1 -1
- package/object-marker/package.json +1 -1
- package/object-number/package.json +1 -1
- package/object-status/package.json +1 -1
- package/package.json +1 -1
- package/pagination/package.json +1 -1
- package/panel/package.json +1 -1
- package/popover/package.json +1 -1
- package/product-switch/package.json +1 -1
- package/progress-indicator/package.json +1 -1
- package/quick-view/package.json +1 -1
- package/radio/package.json +1 -1
- package/rating-indicator/package.json +1 -1
- package/resizable-card-layout/package.json +1 -1
- package/scroll-spy/package.json +1 -1
- package/scrollbar/package.json +1 -1
- package/segmented-button/package.json +1 -1
- package/select/package.json +1 -1
- package/shared/package.json +1 -1
- package/shellbar/package.json +1 -1
- package/side-navigation/package.json +1 -1
- package/slider/package.json +1 -1
- package/split-button/package.json +1 -1
- package/splitter/package.json +1 -1
- package/status-indicator/package.json +1 -1
- package/step-input/package.json +1 -1
- package/switch/package.json +1 -1
- package/table/package.json +1 -1
- package/tabs/package.json +1 -1
- package/text/package.json +1 -1
- package/tile/package.json +1 -1
- package/time/package.json +1 -1
- package/time-picker/package.json +1 -1
- package/timeline/package.json +1 -1
- package/title/package.json +1 -1
- package/token/package.json +1 -1
- package/toolbar/package.json +1 -1
- package/tree/package.json +1 -1
- package/upload-collection/package.json +1 -1
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +17 -0
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +8 -0
- package/utils/directives/ignore-click-on-selection/tokens.d.ts +2 -0
- package/utils/esm2020/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +53 -0
- package/utils/esm2020/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +18 -0
- package/utils/esm2020/directives/ignore-click-on-selection/tokens.mjs +3 -0
- package/utils/esm2020/public_api.mjs +3 -1
- package/utils/fesm2015/fundamental-ngx-core-utils.mjs +70 -3
- package/utils/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
- package/utils/fesm2020/fundamental-ngx-core-utils.mjs +68 -3
- package/utils/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
- package/utils/package.json +1 -1
- package/utils/public_api.d.ts +2 -0
- package/vertical-navigation/package.json +1 -1
- package/wizard/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive,
|
|
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
|