@fundamental-ngx/cdk 0.43.12 → 0.43.14
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/esm2020/utils/directives/index.mjs +2 -1
- package/esm2020/utils/directives/multi-announcer/multi-announcer.directive.mjs +97 -0
- package/fesm2015/fundamental-ngx-cdk-utils.mjs +111 -13
- package/fesm2015/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-cdk-utils.mjs +104 -12
- package/fesm2020/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fundamental-ngx-cdk-v0.43.14.tgz +0 -0
- package/package.json +2 -2
- package/utils/directives/index.d.ts +1 -0
- package/utils/directives/multi-announcer/multi-announcer.directive.d.ts +37 -0
- package/fundamental-ngx-cdk-v0.43.12.tgz +0 -0
|
@@ -8,6 +8,7 @@ export * from './initial-focus/initial-focus.directive';
|
|
|
8
8
|
export * from './initial-focus/initial-focus.module';
|
|
9
9
|
export * from './line-clamp/line-clamp.directive';
|
|
10
10
|
export * from './line-clamp/line-clamp.module';
|
|
11
|
+
export * from './multi-announcer/multi-announcer.directive';
|
|
11
12
|
export * from './only-digits/only-digits.directive';
|
|
12
13
|
export * from './only-digits/only-digits.module';
|
|
13
14
|
export * from './overflow-list/overflow-list-item.directive';
|
|
@@ -31,4 +32,4 @@ export * from './clicked';
|
|
|
31
32
|
export * from './selectable-list';
|
|
32
33
|
export * from './breakpoints/breakpoint.directive';
|
|
33
34
|
export * from './intersection-spy/intersection-spy.directive';
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Nkay9zcmMvbGliL3V0aWxzL2RpcmVjdGl2ZXMvaW5kZXgudHMiXSwibmFtZXMiOltdL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i9icmVha3BvaW50cy9icmVha3BvaW50LmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2ludGVyc2VjdGlvbi1zcHkvaW50ZXJzZWN0aW9uLXNweS5kaXJlY3RpdmUnO1xuIl19
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Directive, HostListener, Inject, inject, Input, NgModule } from '@angular/core';
|
|
2
|
+
import { KeyUtil } from '../../functions';
|
|
3
|
+
import { FD_LANGUAGE, TranslationResolver } from '@fundamental-ngx/i18n';
|
|
4
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
5
|
+
import { firstValueFrom, Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "rxjs";
|
|
8
|
+
export class MultiAnnouncerDirective {
|
|
9
|
+
/** @hidden */
|
|
10
|
+
constructor(_language$) {
|
|
11
|
+
this._language$ = _language$;
|
|
12
|
+
/** @hidden */
|
|
13
|
+
this._translationResolver = new TranslationResolver();
|
|
14
|
+
/** @hidden */
|
|
15
|
+
this._noResultsAnnounced = false;
|
|
16
|
+
/** @hidden */
|
|
17
|
+
this._resultsAnnounced = false;
|
|
18
|
+
/** @hidden */
|
|
19
|
+
this._announcement = '';
|
|
20
|
+
/** @hidden */
|
|
21
|
+
this._liveAnnouncer = inject(LiveAnnouncer);
|
|
22
|
+
this._init();
|
|
23
|
+
}
|
|
24
|
+
/** @hidden */
|
|
25
|
+
async _init() {
|
|
26
|
+
this._language = await firstValueFrom(this._language$);
|
|
27
|
+
}
|
|
28
|
+
/** @hidden */
|
|
29
|
+
_makeSearchTermChangeAnnouncements(event) {
|
|
30
|
+
if (KeyUtil.isKeyType(event, 'alphabetical') || KeyUtil.isKeyType(event, 'numeric')) {
|
|
31
|
+
this._liveAnnouncer.clear();
|
|
32
|
+
if (!this.multiAnnouncerOptions.length && !this._noResultsAnnounced) {
|
|
33
|
+
this._buildAnnouncement('noResults');
|
|
34
|
+
this._noResultsAnnounced = true;
|
|
35
|
+
this._resultsAnnounced = false;
|
|
36
|
+
}
|
|
37
|
+
else if (this.multiAnnouncerOptions.length) {
|
|
38
|
+
this._buildAnnouncement(this.multiAnnouncerOptions.length);
|
|
39
|
+
if (!this._resultsAnnounced) {
|
|
40
|
+
this._buildAnnouncement('navigateSelectionsWithArrows');
|
|
41
|
+
this._noResultsAnnounced = false;
|
|
42
|
+
this._resultsAnnounced = true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
this._buildAnnouncement('escapeNavigateTokens');
|
|
46
|
+
this._makeAnnouncement(this._announcement);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** @hidden */
|
|
50
|
+
_buildAnnouncement(message) {
|
|
51
|
+
this._announcement =
|
|
52
|
+
this._announcement +
|
|
53
|
+
this._translationResolver.resolve(this._language, typeof message === 'string'
|
|
54
|
+
? 'coreMultiInput.' + message
|
|
55
|
+
: message === 1
|
|
56
|
+
? 'coreMultiInput.countListResultsSingular'
|
|
57
|
+
: 'coreMultiInput.countListResultsPlural', { count: message }) +
|
|
58
|
+
' ';
|
|
59
|
+
}
|
|
60
|
+
/** @hidden */
|
|
61
|
+
async _makeAnnouncement(message) {
|
|
62
|
+
await this._liveAnnouncer.announce(message, 'assertive').then(() => {
|
|
63
|
+
this._announcement = '';
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
MultiAnnouncerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerDirective, deps: [{ token: FD_LANGUAGE }], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
MultiAnnouncerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MultiAnnouncerDirective, isStandalone: true, selector: "[fdkMultiAnnouncer]", inputs: { multiAnnouncerOptions: "multiAnnouncerOptions" }, host: { listeners: { "keyup": "_makeSearchTermChangeAnnouncements($event)" } }, exportAs: ["fdkMultiAnnouncer"], ngImport: i0 });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerDirective, decorators: [{
|
|
70
|
+
type: Directive,
|
|
71
|
+
args: [{
|
|
72
|
+
selector: '[fdkMultiAnnouncer]',
|
|
73
|
+
exportAs: 'fdkMultiAnnouncer',
|
|
74
|
+
standalone: true
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
77
|
+
type: Inject,
|
|
78
|
+
args: [FD_LANGUAGE]
|
|
79
|
+
}] }]; }, propDecorators: { multiAnnouncerOptions: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], _makeSearchTermChangeAnnouncements: [{
|
|
82
|
+
type: HostListener,
|
|
83
|
+
args: ['keyup', ['$event']]
|
|
84
|
+
}] } });
|
|
85
|
+
export class MultiAnnouncerModule {
|
|
86
|
+
}
|
|
87
|
+
MultiAnnouncerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
+
MultiAnnouncerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, imports: [MultiAnnouncerDirective], exports: [MultiAnnouncerDirective] });
|
|
89
|
+
MultiAnnouncerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, decorators: [{
|
|
91
|
+
type: NgModule,
|
|
92
|
+
args: [{
|
|
93
|
+
imports: [MultiAnnouncerDirective],
|
|
94
|
+
exports: [MultiAnnouncerDirective]
|
|
95
|
+
}]
|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nKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbm9SZXN1bHRzQW5ub3VuY2VkID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3Jlc3VsdHNBbm5vdW5jZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuX2J1aWxkQW5ub3VuY2VtZW50KCdlc2NhcGVOYXZpZ2F0ZVRva2VucycpO1xuICAgICAgICAgICAgdGhpcy5fbWFrZUFubm91bmNlbWVudCh0aGlzLl9hbm5vdW5jZW1lbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqIEBoaWRkZW4gKi9cbiAgICBwcml2YXRlIF9idWlsZEFubm91bmNlbWVudChtZXNzYWdlOiBzdHJpbmcgfCBudW1iZXIpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5fYW5ub3VuY2VtZW50ID1cbiAgICAgICAgICAgIHRoaXMuX2Fubm91bmNlbWVudCArXG4gICAgICAgICAgICB0aGlzLl90cmFuc2xhdGlvblJlc29sdmVyLnJlc29sdmUoXG4gICAgICAgICAgICAgICAgdGhpcy5fbGFuZ3VhZ2UsXG4gICAgICAgICAgICAgICAgdHlwZW9mIG1lc3NhZ2UgPT09ICdzdHJpbmcnXG4gICAgICAgICAgICAgICAgICAgID8gJ2NvcmVNdWx0aUlucHV0LicgKyBtZXNzYWdlXG4gICAgICAgICAgICAgICAgICAgIDogbWVzc2FnZSA9PT0gMVxuICAgICAgICAgICAgICAgICAgICA/ICdjb3JlTXVsdGlJbnB1dC5jb3VudExpc3RSZXN1bHRzU2luZ3VsYXInXG4gICAgICAgICAgICAgICAgICAgIDogJ2NvcmVNdWx0aUlucHV0LmNvdW50TGlzdFJlc3VsdHNQbHVyYWwnLFxuICAgICAgICAgICAgICAgIHsgY291bnQ6IG1lc3NhZ2UgfVxuICAgICAgICAgICAgKSArXG4gICAgICAgICAgICAnICc7XG4gICAgfVxuXG4gICAgLyoqIEBoaWRkZW4gKi9cbiAgICBwcml2YXRlIGFzeW5jIF9tYWtlQW5ub3VuY2VtZW50KG1lc3NhZ2U6IHN0cmluZyk6IFByb21pc2U8dm9pZD4ge1xuICAgICAgICBhd2FpdCB0aGlzLl9saXZlQW5ub3VuY2VyLmFubm91bmNlKG1lc3NhZ2UsICdhc3NlcnRpdmUnKS50aGVuKCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuX2Fubm91bmNlbWVudCA9ICcnO1xuICAgICAgICB9KTtcbiAgICB9XG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW011bHRpQW5ub3VuY2VyRGlyZWN0aXZlXSxcbiAgICBleHBvcnRzOiBbTXVsdGlBbm5vdW5jZXJEaXJlY3RpdmVdXG59KVxuZXhwb3J0IGNsYXNzIE11bHRpQW5ub3VuY2VyTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, Optional, Inject, isDevMode, inject, Directive, EventEmitter, Input, Output, HostListener, NgModule, ContentChildren, forwardRef, HostBinding, ElementRef, INJECTOR, ContentChild, NgZone, Renderer2, Self, SkipSelf, PLATFORM_ID, QueryList, ViewContainerRef, Component, Injector, NgModuleFactory, Pipe, TemplateRef, ViewChild } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, CommonModule, AsyncPipe } from '@angular/common';
|
|
4
|
-
import
|
|
4
|
+
import * as i1$3 from 'rxjs';
|
|
5
|
+
import { BehaviorSubject, Subject, ReplaySubject, Observable, fromEvent, NEVER, merge, firstValueFrom, Subscription, takeUntil as takeUntil$1, startWith as startWith$1, switchMap, combineLatest, filter as filter$1, isObservable, of, map as map$1, take as take$1 } from 'rxjs';
|
|
5
6
|
import { takeUntil, filter, distinctUntilChanged, startWith, map, tap, take, debounceTime, mapTo, pairwise, finalize, shareReplay, switchMap as switchMap$1, delay } from 'rxjs/operators';
|
|
6
7
|
import * as i1 from '@angular/router';
|
|
7
8
|
import * as i2 from '@angular/platform-browser';
|
|
@@ -12,14 +13,15 @@ import * as i1$1 from '@angular/cdk/a11y';
|
|
|
12
13
|
import { FocusKeyManager, LiveAnnouncer } from '@angular/cdk/a11y';
|
|
13
14
|
import { createFocusTrap } from 'focus-trap';
|
|
14
15
|
import * as i1$2 from '@angular/cdk/observers';
|
|
15
|
-
import * as i1$3 from '@angular/cdk/overlay';
|
|
16
|
-
import { ViewportRuler, OverlayConfig, OverlayContainer } from '@angular/cdk/overlay';
|
|
17
16
|
import { __awaiter, __decorate, __metadata } from 'tslib';
|
|
17
|
+
import { TranslationResolver, FD_LANGUAGE } from '@fundamental-ngx/i18n';
|
|
18
|
+
import * as i1$4 from '@angular/cdk/overlay';
|
|
19
|
+
import { ViewportRuler, OverlayConfig, OverlayContainer } from '@angular/cdk/overlay';
|
|
18
20
|
import { get, findLastIndex } from 'lodash-es';
|
|
19
21
|
import equal from 'fast-deep-equal';
|
|
20
|
-
import * as i1$
|
|
22
|
+
import * as i1$5 from '@angular/cdk/drag-drop';
|
|
21
23
|
import { DragDrop, moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
|
|
22
|
-
import * as i1$
|
|
24
|
+
import * as i1$6 from '@angular/cdk/portal';
|
|
23
25
|
import { DomPortal, ComponentPortal, TemplatePortal, PortalModule, BasePortalOutlet, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
24
26
|
import escape from 'lodash-es/escape';
|
|
25
27
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
@@ -1895,6 +1897,102 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1895
1897
|
}]
|
|
1896
1898
|
}] });
|
|
1897
1899
|
|
|
1900
|
+
class MultiAnnouncerDirective {
|
|
1901
|
+
/** @hidden */
|
|
1902
|
+
constructor(_language$) {
|
|
1903
|
+
this._language$ = _language$;
|
|
1904
|
+
/** @hidden */
|
|
1905
|
+
this._translationResolver = new TranslationResolver();
|
|
1906
|
+
/** @hidden */
|
|
1907
|
+
this._noResultsAnnounced = false;
|
|
1908
|
+
/** @hidden */
|
|
1909
|
+
this._resultsAnnounced = false;
|
|
1910
|
+
/** @hidden */
|
|
1911
|
+
this._announcement = '';
|
|
1912
|
+
/** @hidden */
|
|
1913
|
+
this._liveAnnouncer = inject(LiveAnnouncer);
|
|
1914
|
+
this._init();
|
|
1915
|
+
}
|
|
1916
|
+
/** @hidden */
|
|
1917
|
+
_init() {
|
|
1918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1919
|
+
this._language = yield firstValueFrom(this._language$);
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
/** @hidden */
|
|
1923
|
+
_makeSearchTermChangeAnnouncements(event) {
|
|
1924
|
+
if (KeyUtil.isKeyType(event, 'alphabetical') || KeyUtil.isKeyType(event, 'numeric')) {
|
|
1925
|
+
this._liveAnnouncer.clear();
|
|
1926
|
+
if (!this.multiAnnouncerOptions.length && !this._noResultsAnnounced) {
|
|
1927
|
+
this._buildAnnouncement('noResults');
|
|
1928
|
+
this._noResultsAnnounced = true;
|
|
1929
|
+
this._resultsAnnounced = false;
|
|
1930
|
+
}
|
|
1931
|
+
else if (this.multiAnnouncerOptions.length) {
|
|
1932
|
+
this._buildAnnouncement(this.multiAnnouncerOptions.length);
|
|
1933
|
+
if (!this._resultsAnnounced) {
|
|
1934
|
+
this._buildAnnouncement('navigateSelectionsWithArrows');
|
|
1935
|
+
this._noResultsAnnounced = false;
|
|
1936
|
+
this._resultsAnnounced = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
this._buildAnnouncement('escapeNavigateTokens');
|
|
1940
|
+
this._makeAnnouncement(this._announcement);
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
/** @hidden */
|
|
1944
|
+
_buildAnnouncement(message) {
|
|
1945
|
+
this._announcement =
|
|
1946
|
+
this._announcement +
|
|
1947
|
+
this._translationResolver.resolve(this._language, typeof message === 'string'
|
|
1948
|
+
? 'coreMultiInput.' + message
|
|
1949
|
+
: message === 1
|
|
1950
|
+
? 'coreMultiInput.countListResultsSingular'
|
|
1951
|
+
: 'coreMultiInput.countListResultsPlural', { count: message }) +
|
|
1952
|
+
' ';
|
|
1953
|
+
}
|
|
1954
|
+
/** @hidden */
|
|
1955
|
+
_makeAnnouncement(message) {
|
|
1956
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1957
|
+
yield this._liveAnnouncer.announce(message, 'assertive').then(() => {
|
|
1958
|
+
this._announcement = '';
|
|
1959
|
+
});
|
|
1960
|
+
});
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
MultiAnnouncerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerDirective, deps: [{ token: FD_LANGUAGE }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1964
|
+
MultiAnnouncerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MultiAnnouncerDirective, isStandalone: true, selector: "[fdkMultiAnnouncer]", inputs: { multiAnnouncerOptions: "multiAnnouncerOptions" }, host: { listeners: { "keyup": "_makeSearchTermChangeAnnouncements($event)" } }, exportAs: ["fdkMultiAnnouncer"], ngImport: i0 });
|
|
1965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerDirective, decorators: [{
|
|
1966
|
+
type: Directive,
|
|
1967
|
+
args: [{
|
|
1968
|
+
selector: '[fdkMultiAnnouncer]',
|
|
1969
|
+
exportAs: 'fdkMultiAnnouncer',
|
|
1970
|
+
standalone: true
|
|
1971
|
+
}]
|
|
1972
|
+
}], ctorParameters: function () {
|
|
1973
|
+
return [{ type: i1$3.Observable, decorators: [{
|
|
1974
|
+
type: Inject,
|
|
1975
|
+
args: [FD_LANGUAGE]
|
|
1976
|
+
}] }];
|
|
1977
|
+
}, propDecorators: { multiAnnouncerOptions: [{
|
|
1978
|
+
type: Input
|
|
1979
|
+
}], _makeSearchTermChangeAnnouncements: [{
|
|
1980
|
+
type: HostListener,
|
|
1981
|
+
args: ['keyup', ['$event']]
|
|
1982
|
+
}] } });
|
|
1983
|
+
class MultiAnnouncerModule {
|
|
1984
|
+
}
|
|
1985
|
+
MultiAnnouncerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1986
|
+
MultiAnnouncerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, imports: [MultiAnnouncerDirective], exports: [MultiAnnouncerDirective] });
|
|
1987
|
+
MultiAnnouncerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule });
|
|
1988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MultiAnnouncerModule, decorators: [{
|
|
1989
|
+
type: NgModule,
|
|
1990
|
+
args: [{
|
|
1991
|
+
imports: [MultiAnnouncerDirective],
|
|
1992
|
+
exports: [MultiAnnouncerDirective]
|
|
1993
|
+
}]
|
|
1994
|
+
}] });
|
|
1995
|
+
|
|
1898
1996
|
class DeprecatedOnlyDigitsDirective extends DeprecatedSelector {
|
|
1899
1997
|
}
|
|
1900
1998
|
DeprecatedOnlyDigitsDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DeprecatedOnlyDigitsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -2275,7 +2373,7 @@ class OverflowListDirective {
|
|
|
2275
2373
|
});
|
|
2276
2374
|
}
|
|
2277
2375
|
}
|
|
2278
|
-
OverflowListDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverflowListDirective, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
2376
|
+
OverflowListDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverflowListDirective, deps: [{ token: i0.ElementRef }, { token: i1$4.ViewportRuler }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2279
2377
|
OverflowListDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: OverflowListDirective, isStandalone: true, selector: "[fdkOverflowList], [fdOverflowList], [fd-overflow-list]", inputs: { overflowOffset: "overflowOffset", isRtl: "isRtl", itemCssBlockValue: "itemCssBlockValue" }, outputs: { overflowChanged: "overflowChanged" }, queries: [{ propertyName: "overflowItems", predicate: OverflowListItemDirective }], ngImport: i0 });
|
|
2280
2378
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: OverflowListDirective, decorators: [{
|
|
2281
2379
|
type: Directive,
|
|
@@ -2283,7 +2381,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
2283
2381
|
selector: '[fdkOverflowList], [fdOverflowList], [fd-overflow-list]',
|
|
2284
2382
|
standalone: true
|
|
2285
2383
|
}]
|
|
2286
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
2384
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$4.ViewportRuler }, { type: i0.NgZone }]; }, propDecorators: { overflowOffset: [{
|
|
2287
2385
|
type: Input
|
|
2288
2386
|
}], isRtl: [{
|
|
2289
2387
|
type: Input
|
|
@@ -5959,7 +6057,7 @@ class DndItemDirective {
|
|
|
5959
6057
|
}));
|
|
5960
6058
|
}
|
|
5961
6059
|
}
|
|
5962
|
-
DndItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DndItemDirective, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
6060
|
+
DndItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DndItemDirective, deps: [{ token: i0.ElementRef }, { token: i1$5.DragDrop }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5963
6061
|
DndItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: DndItemDirective, selector: "[fdkDndItem], [fd-dnd-item]", inputs: { item: ["fdkDndItem", "item"], applyDragItemClass: "applyDragItemClass", containerSelector: "containerSelector", stickInPlace: "stickInPlace", draggable: "draggable", classWhenElementDragged: "classWhenElementDragged" }, outputs: { moved: "moved", released: "released", started: "started" }, host: { properties: { "class.fd-dnd-item": "this.applyDragItemClass" } }, providers: [DragDrop, { provide: DND_ITEM, useExisting: forwardRef(() => DndItemDirective) }], ngImport: i0 });
|
|
5964
6062
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DndItemDirective, decorators: [{
|
|
5965
6063
|
type: Directive,
|
|
@@ -5967,7 +6065,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
5967
6065
|
selector: '[fdkDndItem], [fd-dnd-item]',
|
|
5968
6066
|
providers: [DragDrop, { provide: DND_ITEM, useExisting: forwardRef(() => DndItemDirective) }]
|
|
5969
6067
|
}]
|
|
5970
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
6068
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$5.DragDrop }, { type: i0.Renderer2 }]; }, propDecorators: { item: [{
|
|
5971
6069
|
type: Input,
|
|
5972
6070
|
args: ['fdkDndItem']
|
|
5973
6071
|
}], applyDragItemClass: [{
|
|
@@ -6411,7 +6509,7 @@ class DynamicPortalComponent {
|
|
|
6411
6509
|
}
|
|
6412
6510
|
}
|
|
6413
6511
|
DynamicPortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DynamicPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6414
|
-
DynamicPortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DynamicPortalComponent, isStandalone: true, selector: "fdk-dynamic-portal", inputs: { domElement: "domElement", component: "component", template: "template" }, usesOnChanges: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="portal"></ng-template>`, isInline: true, dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$
|
|
6512
|
+
DynamicPortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DynamicPortalComponent, isStandalone: true, selector: "fdk-dynamic-portal", inputs: { domElement: "domElement", component: "component", template: "template" }, usesOnChanges: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="portal"></ng-template>`, isInline: true, dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i1$6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] });
|
|
6415
6513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DynamicPortalComponent, decorators: [{
|
|
6416
6514
|
type: Component,
|
|
6417
6515
|
args: [{
|
|
@@ -7165,11 +7263,11 @@ class BaseToastService {
|
|
|
7165
7263
|
return !!position.boundTo;
|
|
7166
7264
|
}
|
|
7167
7265
|
}
|
|
7168
|
-
BaseToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseToastService, deps: [{ token: i1$
|
|
7266
|
+
BaseToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseToastService, deps: [{ token: i1$4.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7169
7267
|
BaseToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseToastService });
|
|
7170
7268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BaseToastService, decorators: [{
|
|
7171
7269
|
type: Injectable
|
|
7172
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
7270
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.Injector }]; } });
|
|
7173
7271
|
|
|
7174
7272
|
const toastConnectedTopPosition = {
|
|
7175
7273
|
originX: 'center',
|
|
@@ -7658,5 +7756,5 @@ class BaseToastDurationDismissibleConfig extends BaseToastConfig {
|
|
|
7658
7756
|
* Generated bundle index. Do not edit.
|
|
7659
7757
|
*/
|
|
7660
7758
|
|
|
7661
|
-
export { ANY_LANGUAGE_LETTERS_GROUP_REGEX, ANY_LANGUAGE_LETTERS_REGEX, AbstractFdNgxClass, AsyncOrSyncPipe, AttributeObserver, AutoCompleteDirective, AutoCompleteModule, BaseAnimatedToastConfig, BaseDismissibleToastService, BaseToastActionDismissibleRef, BaseToastConfig, BaseToastContainerComponent, BaseToastDurationDismissibleConfig, BaseToastDurationDismissibleContainerComponent, BaseToastDurationDismissibleRef, BaseToastOverlayContainer, BaseToastPosition, BaseToastRef, BaseToastService, BreakpointDirective, BreakpointModule, ClickedBehaviorModule, ClickedDirective, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DND_ITEM, DND_LIST, DefaultReadonlyViewModifier, DeprecatedAutoCompleteDirective, DeprecatedClickedDirective, DeprecatedDisabledBehaviorDirective, DeprecatedFocusKeyManagerItemDirective, DeprecatedFocusKeyManagerListDirective, DeprecatedFocusableItemDirective, DeprecatedFocusableListDirective, DeprecatedIgnoreClickOnSelectionDirective, DeprecatedInitialFocusDirective, DeprecatedLineClampDirective, DeprecatedLineClampTargetDirective, DeprecatedOnlyDigitsDirective, DeprecatedOverflowListDirective, DeprecatedOverflowListItemDirective, DeprecatedReadonlyBehaviorDirective, DeprecatedRepeatDirective, DeprecatedResizeDirective, DeprecatedResizeHandleDirective, DeprecatedTemplateSelectorDirective, DeprecatedTruncateSelectorDirective, DestroyedService, DisabledBehaviorDirective, DisabledBehaviorModule, DisabledObserver, DisplayFnPipe, DndItemDirective, DndKeyboardGroupDirective, DndKeyboardItemDirective, DndListDirective, DragAndDropModule, DynamicComponentContainer, DynamicComponentInjector, DynamicComponentService, DynamicPortalComponent, ELEMENT_REF_EXCEPTION, FDK_DISABLED_DIRECTIVE, FDK_FOCUSABLE_GRID_DIRECTIVE, FDK_FOCUSABLE_ITEM_DIRECTIVE, FDK_FOCUSABLE_LIST_DIRECTIVE, FDK_READONLY_DIRECTIVE, FDK_SELECTABLE_ITEM_PROVIDER, FOCUSABLE_ITEM, FdkClickedProvider, FdkDisabledProvider, FdkReadonlyProvider, FilterStringsPipe, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, FocusableGridDirective, FocusableGridModule, FocusableItemDirective, FocusableItemModule, FocusableListDirective, FocusableListModule, FocusableObserver, FunctionStrategy, INVALID_DATE_ERROR, IgnoreClickOnSelectionDirective, IgnoreClickOnSelectionDirectiveToken, IgnoreClickOnSelectionModule, InitialFocusDirective, InitialFocusModule, IntersectionSpyDirective, IsCompactDensityPipe, KeyUtil, KeyboardSupportService, LETTERS_UNICODE_RANGE, LIST_ITEM_COMPONENT, LineClampDirective, LineClampModule, LineClampTargetDirective, LocalStorageService, MOBILE_CONFIG_ERROR, MakeAsyncPipe, ModuleDeprecations, OVERFLOW_PRIORITY_SCORE, ObservableStrategy, OnlyDigitsDirective, OnlyDigitsModule, OverflowListDirective, OverflowListItemDirective, OverflowListModule, PipeModule, PromiseStrategy, RTL_LANGUAGE, RangeSelector, ReadonlyBehaviorDirective, ReadonlyBehaviorModule, ReadonlyObserver, RepeatDirective, RepeatModule, ResizeDirective, ResizeHandleDirective, ResizeModule, ResizeObserverFactory, ResizeObserverService, ResponsiveBreakpoints, RtlService, SafePipe, SearchHighlightPipe, SelectComponentRootToken, SelectableItemDirective, SelectableItemToken, SelectableListDirective, SelectableListModule, SelectionService, THEME_SWITCHER_ROUTER_MISSING_ERROR, TabbableElementService, TemplateDirective, TemplateModule, ThemesService, ToastBottomCenterPosition, ToastBottomLeftPosition, ToastBottomRightPosition, ToastTopCenterPosition, ToastTopLeftPosition, ToastTopRightPosition, TruncateDirective, TruncateModule, TruncatePipe, TwoDigitsPipe, UtilsModule, ValueByPathPipe, ValueStrategy, ViewportSizeObservable, alternateSetter, applyCssClass, applyCssStyle, baseToastAnimations, coerceArraySafe, coerceBoolean, coerceCssPixel, consumerProviderFactory, dfs, getBreakpointName, getDocumentFontSize, getElementCapacity, getElementWidth, getNativeElement, getRandomColorAccent, hasElementRef, intersectionObservable, isBlank, isBoolean, isCompactDensity, isFunction, isJsObject, isNumber, isObject, isOdd, isPresent, isPromise, isString, isStringMap, isSubscribable, isType, isValidContentDensity, moduleDeprecationsFactory, moduleDeprecationsProvider, parserFileSize, pxToNum, resizeObservable, scrollIntoView, scrollTop, selectStrategy, setDisabledState, setReadonlyState, toNativeElement, toastConnectedBottomLeftPosition, toastConnectedBottomPosition, toastConnectedBottomRightPosition, toastConnectedTopLeftPosition, toastConnectedTopPosition, toastConnectedTopRightPosition, uuidv4 };
|
|
7759
|
+
export { ANY_LANGUAGE_LETTERS_GROUP_REGEX, ANY_LANGUAGE_LETTERS_REGEX, AbstractFdNgxClass, AsyncOrSyncPipe, AttributeObserver, AutoCompleteDirective, AutoCompleteModule, BaseAnimatedToastConfig, BaseDismissibleToastService, BaseToastActionDismissibleRef, BaseToastConfig, BaseToastContainerComponent, BaseToastDurationDismissibleConfig, BaseToastDurationDismissibleContainerComponent, BaseToastDurationDismissibleRef, BaseToastOverlayContainer, BaseToastPosition, BaseToastRef, BaseToastService, BreakpointDirective, BreakpointModule, ClickedBehaviorModule, ClickedDirective, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DND_ITEM, DND_LIST, DefaultReadonlyViewModifier, DeprecatedAutoCompleteDirective, DeprecatedClickedDirective, DeprecatedDisabledBehaviorDirective, DeprecatedFocusKeyManagerItemDirective, DeprecatedFocusKeyManagerListDirective, DeprecatedFocusableItemDirective, DeprecatedFocusableListDirective, DeprecatedIgnoreClickOnSelectionDirective, DeprecatedInitialFocusDirective, DeprecatedLineClampDirective, DeprecatedLineClampTargetDirective, DeprecatedOnlyDigitsDirective, DeprecatedOverflowListDirective, DeprecatedOverflowListItemDirective, DeprecatedReadonlyBehaviorDirective, DeprecatedRepeatDirective, DeprecatedResizeDirective, DeprecatedResizeHandleDirective, DeprecatedTemplateSelectorDirective, DeprecatedTruncateSelectorDirective, DestroyedService, DisabledBehaviorDirective, DisabledBehaviorModule, DisabledObserver, DisplayFnPipe, DndItemDirective, DndKeyboardGroupDirective, DndKeyboardItemDirective, DndListDirective, DragAndDropModule, DynamicComponentContainer, DynamicComponentInjector, DynamicComponentService, DynamicPortalComponent, ELEMENT_REF_EXCEPTION, FDK_DISABLED_DIRECTIVE, FDK_FOCUSABLE_GRID_DIRECTIVE, FDK_FOCUSABLE_ITEM_DIRECTIVE, FDK_FOCUSABLE_LIST_DIRECTIVE, FDK_READONLY_DIRECTIVE, FDK_SELECTABLE_ITEM_PROVIDER, FOCUSABLE_ITEM, FdkClickedProvider, FdkDisabledProvider, FdkReadonlyProvider, FilterStringsPipe, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, FocusableGridDirective, FocusableGridModule, FocusableItemDirective, FocusableItemModule, FocusableListDirective, FocusableListModule, FocusableObserver, FunctionStrategy, INVALID_DATE_ERROR, IgnoreClickOnSelectionDirective, IgnoreClickOnSelectionDirectiveToken, IgnoreClickOnSelectionModule, InitialFocusDirective, InitialFocusModule, IntersectionSpyDirective, IsCompactDensityPipe, KeyUtil, KeyboardSupportService, LETTERS_UNICODE_RANGE, LIST_ITEM_COMPONENT, LineClampDirective, LineClampModule, LineClampTargetDirective, LocalStorageService, MOBILE_CONFIG_ERROR, MakeAsyncPipe, ModuleDeprecations, MultiAnnouncerDirective, MultiAnnouncerModule, OVERFLOW_PRIORITY_SCORE, ObservableStrategy, OnlyDigitsDirective, OnlyDigitsModule, OverflowListDirective, OverflowListItemDirective, OverflowListModule, PipeModule, PromiseStrategy, RTL_LANGUAGE, RangeSelector, ReadonlyBehaviorDirective, ReadonlyBehaviorModule, ReadonlyObserver, RepeatDirective, RepeatModule, ResizeDirective, ResizeHandleDirective, ResizeModule, ResizeObserverFactory, ResizeObserverService, ResponsiveBreakpoints, RtlService, SafePipe, SearchHighlightPipe, SelectComponentRootToken, SelectableItemDirective, SelectableItemToken, SelectableListDirective, SelectableListModule, SelectionService, THEME_SWITCHER_ROUTER_MISSING_ERROR, TabbableElementService, TemplateDirective, TemplateModule, ThemesService, ToastBottomCenterPosition, ToastBottomLeftPosition, ToastBottomRightPosition, ToastTopCenterPosition, ToastTopLeftPosition, ToastTopRightPosition, TruncateDirective, TruncateModule, TruncatePipe, TwoDigitsPipe, UtilsModule, ValueByPathPipe, ValueStrategy, ViewportSizeObservable, alternateSetter, applyCssClass, applyCssStyle, baseToastAnimations, coerceArraySafe, coerceBoolean, coerceCssPixel, consumerProviderFactory, dfs, getBreakpointName, getDocumentFontSize, getElementCapacity, getElementWidth, getNativeElement, getRandomColorAccent, hasElementRef, intersectionObservable, isBlank, isBoolean, isCompactDensity, isFunction, isJsObject, isNumber, isObject, isOdd, isPresent, isPromise, isString, isStringMap, isSubscribable, isType, isValidContentDensity, moduleDeprecationsFactory, moduleDeprecationsProvider, parserFileSize, pxToNum, resizeObservable, scrollIntoView, scrollTop, selectStrategy, setDisabledState, setReadonlyState, toNativeElement, toastConnectedBottomLeftPosition, toastConnectedBottomPosition, toastConnectedBottomRightPosition, toastConnectedTopLeftPosition, toastConnectedTopPosition, toastConnectedTopRightPosition, uuidv4 };
|
|
7662
7760
|
//# sourceMappingURL=fundamental-ngx-cdk-utils.mjs.map
|