@fundamental-ngx/cdk 0.58.0-rc.7 → 0.58.0-rc.71
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.
|
@@ -2,10 +2,9 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { INJECTOR, ElementRef, isDevMode, InjectionToken, EventEmitter, inject, NgZone, Input, Output, Directive, NgModule, DestroyRef, Injectable, Optional, Inject, DOCUMENT, booleanAttribute, Renderer2, PLATFORM_ID, Self, SkipSelf, ContentChildren, forwardRef, HostListener, HostBinding, Injector, computed, ContentChild, QueryList, ViewContainerRef, TemplateRef, ViewChild, Component, NgModuleFactory, Pipe, signal } from '@angular/core';
|
|
3
3
|
import { RIGHT_ARROW, DOWN_ARROW, LEFT_ARROW, UP_ARROW, SPACE, ESCAPE, DELETE, ENTER, MAC_ENTER, TAB, HOME, END, ALT, CONTROL, META, SHIFT, BACKSPACE, A, C, V, X, PAGE_UP, PAGE_DOWN, DASH, NUMPAD_MINUS, NUMPAD_ZERO, NUMPAD_ONE, NUMPAD_TWO, NUMPAD_THREE, NUMPAD_FOUR, NUMPAD_FIVE, NUMPAD_SIX, NUMPAD_SEVEN, NUMPAD_EIGHT, NUMPAD_NINE, F2, F7, hasModifierKey } from '@angular/cdk/keycodes';
|
|
4
4
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
5
|
-
import { Observable, NEVER, fromEvent, switchMap, map as map$1, Subject, BehaviorSubject, ReplaySubject, merge, combineLatest, filter as filter$1, firstValueFrom, debounceTime, distinctUntilChanged as distinctUntilChanged$1, startWith as startWith$1, Subscription, of, isObservable, tap as tap$1, take as take$1 } from 'rxjs';
|
|
5
|
+
import { Observable, NEVER, fromEvent, switchMap, map as map$1, Subject, BehaviorSubject, ReplaySubject, merge as merge$1, combineLatest, filter as filter$1, firstValueFrom, debounceTime, distinctUntilChanged as distinctUntilChanged$1, startWith as startWith$1, Subscription, of, isObservable, tap as tap$1, take as take$1 } from 'rxjs';
|
|
6
6
|
import { map, first, distinctUntilChanged, startWith, takeUntil, filter, tap, switchMap as switchMap$1, finalize, take, debounceTime as debounceTime$1, pairwise, shareReplay, delay } from 'rxjs/operators';
|
|
7
7
|
import { coerceElement, coerceBooleanProperty, coerceNumberProperty, coerceArray, coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
8
|
-
import { get, findLastIndex, escape } from 'lodash-es';
|
|
9
8
|
import { createFocusTrap } from 'focus-trap';
|
|
10
9
|
import * as i1$1 from '@angular/cdk/a11y';
|
|
11
10
|
import { FocusKeyManager, LiveAnnouncer, InteractivityChecker } from '@angular/cdk/a11y';
|
|
@@ -200,6 +199,270 @@ class KeyUtil {
|
|
|
200
199
|
}
|
|
201
200
|
}
|
|
202
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Utility functions to replace lodash-es functionality with native JavaScript.
|
|
204
|
+
*/
|
|
205
|
+
/**
|
|
206
|
+
* Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned.
|
|
207
|
+
* @param obj The object to query
|
|
208
|
+
* @param path The path of the property to get
|
|
209
|
+
* @param defaultValue The value returned if the resolved value is undefined
|
|
210
|
+
* @returns The resolved value
|
|
211
|
+
*/
|
|
212
|
+
function get(obj, path, defaultValue) {
|
|
213
|
+
if (obj == null) {
|
|
214
|
+
return defaultValue;
|
|
215
|
+
}
|
|
216
|
+
const pathArray = Array.isArray(path) ? path : path.split('.');
|
|
217
|
+
let result = obj;
|
|
218
|
+
for (const key of pathArray) {
|
|
219
|
+
if (result == null) {
|
|
220
|
+
return defaultValue;
|
|
221
|
+
}
|
|
222
|
+
result = result[key];
|
|
223
|
+
}
|
|
224
|
+
return (result === undefined ? defaultValue : result);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Sets the value at path of object. If a portion of path doesn't exist, it's created.
|
|
228
|
+
* @param obj The object to modify
|
|
229
|
+
* @param path The path of the property to set
|
|
230
|
+
* @param value The value to set
|
|
231
|
+
* @returns The object
|
|
232
|
+
*/
|
|
233
|
+
function set(obj, path, value) {
|
|
234
|
+
const pathArray = Array.isArray(path) ? path : path.split('.');
|
|
235
|
+
const lastIndex = pathArray.length - 1;
|
|
236
|
+
let current = obj;
|
|
237
|
+
for (let i = 0; i < lastIndex; i++) {
|
|
238
|
+
const key = pathArray[i];
|
|
239
|
+
if (!(key in current) || current[key] == null) {
|
|
240
|
+
current[key] = {};
|
|
241
|
+
}
|
|
242
|
+
current = current[key];
|
|
243
|
+
}
|
|
244
|
+
current[pathArray[lastIndex]] = value;
|
|
245
|
+
return obj;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Deep clones an object, handling functions and other non-cloneable values.
|
|
249
|
+
* For objects with functions or class instances, it creates a new object and copies properties.
|
|
250
|
+
* @param obj The object to clone
|
|
251
|
+
* @returns The cloned object
|
|
252
|
+
*/
|
|
253
|
+
function cloneDeep(obj) {
|
|
254
|
+
// Handle primitives, null, and undefined
|
|
255
|
+
if (obj == null || typeof obj !== 'object') {
|
|
256
|
+
return obj;
|
|
257
|
+
}
|
|
258
|
+
// Handle Date
|
|
259
|
+
if (obj instanceof Date) {
|
|
260
|
+
return new Date(obj.getTime());
|
|
261
|
+
}
|
|
262
|
+
// Handle Array
|
|
263
|
+
if (Array.isArray(obj)) {
|
|
264
|
+
return obj.map((item) => cloneDeep(item));
|
|
265
|
+
}
|
|
266
|
+
// Handle RegExp
|
|
267
|
+
if (obj instanceof RegExp) {
|
|
268
|
+
return new RegExp(obj.source, obj.flags);
|
|
269
|
+
}
|
|
270
|
+
// Handle Map
|
|
271
|
+
if (obj instanceof Map) {
|
|
272
|
+
const clonedMap = new Map();
|
|
273
|
+
obj.forEach((value, key) => {
|
|
274
|
+
clonedMap.set(cloneDeep(key), cloneDeep(value));
|
|
275
|
+
});
|
|
276
|
+
return clonedMap;
|
|
277
|
+
}
|
|
278
|
+
// Handle Set
|
|
279
|
+
if (obj instanceof Set) {
|
|
280
|
+
const clonedSet = new Set();
|
|
281
|
+
obj.forEach((value) => {
|
|
282
|
+
clonedSet.add(cloneDeep(value));
|
|
283
|
+
});
|
|
284
|
+
return clonedSet;
|
|
285
|
+
}
|
|
286
|
+
// Handle plain objects
|
|
287
|
+
const clonedObj = {};
|
|
288
|
+
for (const key in obj) {
|
|
289
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
290
|
+
const value = obj[key];
|
|
291
|
+
// Functions and symbols are copied by reference, not cloned
|
|
292
|
+
if (typeof value === 'function' || typeof value === 'symbol') {
|
|
293
|
+
clonedObj[key] = value;
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
clonedObj[key] = cloneDeep(value);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return clonedObj;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Deep merges two or more objects, with properties from source objects overwriting those in the target.
|
|
304
|
+
* @param target The target object
|
|
305
|
+
* @param sources The source objects
|
|
306
|
+
* @returns The merged object
|
|
307
|
+
*/
|
|
308
|
+
function merge(target, ...sources) {
|
|
309
|
+
// Handle null or undefined target
|
|
310
|
+
if (target == null) {
|
|
311
|
+
target = {};
|
|
312
|
+
}
|
|
313
|
+
const result = cloneDeep(target);
|
|
314
|
+
for (const source of sources) {
|
|
315
|
+
if (source != null) {
|
|
316
|
+
deepMergeInto(result, source);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return result;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Helper function for deep merge
|
|
323
|
+
*/
|
|
324
|
+
function deepMergeInto(target, source) {
|
|
325
|
+
// Handle null or undefined target
|
|
326
|
+
if (target == null) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
for (const key in source) {
|
|
330
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
331
|
+
const sourceValue = source[key];
|
|
332
|
+
const targetValue = target[key];
|
|
333
|
+
// Handle functions and primitives - copy by reference
|
|
334
|
+
if (typeof sourceValue === 'function' || typeof sourceValue !== 'object' || sourceValue === null) {
|
|
335
|
+
target[key] = sourceValue;
|
|
336
|
+
}
|
|
337
|
+
else if (Array.isArray(sourceValue)) {
|
|
338
|
+
// Clone arrays
|
|
339
|
+
target[key] = cloneDeep(sourceValue);
|
|
340
|
+
}
|
|
341
|
+
else if (sourceValue instanceof Date ||
|
|
342
|
+
sourceValue instanceof RegExp ||
|
|
343
|
+
sourceValue instanceof Map ||
|
|
344
|
+
sourceValue instanceof Set) {
|
|
345
|
+
// Clone special objects
|
|
346
|
+
target[key] = cloneDeep(sourceValue);
|
|
347
|
+
}
|
|
348
|
+
else if (targetValue && typeof targetValue === 'object' && !Array.isArray(targetValue)) {
|
|
349
|
+
// Recursively merge plain objects
|
|
350
|
+
deepMergeInto(targetValue, sourceValue);
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
// Clone plain objects
|
|
354
|
+
target[key] = cloneDeep(sourceValue);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Merges two objects with a customizer function.
|
|
361
|
+
* @param target The target object
|
|
362
|
+
* @param source The source object
|
|
363
|
+
* @param customizer The function to customize assigned values
|
|
364
|
+
* @returns The merged object
|
|
365
|
+
*/
|
|
366
|
+
function mergeWith(target, source, customizer) {
|
|
367
|
+
// Handle null or undefined target
|
|
368
|
+
if (target == null) {
|
|
369
|
+
target = {};
|
|
370
|
+
}
|
|
371
|
+
const result = cloneDeep(target);
|
|
372
|
+
for (const key in source) {
|
|
373
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
374
|
+
const sourceValue = source[key];
|
|
375
|
+
const targetValue = result[key];
|
|
376
|
+
const customValue = customizer(targetValue, sourceValue, key);
|
|
377
|
+
if (customValue !== undefined) {
|
|
378
|
+
result[key] = customValue;
|
|
379
|
+
}
|
|
380
|
+
else if (sourceValue && typeof sourceValue === 'object' && !Array.isArray(sourceValue)) {
|
|
381
|
+
if (targetValue && typeof targetValue === 'object' && !Array.isArray(targetValue)) {
|
|
382
|
+
result[key] = mergeWith(targetValue, sourceValue, customizer);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
result[key] = cloneDeep(sourceValue);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
result[key] = cloneDeep(sourceValue);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return result;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Creates an array of unique values from the given array.
|
|
397
|
+
* @param array The array to inspect
|
|
398
|
+
* @returns The new array of unique values
|
|
399
|
+
*/
|
|
400
|
+
function uniq(array) {
|
|
401
|
+
return Array.from(new Set(array));
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Creates an array of unique values from an array based on a property.
|
|
405
|
+
* @param array The array to inspect
|
|
406
|
+
* @param iteratee The iteratee invoked per element
|
|
407
|
+
* @returns The new duplicate free array
|
|
408
|
+
*/
|
|
409
|
+
function uniqBy(array, iteratee) {
|
|
410
|
+
const seen = new Set();
|
|
411
|
+
const result = [];
|
|
412
|
+
const getter = typeof iteratee === 'function' ? iteratee : (item) => get(item, iteratee);
|
|
413
|
+
for (const item of array) {
|
|
414
|
+
const key = getter(item);
|
|
415
|
+
if (!seen.has(key)) {
|
|
416
|
+
seen.add(key);
|
|
417
|
+
result.push(item);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return result;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Flattens an array a single level deep.
|
|
424
|
+
* @param array The array to flatten
|
|
425
|
+
* @returns The new flattened array
|
|
426
|
+
*/
|
|
427
|
+
function flatten(array) {
|
|
428
|
+
return array.flat();
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Creates an object composed of keys generated from the results of running each element through iteratee.
|
|
432
|
+
* The corresponding value of each key is the number of times the key was returned by iteratee.
|
|
433
|
+
* @param array The array to iterate over
|
|
434
|
+
* @param iteratee The iteratee to transform keys
|
|
435
|
+
* @returns The composed aggregate object
|
|
436
|
+
*/
|
|
437
|
+
function countBy(array, iteratee) {
|
|
438
|
+
const result = {};
|
|
439
|
+
const getter = typeof iteratee === 'function' ? iteratee : (item) => get(item, iteratee);
|
|
440
|
+
for (const item of array) {
|
|
441
|
+
const key = String(getter(item));
|
|
442
|
+
result[key] = (result[key] || 0) + 1;
|
|
443
|
+
}
|
|
444
|
+
return result;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Concatenates arrays.
|
|
448
|
+
* @param arrays The arrays to concatenate
|
|
449
|
+
* @returns The new concatenated array
|
|
450
|
+
*/
|
|
451
|
+
function concat(...arrays) {
|
|
452
|
+
return [].concat(...arrays);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Escapes HTML characters in a string.
|
|
456
|
+
* Converts characters like <, >, &, ", and ' to their HTML entity equivalents.
|
|
457
|
+
* @param str The string to escape
|
|
458
|
+
* @returns The escaped string
|
|
459
|
+
*/
|
|
460
|
+
function escape(str) {
|
|
461
|
+
const div = document.createElement('div');
|
|
462
|
+
div.textContent = str;
|
|
463
|
+
return div.innerHTML;
|
|
464
|
+
}
|
|
465
|
+
|
|
203
466
|
const ModuleDeprecations = new InjectionToken('ModuleDeprecations');
|
|
204
467
|
|
|
205
468
|
/** Module deprecations provider */
|
|
@@ -325,7 +588,6 @@ function uuidv4() {
|
|
|
325
588
|
|
|
326
589
|
class AutoCompleteDirective {
|
|
327
590
|
/** @hidden */
|
|
328
|
-
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
329
591
|
constructor() {
|
|
330
592
|
/** Whether the auto complete directive should be enabled */
|
|
331
593
|
this.enable = true;
|
|
@@ -384,6 +646,15 @@ class AutoCompleteDirective {
|
|
|
384
646
|
this._sendCompleteEvent(false);
|
|
385
647
|
}
|
|
386
648
|
else if (!this._isControlKey(event) && this.inputText) {
|
|
649
|
+
const hasSelection = this._elementRef.nativeElement.selectionStart !== this._elementRef.nativeElement.selectionEnd;
|
|
650
|
+
if (hasSelection) {
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
653
|
+
const currentNativeValue = this._elementRef.nativeElement.value;
|
|
654
|
+
if (this.inputText.length > currentNativeValue.length + 1) {
|
|
655
|
+
this.inputText = currentNativeValue;
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
387
658
|
if (!this._triggerTypeAhead()) {
|
|
388
659
|
return;
|
|
389
660
|
}
|
|
@@ -928,7 +1199,7 @@ class KeyboardSupportService {
|
|
|
928
1199
|
};
|
|
929
1200
|
/** Finish all of the streams, form before */
|
|
930
1201
|
this._onRefresh$.next();
|
|
931
|
-
const unsubscribe$ = merge(this._onRefresh$, destroyObservable(this._destroyRef));
|
|
1202
|
+
const unsubscribe$ = merge$1(this._onRefresh$, destroyObservable(this._destroyRef));
|
|
932
1203
|
if (queryList.length) {
|
|
933
1204
|
createEscapeListener(queryList.last, DOWN_ARROW, 'down');
|
|
934
1205
|
createEscapeListener(queryList.first, UP_ARROW, 'up');
|
|
@@ -1406,7 +1677,7 @@ class ClickedDirective {
|
|
|
1406
1677
|
enter$.complete();
|
|
1407
1678
|
space$.complete();
|
|
1408
1679
|
});
|
|
1409
|
-
this.fdkClicked = merge(fromEvent(element, 'click'), enter$, space$);
|
|
1680
|
+
this.fdkClicked = merge$1(fromEvent(element, 'click'), enter$, space$);
|
|
1410
1681
|
}
|
|
1411
1682
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: ClickedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1412
1683
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.4", type: ClickedDirective, isStandalone: true, selector: "[fdkClicked]", outputs: { fdkClicked: "fdkClicked" }, ngImport: i0 }); }
|
|
@@ -2645,14 +2916,14 @@ class FocusableListDirective {
|
|
|
2645
2916
|
this._focusableItems.forEach((i) => i.setTabbable(i === directiveItem));
|
|
2646
2917
|
this._keyManager?.setActiveItem(index);
|
|
2647
2918
|
}));
|
|
2648
|
-
merge(...items.map((item) => item.keydown))
|
|
2919
|
+
merge$1(...items.map((item) => item.keydown))
|
|
2649
2920
|
.pipe(tap((event) => {
|
|
2650
2921
|
// Already handled
|
|
2651
2922
|
if (event.defaultPrevented) {
|
|
2652
2923
|
return;
|
|
2653
2924
|
}
|
|
2654
2925
|
this._keyManager?.onKeydown(event);
|
|
2655
|
-
}), takeUntil(merge(this._refreshItems$, destroyObservable(this._destroyRef))), finalize(() => focusListenerDestroyers.forEach((d) => d())))
|
|
2926
|
+
}), takeUntil(merge$1(this._refreshItems$, destroyObservable(this._destroyRef))), finalize(() => focusListenerDestroyers.forEach((d) => d())))
|
|
2656
2927
|
.subscribe();
|
|
2657
2928
|
}
|
|
2658
2929
|
/** @hidden */
|
|
@@ -2661,7 +2932,7 @@ class FocusableListDirective {
|
|
|
2661
2932
|
}
|
|
2662
2933
|
/** @hidden */
|
|
2663
2934
|
_listenOnItems() {
|
|
2664
|
-
const refresh$ = merge(this._refresh$, destroyObservable(this._destroyRef));
|
|
2935
|
+
const refresh$ = merge$1(this._refresh$, destroyObservable(this._destroyRef));
|
|
2665
2936
|
this._refresh$.next();
|
|
2666
2937
|
this._focusableItems.changes
|
|
2667
2938
|
.pipe(startWith(null), map(() => this._focusableItems.toArray()), tap((items) => {
|
|
@@ -2775,21 +3046,21 @@ class FocusableGridDirective {
|
|
|
2775
3046
|
this._handleItemSubscriptions(items);
|
|
2776
3047
|
});
|
|
2777
3048
|
this._focusableLists.changes
|
|
2778
|
-
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge(...queryList.toArray().map((list) => list._gridListFocused$))), takeUntilDestroyed(this._destroyRef))
|
|
3049
|
+
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge$1(...queryList.toArray().map((list) => list._gridListFocused$))), takeUntilDestroyed(this._destroyRef))
|
|
2779
3050
|
.subscribe((focusedEvent) => {
|
|
2780
3051
|
this.rowFocused.emit(focusedEvent);
|
|
2781
3052
|
this._focusableLists.forEach((list) => list.setTabbable(false));
|
|
2782
3053
|
this._focusableLists.forEach((list) => list._setItemsTabbable(false));
|
|
2783
3054
|
});
|
|
2784
3055
|
this._focusableLists.changes
|
|
2785
|
-
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge(...queryList.toArray().map((list) => list._gridItemFocused$))), takeUntilDestroyed(this._destroyRef))
|
|
3056
|
+
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge$1(...queryList.toArray().map((list) => list._gridItemFocused$))), takeUntilDestroyed(this._destroyRef))
|
|
2786
3057
|
.subscribe((focusedEvent) => {
|
|
2787
3058
|
this.itemFocused.emit(focusedEvent);
|
|
2788
3059
|
this._focusableLists.forEach((list) => list.setTabbable(false));
|
|
2789
3060
|
this._focusableLists.forEach((list) => list._setItemsTabbable(false));
|
|
2790
3061
|
});
|
|
2791
3062
|
this._focusableLists.changes
|
|
2792
|
-
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge(...queryList.toArray().map((list) => list._keydown$))), takeUntilDestroyed(this._destroyRef))
|
|
3063
|
+
.pipe(startWith$1(this._focusableLists), switchMap((queryList) => merge$1(...queryList.toArray().map((list) => list._keydown$))), takeUntilDestroyed(this._destroyRef))
|
|
2793
3064
|
.subscribe(({ event, list, activeItemIndex }) => this._onKeydown(event, list, activeItemIndex));
|
|
2794
3065
|
}
|
|
2795
3066
|
/**
|
|
@@ -2842,7 +3113,7 @@ class FocusableGridDirective {
|
|
|
2842
3113
|
break;
|
|
2843
3114
|
case PAGE_DOWN:
|
|
2844
3115
|
event.preventDefault();
|
|
2845
|
-
nextRowIndex = findLastIndex(
|
|
3116
|
+
nextRowIndex = lists.findLastIndex((item) => item._isVisible);
|
|
2846
3117
|
scrollIntoView = 'top';
|
|
2847
3118
|
break;
|
|
2848
3119
|
case PAGE_UP:
|
|
@@ -4146,7 +4417,7 @@ class ResizeDirective {
|
|
|
4146
4417
|
const mouseUpEvent$ = fromEvent(window, 'mouseup');
|
|
4147
4418
|
const mouseMoveEvent$ = fromEvent(resizeContainer, 'mousemove');
|
|
4148
4419
|
const mouseDownEvent$ = fromEvent(this.resizeHandleReference.elementRef.nativeElement, 'mousedown');
|
|
4149
|
-
const resizeActive$ = merge(mouseDownEvent$.pipe(map(() => true), tap(() => {
|
|
4420
|
+
const resizeActive$ = merge$1(mouseDownEvent$.pipe(map(() => true), tap(() => {
|
|
4150
4421
|
moveOffset = this._getMoveOffsetFunction();
|
|
4151
4422
|
})), mouseUpEvent$.pipe(map(() => false)));
|
|
4152
4423
|
const emitResizableEvents$ = this._getResizeEventsNotifiers(resizeActive$);
|
|
@@ -4243,7 +4514,7 @@ class ResizeDirective {
|
|
|
4243
4514
|
_getResizeEventsNotifiers(trigger$) {
|
|
4244
4515
|
const emitResizableStart$ = trigger$.pipe(filter((isActive) => isActive), tap(() => this.onResizeStart.emit()));
|
|
4245
4516
|
const emitResizableEnd$ = trigger$.pipe(filter((isActive) => !isActive), tap(() => this.onResizeEnd.emit()));
|
|
4246
|
-
return merge(emitResizableStart$, emitResizableEnd$);
|
|
4517
|
+
return merge$1(emitResizableStart$, emitResizableEnd$);
|
|
4247
4518
|
}
|
|
4248
4519
|
/** @hidden Block resizable container pointer events when resizing */
|
|
4249
4520
|
_blockOtherPointerEvents(trigger$) {
|
|
@@ -4372,12 +4643,12 @@ class SelectionService {
|
|
|
4372
4643
|
* */
|
|
4373
4644
|
listenToItemInteractions() {
|
|
4374
4645
|
this.clear();
|
|
4375
|
-
const unsubscribe$ = merge(destroyObservable(this._destroyRef), this._clear$);
|
|
4646
|
+
const unsubscribe$ = merge$1(destroyObservable(this._destroyRef), this._clear$);
|
|
4376
4647
|
if (this._items$) {
|
|
4377
4648
|
this._items$
|
|
4378
4649
|
.pipe(map((items) => items.filter((itm) => itm.fdkSelectableItem !== false)), switchMap((items) => {
|
|
4379
4650
|
const clickedEvents$ = items.map((item) => item.clicked.pipe(map(() => item)));
|
|
4380
|
-
return merge(...clickedEvents$);
|
|
4651
|
+
return merge$1(...clickedEvents$);
|
|
4381
4652
|
}), tap((clickedItem) => this._itemClicked(clickedItem)), takeUntil(unsubscribe$))
|
|
4382
4653
|
.subscribe();
|
|
4383
4654
|
combineLatest([this._normalizedValue$, this._items$])
|
|
@@ -4524,7 +4795,7 @@ class SelectableItemDirective {
|
|
|
4524
4795
|
if (this.readonly$) {
|
|
4525
4796
|
disablingEvents$.push(this.readonly$);
|
|
4526
4797
|
}
|
|
4527
|
-
merge(...disablingEvents$).subscribe(() => this._updateSelectionAndSelectableWatcher());
|
|
4798
|
+
merge$1(...disablingEvents$).subscribe(() => this._updateSelectionAndSelectableWatcher());
|
|
4528
4799
|
}
|
|
4529
4800
|
/** @hidden */
|
|
4530
4801
|
_updateSelectionAndSelectableWatcher() {
|
|
@@ -5388,7 +5659,7 @@ class DndListDirective {
|
|
|
5388
5659
|
* Refreshes the indexes of the items.
|
|
5389
5660
|
*/
|
|
5390
5661
|
refreshQueryList() {
|
|
5391
|
-
const refresh$ = merge(this._refresh$, destroyObservable(this._destroyRef));
|
|
5662
|
+
const refresh$ = merge$1(this._refresh$, destroyObservable(this._destroyRef));
|
|
5392
5663
|
this._refresh$.next();
|
|
5393
5664
|
this._dndItemReference = this.dndItems.toArray();
|
|
5394
5665
|
this._changeDraggableState(this._draggable);
|
|
@@ -7341,5 +7612,5 @@ class BaseDismissibleToastService extends BaseToastService {
|
|
|
7341
7612
|
* Generated bundle index. Do not edit.
|
|
7342
7613
|
*/
|
|
7343
7614
|
|
|
7344
|
-
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, ClickedBehaviorModuleForRootLoadedOnce, ClickedDirective, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DND_ITEM, DND_LIST, DefaultReadonlyViewModifier, DeprecatedSelector, 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_INDIRECT_FOCUSABLE_ITEM_ORDER, FDK_READONLY_DIRECTIVE, FDK_SELECTABLE_ITEM_PROVIDER, FD_DEPRECATED_DIRECTIVE_SELECTOR, FOCUSABLE_ITEM, FdkClickedProvider, FdkDisabledProvider, FdkReadonlyProvider, FilterStringsPipe, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, FocusableGridDirective, FocusableGridModule, FocusableItemDirective, FocusableItemModule, FocusableListDirective, FocusableListModule, FocusableObserver, FunctionStrategy, INVALID_DATE_ERROR, IgnoreClickOnSelectionDirective, IgnoreClickOnSelectionDirectiveToken, IgnoreClickOnSelectionModule, IndirectFocusableItemDirective, IndirectFocusableListDirective, 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, ResizeObserverDirective, ResizeObserverFactory, ResizeObserverService, ResponsiveBreakpoints, RtlService, SafePipe, SearchHighlightPipe, SelectComponentRootToken, SelectableItemDirective, SelectableItemToken, SelectableListDirective, SelectableListModule, SelectionService, THEME_SWITCHER_ROUTER_MISSING_ERROR, TabbableElementService, TemplateDirective, TemplateModule, ToastBottomCenterPosition, ToastBottomLeftPosition, ToastBottomRightPosition, ToastTopCenterPosition, ToastTopLeftPosition, ToastTopRightPosition, TruncateDirective, TruncateModule, TruncatePipe, TruncatedTitleDirective, TwoDigitsPipe, UtilsModule, ValueByPathPipe, ValueStrategy, ViewportSizeObservable, alternateSetter, applyCssClass, applyCssStyle, baseToastAnimations, coerceArraySafe, coerceBoolean, coerceCssPixel, consumerProviderFactory, deprecatedModelProvider, destroyObservable, dfs, elementClick$, getBreakpointName, getDeprecatedModel, getDocumentFontSize, getElementCapacity, getElementWidth, getNativeElement, getRandomColorAccent, hasElementRef, intersectionObservable, isBlank, isBoolean, isCompactDensity, isFunction, isItemFocusable, isJsObject, isNumber, isObject, isOdd, isPresent, isPromise, isString, isStringMap, isSubscribable, isType, isValidContentDensity, moduleDeprecationsFactory, moduleDeprecationsProvider, parserFileSize, provideFdkClicked, pxToNum, resizeObservable, scrollIntoView, scrollTop, selectStrategy, setDisabledState, setReadonlyState, toNativeElement, toastConnectedBottomLeftPosition, toastConnectedBottomPosition, toastConnectedBottomRightPosition, toastConnectedTopLeftPosition, toastConnectedTopPosition, toastConnectedTopRightPosition, uuidv4, warnOnce };
|
|
7615
|
+
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, ClickedBehaviorModuleForRootLoadedOnce, ClickedDirective, ContentDensityService, DECIMAL_NUMBER_UNICODE_GROUP_REGEX, DECIMAL_NUMBER_UNICODE_RANGE, DECIMAL_NUMBER_UNICODE_REGEX, DEFAULT_CONTENT_DENSITY, DND_ITEM, DND_LIST, DefaultReadonlyViewModifier, DeprecatedSelector, 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_INDIRECT_FOCUSABLE_ITEM_ORDER, FDK_READONLY_DIRECTIVE, FDK_SELECTABLE_ITEM_PROVIDER, FD_DEPRECATED_DIRECTIVE_SELECTOR, FOCUSABLE_ITEM, FdkClickedProvider, FdkDisabledProvider, FdkReadonlyProvider, FilterStringsPipe, FocusKeyManagerHelpersModule, FocusKeyManagerItemDirective, FocusKeyManagerListDirective, FocusTrapService, FocusableGridDirective, FocusableGridModule, FocusableItemDirective, FocusableItemModule, FocusableListDirective, FocusableListModule, FocusableObserver, FunctionStrategy, INVALID_DATE_ERROR, IgnoreClickOnSelectionDirective, IgnoreClickOnSelectionDirectiveToken, IgnoreClickOnSelectionModule, IndirectFocusableItemDirective, IndirectFocusableListDirective, 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, ResizeObserverDirective, ResizeObserverFactory, ResizeObserverService, ResponsiveBreakpoints, RtlService, SafePipe, SearchHighlightPipe, SelectComponentRootToken, SelectableItemDirective, SelectableItemToken, SelectableListDirective, SelectableListModule, SelectionService, THEME_SWITCHER_ROUTER_MISSING_ERROR, TabbableElementService, TemplateDirective, TemplateModule, ToastBottomCenterPosition, ToastBottomLeftPosition, ToastBottomRightPosition, ToastTopCenterPosition, ToastTopLeftPosition, ToastTopRightPosition, TruncateDirective, TruncateModule, TruncatePipe, TruncatedTitleDirective, TwoDigitsPipe, UtilsModule, ValueByPathPipe, ValueStrategy, ViewportSizeObservable, alternateSetter, applyCssClass, applyCssStyle, baseToastAnimations, cloneDeep, coerceArraySafe, coerceBoolean, coerceCssPixel, concat, consumerProviderFactory, countBy, deprecatedModelProvider, destroyObservable, dfs, elementClick$, escape, flatten, get, getBreakpointName, getDeprecatedModel, getDocumentFontSize, getElementCapacity, getElementWidth, getNativeElement, getRandomColorAccent, hasElementRef, intersectionObservable, isBlank, isBoolean, isCompactDensity, isFunction, isItemFocusable, isJsObject, isNumber, isObject, isOdd, isPresent, isPromise, isString, isStringMap, isSubscribable, isType, isValidContentDensity, merge, mergeWith, moduleDeprecationsFactory, moduleDeprecationsProvider, parserFileSize, provideFdkClicked, pxToNum, resizeObservable, scrollIntoView, scrollTop, selectStrategy, set, setDisabledState, setReadonlyState, toNativeElement, toastConnectedBottomLeftPosition, toastConnectedBottomPosition, toastConnectedBottomRightPosition, toastConnectedTopLeftPosition, toastConnectedTopPosition, toastConnectedTopRightPosition, uniq, uniqBy, uuidv4, warnOnce };
|
|
7345
7616
|
//# sourceMappingURL=fundamental-ngx-cdk-utils.mjs.map
|