@fundamental-ngx/cdk 0.44.1-rc.3 → 0.45.0
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/esm2022/utils/directives/auto-complete/auto-complete.directive.mjs +3 -27
- package/esm2022/utils/directives/auto-complete/auto-complete.module.mjs +5 -5
- package/esm2022/utils/directives/clicked/clicked.directive.mjs +1 -25
- package/esm2022/utils/directives/disabled/disabled-behavior.directive.mjs +1 -25
- package/esm2022/utils/directives/disabled/disabled-behavior.module.mjs +5 -5
- package/esm2022/utils/directives/focus-key-manager/focus-key-manager-helpers.module.mjs +6 -22
- package/esm2022/utils/directives/focus-key-manager/focus-key-manager-item.directive.mjs +3 -27
- package/esm2022/utils/directives/focus-key-manager/focus-key-manager-list.directive.mjs +3 -27
- package/esm2022/utils/directives/focusable-item/focusable-item.directive.mjs +1 -25
- package/esm2022/utils/directives/focusable-item/focusable-item.module.mjs +5 -5
- package/esm2022/utils/directives/focusable-list/focusable-list.directive.mjs +1 -25
- package/esm2022/utils/directives/focusable-list/focusable-list.module.mjs +7 -7
- package/esm2022/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.mjs +3 -27
- package/esm2022/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.mjs +5 -5
- package/esm2022/utils/directives/initial-focus/initial-focus.directive.mjs +4 -54
- package/esm2022/utils/directives/initial-focus/initial-focus.module.mjs +5 -5
- package/esm2022/utils/directives/line-clamp/line-clamp.directive.mjs +3 -50
- package/esm2022/utils/directives/line-clamp/line-clamp.module.mjs +5 -21
- package/esm2022/utils/directives/only-digits/only-digits.directive.mjs +3 -27
- package/esm2022/utils/directives/only-digits/only-digits.module.mjs +5 -5
- package/esm2022/utils/directives/overflow-list/overflow-list-item.directive.mjs +3 -27
- package/esm2022/utils/directives/overflow-list/overflow-list.directive.mjs +3 -27
- package/esm2022/utils/directives/overflow-list/overflow-list.module.mjs +6 -22
- package/esm2022/utils/directives/readonly/readonly-behavior.directive.mjs +3 -27
- package/esm2022/utils/directives/readonly/readonly-behavior.module.mjs +5 -5
- package/esm2022/utils/directives/repeat/repeat.directive.mjs +5 -36
- package/esm2022/utils/directives/repeat/repeat.module.mjs +5 -5
- package/esm2022/utils/directives/resize/resize-handle.directive.mjs +3 -27
- package/esm2022/utils/directives/resize/resize.directive.mjs +3 -27
- package/esm2022/utils/directives/resize/resize.module.mjs +6 -6
- package/esm2022/utils/directives/template/template.directive.mjs +3 -27
- package/esm2022/utils/directives/template/template.module.mjs +5 -5
- package/esm2022/utils/directives/truncate/truncate.directive.mjs +3 -27
- package/esm2022/utils/directives/truncate/truncate.module.mjs +5 -5
- package/esm2022/utils/drag-and-drop/dnd-list/dnd-list.directive.mjs +2 -21
- package/esm2022/utils/services/index.mjs +1 -2
- package/esm2022/utils/toast/base-toast.service.mjs +1 -10
- package/esm2022/utils/utils.module.mjs +3 -4
- package/fesm2022/fundamental-ngx-cdk-utils.mjs +446 -1139
- package/fesm2022/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fundamental-ngx-cdk-v0.45.0.tgz +0 -0
- package/package.json +2 -2
- package/utils/directives/auto-complete/auto-complete.directive.d.ts +1 -6
- package/utils/directives/auto-complete/auto-complete.module.d.ts +1 -1
- package/utils/directives/clicked/clicked.directive.d.ts +0 -5
- package/utils/directives/disabled/disabled-behavior.directive.d.ts +0 -5
- package/utils/directives/disabled/disabled-behavior.module.d.ts +1 -1
- package/utils/directives/focus-key-manager/focus-key-manager-helpers.module.d.ts +1 -1
- package/utils/directives/focus-key-manager/focus-key-manager-item.directive.d.ts +1 -6
- package/utils/directives/focus-key-manager/focus-key-manager-list.directive.d.ts +1 -6
- package/utils/directives/focusable-item/focusable-item.directive.d.ts +0 -5
- package/utils/directives/focusable-item/focusable-item.module.d.ts +1 -1
- package/utils/directives/focusable-list/focusable-list.directive.d.ts +0 -5
- package/utils/directives/focusable-list/focusable-list.module.d.ts +2 -2
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.directive.d.ts +1 -6
- package/utils/directives/ignore-click-on-selection/ignore-click-on-selection.module.d.ts +1 -1
- package/utils/directives/initial-focus/initial-focus.directive.d.ts +1 -12
- package/utils/directives/initial-focus/initial-focus.module.d.ts +1 -1
- package/utils/directives/line-clamp/line-clamp.directive.d.ts +1 -10
- package/utils/directives/line-clamp/line-clamp.module.d.ts +1 -1
- package/utils/directives/only-digits/only-digits.directive.d.ts +1 -6
- package/utils/directives/only-digits/only-digits.module.d.ts +1 -1
- package/utils/directives/overflow-list/overflow-list-item.directive.d.ts +1 -6
- package/utils/directives/overflow-list/overflow-list.directive.d.ts +1 -6
- package/utils/directives/overflow-list/overflow-list.module.d.ts +1 -1
- package/utils/directives/readonly/readonly-behavior.directive.d.ts +1 -6
- package/utils/directives/readonly/readonly-behavior.module.d.ts +1 -1
- package/utils/directives/repeat/repeat.directive.d.ts +1 -12
- package/utils/directives/repeat/repeat.module.d.ts +1 -1
- package/utils/directives/resize/resize-handle.directive.d.ts +1 -6
- package/utils/directives/resize/resize.directive.d.ts +1 -6
- package/utils/directives/resize/resize.module.d.ts +1 -1
- package/utils/directives/template/template.directive.d.ts +1 -6
- package/utils/directives/template/template.module.d.ts +1 -1
- package/utils/directives/truncate/truncate.directive.d.ts +1 -6
- package/utils/directives/truncate/truncate.module.d.ts +1 -1
- package/utils/drag-and-drop/dnd-list/dnd-list.directive.d.ts +1 -10
- package/utils/services/index.d.ts +0 -1
- package/utils/toast/base-toast.service.d.ts +0 -5
- package/esm2022/utils/services/themes.service.mjs +0 -135
- package/fundamental-ngx-cdk-v0.44.1-rc.3.tgz +0 -0
- package/utils/services/themes.service.d.ts +0 -48
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, Optional, Inject,
|
|
2
|
+
import { InjectionToken, Injectable, Optional, Inject, isDevMode, EventEmitter, Directive, Input, Output, HostListener, NgModule, ContentChildren, forwardRef, HostBinding, inject, DestroyRef, 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
4
|
import { BehaviorSubject, Subject, map, Observable, fromEvent, NEVER, Subscription, merge, ReplaySubject, startWith as startWith$1, switchMap, combineLatest, firstValueFrom, filter as filter$1, isObservable, of, take as take$1 } from 'rxjs';
|
|
5
|
-
import * as i2 from '@angular/platform-browser';
|
|
6
|
-
import { EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
|
|
7
|
-
import * as i1 from '@angular/router';
|
|
8
|
-
import { takeUntil, filter, distinctUntilChanged, take, startWith, debounceTime, map as map$1, mapTo, pairwise, tap, finalize, shareReplay, switchMap as switchMap$1, delay } from 'rxjs/operators';
|
|
9
|
-
import { coerceElement, coerceBooleanProperty, coerceNumberProperty, coerceArray, coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
10
5
|
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, hasModifierKey } from '@angular/cdk/keycodes';
|
|
11
|
-
import
|
|
6
|
+
import { coerceBooleanProperty, coerceNumberProperty, coerceElement, coerceArray, coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
7
|
+
import * as i1 from '@angular/cdk/a11y';
|
|
12
8
|
import { FocusKeyManager, LiveAnnouncer } from '@angular/cdk/a11y';
|
|
9
|
+
import { filter, takeUntil, distinctUntilChanged, take, startWith, debounceTime, map as map$1, mapTo, pairwise, tap, finalize, shareReplay, switchMap as switchMap$1, delay } from 'rxjs/operators';
|
|
13
10
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
14
|
-
import * as i1$
|
|
11
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
15
12
|
import { ViewportRuler, OverlayConfig, OverlayContainer } from '@angular/cdk/overlay';
|
|
16
13
|
import { createFocusTrap } from 'focus-trap';
|
|
17
|
-
import * as i1$
|
|
14
|
+
import * as i1$2 from '@angular/cdk/observers';
|
|
18
15
|
import { findLastIndex, escape, get } from 'lodash-es';
|
|
16
|
+
import * as i1$5 from '@angular/platform-browser';
|
|
17
|
+
import { EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
|
|
19
18
|
import equal from 'fast-deep-equal';
|
|
20
19
|
import { __decorate, __metadata } from 'tslib';
|
|
21
|
-
import * as i1$
|
|
20
|
+
import * as i1$3 from '@angular/cdk/drag-drop';
|
|
22
21
|
import { DragDrop, moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
|
|
23
|
-
import * as i1$
|
|
22
|
+
import * as i1$4 from '@angular/cdk/portal';
|
|
24
23
|
import { DomPortal, ComponentPortal, TemplatePortal, PortalModule, BasePortalOutlet, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
25
24
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
26
25
|
|
|
@@ -50,391 +49,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
50
49
|
args: [RTL_LANGUAGE]
|
|
51
50
|
}] }]; } });
|
|
52
51
|
|
|
53
|
-
/**
|
|
54
|
-
* Helper function check whether passed data is a JS object (including function).
|
|
55
|
-
*/
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
57
|
-
function isJsObject(obj) {
|
|
58
|
-
return obj !== null && (typeof obj === 'function' || typeof obj === 'object');
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Helper function checks whether passed value is not empty.
|
|
62
|
-
*/
|
|
63
|
-
function isPresent(obj) {
|
|
64
|
-
return obj !== undefined && obj !== null;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Helper function check whether passed value is empty.
|
|
68
|
-
*/
|
|
69
|
-
function isBlank(obj) {
|
|
70
|
-
return obj === undefined || obj === null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Helper function checks whether passed value is a boolean.
|
|
74
|
-
*/
|
|
75
|
-
function isBoolean(obj) {
|
|
76
|
-
return typeof obj === 'boolean';
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Helper function checks whether passed value is a valid number.
|
|
80
|
-
*/
|
|
81
|
-
function isNumber(obj) {
|
|
82
|
-
return typeof obj === 'number';
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Helper function checks whether passed value is a string.
|
|
86
|
-
*/
|
|
87
|
-
function isString(obj) {
|
|
88
|
-
return typeof obj === 'string';
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Helper function checks whether passed value is a function
|
|
92
|
-
*/
|
|
93
|
-
function isFunction(obj) {
|
|
94
|
-
return typeof obj === 'function';
|
|
95
|
-
}
|
|
96
|
-
/** @hidden */
|
|
97
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
98
|
-
function isType(obj) {
|
|
99
|
-
return isFunction(obj);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Helper function checks whether passed value is a record of `T` values.
|
|
103
|
-
*/
|
|
104
|
-
function isStringMap(obj) {
|
|
105
|
-
return typeof obj === 'object' && obj !== null;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Helper function checks whether passed value is an `object`.
|
|
109
|
-
*/
|
|
110
|
-
function isObject(item) {
|
|
111
|
-
return typeof item === 'object' && !Array.isArray(item) && item !== null;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Helper function checks whether passed value is a promise.
|
|
115
|
-
*/
|
|
116
|
-
function isPromise(obj) {
|
|
117
|
-
// allow any Promise/A+ compliant thenable.
|
|
118
|
-
// It's up to the caller to ensure that obj.then conforms to the spec
|
|
119
|
-
return !!obj && isFunction(obj.then);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Helper function checks whether passed value is an Observable/Subscribable.
|
|
123
|
-
*/
|
|
124
|
-
function isSubscribable(obj) {
|
|
125
|
-
return !!obj && isFunction(obj.subscribe);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Utility type, that allows to track and select ranges of elements while using multi-selection.
|
|
130
|
-
*
|
|
131
|
-
* @usage
|
|
132
|
-
* Imagine we have a simple list of checkboxes:
|
|
133
|
-
* ```html
|
|
134
|
-
* <input
|
|
135
|
-
* #checkboxInput
|
|
136
|
-
* *ngFor="let o of options; let idx = index"
|
|
137
|
-
* type="checkbox"
|
|
138
|
-
* [checked]="selectionModel.checked(o)"
|
|
139
|
-
* (click)="toggle(idx, $event)"
|
|
140
|
-
* >
|
|
141
|
-
* ```
|
|
142
|
-
* With the given layout the logic should be as follows:
|
|
143
|
-
* ```typescript
|
|
144
|
-
* export class YourComponent {
|
|
145
|
-
* options = ['a', 'b', 'c'];
|
|
146
|
-
* readonly selectionModel = new SelectionModel(true);
|
|
147
|
-
*
|
|
148
|
-
* private readonly _rangeSelector = new RangeSelector();
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
* toggle(idx: number, event: PointerEvent): void {
|
|
152
|
-
* // getting the toggled value of the checkbox
|
|
153
|
-
* const toggledSelection = event.target.value;
|
|
154
|
-
*
|
|
155
|
-
* // registering the selection of current checkbox
|
|
156
|
-
* this._rangeSelector.onRangeElementToggled(idx, event);
|
|
157
|
-
*
|
|
158
|
-
* // Apply value to each element in range.
|
|
159
|
-
* // If checkbox was toggled without shift pressed or without previously selected one,
|
|
160
|
-
* // this method will select only it.
|
|
161
|
-
* this._rangeSelector.applyValueToEachInRange(idx => {
|
|
162
|
-
* if (toggledSelection) {
|
|
163
|
-
* this.selectionModel.select(options[idx]);
|
|
164
|
-
* } else {
|
|
165
|
-
* this.selectionModel.deselect(options[idx]);
|
|
166
|
-
* }
|
|
167
|
-
* });
|
|
168
|
-
* }
|
|
169
|
-
* }
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
|
-
class RangeSelector {
|
|
173
|
-
constructor() {
|
|
174
|
-
/** @hidden */
|
|
175
|
-
this._previousSelectedIndex = null;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Last registered selection state (either multiple or single).
|
|
179
|
-
* Is updated on each `onRangeElementClicked` invokation. Will be `null` initially or once `reset()` is called.
|
|
180
|
-
*/
|
|
181
|
-
get lastRangeSelectionState() {
|
|
182
|
-
return this._state ? { ...this._state } : null;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* The method that should be used to register each checkbox toggle.
|
|
186
|
-
* Accepts two arguments: `index` and `event`. If none provided, will reset existing state.
|
|
187
|
-
* Otherwise will register current index as last checked.
|
|
188
|
-
*
|
|
189
|
-
* If toggling was done with "shift" pressed and there's a previously registered index, will register a range selection.
|
|
190
|
-
* At the same time if checkbox was toggled without shift pressed or without previously selected one, this method will select only it.
|
|
191
|
-
*
|
|
192
|
-
* After calling this method it's recommended to use `applyValueToEachInRange` to actually toggle each checkbox in range.
|
|
193
|
-
*
|
|
194
|
-
* See usage example on this class itself.
|
|
195
|
-
*/
|
|
196
|
-
onRangeElementToggled(index, event) {
|
|
197
|
-
if (this._isNonNegativeInteger(this._previousSelectedIndex) &&
|
|
198
|
-
this._isNonNegativeInteger(index) &&
|
|
199
|
-
event?.shiftKey) {
|
|
200
|
-
this._state = {
|
|
201
|
-
isRangeSelection: true,
|
|
202
|
-
from: Math.min(this._previousSelectedIndex, index),
|
|
203
|
-
to: Math.max(this._previousSelectedIndex, index)
|
|
204
|
-
};
|
|
205
|
-
this._previousSelectedIndex = index;
|
|
206
|
-
}
|
|
207
|
-
else if (this._isNonNegativeInteger(index)) {
|
|
208
|
-
this._state = { isRangeSelection: false, from: index, to: index };
|
|
209
|
-
this._previousSelectedIndex = index;
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
this.reset();
|
|
213
|
-
}
|
|
214
|
-
return this.lastRangeSelectionState;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Allows to apply selection to each item in selection range.
|
|
218
|
-
* Accepts a function to apply selection to each item by registered index.
|
|
219
|
-
*
|
|
220
|
-
* See usage example on this class itself.
|
|
221
|
-
*/
|
|
222
|
-
applyValueToEachInRange(selectionMethod) {
|
|
223
|
-
const state = this.lastRangeSelectionState;
|
|
224
|
-
if (!state) {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
if (this._isNonNegativeInteger(state?.from) && this._isNonNegativeInteger(state?.to)) {
|
|
228
|
-
for (let index = state.from; index <= state.to; index++) {
|
|
229
|
-
selectionMethod(index);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
/** Resets selection state. Useful when the list of selectable items is changed (e.g. by filtering, sorting, page change) */
|
|
234
|
-
reset() {
|
|
235
|
-
this._state = null;
|
|
236
|
-
this._previousSelectedIndex = null;
|
|
237
|
-
}
|
|
238
|
-
/** @hidden */
|
|
239
|
-
_isNonNegativeInteger(num) {
|
|
240
|
-
return isNumber(num) && num >= 0;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Retrieves native element from ElementRef.
|
|
246
|
-
*/
|
|
247
|
-
function getNativeElement(element) {
|
|
248
|
-
let coercible = element;
|
|
249
|
-
if (hasElementRef(element)) {
|
|
250
|
-
coercible = element.elementRef;
|
|
251
|
-
}
|
|
252
|
-
return coerceElement(coercible);
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Checks whether object has element reference in it.
|
|
256
|
-
*/
|
|
257
|
-
function hasElementRef(something) {
|
|
258
|
-
return something && something['elementRef'] instanceof ElementRef;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Creates an observable that emits when the component is destroyed.
|
|
263
|
-
* @param destroyRef
|
|
264
|
-
*/
|
|
265
|
-
const destroyObservable = (destroyRef = inject(DestroyRef)) => {
|
|
266
|
-
const destroy$ = new Subject();
|
|
267
|
-
destroyRef.onDestroy(() => destroy$.next());
|
|
268
|
-
return destroy$.asObservable();
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
const messages = new Set();
|
|
272
|
-
/** @hidden */
|
|
273
|
-
function warnOnce(message) {
|
|
274
|
-
if (!messages.has(message)) {
|
|
275
|
-
console.warn(message);
|
|
276
|
-
messages.add(message);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
const MOBILE_CONFIG_ERROR = `Missing configuration object for mobile version of the component.
|
|
281
|
-
Consult the documentation on how to provide MobileModeConfiguration object for this component.
|
|
282
|
-
`;
|
|
283
|
-
const THEME_SWITCHER_ROUTER_MISSING_ERROR = `You need to import RouterModule to enable theme settings via the url.`;
|
|
284
|
-
const INVALID_DATE_ERROR = 'Invalid Date';
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Instead of `/\p{L}/u` because of it's not working in IE11 and Edge
|
|
288
|
-
* - https://github.com/Microsoft/ChakraCore/issues/2969
|
|
289
|
-
* */
|
|
290
|
-
// eslint-disable-next-line max-len
|
|
291
|
-
const LETTERS_UNICODE_RANGE = `[A-Za-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]`;
|
|
292
|
-
// eslint-disable-next-line max-len
|
|
293
|
-
const ANY_LANGUAGE_LETTERS_REGEX = new RegExp(LETTERS_UNICODE_RANGE, 'g');
|
|
294
|
-
// eslint-disable-next-line max-len
|
|
295
|
-
const ANY_LANGUAGE_LETTERS_GROUP_REGEX = new RegExp(`(${LETTERS_UNICODE_RANGE})+`, 'g');
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* Polyfill for `/\p{Nd}/u` to work in IE11 and Edge
|
|
299
|
-
*/
|
|
300
|
-
// eslint-disable-next-line max-len
|
|
301
|
-
const DECIMAL_NUMBER_UNICODE_RANGE = `[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]`;
|
|
302
|
-
const DECIMAL_NUMBER_UNICODE_REGEX = new RegExp(DECIMAL_NUMBER_UNICODE_RANGE, 'g');
|
|
303
|
-
const DECIMAL_NUMBER_UNICODE_GROUP_REGEX = new RegExp(`(${DECIMAL_NUMBER_UNICODE_RANGE})+`, 'g');
|
|
304
|
-
|
|
305
|
-
const OVERFLOW_PRIORITY_SCORE = new Map([
|
|
306
|
-
['always', 0],
|
|
307
|
-
['disappear', 1],
|
|
308
|
-
['low', 2],
|
|
309
|
-
['high', 3],
|
|
310
|
-
['never', 4]
|
|
311
|
-
]);
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @deprecated
|
|
315
|
-
* Service providing theme switcher functionality.
|
|
316
|
-
* Deprecated since 0.35.0 in favor of ThemingService from ThemingModule
|
|
317
|
-
*/
|
|
318
|
-
class ThemesService {
|
|
319
|
-
/** @hidden */
|
|
320
|
-
constructor(_activatedRoute, _sanitizer) {
|
|
321
|
-
this._activatedRoute = _activatedRoute;
|
|
322
|
-
this._sanitizer = _sanitizer;
|
|
323
|
-
/** Available themes */
|
|
324
|
-
this.themes = [
|
|
325
|
-
{
|
|
326
|
-
id: 'sap_horizon',
|
|
327
|
-
name: 'Morning Horizon (Light)'
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
id: 'sap_horizon_dark',
|
|
331
|
-
name: 'Evening Horizon (Dark)'
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
id: 'sap_horizon_hcb',
|
|
335
|
-
name: 'Horizon High Contrast Black',
|
|
336
|
-
description: 'Optimized contrast and accessibiliwty for extremely bright environments'
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
id: 'sap_horizon_hcw',
|
|
340
|
-
name: 'Horizon High Contrast White Horizon',
|
|
341
|
-
description: 'Optimized contrast and accessibility for extremely dark environments'
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
id: 'sap_fiori_3',
|
|
345
|
-
name: 'Quartz Light',
|
|
346
|
-
description: 'Use in regular office environment'
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
id: 'sap_fiori_3_dark',
|
|
350
|
-
name: 'Quartz Dark',
|
|
351
|
-
description: 'Use in dimmed environments'
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
id: 'sap_fiori_3_hcb',
|
|
355
|
-
name: 'Quartz High Contrast Black',
|
|
356
|
-
description: 'Optimized contrast and accessibility for extremely bright environments'
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
id: 'sap_fiori_3_hcw',
|
|
360
|
-
name: 'Quartz High Contrast White',
|
|
361
|
-
description: 'Optimized contrast and accessibility for extremely dark environments'
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: 'sap_fiori_3_light_dark',
|
|
365
|
-
name: 'Quartz Auto (Depending on the OS Settings)'
|
|
366
|
-
}
|
|
367
|
-
];
|
|
368
|
-
/** Subject triggered, when the theming is changed by URL parameter */
|
|
369
|
-
this.onThemeQueryParamChange = new Subject();
|
|
370
|
-
/** @hidden **/
|
|
371
|
-
this._onDestroy$ = new Subject();
|
|
372
|
-
warnOnce('ThemesService is deprecated since 0.35.0 in favor of ThemingService from ThemingModule');
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Set theme according to additional URL parameter.
|
|
376
|
-
* This parameter can be changed in function argument.
|
|
377
|
-
* By default it's `theme`.
|
|
378
|
-
**/
|
|
379
|
-
setThemeByRoute(themeParamName) {
|
|
380
|
-
const paramName = themeParamName || 'theme';
|
|
381
|
-
if (!this._activatedRoute) {
|
|
382
|
-
throw new Error(THEME_SWITCHER_ROUTER_MISSING_ERROR);
|
|
383
|
-
}
|
|
384
|
-
this._activatedRoute.queryParams
|
|
385
|
-
.pipe(takeUntil(this._onDestroy$), filter((param) => param && param[paramName]))
|
|
386
|
-
.subscribe((param) => this._propagateThemes(param[paramName]));
|
|
387
|
-
const nativeTheme = this._getNativeParameterByName(paramName);
|
|
388
|
-
if (nativeTheme) {
|
|
389
|
-
this._propagateThemes(nativeTheme);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
/** Method to get once theme object directly from url. */
|
|
393
|
-
getThemesFromURL(param) {
|
|
394
|
-
const paramName = param || 'theme';
|
|
395
|
-
const nativeTheme = this._getNativeParameterByName(paramName);
|
|
396
|
-
if (!nativeTheme && isDevMode()) {
|
|
397
|
-
console.warn('There is no theme param set named: ' + param);
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
return {
|
|
401
|
-
themeUrl: this.setTheme(nativeTheme),
|
|
402
|
-
customThemeUrl: this.setCustomTheme(nativeTheme)
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
/** Assign css file corresponding to chosen theme from @sap-theming **/
|
|
406
|
-
setTheme(theme) {
|
|
407
|
-
return this._sanitizer.bypassSecurityTrustResourceUrl('assets/theming-base/' + theme + '/css_variables.css');
|
|
408
|
-
}
|
|
409
|
-
/** Assign css file corresponding to chosen theme fundamental-styles **/
|
|
410
|
-
setCustomTheme(theme) {
|
|
411
|
-
return this._sanitizer.bypassSecurityTrustResourceUrl('assets/fundamental-styles-theming/' + theme + '.css');
|
|
412
|
-
}
|
|
413
|
-
/** @hidden */
|
|
414
|
-
_getNativeParameterByName(paramName) {
|
|
415
|
-
paramName = paramName.replace(/[[\]]/g, '\\$&');
|
|
416
|
-
const regex = new RegExp('[?&]' + paramName + '(=([^&#]*)|&|#|$)'), results = regex.exec(window.location.href);
|
|
417
|
-
if (!results || !results[2]) {
|
|
418
|
-
return '';
|
|
419
|
-
}
|
|
420
|
-
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
421
|
-
}
|
|
422
|
-
/** @hidden */
|
|
423
|
-
_propagateThemes(theme) {
|
|
424
|
-
this.onThemeQueryParamChange.next({
|
|
425
|
-
themeUrl: this.setTheme(theme),
|
|
426
|
-
customThemeUrl: this.setCustomTheme(theme)
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ThemesService, deps: [{ token: i1.ActivatedRoute, optional: true }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
430
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ThemesService }); }
|
|
431
|
-
}
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ThemesService, decorators: [{
|
|
433
|
-
type: Injectable
|
|
434
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute, decorators: [{
|
|
435
|
-
type: Optional
|
|
436
|
-
}] }, { type: i2.DomSanitizer }]; } });
|
|
437
|
-
|
|
438
52
|
/** Map of keyCodes and their corresponding "key" values */
|
|
439
53
|
const keyMap = new Map([
|
|
440
54
|
[RIGHT_ARROW, ['ArrowRight', 'Right']],
|
|
@@ -522,63 +136,6 @@ class KeyUtil {
|
|
|
522
136
|
}
|
|
523
137
|
}
|
|
524
138
|
|
|
525
|
-
/** @hidden */
|
|
526
|
-
function getDeprecatedModel(current, deprecated) {
|
|
527
|
-
return {
|
|
528
|
-
current,
|
|
529
|
-
deprecated
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
/** @hidden */
|
|
533
|
-
function deprecatedModelProvider(current, deprecated) {
|
|
534
|
-
return {
|
|
535
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
536
|
-
useValue: getDeprecatedModel(current, deprecated)
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
const FD_DEPRECATED_DIRECTIVE_SELECTOR = new InjectionToken('FdDeprecatedDirectiveSelector');
|
|
540
|
-
class DeprecatedSelector {
|
|
541
|
-
/** @hidden */
|
|
542
|
-
constructor() {
|
|
543
|
-
/** @hidden */
|
|
544
|
-
this._selectors = inject(FD_DEPRECATED_DIRECTIVE_SELECTOR, { optional: true });
|
|
545
|
-
if (isDevMode() && this._selectors) {
|
|
546
|
-
console.warn(this._messageGenerator(this._selectors.deprecated, this._selectors.current));
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
/** @hidden */
|
|
550
|
-
_messageGenerator(deprecated, current) {
|
|
551
|
-
const segments = [`${deprecated} selector(s) are deprecated and may affect input properties`];
|
|
552
|
-
if (current) {
|
|
553
|
-
segments.push(`Use ${current} instead.`);
|
|
554
|
-
}
|
|
555
|
-
return segments.join('. ');
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
class DeprecatedAutoCompleteDirective extends DeprecatedSelector {
|
|
560
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedAutoCompleteDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
561
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedAutoCompleteDirective, isStandalone: true, selector: "[fdAutoComplete], [fd-auto-complete]", providers: [
|
|
562
|
-
{
|
|
563
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
564
|
-
useValue: getDeprecatedModel('[fdkAutoComplete]', '[fdAutoComplete], [fd-auto-complete]')
|
|
565
|
-
}
|
|
566
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
567
|
-
}
|
|
568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedAutoCompleteDirective, decorators: [{
|
|
569
|
-
type: Directive,
|
|
570
|
-
args: [{
|
|
571
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
572
|
-
selector: '[fdAutoComplete], [fd-auto-complete]',
|
|
573
|
-
standalone: true,
|
|
574
|
-
providers: [
|
|
575
|
-
{
|
|
576
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
577
|
-
useValue: getDeprecatedModel('[fdkAutoComplete]', '[fdAutoComplete], [fd-auto-complete]')
|
|
578
|
-
}
|
|
579
|
-
]
|
|
580
|
-
}]
|
|
581
|
-
}] });
|
|
582
139
|
class AutoCompleteDirective {
|
|
583
140
|
/** @hidden */
|
|
584
141
|
constructor(_elementRef) {
|
|
@@ -664,12 +221,12 @@ class AutoCompleteDirective {
|
|
|
664
221
|
this._elementRef.nativeElement.setSelectionRange(inputTextLength, inputTextLength);
|
|
665
222
|
}
|
|
666
223
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
667
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: AutoCompleteDirective, isStandalone: true, selector: "[fdkAutoComplete]
|
|
224
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: AutoCompleteDirective, isStandalone: true, selector: "[fdkAutoComplete]", inputs: { options: "options", inputText: "inputText", enable: "enable", displayFn: "displayFn" }, outputs: { onComplete: "onComplete" }, host: { listeners: { "keyup": "handleKeyboardEvent($event)" } }, ngImport: i0 }); }
|
|
668
225
|
}
|
|
669
226
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteDirective, decorators: [{
|
|
670
227
|
type: Directive,
|
|
671
228
|
args: [{
|
|
672
|
-
selector: '[fdkAutoComplete]
|
|
229
|
+
selector: '[fdkAutoComplete]',
|
|
673
230
|
standalone: true
|
|
674
231
|
}]
|
|
675
232
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { options: [{
|
|
@@ -689,43 +246,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
689
246
|
|
|
690
247
|
class AutoCompleteModule {
|
|
691
248
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
692
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteModule, imports: [AutoCompleteDirective
|
|
249
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteModule, imports: [AutoCompleteDirective], exports: [AutoCompleteDirective] }); }
|
|
693
250
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteModule }); }
|
|
694
251
|
}
|
|
695
252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AutoCompleteModule, decorators: [{
|
|
696
253
|
type: NgModule,
|
|
697
254
|
args: [{
|
|
698
|
-
imports: [AutoCompleteDirective
|
|
699
|
-
exports: [AutoCompleteDirective
|
|
255
|
+
imports: [AutoCompleteDirective],
|
|
256
|
+
exports: [AutoCompleteDirective],
|
|
700
257
|
declarations: []
|
|
701
258
|
}]
|
|
702
259
|
}] });
|
|
703
260
|
|
|
704
261
|
const FOCUSABLE_ITEM = new InjectionToken('Focusable Option');
|
|
705
262
|
|
|
706
|
-
class DeprecatedFocusKeyManagerListDirective extends DeprecatedSelector {
|
|
707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusKeyManagerListDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
708
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedFocusKeyManagerListDirective, isStandalone: true, selector: "[fd-focus-key-manager-list], [fdFocusKeyManagerList]", providers: [
|
|
709
|
-
{
|
|
710
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
711
|
-
useValue: getDeprecatedModel('[fdkFocusKeyManagerList]', '[fd-focus-key-manager-list], [fdFocusKeyManagerList]')
|
|
712
|
-
}
|
|
713
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
714
|
-
}
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusKeyManagerListDirective, decorators: [{
|
|
716
|
-
type: Directive,
|
|
717
|
-
args: [{
|
|
718
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
719
|
-
selector: '[fd-focus-key-manager-list], [fdFocusKeyManagerList]',
|
|
720
|
-
standalone: true,
|
|
721
|
-
providers: [
|
|
722
|
-
{
|
|
723
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
724
|
-
useValue: getDeprecatedModel('[fdkFocusKeyManagerList]', '[fd-focus-key-manager-list], [fdFocusKeyManagerList]')
|
|
725
|
-
}
|
|
726
|
-
]
|
|
727
|
-
}]
|
|
728
|
-
}] });
|
|
729
263
|
/** Directive to apply Angular Material FocusKeyManager to lists.
|
|
730
264
|
* To be used with FocusKeyManagerItemDirective
|
|
731
265
|
*/
|
|
@@ -789,12 +323,12 @@ class FocusKeyManagerListDirective {
|
|
|
789
323
|
}
|
|
790
324
|
}
|
|
791
325
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerListDirective, deps: [{ token: RtlService, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
792
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: FocusKeyManagerListDirective, isStandalone: true, selector: "[fdkFocusKeyManagerList]
|
|
326
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: FocusKeyManagerListDirective, isStandalone: true, selector: "[fdkFocusKeyManagerList]", inputs: { orientation: "orientation", skipPredicate: "skipPredicate" }, queries: [{ propertyName: "_items", predicate: FOCUSABLE_ITEM }], usesOnChanges: true, ngImport: i0 }); }
|
|
793
327
|
}
|
|
794
328
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerListDirective, decorators: [{
|
|
795
329
|
type: Directive,
|
|
796
330
|
args: [{
|
|
797
|
-
selector: `[fdkFocusKeyManagerList]
|
|
331
|
+
selector: `[fdkFocusKeyManagerList]`,
|
|
798
332
|
standalone: true
|
|
799
333
|
}]
|
|
800
334
|
}], ctorParameters: function () { return [{ type: RtlService, decorators: [{
|
|
@@ -808,29 +342,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
808
342
|
args: [FOCUSABLE_ITEM]
|
|
809
343
|
}] } });
|
|
810
344
|
|
|
811
|
-
class DeprecatedFocusKeyManagerItemDirective extends DeprecatedSelector {
|
|
812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusKeyManagerItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
813
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedFocusKeyManagerItemDirective, isStandalone: true, selector: "[fd-focus-key-manager-item], [fdFocusKeyManagerItem]", providers: [
|
|
814
|
-
{
|
|
815
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
816
|
-
useValue: getDeprecatedModel('[fdkFocusKeyManagerItem]', '[fd-focus-key-manager-item], [fdFocusKeyManagerItem]')
|
|
817
|
-
}
|
|
818
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
819
|
-
}
|
|
820
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusKeyManagerItemDirective, decorators: [{
|
|
821
|
-
type: Directive,
|
|
822
|
-
args: [{
|
|
823
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
824
|
-
selector: '[fd-focus-key-manager-item], [fdFocusKeyManagerItem]',
|
|
825
|
-
standalone: true,
|
|
826
|
-
providers: [
|
|
827
|
-
{
|
|
828
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
829
|
-
useValue: getDeprecatedModel('[fdkFocusKeyManagerItem]', '[fd-focus-key-manager-item], [fdFocusKeyManagerItem]')
|
|
830
|
-
}
|
|
831
|
-
]
|
|
832
|
-
}]
|
|
833
|
-
}] });
|
|
834
345
|
/** Directive to apply Angular Material FocusKeyManager to lists.
|
|
835
346
|
* To be used with FocusKeyManagerItemDirective
|
|
836
347
|
*/
|
|
@@ -875,12 +386,12 @@ class FocusKeyManagerItemDirective {
|
|
|
875
386
|
this._elRef?.nativeElement.focus();
|
|
876
387
|
}
|
|
877
388
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerItemDirective, deps: [{ token: FocusKeyManagerListDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
878
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: FocusKeyManagerItemDirective, isStandalone: true, selector: "[fdkFocusKeyManagerItem]
|
|
389
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: FocusKeyManagerItemDirective, isStandalone: true, selector: "[fdkFocusKeyManagerItem]", inputs: { initialFocus: "initialFocus", _tabindex: "_tabindex" }, host: { listeners: { "focus": "_onFocus()", "keydown": "_onKeydown($event)" }, properties: { "attr.tabindex": "this._tabindex" } }, providers: [{ provide: FOCUSABLE_ITEM, useExisting: forwardRef(() => FocusKeyManagerItemDirective) }], ngImport: i0 }); }
|
|
879
390
|
}
|
|
880
391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerItemDirective, decorators: [{
|
|
881
392
|
type: Directive,
|
|
882
393
|
args: [{
|
|
883
|
-
selector: '[fdkFocusKeyManagerItem]
|
|
394
|
+
selector: '[fdkFocusKeyManagerItem]',
|
|
884
395
|
standalone: true,
|
|
885
396
|
providers: [{ provide: FOCUSABLE_ITEM, useExisting: forwardRef(() => FocusKeyManagerItemDirective) }]
|
|
886
397
|
}]
|
|
@@ -901,58 +412,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
901
412
|
|
|
902
413
|
class FocusKeyManagerHelpersModule {
|
|
903
414
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerHelpersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
904
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerHelpersModule, imports: [FocusKeyManagerItemDirective,
|
|
905
|
-
FocusKeyManagerListDirective,
|
|
906
|
-
DeprecatedFocusKeyManagerItemDirective,
|
|
907
|
-
DeprecatedFocusKeyManagerListDirective], exports: [FocusKeyManagerItemDirective,
|
|
908
|
-
FocusKeyManagerListDirective,
|
|
909
|
-
DeprecatedFocusKeyManagerItemDirective,
|
|
910
|
-
DeprecatedFocusKeyManagerListDirective] }); }
|
|
415
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerHelpersModule, imports: [FocusKeyManagerItemDirective, FocusKeyManagerListDirective], exports: [FocusKeyManagerItemDirective, FocusKeyManagerListDirective] }); }
|
|
911
416
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerHelpersModule }); }
|
|
912
417
|
}
|
|
913
418
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusKeyManagerHelpersModule, decorators: [{
|
|
914
419
|
type: NgModule,
|
|
915
420
|
args: [{
|
|
916
|
-
imports: [
|
|
917
|
-
|
|
918
|
-
FocusKeyManagerListDirective,
|
|
919
|
-
DeprecatedFocusKeyManagerItemDirective,
|
|
920
|
-
DeprecatedFocusKeyManagerListDirective
|
|
921
|
-
],
|
|
922
|
-
exports: [
|
|
923
|
-
FocusKeyManagerItemDirective,
|
|
924
|
-
FocusKeyManagerListDirective,
|
|
925
|
-
DeprecatedFocusKeyManagerItemDirective,
|
|
926
|
-
DeprecatedFocusKeyManagerListDirective
|
|
927
|
-
]
|
|
421
|
+
imports: [FocusKeyManagerItemDirective, FocusKeyManagerListDirective],
|
|
422
|
+
exports: [FocusKeyManagerItemDirective, FocusKeyManagerListDirective]
|
|
928
423
|
}]
|
|
929
424
|
}] });
|
|
930
425
|
|
|
931
426
|
const IgnoreClickOnSelectionDirectiveToken = new InjectionToken('Ignore click on selection directive');
|
|
932
427
|
|
|
933
|
-
class DeprecatedIgnoreClickOnSelectionDirective extends DeprecatedSelector {
|
|
934
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedIgnoreClickOnSelectionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
935
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedIgnoreClickOnSelectionDirective, isStandalone: true, selector: "[fdIgnoreClickOnSelection]", providers: [
|
|
936
|
-
{
|
|
937
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
938
|
-
useValue: getDeprecatedModel('[fdkIgnoreClickOnSelection]', '[fdIgnoreClickOnSelection]')
|
|
939
|
-
}
|
|
940
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
941
|
-
}
|
|
942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedIgnoreClickOnSelectionDirective, decorators: [{
|
|
943
|
-
type: Directive,
|
|
944
|
-
args: [{
|
|
945
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
946
|
-
selector: '[fdIgnoreClickOnSelection]',
|
|
947
|
-
standalone: true,
|
|
948
|
-
providers: [
|
|
949
|
-
{
|
|
950
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
951
|
-
useValue: getDeprecatedModel('[fdkIgnoreClickOnSelection]', '[fdIgnoreClickOnSelection]')
|
|
952
|
-
}
|
|
953
|
-
]
|
|
954
|
-
}]
|
|
955
|
-
}] });
|
|
956
428
|
/**
|
|
957
429
|
* Directive will stop propagation and prevent default of click, if selected area is coming from
|
|
958
430
|
* directive's host element. This gives ability to not cancel all clicks on element, just the ones
|
|
@@ -977,7 +449,7 @@ class IgnoreClickOnSelectionDirective {
|
|
|
977
449
|
}
|
|
978
450
|
}
|
|
979
451
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionDirective, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
980
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: IgnoreClickOnSelectionDirective, isStandalone: true, selector: "[fdkIgnoreClickOnSelection]
|
|
452
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: IgnoreClickOnSelectionDirective, isStandalone: true, selector: "[fdkIgnoreClickOnSelection]", host: { listeners: { "click": "clicked($event)" } }, providers: [
|
|
981
453
|
{
|
|
982
454
|
provide: IgnoreClickOnSelectionDirectiveToken,
|
|
983
455
|
useExisting: IgnoreClickOnSelectionDirective
|
|
@@ -987,7 +459,7 @@ class IgnoreClickOnSelectionDirective {
|
|
|
987
459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionDirective, decorators: [{
|
|
988
460
|
type: Directive,
|
|
989
461
|
args: [{
|
|
990
|
-
selector: '[fdkIgnoreClickOnSelection]
|
|
462
|
+
selector: '[fdkIgnoreClickOnSelection]',
|
|
991
463
|
standalone: true,
|
|
992
464
|
providers: [
|
|
993
465
|
{
|
|
@@ -1006,14 +478,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1006
478
|
|
|
1007
479
|
class IgnoreClickOnSelectionModule {
|
|
1008
480
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1009
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionModule, imports: [IgnoreClickOnSelectionDirective
|
|
481
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionModule, imports: [IgnoreClickOnSelectionDirective], exports: [IgnoreClickOnSelectionDirective] }); }
|
|
1010
482
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionModule }); }
|
|
1011
483
|
}
|
|
1012
484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: IgnoreClickOnSelectionModule, decorators: [{
|
|
1013
485
|
type: NgModule,
|
|
1014
486
|
args: [{
|
|
1015
|
-
imports: [IgnoreClickOnSelectionDirective
|
|
1016
|
-
exports: [IgnoreClickOnSelectionDirective
|
|
487
|
+
imports: [IgnoreClickOnSelectionDirective],
|
|
488
|
+
exports: [IgnoreClickOnSelectionDirective]
|
|
1017
489
|
}]
|
|
1018
490
|
}] });
|
|
1019
491
|
|
|
@@ -1042,56 +514,19 @@ class TabbableElementService {
|
|
|
1042
514
|
}
|
|
1043
515
|
return null;
|
|
1044
516
|
}
|
|
1045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TabbableElementService, deps: [{ token: i1
|
|
517
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TabbableElementService, deps: [{ token: i1.InteractivityChecker }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1046
518
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TabbableElementService, providedIn: 'root' }); }
|
|
1047
519
|
}
|
|
1048
520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TabbableElementService, decorators: [{
|
|
1049
521
|
type: Injectable,
|
|
1050
522
|
args: [{ providedIn: 'root' }]
|
|
1051
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
523
|
+
}], ctorParameters: function () { return [{ type: i1.InteractivityChecker }, { type: Document, decorators: [{
|
|
1052
524
|
type: Optional
|
|
1053
525
|
}, {
|
|
1054
526
|
type: Inject,
|
|
1055
527
|
args: [DOCUMENT]
|
|
1056
528
|
}] }]; } });
|
|
1057
529
|
|
|
1058
|
-
class DeprecatedInitialFocusDirective extends DeprecatedSelector {
|
|
1059
|
-
constructor() {
|
|
1060
|
-
super(...arguments);
|
|
1061
|
-
/** @hidden */
|
|
1062
|
-
this._initialFocusDirective = inject(InitialFocusDirective, { host: true });
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* CSS selector of an element that should be focused.
|
|
1066
|
-
*/
|
|
1067
|
-
set initialFocusTarget(value) {
|
|
1068
|
-
this._initialFocusDirective.fdkInitialFocus = value;
|
|
1069
|
-
}
|
|
1070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedInitialFocusDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1071
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedInitialFocusDirective, isStandalone: true, selector: "[fdInitialFocus], [fd-initial-focus]", inputs: { initialFocusTarget: ["fd-initial-focus", "initialFocusTarget"] }, providers: [
|
|
1072
|
-
{
|
|
1073
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1074
|
-
useValue: getDeprecatedModel('[fdkInitialFocus]', '[fdInitialFocus], [fd-initial-focus]')
|
|
1075
|
-
}
|
|
1076
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1077
|
-
}
|
|
1078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedInitialFocusDirective, decorators: [{
|
|
1079
|
-
type: Directive,
|
|
1080
|
-
args: [{
|
|
1081
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1082
|
-
selector: '[fdInitialFocus], [fd-initial-focus]',
|
|
1083
|
-
standalone: true,
|
|
1084
|
-
providers: [
|
|
1085
|
-
{
|
|
1086
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1087
|
-
useValue: getDeprecatedModel('[fdkInitialFocus]', '[fdInitialFocus], [fd-initial-focus]')
|
|
1088
|
-
}
|
|
1089
|
-
]
|
|
1090
|
-
}]
|
|
1091
|
-
}], propDecorators: { initialFocusTarget: [{
|
|
1092
|
-
type: Input,
|
|
1093
|
-
args: ['fd-initial-focus']
|
|
1094
|
-
}] } });
|
|
1095
530
|
class InitialFocusDirective {
|
|
1096
531
|
/**
|
|
1097
532
|
* Whether initial focus enabled for a current element.
|
|
@@ -1167,26 +602,14 @@ class InitialFocusDirective {
|
|
|
1167
602
|
elm?.focus();
|
|
1168
603
|
}
|
|
1169
604
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: TabbableElementService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1170
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: InitialFocusDirective, isStandalone: true, selector: "[fdkInitialFocus]
|
|
1171
|
-
TabbableElementService,
|
|
1172
|
-
{
|
|
1173
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1174
|
-
useValue: getDeprecatedModel('[fdkInitialFocus]', '[fdInitialFocus], [fd-initial-focus]')
|
|
1175
|
-
}
|
|
1176
|
-
], ngImport: i0 }); }
|
|
605
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: InitialFocusDirective, isStandalone: true, selector: "[fdkInitialFocus]", inputs: { fdkInitialFocus: "fdkInitialFocus", enabled: "enabled", focusLastElement: "focusLastElement" }, providers: [TabbableElementService], ngImport: i0 }); }
|
|
1177
606
|
}
|
|
1178
607
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusDirective, decorators: [{
|
|
1179
608
|
type: Directive,
|
|
1180
609
|
args: [{
|
|
1181
|
-
selector: '[fdkInitialFocus]
|
|
610
|
+
selector: '[fdkInitialFocus]',
|
|
1182
611
|
standalone: true,
|
|
1183
|
-
providers: [
|
|
1184
|
-
TabbableElementService,
|
|
1185
|
-
{
|
|
1186
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1187
|
-
useValue: getDeprecatedModel('[fdkInitialFocus]', '[fdInitialFocus], [fd-initial-focus]')
|
|
1188
|
-
}
|
|
1189
|
-
]
|
|
612
|
+
providers: [TabbableElementService]
|
|
1190
613
|
}]
|
|
1191
614
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: TabbableElementService }]; }, propDecorators: { fdkInitialFocus: [{
|
|
1192
615
|
type: Input
|
|
@@ -1198,14 +621,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1198
621
|
|
|
1199
622
|
class InitialFocusModule {
|
|
1200
623
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1201
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusModule, imports: [InitialFocusDirective
|
|
624
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusModule, imports: [InitialFocusDirective], exports: [InitialFocusDirective] }); }
|
|
1202
625
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusModule }); }
|
|
1203
626
|
}
|
|
1204
627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: InitialFocusModule, decorators: [{
|
|
1205
628
|
type: NgModule,
|
|
1206
629
|
args: [{
|
|
1207
|
-
imports: [InitialFocusDirective
|
|
1208
|
-
exports: [InitialFocusDirective
|
|
630
|
+
imports: [InitialFocusDirective],
|
|
631
|
+
exports: [InitialFocusDirective]
|
|
1209
632
|
}]
|
|
1210
633
|
}] });
|
|
1211
634
|
|
|
@@ -1225,52 +648,6 @@ const ViewportSizeObservable = new InjectionToken('ViewportSizeObservable', {
|
|
|
1225
648
|
}
|
|
1226
649
|
});
|
|
1227
650
|
|
|
1228
|
-
class DeprecatedLineClampTargetDirective extends DeprecatedSelector {
|
|
1229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedLineClampTargetDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1230
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedLineClampTargetDirective, isStandalone: true, selector: "[fdLineClampTarget], [fd-lineclamp-target]", providers: [
|
|
1231
|
-
{
|
|
1232
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1233
|
-
useValue: getDeprecatedModel('[fdkLineClampTarget]', '[fdLineClampTarget], [fd-lineclamp-target]')
|
|
1234
|
-
}
|
|
1235
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1236
|
-
}
|
|
1237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedLineClampTargetDirective, decorators: [{
|
|
1238
|
-
type: Directive,
|
|
1239
|
-
args: [{
|
|
1240
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1241
|
-
selector: '[fdLineClampTarget], [fd-lineclamp-target]',
|
|
1242
|
-
standalone: true,
|
|
1243
|
-
providers: [
|
|
1244
|
-
{
|
|
1245
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1246
|
-
useValue: getDeprecatedModel('[fdkLineClampTarget]', '[fdLineClampTarget], [fd-lineclamp-target]')
|
|
1247
|
-
}
|
|
1248
|
-
]
|
|
1249
|
-
}]
|
|
1250
|
-
}] });
|
|
1251
|
-
class DeprecatedLineClampDirective extends DeprecatedSelector {
|
|
1252
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedLineClampDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1253
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedLineClampDirective, isStandalone: true, selector: "[fdLineClamp], [fd-lineclamp]", providers: [
|
|
1254
|
-
{
|
|
1255
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1256
|
-
useValue: getDeprecatedModel('[fdkLineClampTarget]', '[fdLineClamp], [fd-lineclamp]')
|
|
1257
|
-
}
|
|
1258
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1259
|
-
}
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedLineClampDirective, decorators: [{
|
|
1261
|
-
type: Directive,
|
|
1262
|
-
args: [{
|
|
1263
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1264
|
-
selector: '[fdLineClamp], [fd-lineclamp]',
|
|
1265
|
-
standalone: true,
|
|
1266
|
-
providers: [
|
|
1267
|
-
{
|
|
1268
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1269
|
-
useValue: getDeprecatedModel('[fdkLineClampTarget]', '[fdLineClamp], [fd-lineclamp]')
|
|
1270
|
-
}
|
|
1271
|
-
]
|
|
1272
|
-
}]
|
|
1273
|
-
}] });
|
|
1274
651
|
class LineClampTargetDirective {
|
|
1275
652
|
/** @hidden */
|
|
1276
653
|
constructor(_elementRef) {
|
|
@@ -1462,12 +839,12 @@ class LineClampDirective {
|
|
|
1462
839
|
this.lineCountUpdate.emit(Math.ceil(height / lineHeight));
|
|
1463
840
|
}
|
|
1464
841
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: LineClampDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1465
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: LineClampDirective, isStandalone: true, selector: "[fdkLineClamp]
|
|
842
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: LineClampDirective, isStandalone: true, selector: "[fdkLineClamp]", inputs: { fdLineClampLines: "fdLineClampLines", fdLineclampState: "fdLineclampState" }, outputs: { lineCountUpdate: "lineCountUpdate" }, exportAs: ["fdLineClamp"], usesOnChanges: true, ngImport: i0 }); }
|
|
1466
843
|
}
|
|
1467
844
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: LineClampDirective, decorators: [{
|
|
1468
845
|
type: Directive,
|
|
1469
846
|
args: [{
|
|
1470
|
-
selector: '[fdkLineClamp]
|
|
847
|
+
selector: '[fdkLineClamp]',
|
|
1471
848
|
exportAs: 'fdLineClamp',
|
|
1472
849
|
standalone: true
|
|
1473
850
|
}]
|
|
@@ -1481,30 +858,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1481
858
|
|
|
1482
859
|
class LineClampModule {
|
|
1483
860
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: LineClampModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1484
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: LineClampModule, imports: [LineClampTargetDirective,
|
|
1485
|
-
LineClampDirective,
|
|
1486
|
-
DeprecatedLineClampDirective,
|
|
1487
|
-
DeprecatedLineClampTargetDirective], exports: [LineClampTargetDirective,
|
|
1488
|
-
LineClampDirective,
|
|
1489
|
-
DeprecatedLineClampDirective,
|
|
1490
|
-
DeprecatedLineClampTargetDirective] }); }
|
|
861
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: LineClampModule, imports: [LineClampTargetDirective, LineClampDirective], exports: [LineClampTargetDirective, LineClampDirective] }); }
|
|
1491
862
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: LineClampModule }); }
|
|
1492
863
|
}
|
|
1493
864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: LineClampModule, decorators: [{
|
|
1494
865
|
type: NgModule,
|
|
1495
866
|
args: [{
|
|
1496
|
-
imports: [
|
|
1497
|
-
|
|
1498
|
-
LineClampDirective,
|
|
1499
|
-
DeprecatedLineClampDirective,
|
|
1500
|
-
DeprecatedLineClampTargetDirective
|
|
1501
|
-
],
|
|
1502
|
-
exports: [
|
|
1503
|
-
LineClampTargetDirective,
|
|
1504
|
-
LineClampDirective,
|
|
1505
|
-
DeprecatedLineClampDirective,
|
|
1506
|
-
DeprecatedLineClampTargetDirective
|
|
1507
|
-
]
|
|
867
|
+
imports: [LineClampTargetDirective, LineClampDirective],
|
|
868
|
+
exports: [LineClampTargetDirective, LineClampDirective]
|
|
1508
869
|
}]
|
|
1509
870
|
}] });
|
|
1510
871
|
|
|
@@ -1718,29 +1079,6 @@ function isOdd(number) {
|
|
|
1718
1079
|
return number % 2 === 1;
|
|
1719
1080
|
}
|
|
1720
1081
|
|
|
1721
|
-
class DeprecatedOnlyDigitsDirective extends DeprecatedSelector {
|
|
1722
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOnlyDigitsDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1723
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedOnlyDigitsDirective, isStandalone: true, selector: "[fdOnlyDigits], [fd-only-digits]", providers: [
|
|
1724
|
-
{
|
|
1725
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1726
|
-
useValue: getDeprecatedModel('[fdkOnlyDigits]', '[fdOnlyDigits], [fd-only-digits]')
|
|
1727
|
-
}
|
|
1728
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1729
|
-
}
|
|
1730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOnlyDigitsDirective, decorators: [{
|
|
1731
|
-
type: Directive,
|
|
1732
|
-
args: [{
|
|
1733
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1734
|
-
selector: '[fdOnlyDigits], [fd-only-digits]',
|
|
1735
|
-
standalone: true,
|
|
1736
|
-
providers: [
|
|
1737
|
-
{
|
|
1738
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1739
|
-
useValue: getDeprecatedModel('[fdkOnlyDigits]', '[fdOnlyDigits], [fd-only-digits]')
|
|
1740
|
-
}
|
|
1741
|
-
]
|
|
1742
|
-
}]
|
|
1743
|
-
}] });
|
|
1744
1082
|
class OnlyDigitsDirective {
|
|
1745
1083
|
/** @hidden */
|
|
1746
1084
|
constructor(_el) {
|
|
@@ -1908,12 +1246,12 @@ class OnlyDigitsDirective {
|
|
|
1908
1246
|
: oldValue.substring(0, selectionStart ?? 0) + key + oldValue.substring(selectionStart ?? 0);
|
|
1909
1247
|
}
|
|
1910
1248
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1911
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OnlyDigitsDirective, isStandalone: true, selector: "[fdkOnlyDigits]
|
|
1249
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OnlyDigitsDirective, isStandalone: true, selector: "[fdkOnlyDigits]", inputs: { decimal: "decimal", decimalSeparator: "decimalSeparator" }, host: { listeners: { "keydown": "onKeyDown($event)", "paste": "onPaste($event)", "drop": "onDrop($event)" } }, ngImport: i0 }); }
|
|
1912
1250
|
}
|
|
1913
1251
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsDirective, decorators: [{
|
|
1914
1252
|
type: Directive,
|
|
1915
1253
|
args: [{
|
|
1916
|
-
selector: '[fdkOnlyDigits]
|
|
1254
|
+
selector: '[fdkOnlyDigits]',
|
|
1917
1255
|
standalone: true
|
|
1918
1256
|
}]
|
|
1919
1257
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { decimal: [{
|
|
@@ -1933,79 +1271,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
1933
1271
|
|
|
1934
1272
|
class OnlyDigitsModule {
|
|
1935
1273
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1936
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsModule, imports: [OnlyDigitsDirective
|
|
1274
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsModule, imports: [OnlyDigitsDirective], exports: [OnlyDigitsDirective] }); }
|
|
1937
1275
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsModule }); }
|
|
1938
1276
|
}
|
|
1939
1277
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OnlyDigitsModule, decorators: [{
|
|
1940
1278
|
type: NgModule,
|
|
1941
1279
|
args: [{
|
|
1942
|
-
imports: [OnlyDigitsDirective
|
|
1943
|
-
exports: [OnlyDigitsDirective
|
|
1280
|
+
imports: [OnlyDigitsDirective],
|
|
1281
|
+
exports: [OnlyDigitsDirective]
|
|
1944
1282
|
}]
|
|
1945
1283
|
}] });
|
|
1946
1284
|
|
|
1947
|
-
class DeprecatedOverflowListItemDirective extends DeprecatedSelector {
|
|
1948
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOverflowListItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1949
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedOverflowListItemDirective, isStandalone: true, selector: "[fdOverflowListItem], [fd-overflow-list-item]", providers: [
|
|
1950
|
-
{
|
|
1951
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1952
|
-
useValue: getDeprecatedModel('[fdkOverflowListItem]', '[fdOverflowListItem], [fd-overflow-list-item]')
|
|
1953
|
-
}
|
|
1954
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1955
|
-
}
|
|
1956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOverflowListItemDirective, decorators: [{
|
|
1957
|
-
type: Directive,
|
|
1958
|
-
args: [{
|
|
1959
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1960
|
-
selector: '[fdOverflowListItem], [fd-overflow-list-item]',
|
|
1961
|
-
standalone: true,
|
|
1962
|
-
providers: [
|
|
1963
|
-
{
|
|
1964
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1965
|
-
useValue: getDeprecatedModel('[fdkOverflowListItem]', '[fdOverflowListItem], [fd-overflow-list-item]')
|
|
1966
|
-
}
|
|
1967
|
-
]
|
|
1968
|
-
}]
|
|
1969
|
-
}] });
|
|
1970
1285
|
class OverflowListItemDirective {
|
|
1971
1286
|
/** @hidden */
|
|
1972
1287
|
constructor(el) {
|
|
1973
1288
|
this.el = el;
|
|
1974
1289
|
}
|
|
1975
1290
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListItemDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1976
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OverflowListItemDirective, isStandalone: true, selector: "[fdkOverflowListItem]
|
|
1291
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OverflowListItemDirective, isStandalone: true, selector: "[fdkOverflowListItem]", ngImport: i0 }); }
|
|
1977
1292
|
}
|
|
1978
1293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListItemDirective, decorators: [{
|
|
1979
1294
|
type: Directive,
|
|
1980
1295
|
args: [{
|
|
1981
|
-
selector: '[fdkOverflowListItem]
|
|
1296
|
+
selector: '[fdkOverflowListItem]',
|
|
1982
1297
|
standalone: true
|
|
1983
1298
|
}]
|
|
1984
1299
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1985
1300
|
|
|
1986
|
-
class DeprecatedOverflowListDirective extends DeprecatedSelector {
|
|
1987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOverflowListDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1988
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedOverflowListDirective, isStandalone: true, selector: "[fdOverflowList], [fd-overflow-list]", providers: [
|
|
1989
|
-
{
|
|
1990
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
1991
|
-
useValue: getDeprecatedModel('[fdkOverflowList]', '[fdOverflowList], [fd-overflow-list]')
|
|
1992
|
-
}
|
|
1993
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
1994
|
-
}
|
|
1995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedOverflowListDirective, decorators: [{
|
|
1996
|
-
type: Directive,
|
|
1997
|
-
args: [{
|
|
1998
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1999
|
-
selector: '[fdOverflowList], [fd-overflow-list]',
|
|
2000
|
-
standalone: true,
|
|
2001
|
-
providers: [
|
|
2002
|
-
{
|
|
2003
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2004
|
-
useValue: getDeprecatedModel('[fdkOverflowList]', '[fdOverflowList], [fd-overflow-list]')
|
|
2005
|
-
}
|
|
2006
|
-
]
|
|
2007
|
-
}]
|
|
2008
|
-
}] });
|
|
2009
1301
|
class OverflowListDirective {
|
|
2010
1302
|
/** @hidden */
|
|
2011
1303
|
constructor(_el, _viewportRuler, _ngZone) {
|
|
@@ -2095,16 +1387,16 @@ class OverflowListDirective {
|
|
|
2095
1387
|
item.style.removeProperty('display');
|
|
2096
1388
|
});
|
|
2097
1389
|
}
|
|
2098
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListDirective, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
2099
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OverflowListDirective, isStandalone: true, selector: "[fdkOverflowList]
|
|
1390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListDirective, deps: [{ token: i0.ElementRef }, { token: i1$1.ViewportRuler }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1391
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: OverflowListDirective, isStandalone: true, selector: "[fdkOverflowList]", inputs: { overflowOffset: "overflowOffset", isRtl: "isRtl", itemCssBlockValue: "itemCssBlockValue" }, outputs: { overflowChanged: "overflowChanged" }, queries: [{ propertyName: "overflowItems", predicate: OverflowListItemDirective }], ngImport: i0 }); }
|
|
2100
1392
|
}
|
|
2101
1393
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListDirective, decorators: [{
|
|
2102
1394
|
type: Directive,
|
|
2103
1395
|
args: [{
|
|
2104
|
-
selector: '[fdkOverflowList]
|
|
1396
|
+
selector: '[fdkOverflowList]',
|
|
2105
1397
|
standalone: true
|
|
2106
1398
|
}]
|
|
2107
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
1399
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$1.ViewportRuler }, { type: i0.NgZone }]; }, propDecorators: { overflowOffset: [{
|
|
2108
1400
|
type: Input
|
|
2109
1401
|
}], isRtl: [{
|
|
2110
1402
|
type: Input
|
|
@@ -2119,64 +1411,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
2119
1411
|
|
|
2120
1412
|
class OverflowListModule {
|
|
2121
1413
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2122
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: OverflowListModule, imports: [OverflowListDirective,
|
|
2123
|
-
OverflowListItemDirective,
|
|
2124
|
-
DeprecatedOverflowListItemDirective,
|
|
2125
|
-
DeprecatedOverflowListDirective], exports: [OverflowListDirective,
|
|
2126
|
-
OverflowListItemDirective,
|
|
2127
|
-
DeprecatedOverflowListItemDirective,
|
|
2128
|
-
DeprecatedOverflowListDirective] }); }
|
|
1414
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: OverflowListModule, imports: [OverflowListDirective, OverflowListItemDirective], exports: [OverflowListDirective, OverflowListItemDirective] }); }
|
|
2129
1415
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListModule }); }
|
|
2130
1416
|
}
|
|
2131
1417
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: OverflowListModule, decorators: [{
|
|
2132
|
-
type: NgModule,
|
|
2133
|
-
args: [{
|
|
2134
|
-
imports: [
|
|
2135
|
-
|
|
2136
|
-
OverflowListItemDirective,
|
|
2137
|
-
DeprecatedOverflowListItemDirective,
|
|
2138
|
-
DeprecatedOverflowListDirective
|
|
2139
|
-
],
|
|
2140
|
-
exports: [
|
|
2141
|
-
OverflowListDirective,
|
|
2142
|
-
OverflowListItemDirective,
|
|
2143
|
-
DeprecatedOverflowListItemDirective,
|
|
2144
|
-
DeprecatedOverflowListDirective
|
|
2145
|
-
]
|
|
2146
|
-
}]
|
|
2147
|
-
}] });
|
|
2148
|
-
|
|
2149
|
-
class DeprecatedRepeatDirective extends DeprecatedSelector {
|
|
2150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedRepeatDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2151
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedRepeatDirective, isStandalone: true, selector: "[fdRepeat]", providers: [
|
|
2152
|
-
{
|
|
2153
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2154
|
-
useValue: getDeprecatedModel('[fdkRepeat]', '[fdRepeat]')
|
|
2155
|
-
}
|
|
2156
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
2157
|
-
}
|
|
2158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedRepeatDirective, decorators: [{
|
|
2159
|
-
type: Directive,
|
|
2160
|
-
args: [{
|
|
2161
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2162
|
-
selector: '[fdRepeat]',
|
|
2163
|
-
standalone: true,
|
|
2164
|
-
providers: [
|
|
2165
|
-
{
|
|
2166
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2167
|
-
useValue: getDeprecatedModel('[fdkRepeat]', '[fdRepeat]')
|
|
2168
|
-
}
|
|
2169
|
-
]
|
|
1418
|
+
type: NgModule,
|
|
1419
|
+
args: [{
|
|
1420
|
+
imports: [OverflowListDirective, OverflowListItemDirective],
|
|
1421
|
+
exports: [OverflowListDirective, OverflowListItemDirective]
|
|
2170
1422
|
}]
|
|
2171
1423
|
}] });
|
|
1424
|
+
|
|
2172
1425
|
/**
|
|
2173
1426
|
* Directive to repeatably render template N times.
|
|
2174
1427
|
*/
|
|
2175
1428
|
class RepeatDirective {
|
|
2176
|
-
/** @hidden */
|
|
2177
|
-
get _repeatCount() {
|
|
2178
|
-
return this.count || this.deprecatedCount;
|
|
2179
|
-
}
|
|
2180
1429
|
/** @hidden */
|
|
2181
1430
|
constructor(_templateRef, _viewContainerRef) {
|
|
2182
1431
|
this._templateRef = _templateRef;
|
|
@@ -2184,105 +1433,56 @@ class RepeatDirective {
|
|
|
2184
1433
|
}
|
|
2185
1434
|
/** @hidden */
|
|
2186
1435
|
ngOnChanges(changes) {
|
|
2187
|
-
if ((changes['count'] || changes['deprecatedCount']) && Number.isInteger(this.
|
|
1436
|
+
if ((changes['count'] || changes['deprecatedCount']) && Number.isInteger(this.count)) {
|
|
2188
1437
|
this._viewContainerRef.clear();
|
|
2189
|
-
for (let index = 0; index < Math.max(0, this.
|
|
1438
|
+
for (let index = 0; index < Math.max(0, this.count); index++) {
|
|
2190
1439
|
this._viewContainerRef.createEmbeddedView(this._templateRef, { index });
|
|
2191
1440
|
}
|
|
2192
1441
|
}
|
|
2193
1442
|
}
|
|
2194
1443
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: RepeatDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2195
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: RepeatDirective, isStandalone: true, selector: "[fdkRepeat]
|
|
1444
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: RepeatDirective, isStandalone: true, selector: "[fdkRepeat]", inputs: { count: ["fdkRepeat", "count"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
2196
1445
|
}
|
|
2197
1446
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: RepeatDirective, decorators: [{
|
|
2198
1447
|
type: Directive,
|
|
2199
1448
|
args: [{
|
|
2200
|
-
selector: '[fdkRepeat]
|
|
1449
|
+
selector: '[fdkRepeat]',
|
|
2201
1450
|
standalone: true
|
|
2202
1451
|
}]
|
|
2203
1452
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { count: [{
|
|
2204
1453
|
type: Input,
|
|
2205
1454
|
args: ['fdkRepeat']
|
|
2206
|
-
}], deprecatedCount: [{
|
|
2207
|
-
type: Input,
|
|
2208
|
-
args: ['fdRepeat']
|
|
2209
1455
|
}] } });
|
|
2210
1456
|
|
|
2211
1457
|
class RepeatModule {
|
|
2212
1458
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: RepeatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2213
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: RepeatModule, imports: [RepeatDirective
|
|
1459
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: RepeatModule, imports: [RepeatDirective], exports: [RepeatDirective] }); }
|
|
2214
1460
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: RepeatModule }); }
|
|
2215
1461
|
}
|
|
2216
1462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: RepeatModule, decorators: [{
|
|
2217
1463
|
type: NgModule,
|
|
2218
1464
|
args: [{
|
|
2219
|
-
imports: [RepeatDirective
|
|
2220
|
-
exports: [RepeatDirective
|
|
1465
|
+
imports: [RepeatDirective],
|
|
1466
|
+
exports: [RepeatDirective]
|
|
2221
1467
|
}]
|
|
2222
1468
|
}] });
|
|
2223
1469
|
|
|
2224
|
-
class DeprecatedResizeHandleDirective extends DeprecatedSelector {
|
|
2225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedResizeHandleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2226
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedResizeHandleDirective, isStandalone: true, selector: "[fdResizeHandle], [fd-resize-handle]", providers: [
|
|
2227
|
-
{
|
|
2228
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2229
|
-
useValue: getDeprecatedModel('[fdkResizeHandle]', '[fdResizeHandle], [fd-resize-handle]')
|
|
2230
|
-
}
|
|
2231
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
2232
|
-
}
|
|
2233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedResizeHandleDirective, decorators: [{
|
|
2234
|
-
type: Directive,
|
|
2235
|
-
args: [{
|
|
2236
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2237
|
-
selector: '[fdResizeHandle], [fd-resize-handle]',
|
|
2238
|
-
standalone: true,
|
|
2239
|
-
providers: [
|
|
2240
|
-
{
|
|
2241
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2242
|
-
useValue: getDeprecatedModel('[fdkResizeHandle]', '[fdResizeHandle], [fd-resize-handle]')
|
|
2243
|
-
}
|
|
2244
|
-
]
|
|
2245
|
-
}]
|
|
2246
|
-
}] });
|
|
2247
1470
|
class ResizeHandleDirective {
|
|
2248
1471
|
/** @hidden */
|
|
2249
1472
|
constructor(elementRef) {
|
|
2250
1473
|
this.elementRef = elementRef;
|
|
2251
1474
|
}
|
|
2252
1475
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeHandleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2253
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ResizeHandleDirective, isStandalone: true, selector: "[fdkResizeHandle]
|
|
1476
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ResizeHandleDirective, isStandalone: true, selector: "[fdkResizeHandle]", ngImport: i0 }); }
|
|
2254
1477
|
}
|
|
2255
1478
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeHandleDirective, decorators: [{
|
|
2256
1479
|
type: Directive,
|
|
2257
1480
|
args: [{
|
|
2258
|
-
selector: '[fdkResizeHandle]
|
|
1481
|
+
selector: '[fdkResizeHandle]',
|
|
2259
1482
|
standalone: true
|
|
2260
1483
|
}]
|
|
2261
1484
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
2262
1485
|
|
|
2263
|
-
class DeprecatedResizeDirective extends DeprecatedSelector {
|
|
2264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedResizeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2265
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedResizeDirective, isStandalone: true, selector: "[fdResize], [fd-resize]", providers: [
|
|
2266
|
-
{
|
|
2267
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2268
|
-
useValue: getDeprecatedModel('[fdkResize]', '[fdResize], [fd-resize]')
|
|
2269
|
-
}
|
|
2270
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
2271
|
-
}
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedResizeDirective, decorators: [{
|
|
2273
|
-
type: Directive,
|
|
2274
|
-
args: [{
|
|
2275
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2276
|
-
selector: '[fdResize], [fd-resize]',
|
|
2277
|
-
standalone: true,
|
|
2278
|
-
providers: [
|
|
2279
|
-
{
|
|
2280
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2281
|
-
useValue: getDeprecatedModel('[fdkResize]', '[fdResize], [fd-resize]')
|
|
2282
|
-
}
|
|
2283
|
-
]
|
|
2284
|
-
}]
|
|
2285
|
-
}] });
|
|
2286
1486
|
class ResizeDirective {
|
|
2287
1487
|
/** Resize handle reference - should be used if Resize handle is not a ContentChild of resizable container */
|
|
2288
1488
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
@@ -2452,12 +1652,12 @@ class ResizeDirective {
|
|
|
2452
1652
|
return trigger$.pipe(map$1((isActive) => (isActive ? 'none' : 'auto')), tap((value) => (this._elementRef.nativeElement.style.pointerEvents = value)));
|
|
2453
1653
|
}
|
|
2454
1654
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeDirective, deps: [{ token: i0.ElementRef }, { token: RtlService, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2455
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ResizeDirective, isStandalone: true, selector: "[fdkResize]
|
|
1655
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ResizeDirective, isStandalone: true, selector: "[fdkResize]", inputs: { resizeBoundary: ["fdkResizeBoundary", "resizeBoundary"], disabled: ["fdkResizeDisabled", "disabled"], resizeHandleLocation: ["fdkResizeHandleLocation", "resizeHandleLocation"], setResizeHandleReference: ["fdkResizeResizeHandleRef", "setResizeHandleReference"] }, outputs: { onResizeStart: "onResizeStart", onResizeEnd: "onResizeEnd" }, queries: [{ propertyName: "resizeHandleReference", first: true, predicate: ResizeHandleDirective, descendants: true }], usesOnChanges: true, ngImport: i0 }); }
|
|
2456
1656
|
}
|
|
2457
1657
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeDirective, decorators: [{
|
|
2458
1658
|
type: Directive,
|
|
2459
1659
|
args: [{
|
|
2460
|
-
selector: '[fdkResize]
|
|
1660
|
+
selector: '[fdkResize]',
|
|
2461
1661
|
standalone: true
|
|
2462
1662
|
}]
|
|
2463
1663
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: RtlService, decorators: [{
|
|
@@ -2485,40 +1685,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
2485
1685
|
|
|
2486
1686
|
class ResizeModule {
|
|
2487
1687
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2488
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: ResizeModule, imports: [ResizeDirective,
|
|
1688
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: ResizeModule, imports: [ResizeDirective, ResizeHandleDirective], exports: [ResizeDirective, ResizeHandleDirective] }); }
|
|
2489
1689
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeModule }); }
|
|
2490
1690
|
}
|
|
2491
1691
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ResizeModule, decorators: [{
|
|
2492
1692
|
type: NgModule,
|
|
2493
1693
|
args: [{
|
|
2494
|
-
imports: [ResizeDirective,
|
|
2495
|
-
exports: [ResizeDirective,
|
|
1694
|
+
imports: [ResizeDirective, ResizeHandleDirective],
|
|
1695
|
+
exports: [ResizeDirective, ResizeHandleDirective]
|
|
2496
1696
|
}]
|
|
2497
1697
|
}] });
|
|
2498
1698
|
|
|
2499
|
-
class DeprecatedTemplateSelectorDirective extends DeprecatedSelector {
|
|
2500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedTemplateSelectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2501
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedTemplateSelectorDirective, isStandalone: true, selector: "[fdTemplate]", providers: [
|
|
2502
|
-
{
|
|
2503
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2504
|
-
useValue: getDeprecatedModel('[fdkTemplate]', '[fdTemplate]')
|
|
2505
|
-
}
|
|
2506
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
2507
|
-
}
|
|
2508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedTemplateSelectorDirective, decorators: [{
|
|
2509
|
-
type: Directive,
|
|
2510
|
-
args: [{
|
|
2511
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2512
|
-
selector: '[fdTemplate]',
|
|
2513
|
-
standalone: true,
|
|
2514
|
-
providers: [
|
|
2515
|
-
{
|
|
2516
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2517
|
-
useValue: getDeprecatedModel('[fdkTemplate]', '[fdTemplate]')
|
|
2518
|
-
}
|
|
2519
|
-
]
|
|
2520
|
-
}]
|
|
2521
|
-
}] });
|
|
2522
1699
|
class TemplateDirective {
|
|
2523
1700
|
/** @hidden */
|
|
2524
1701
|
constructor(templateRef) {
|
|
@@ -2529,12 +1706,12 @@ class TemplateDirective {
|
|
|
2529
1706
|
return this.name;
|
|
2530
1707
|
}
|
|
2531
1708
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2532
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: TemplateDirective, isStandalone: true, selector: "[fdkTemplate]
|
|
1709
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: TemplateDirective, isStandalone: true, selector: "[fdkTemplate]", inputs: { name: ["fdkTemplate", "name"] }, ngImport: i0 }); }
|
|
2533
1710
|
}
|
|
2534
1711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TemplateDirective, decorators: [{
|
|
2535
1712
|
type: Directive,
|
|
2536
1713
|
args: [{
|
|
2537
|
-
selector: '[fdkTemplate]
|
|
1714
|
+
selector: '[fdkTemplate]',
|
|
2538
1715
|
standalone: true
|
|
2539
1716
|
}]
|
|
2540
1717
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { name: [{
|
|
@@ -2544,40 +1721,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
2544
1721
|
|
|
2545
1722
|
class TemplateModule {
|
|
2546
1723
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TemplateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2547
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: TemplateModule, imports: [TemplateDirective
|
|
1724
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: TemplateModule, imports: [TemplateDirective], exports: [TemplateDirective] }); }
|
|
2548
1725
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TemplateModule }); }
|
|
2549
1726
|
}
|
|
2550
1727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TemplateModule, decorators: [{
|
|
2551
1728
|
type: NgModule,
|
|
2552
1729
|
args: [{
|
|
2553
|
-
imports: [TemplateDirective
|
|
2554
|
-
exports: [TemplateDirective
|
|
1730
|
+
imports: [TemplateDirective],
|
|
1731
|
+
exports: [TemplateDirective]
|
|
2555
1732
|
}]
|
|
2556
1733
|
}] });
|
|
2557
1734
|
|
|
2558
|
-
class DeprecatedTruncateSelectorDirective extends DeprecatedSelector {
|
|
2559
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedTruncateSelectorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2560
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedTruncateSelectorDirective, isStandalone: true, selector: "[fdTruncate], [fd-truncate]", providers: [
|
|
2561
|
-
{
|
|
2562
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2563
|
-
useValue: getDeprecatedModel('[fdkTemplate]', '[fdTruncate], [fd-truncate]')
|
|
2564
|
-
}
|
|
2565
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
2566
|
-
}
|
|
2567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedTruncateSelectorDirective, decorators: [{
|
|
2568
|
-
type: Directive,
|
|
2569
|
-
args: [{
|
|
2570
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2571
|
-
selector: '[fdTruncate], [fd-truncate]',
|
|
2572
|
-
standalone: true,
|
|
2573
|
-
providers: [
|
|
2574
|
-
{
|
|
2575
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
2576
|
-
useValue: getDeprecatedModel('[fdkTemplate]', '[fdTruncate], [fd-truncate]')
|
|
2577
|
-
}
|
|
2578
|
-
]
|
|
2579
|
-
}]
|
|
2580
|
-
}] });
|
|
2581
1735
|
class TruncateDirective {
|
|
2582
1736
|
/**
|
|
2583
1737
|
* Width in pixel for truncation of an element , by default
|
|
@@ -2600,67 +1754,294 @@ class TruncateDirective {
|
|
|
2600
1754
|
/**
|
|
2601
1755
|
* Root native element
|
|
2602
1756
|
*/
|
|
2603
|
-
get rootElement() {
|
|
2604
|
-
return this._elementRef.nativeElement;
|
|
1757
|
+
get rootElement() {
|
|
1758
|
+
return this._elementRef.nativeElement;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Method saves default style of target element before first truncate.
|
|
1762
|
+
*/
|
|
1763
|
+
setDefaultStyle() {
|
|
1764
|
+
if (this.takeDefaultStyleOnce) {
|
|
1765
|
+
this._defaultStyle = this._truncateTarget.style.cssText;
|
|
1766
|
+
this.takeDefaultStyleOnce = false;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
/** @hidden */
|
|
1770
|
+
ngAfterViewInit() {
|
|
1771
|
+
if (this.rootElement) {
|
|
1772
|
+
this._truncate();
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
/** @hidden */
|
|
1776
|
+
ngOnChanges() {
|
|
1777
|
+
this._truncate();
|
|
1778
|
+
}
|
|
1779
|
+
/** @hidden */
|
|
1780
|
+
_truncate() {
|
|
1781
|
+
this._truncateTarget = this.rootElement;
|
|
1782
|
+
if (!this._truncateTarget) {
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
this.setDefaultStyle();
|
|
1786
|
+
this._truncationStyle = `${this._defaultStyle} max-width: ${this._customWidthCount}px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;`;
|
|
1787
|
+
this._truncateTarget.style.cssText = this.fdkTruncateState ? this._truncationStyle : this._defaultStyle;
|
|
1788
|
+
}
|
|
1789
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1790
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: TruncateDirective, isStandalone: true, selector: "[fdkTruncate]", inputs: { fdkTruncateWidth: "fdkTruncateWidth", fdkTruncateState: "fdkTruncateState" }, usesOnChanges: true, ngImport: i0 }); }
|
|
1791
|
+
}
|
|
1792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateDirective, decorators: [{
|
|
1793
|
+
type: Directive,
|
|
1794
|
+
args: [{
|
|
1795
|
+
selector: '[fdkTruncate]',
|
|
1796
|
+
standalone: true
|
|
1797
|
+
}]
|
|
1798
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { fdkTruncateWidth: [{
|
|
1799
|
+
type: Input
|
|
1800
|
+
}], fdkTruncateState: [{
|
|
1801
|
+
type: Input
|
|
1802
|
+
}] } });
|
|
1803
|
+
|
|
1804
|
+
class TruncateModule {
|
|
1805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1806
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: TruncateModule, imports: [TruncateDirective], exports: [TruncateDirective] }); }
|
|
1807
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateModule }); }
|
|
1808
|
+
}
|
|
1809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateModule, decorators: [{
|
|
1810
|
+
type: NgModule,
|
|
1811
|
+
args: [{
|
|
1812
|
+
imports: [TruncateDirective],
|
|
1813
|
+
exports: [TruncateDirective]
|
|
1814
|
+
}]
|
|
1815
|
+
}] });
|
|
1816
|
+
|
|
1817
|
+
const FDK_FOCUSABLE_ITEM_DIRECTIVE = new InjectionToken('Focusable directive token');
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Helper function check whether passed data is a JS object (including function).
|
|
1821
|
+
*/
|
|
1822
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1823
|
+
function isJsObject(obj) {
|
|
1824
|
+
return obj !== null && (typeof obj === 'function' || typeof obj === 'object');
|
|
1825
|
+
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Helper function checks whether passed value is not empty.
|
|
1828
|
+
*/
|
|
1829
|
+
function isPresent(obj) {
|
|
1830
|
+
return obj !== undefined && obj !== null;
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Helper function check whether passed value is empty.
|
|
1834
|
+
*/
|
|
1835
|
+
function isBlank(obj) {
|
|
1836
|
+
return obj === undefined || obj === null;
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* Helper function checks whether passed value is a boolean.
|
|
1840
|
+
*/
|
|
1841
|
+
function isBoolean(obj) {
|
|
1842
|
+
return typeof obj === 'boolean';
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Helper function checks whether passed value is a valid number.
|
|
1846
|
+
*/
|
|
1847
|
+
function isNumber(obj) {
|
|
1848
|
+
return typeof obj === 'number';
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Helper function checks whether passed value is a string.
|
|
1852
|
+
*/
|
|
1853
|
+
function isString(obj) {
|
|
1854
|
+
return typeof obj === 'string';
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* Helper function checks whether passed value is a function
|
|
1858
|
+
*/
|
|
1859
|
+
function isFunction(obj) {
|
|
1860
|
+
return typeof obj === 'function';
|
|
1861
|
+
}
|
|
1862
|
+
/** @hidden */
|
|
1863
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
1864
|
+
function isType(obj) {
|
|
1865
|
+
return isFunction(obj);
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Helper function checks whether passed value is a record of `T` values.
|
|
1869
|
+
*/
|
|
1870
|
+
function isStringMap(obj) {
|
|
1871
|
+
return typeof obj === 'object' && obj !== null;
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Helper function checks whether passed value is an `object`.
|
|
1875
|
+
*/
|
|
1876
|
+
function isObject(item) {
|
|
1877
|
+
return typeof item === 'object' && !Array.isArray(item) && item !== null;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Helper function checks whether passed value is a promise.
|
|
1881
|
+
*/
|
|
1882
|
+
function isPromise(obj) {
|
|
1883
|
+
// allow any Promise/A+ compliant thenable.
|
|
1884
|
+
// It's up to the caller to ensure that obj.then conforms to the spec
|
|
1885
|
+
return !!obj && isFunction(obj.then);
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* Helper function checks whether passed value is an Observable/Subscribable.
|
|
1889
|
+
*/
|
|
1890
|
+
function isSubscribable(obj) {
|
|
1891
|
+
return !!obj && isFunction(obj.subscribe);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Utility type, that allows to track and select ranges of elements while using multi-selection.
|
|
1896
|
+
*
|
|
1897
|
+
* @usage
|
|
1898
|
+
* Imagine we have a simple list of checkboxes:
|
|
1899
|
+
* ```html
|
|
1900
|
+
* <input
|
|
1901
|
+
* #checkboxInput
|
|
1902
|
+
* *ngFor="let o of options; let idx = index"
|
|
1903
|
+
* type="checkbox"
|
|
1904
|
+
* [checked]="selectionModel.checked(o)"
|
|
1905
|
+
* (click)="toggle(idx, $event)"
|
|
1906
|
+
* >
|
|
1907
|
+
* ```
|
|
1908
|
+
* With the given layout the logic should be as follows:
|
|
1909
|
+
* ```typescript
|
|
1910
|
+
* export class YourComponent {
|
|
1911
|
+
* options = ['a', 'b', 'c'];
|
|
1912
|
+
* readonly selectionModel = new SelectionModel(true);
|
|
1913
|
+
*
|
|
1914
|
+
* private readonly _rangeSelector = new RangeSelector();
|
|
1915
|
+
*
|
|
1916
|
+
*
|
|
1917
|
+
* toggle(idx: number, event: PointerEvent): void {
|
|
1918
|
+
* // getting the toggled value of the checkbox
|
|
1919
|
+
* const toggledSelection = event.target.value;
|
|
1920
|
+
*
|
|
1921
|
+
* // registering the selection of current checkbox
|
|
1922
|
+
* this._rangeSelector.onRangeElementToggled(idx, event);
|
|
1923
|
+
*
|
|
1924
|
+
* // Apply value to each element in range.
|
|
1925
|
+
* // If checkbox was toggled without shift pressed or without previously selected one,
|
|
1926
|
+
* // this method will select only it.
|
|
1927
|
+
* this._rangeSelector.applyValueToEachInRange(idx => {
|
|
1928
|
+
* if (toggledSelection) {
|
|
1929
|
+
* this.selectionModel.select(options[idx]);
|
|
1930
|
+
* } else {
|
|
1931
|
+
* this.selectionModel.deselect(options[idx]);
|
|
1932
|
+
* }
|
|
1933
|
+
* });
|
|
1934
|
+
* }
|
|
1935
|
+
* }
|
|
1936
|
+
* ```
|
|
1937
|
+
*/
|
|
1938
|
+
class RangeSelector {
|
|
1939
|
+
constructor() {
|
|
1940
|
+
/** @hidden */
|
|
1941
|
+
this._previousSelectedIndex = null;
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Last registered selection state (either multiple or single).
|
|
1945
|
+
* Is updated on each `onRangeElementClicked` invokation. Will be `null` initially or once `reset()` is called.
|
|
1946
|
+
*/
|
|
1947
|
+
get lastRangeSelectionState() {
|
|
1948
|
+
return this._state ? { ...this._state } : null;
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* The method that should be used to register each checkbox toggle.
|
|
1952
|
+
* Accepts two arguments: `index` and `event`. If none provided, will reset existing state.
|
|
1953
|
+
* Otherwise will register current index as last checked.
|
|
1954
|
+
*
|
|
1955
|
+
* If toggling was done with "shift" pressed and there's a previously registered index, will register a range selection.
|
|
1956
|
+
* At the same time if checkbox was toggled without shift pressed or without previously selected one, this method will select only it.
|
|
1957
|
+
*
|
|
1958
|
+
* After calling this method it's recommended to use `applyValueToEachInRange` to actually toggle each checkbox in range.
|
|
1959
|
+
*
|
|
1960
|
+
* See usage example on this class itself.
|
|
1961
|
+
*/
|
|
1962
|
+
onRangeElementToggled(index, event) {
|
|
1963
|
+
if (this._isNonNegativeInteger(this._previousSelectedIndex) &&
|
|
1964
|
+
this._isNonNegativeInteger(index) &&
|
|
1965
|
+
event?.shiftKey) {
|
|
1966
|
+
this._state = {
|
|
1967
|
+
isRangeSelection: true,
|
|
1968
|
+
from: Math.min(this._previousSelectedIndex, index),
|
|
1969
|
+
to: Math.max(this._previousSelectedIndex, index)
|
|
1970
|
+
};
|
|
1971
|
+
this._previousSelectedIndex = index;
|
|
1972
|
+
}
|
|
1973
|
+
else if (this._isNonNegativeInteger(index)) {
|
|
1974
|
+
this._state = { isRangeSelection: false, from: index, to: index };
|
|
1975
|
+
this._previousSelectedIndex = index;
|
|
1976
|
+
}
|
|
1977
|
+
else {
|
|
1978
|
+
this.reset();
|
|
1979
|
+
}
|
|
1980
|
+
return this.lastRangeSelectionState;
|
|
2605
1981
|
}
|
|
2606
1982
|
/**
|
|
2607
|
-
*
|
|
1983
|
+
* Allows to apply selection to each item in selection range.
|
|
1984
|
+
* Accepts a function to apply selection to each item by registered index.
|
|
1985
|
+
*
|
|
1986
|
+
* See usage example on this class itself.
|
|
2608
1987
|
*/
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
1988
|
+
applyValueToEachInRange(selectionMethod) {
|
|
1989
|
+
const state = this.lastRangeSelectionState;
|
|
1990
|
+
if (!state) {
|
|
1991
|
+
return;
|
|
2613
1992
|
}
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
this._truncate();
|
|
1993
|
+
if (this._isNonNegativeInteger(state?.from) && this._isNonNegativeInteger(state?.to)) {
|
|
1994
|
+
for (let index = state.from; index <= state.to; index++) {
|
|
1995
|
+
selectionMethod(index);
|
|
1996
|
+
}
|
|
2619
1997
|
}
|
|
2620
1998
|
}
|
|
2621
|
-
/**
|
|
2622
|
-
|
|
2623
|
-
this.
|
|
1999
|
+
/** Resets selection state. Useful when the list of selectable items is changed (e.g. by filtering, sorting, page change) */
|
|
2000
|
+
reset() {
|
|
2001
|
+
this._state = null;
|
|
2002
|
+
this._previousSelectedIndex = null;
|
|
2624
2003
|
}
|
|
2625
2004
|
/** @hidden */
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
if (!this._truncateTarget) {
|
|
2629
|
-
return;
|
|
2630
|
-
}
|
|
2631
|
-
this.setDefaultStyle();
|
|
2632
|
-
this._truncationStyle = `${this._defaultStyle} max-width: ${this._customWidthCount}px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;`;
|
|
2633
|
-
this._truncateTarget.style.cssText = this.fdkTruncateState ? this._truncationStyle : this._defaultStyle;
|
|
2005
|
+
_isNonNegativeInteger(num) {
|
|
2006
|
+
return isNumber(num) && num >= 0;
|
|
2634
2007
|
}
|
|
2635
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2636
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: TruncateDirective, isStandalone: true, selector: "[fdkTruncate], [fdTruncate], [fd-truncate]", inputs: { fdkTruncateWidth: "fdkTruncateWidth", fdkTruncateState: "fdkTruncateState" }, usesOnChanges: true, ngImport: i0 }); }
|
|
2637
2008
|
}
|
|
2638
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateDirective, decorators: [{
|
|
2639
|
-
type: Directive,
|
|
2640
|
-
args: [{
|
|
2641
|
-
selector: '[fdkTruncate], [fdTruncate], [fd-truncate]',
|
|
2642
|
-
standalone: true
|
|
2643
|
-
}]
|
|
2644
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { fdkTruncateWidth: [{
|
|
2645
|
-
type: Input
|
|
2646
|
-
}], fdkTruncateState: [{
|
|
2647
|
-
type: Input
|
|
2648
|
-
}] } });
|
|
2649
2009
|
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2010
|
+
/**
|
|
2011
|
+
* Retrieves native element from ElementRef.
|
|
2012
|
+
*/
|
|
2013
|
+
function getNativeElement(element) {
|
|
2014
|
+
let coercible = element;
|
|
2015
|
+
if (hasElementRef(element)) {
|
|
2016
|
+
coercible = element.elementRef;
|
|
2017
|
+
}
|
|
2018
|
+
return coerceElement(coercible);
|
|
2019
|
+
}
|
|
2020
|
+
/**
|
|
2021
|
+
* Checks whether object has element reference in it.
|
|
2022
|
+
*/
|
|
2023
|
+
function hasElementRef(something) {
|
|
2024
|
+
return something && something['elementRef'] instanceof ElementRef;
|
|
2654
2025
|
}
|
|
2655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: TruncateModule, decorators: [{
|
|
2656
|
-
type: NgModule,
|
|
2657
|
-
args: [{
|
|
2658
|
-
imports: [TruncateDirective, DeprecatedTruncateSelectorDirective],
|
|
2659
|
-
exports: [TruncateDirective, DeprecatedTruncateSelectorDirective]
|
|
2660
|
-
}]
|
|
2661
|
-
}] });
|
|
2662
2026
|
|
|
2663
|
-
|
|
2027
|
+
/**
|
|
2028
|
+
* Creates an observable that emits when the component is destroyed.
|
|
2029
|
+
* @param destroyRef
|
|
2030
|
+
*/
|
|
2031
|
+
const destroyObservable = (destroyRef = inject(DestroyRef)) => {
|
|
2032
|
+
const destroy$ = new Subject();
|
|
2033
|
+
destroyRef.onDestroy(() => destroy$.next());
|
|
2034
|
+
return destroy$.asObservable();
|
|
2035
|
+
};
|
|
2036
|
+
|
|
2037
|
+
const messages = new Set();
|
|
2038
|
+
/** @hidden */
|
|
2039
|
+
function warnOnce(message) {
|
|
2040
|
+
if (!messages.has(message)) {
|
|
2041
|
+
console.warn(message);
|
|
2042
|
+
messages.add(message);
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2664
2045
|
|
|
2665
2046
|
const DEFAULT_CONTENT_DENSITY = 'cozy';
|
|
2666
2047
|
/**
|
|
@@ -3057,7 +2438,7 @@ class AttributeObserver {
|
|
|
3057
2438
|
this._observedElements.delete(element);
|
|
3058
2439
|
}
|
|
3059
2440
|
}
|
|
3060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AttributeObserver, deps: [{ token: i1$
|
|
2441
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AttributeObserver, deps: [{ token: i1$2.MutationObserverFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3061
2442
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AttributeObserver, providedIn: 'root' }); }
|
|
3062
2443
|
}
|
|
3063
2444
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: AttributeObserver, decorators: [{
|
|
@@ -3065,7 +2446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
3065
2446
|
args: [{
|
|
3066
2447
|
providedIn: 'root'
|
|
3067
2448
|
}]
|
|
3068
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2449
|
+
}], ctorParameters: function () { return [{ type: i1$2.MutationObserverFactory }]; } });
|
|
3069
2450
|
|
|
3070
2451
|
const focusableTagnamesByDefault = new Set(['select', 'textarea', 'input', 'button', 'audio', 'video']);
|
|
3071
2452
|
const focusableTagOptions = [
|
|
@@ -3164,29 +2545,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
3164
2545
|
}]
|
|
3165
2546
|
}], ctorParameters: function () { return [{ type: AttributeObserver }]; } });
|
|
3166
2547
|
|
|
3167
|
-
class DeprecatedFocusableItemDirective extends DeprecatedSelector {
|
|
3168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusableItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3169
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedFocusableItemDirective, isStandalone: true, selector: "[fnFocusableItem]", providers: [
|
|
3170
|
-
{
|
|
3171
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3172
|
-
useValue: getDeprecatedModel('[fdkFocusableItem]', '[fnFocusableItem]')
|
|
3173
|
-
}
|
|
3174
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
3175
|
-
}
|
|
3176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusableItemDirective, decorators: [{
|
|
3177
|
-
type: Directive,
|
|
3178
|
-
args: [{
|
|
3179
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3180
|
-
selector: '[fnFocusableItem]',
|
|
3181
|
-
standalone: true,
|
|
3182
|
-
providers: [
|
|
3183
|
-
{
|
|
3184
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3185
|
-
useValue: getDeprecatedModel('[fdkFocusableItem]', '[fnFocusableItem]')
|
|
3186
|
-
}
|
|
3187
|
-
]
|
|
3188
|
-
}]
|
|
3189
|
-
}] });
|
|
3190
2548
|
class FocusableItemDirective {
|
|
3191
2549
|
/** Whether the item is focusable. Default is true. */
|
|
3192
2550
|
set fdkFocusableItem(val) {
|
|
@@ -3379,14 +2737,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
3379
2737
|
|
|
3380
2738
|
class FocusableItemModule {
|
|
3381
2739
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3382
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusableItemModule, imports: [FocusableItemDirective
|
|
2740
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusableItemModule, imports: [FocusableItemDirective], exports: [FocusableItemDirective] }); }
|
|
3383
2741
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableItemModule }); }
|
|
3384
2742
|
}
|
|
3385
2743
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableItemModule, decorators: [{
|
|
3386
2744
|
type: NgModule,
|
|
3387
2745
|
args: [{
|
|
3388
|
-
imports: [FocusableItemDirective
|
|
3389
|
-
exports: [FocusableItemDirective
|
|
2746
|
+
imports: [FocusableItemDirective],
|
|
2747
|
+
exports: [FocusableItemDirective]
|
|
3390
2748
|
}]
|
|
3391
2749
|
}] });
|
|
3392
2750
|
|
|
@@ -3444,29 +2802,6 @@ function getItemElement(item) {
|
|
|
3444
2802
|
return item.element;
|
|
3445
2803
|
}
|
|
3446
2804
|
|
|
3447
|
-
class DeprecatedFocusableListDirective extends DeprecatedSelector {
|
|
3448
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusableListDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3449
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedFocusableListDirective, isStandalone: true, selector: "[fnFocusableList]", providers: [
|
|
3450
|
-
{
|
|
3451
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3452
|
-
useValue: getDeprecatedModel('[fdkFocusableList]', '[fnFocusableList]')
|
|
3453
|
-
}
|
|
3454
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
3455
|
-
}
|
|
3456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedFocusableListDirective, decorators: [{
|
|
3457
|
-
type: Directive,
|
|
3458
|
-
args: [{
|
|
3459
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3460
|
-
selector: '[fnFocusableList]',
|
|
3461
|
-
standalone: true,
|
|
3462
|
-
providers: [
|
|
3463
|
-
{
|
|
3464
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3465
|
-
useValue: getDeprecatedModel('[fdkFocusableList]', '[fnFocusableList]')
|
|
3466
|
-
}
|
|
3467
|
-
]
|
|
3468
|
-
}]
|
|
3469
|
-
}] });
|
|
3470
2805
|
class FocusableListDirective {
|
|
3471
2806
|
/** Whether the whole list should be focusable, handy in grids. */
|
|
3472
2807
|
set focusable(value) {
|
|
@@ -3753,14 +3088,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
3753
3088
|
|
|
3754
3089
|
class FocusableListModule {
|
|
3755
3090
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3756
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule, imports: [
|
|
3757
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule
|
|
3091
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule, imports: [FocusableItemDirective, FocusableListDirective], exports: [FocusableItemDirective, FocusableListDirective] }); }
|
|
3092
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule }); }
|
|
3758
3093
|
}
|
|
3759
3094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: FocusableListModule, decorators: [{
|
|
3760
3095
|
type: NgModule,
|
|
3761
3096
|
args: [{
|
|
3762
|
-
imports: [
|
|
3763
|
-
exports: [
|
|
3097
|
+
imports: [FocusableItemDirective, FocusableListDirective],
|
|
3098
|
+
exports: [FocusableItemDirective, FocusableListDirective]
|
|
3764
3099
|
}]
|
|
3765
3100
|
}] });
|
|
3766
3101
|
|
|
@@ -3955,29 +3290,6 @@ function setReadonlyState(element, isReadonly) {
|
|
|
3955
3290
|
}
|
|
3956
3291
|
}
|
|
3957
3292
|
|
|
3958
|
-
class DeprecatedReadonlyBehaviorDirective extends DeprecatedSelector {
|
|
3959
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedReadonlyBehaviorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3960
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedReadonlyBehaviorDirective, isStandalone: true, selector: "[fnReadonly]", providers: [
|
|
3961
|
-
{
|
|
3962
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3963
|
-
useValue: getDeprecatedModel('[fdkReadonly]', '[fnReadonly]')
|
|
3964
|
-
}
|
|
3965
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
3966
|
-
}
|
|
3967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedReadonlyBehaviorDirective, decorators: [{
|
|
3968
|
-
type: Directive,
|
|
3969
|
-
args: [{
|
|
3970
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3971
|
-
selector: '[fnReadonly]',
|
|
3972
|
-
standalone: true,
|
|
3973
|
-
providers: [
|
|
3974
|
-
{
|
|
3975
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
3976
|
-
useValue: getDeprecatedModel('[fdkReadonly]', '[fnReadonly]')
|
|
3977
|
-
}
|
|
3978
|
-
]
|
|
3979
|
-
}]
|
|
3980
|
-
}] });
|
|
3981
3293
|
class ReadonlyBehaviorDirective extends ReplaySubject {
|
|
3982
3294
|
/** @Hidden */
|
|
3983
3295
|
set fdkReadonly(value) {
|
|
@@ -4014,7 +3326,7 @@ class ReadonlyBehaviorDirective extends ReplaySubject {
|
|
|
4014
3326
|
.subscribe();
|
|
4015
3327
|
}
|
|
4016
3328
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorDirective, deps: [{ token: i0.ElementRef }, { token: i0.DestroyRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4017
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ReadonlyBehaviorDirective, isStandalone: true, selector: "[fdkReadonly]
|
|
3329
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: ReadonlyBehaviorDirective, isStandalone: true, selector: "[fdkReadonly]", inputs: { fdkReadonly: "fdkReadonly" }, providers: [
|
|
4018
3330
|
{
|
|
4019
3331
|
provide: FDK_READONLY_DIRECTIVE,
|
|
4020
3332
|
useExisting: ReadonlyBehaviorDirective
|
|
@@ -4024,7 +3336,7 @@ class ReadonlyBehaviorDirective extends ReplaySubject {
|
|
|
4024
3336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorDirective, decorators: [{
|
|
4025
3337
|
type: Directive,
|
|
4026
3338
|
args: [{
|
|
4027
|
-
selector: '[fdkReadonly]
|
|
3339
|
+
selector: '[fdkReadonly]',
|
|
4028
3340
|
standalone: true,
|
|
4029
3341
|
providers: [
|
|
4030
3342
|
{
|
|
@@ -4039,14 +3351,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
4039
3351
|
|
|
4040
3352
|
class ReadonlyBehaviorModule {
|
|
4041
3353
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4042
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorModule, imports: [ReadonlyBehaviorDirective
|
|
3354
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorModule, imports: [ReadonlyBehaviorDirective], exports: [ReadonlyBehaviorDirective] }); }
|
|
4043
3355
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorModule }); }
|
|
4044
3356
|
}
|
|
4045
3357
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: ReadonlyBehaviorModule, decorators: [{
|
|
4046
3358
|
type: NgModule,
|
|
4047
3359
|
args: [{
|
|
4048
|
-
imports: [ReadonlyBehaviorDirective
|
|
4049
|
-
exports: [ReadonlyBehaviorDirective
|
|
3360
|
+
imports: [ReadonlyBehaviorDirective],
|
|
3361
|
+
exports: [ReadonlyBehaviorDirective]
|
|
4050
3362
|
}]
|
|
4051
3363
|
}] });
|
|
4052
3364
|
|
|
@@ -4201,29 +3513,6 @@ function setDisabledState(element, isDisabled, disabledClass, addDisabledClass)
|
|
|
4201
3513
|
|
|
4202
3514
|
const FDK_DISABLED_DIRECTIVE = new InjectionToken('Disabled directive token');
|
|
4203
3515
|
|
|
4204
|
-
class DeprecatedClickedDirective extends DeprecatedSelector {
|
|
4205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedClickedDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4206
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedClickedDirective, isStandalone: true, selector: "[fnClicked]", providers: [
|
|
4207
|
-
{
|
|
4208
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
4209
|
-
useValue: getDeprecatedModel('[fdkClicked]', '[fnClicked]')
|
|
4210
|
-
}
|
|
4211
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
4212
|
-
}
|
|
4213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedClickedDirective, decorators: [{
|
|
4214
|
-
type: Directive,
|
|
4215
|
-
args: [{
|
|
4216
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
4217
|
-
selector: '[fnClicked]',
|
|
4218
|
-
standalone: true,
|
|
4219
|
-
providers: [
|
|
4220
|
-
{
|
|
4221
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
4222
|
-
useValue: getDeprecatedModel('[fdkClicked]', '[fnClicked]')
|
|
4223
|
-
}
|
|
4224
|
-
]
|
|
4225
|
-
}]
|
|
4226
|
-
}] });
|
|
4227
3516
|
class ClickedDirective {
|
|
4228
3517
|
constructor() {
|
|
4229
3518
|
/**
|
|
@@ -4401,29 +3690,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
4401
3690
|
args: [EVENT_MANAGER_PLUGINS]
|
|
4402
3691
|
}] }]; } });
|
|
4403
3692
|
|
|
4404
|
-
class DeprecatedDisabledBehaviorDirective extends DeprecatedSelector {
|
|
4405
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedDisabledBehaviorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4406
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DeprecatedDisabledBehaviorDirective, isStandalone: true, selector: "[fnDisabled]", providers: [
|
|
4407
|
-
{
|
|
4408
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
4409
|
-
useValue: getDeprecatedModel('[fdkDisabled]', '[fnDisabled]')
|
|
4410
|
-
}
|
|
4411
|
-
], usesInheritance: true, ngImport: i0 }); }
|
|
4412
|
-
}
|
|
4413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DeprecatedDisabledBehaviorDirective, decorators: [{
|
|
4414
|
-
type: Directive,
|
|
4415
|
-
args: [{
|
|
4416
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
4417
|
-
selector: '[fnDisabled]',
|
|
4418
|
-
standalone: true,
|
|
4419
|
-
providers: [
|
|
4420
|
-
{
|
|
4421
|
-
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
4422
|
-
useValue: getDeprecatedModel('[fdkDisabled]', '[fnDisabled]')
|
|
4423
|
-
}
|
|
4424
|
-
]
|
|
4425
|
-
}]
|
|
4426
|
-
}] });
|
|
4427
3693
|
class DisabledBehaviorDirective extends ReplaySubject {
|
|
4428
3694
|
/** @hidden */
|
|
4429
3695
|
set fdkDisabled(value) {
|
|
@@ -4500,14 +3766,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
4500
3766
|
|
|
4501
3767
|
class DisabledBehaviorModule {
|
|
4502
3768
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DisabledBehaviorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4503
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: DisabledBehaviorModule, imports: [DisabledBehaviorDirective
|
|
3769
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: DisabledBehaviorModule, imports: [DisabledBehaviorDirective], exports: [DisabledBehaviorDirective] }); }
|
|
4504
3770
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DisabledBehaviorModule }); }
|
|
4505
3771
|
}
|
|
4506
3772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DisabledBehaviorModule, decorators: [{
|
|
4507
3773
|
type: NgModule,
|
|
4508
3774
|
args: [{
|
|
4509
|
-
imports: [DisabledBehaviorDirective
|
|
4510
|
-
exports: [DisabledBehaviorDirective
|
|
3775
|
+
imports: [DisabledBehaviorDirective],
|
|
3776
|
+
exports: [DisabledBehaviorDirective]
|
|
4511
3777
|
}]
|
|
4512
3778
|
}] });
|
|
4513
3779
|
|
|
@@ -5353,22 +4619,6 @@ class DndListDirective {
|
|
|
5353
4619
|
/** @hidden */
|
|
5354
4620
|
this._ignoreDrop = false;
|
|
5355
4621
|
}
|
|
5356
|
-
/**
|
|
5357
|
-
* @deprecated
|
|
5358
|
-
* Use `dropMode` property for better configuration.
|
|
5359
|
-
*
|
|
5360
|
-
* @description
|
|
5361
|
-
* When enabled, the Replace Indicator will appear on a whole element, instead of horizontal/vertical line before/after an element.
|
|
5362
|
-
*/
|
|
5363
|
-
set replaceMode(value) {
|
|
5364
|
-
warnOnce('`replaceMode` input is deprecated. Use `dropMode` property instead.');
|
|
5365
|
-
this._replaceMode = value;
|
|
5366
|
-
this.dropMode = value ? 'group' : 'shift';
|
|
5367
|
-
this._detectedDropMode = this.dropMode;
|
|
5368
|
-
}
|
|
5369
|
-
get replaceMode() {
|
|
5370
|
-
return this._replaceMode;
|
|
5371
|
-
}
|
|
5372
4622
|
/** Defines if drag and drop feature should be enabled for list items */
|
|
5373
4623
|
set draggable(draggable) {
|
|
5374
4624
|
this._draggable = draggable;
|
|
@@ -5609,7 +4859,7 @@ class DndListDirective {
|
|
|
5609
4859
|
}
|
|
5610
4860
|
}
|
|
5611
4861
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DndListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5612
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DndListDirective, selector: "[fdkDndList], [fd-dnd-list]", inputs: { gridMode: "gridMode", dropMode: "dropMode", threshold: "threshold",
|
|
4862
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", type: DndListDirective, selector: "[fdkDndList], [fd-dnd-list]", inputs: { gridMode: "gridMode", dropMode: "dropMode", threshold: "threshold", items: "items", draggable: "draggable", dropPredicate: "dropPredicate", dragoverPredicate: "dragoverPredicate" }, outputs: { dropPredicateCalculating: "dropPredicateCalculating", itemsChange: "itemsChange", itemDropped: "itemDropped", dropCancelled: "dropCancelled" }, host: { properties: { "class": "this._initialClass" } }, providers: [{ provide: DND_LIST, useExisting: forwardRef(() => DndListDirective) }], queries: [{ propertyName: "dndItems", predicate: DND_ITEM }], ngImport: i0 }); }
|
|
5613
4863
|
}
|
|
5614
4864
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DndListDirective, decorators: [{
|
|
5615
4865
|
type: Directive,
|
|
@@ -5623,8 +4873,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
5623
4873
|
type: Input
|
|
5624
4874
|
}], threshold: [{
|
|
5625
4875
|
type: Input
|
|
5626
|
-
}], replaceMode: [{
|
|
5627
|
-
type: Input
|
|
5628
4876
|
}], items: [{
|
|
5629
4877
|
type: Input
|
|
5630
4878
|
}], draggable: [{
|
|
@@ -5917,7 +5165,7 @@ class DndItemDirective {
|
|
|
5917
5165
|
this.elementRef.nativeElement.blur();
|
|
5918
5166
|
}));
|
|
5919
5167
|
}
|
|
5920
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DndItemDirective, deps: [{ token: i0.ElementRef }, { token: i1$
|
|
5168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DndItemDirective, deps: [{ token: i0.ElementRef }, { token: i1$3.DragDrop }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5921
5169
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.0", 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 }); }
|
|
5922
5170
|
}
|
|
5923
5171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DndItemDirective, decorators: [{
|
|
@@ -5926,7 +5174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
5926
5174
|
selector: '[fdkDndItem], [fd-dnd-item]',
|
|
5927
5175
|
providers: [DragDrop, { provide: DND_ITEM, useExisting: forwardRef(() => DndItemDirective) }]
|
|
5928
5176
|
}]
|
|
5929
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$
|
|
5177
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$3.DragDrop }, { type: i0.Renderer2 }]; }, propDecorators: { item: [{
|
|
5930
5178
|
type: Input,
|
|
5931
5179
|
args: ['fdkDndItem']
|
|
5932
5180
|
}], applyDragItemClass: [{
|
|
@@ -6162,7 +5410,7 @@ class UtilsModule {
|
|
|
6162
5410
|
InitialFocusModule,
|
|
6163
5411
|
BreakpointModule,
|
|
6164
5412
|
IntersectionSpyDirective] }); }
|
|
6165
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: UtilsModule, providers: [RtlService
|
|
5413
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: UtilsModule, providers: [RtlService], imports: [CommonModule,
|
|
6166
5414
|
FocusableItemModule,
|
|
6167
5415
|
FocusableListModule,
|
|
6168
5416
|
FocusableGridModule,
|
|
@@ -6245,7 +5493,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
6245
5493
|
BreakpointModule,
|
|
6246
5494
|
IntersectionSpyDirective
|
|
6247
5495
|
],
|
|
6248
|
-
providers: [RtlService
|
|
5496
|
+
providers: [RtlService]
|
|
6249
5497
|
}]
|
|
6250
5498
|
}] });
|
|
6251
5499
|
|
|
@@ -6254,6 +5502,39 @@ function coerceArraySafe(value) {
|
|
|
6254
5502
|
return isBlank(value) ? [] : coerceArray(value);
|
|
6255
5503
|
}
|
|
6256
5504
|
|
|
5505
|
+
const MOBILE_CONFIG_ERROR = `Missing configuration object for mobile version of the component.
|
|
5506
|
+
Consult the documentation on how to provide MobileModeConfiguration object for this component.
|
|
5507
|
+
`;
|
|
5508
|
+
const THEME_SWITCHER_ROUTER_MISSING_ERROR = `You need to import RouterModule to enable theme settings via the url.`;
|
|
5509
|
+
const INVALID_DATE_ERROR = 'Invalid Date';
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* Instead of `/\p{L}/u` because of it's not working in IE11 and Edge
|
|
5513
|
+
* - https://github.com/Microsoft/ChakraCore/issues/2969
|
|
5514
|
+
* */
|
|
5515
|
+
// eslint-disable-next-line max-len
|
|
5516
|
+
const LETTERS_UNICODE_RANGE = `[A-Za-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]`;
|
|
5517
|
+
// eslint-disable-next-line max-len
|
|
5518
|
+
const ANY_LANGUAGE_LETTERS_REGEX = new RegExp(LETTERS_UNICODE_RANGE, 'g');
|
|
5519
|
+
// eslint-disable-next-line max-len
|
|
5520
|
+
const ANY_LANGUAGE_LETTERS_GROUP_REGEX = new RegExp(`(${LETTERS_UNICODE_RANGE})+`, 'g');
|
|
5521
|
+
|
|
5522
|
+
/**
|
|
5523
|
+
* Polyfill for `/\p{Nd}/u` to work in IE11 and Edge
|
|
5524
|
+
*/
|
|
5525
|
+
// eslint-disable-next-line max-len
|
|
5526
|
+
const DECIMAL_NUMBER_UNICODE_RANGE = `[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]`;
|
|
5527
|
+
const DECIMAL_NUMBER_UNICODE_REGEX = new RegExp(DECIMAL_NUMBER_UNICODE_RANGE, 'g');
|
|
5528
|
+
const DECIMAL_NUMBER_UNICODE_GROUP_REGEX = new RegExp(`(${DECIMAL_NUMBER_UNICODE_RANGE})+`, 'g');
|
|
5529
|
+
|
|
5530
|
+
const OVERFLOW_PRIORITY_SCORE = new Map([
|
|
5531
|
+
['always', 0],
|
|
5532
|
+
['disappear', 1],
|
|
5533
|
+
['low', 2],
|
|
5534
|
+
['high', 3],
|
|
5535
|
+
['never', 4]
|
|
5536
|
+
]);
|
|
5537
|
+
|
|
6257
5538
|
const ELEMENT_REF_EXCEPTION = 'HasElementRef interface has to be implemented';
|
|
6258
5539
|
|
|
6259
5540
|
/**
|
|
@@ -6366,7 +5647,7 @@ class DynamicPortalComponent {
|
|
|
6366
5647
|
}
|
|
6367
5648
|
}
|
|
6368
5649
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DynamicPortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6369
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", 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$
|
|
5650
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", 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$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }] }); }
|
|
6370
5651
|
}
|
|
6371
5652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: DynamicPortalComponent, decorators: [{
|
|
6372
5653
|
type: Component,
|
|
@@ -6738,7 +6019,7 @@ class SafePipe {
|
|
|
6738
6019
|
throw new Error(`Invalid safe type specified: ${type}`);
|
|
6739
6020
|
}
|
|
6740
6021
|
}
|
|
6741
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SafePipe, deps: [{ token:
|
|
6022
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SafePipe, deps: [{ token: i1$5.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
6742
6023
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.0", ngImport: i0, type: SafePipe, isStandalone: true, name: "safe" }); }
|
|
6743
6024
|
}
|
|
6744
6025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SafePipe, decorators: [{
|
|
@@ -6747,7 +6028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImpor
|
|
|
6747
6028
|
name: 'safe',
|
|
6748
6029
|
standalone: true
|
|
6749
6030
|
}]
|
|
6750
|
-
}], ctorParameters: function () { return [{ type:
|
|
6031
|
+
}], ctorParameters: function () { return [{ type: i1$5.DomSanitizer }]; } });
|
|
6751
6032
|
|
|
6752
6033
|
class ValueByPathPipe {
|
|
6753
6034
|
/** Get value by path. */
|
|
@@ -6880,14 +6161,6 @@ class BaseToastService {
|
|
|
6880
6161
|
hasOpenMessageToasts() {
|
|
6881
6162
|
return this._toasts.length > 0;
|
|
6882
6163
|
}
|
|
6883
|
-
/**
|
|
6884
|
-
* @deprecated.
|
|
6885
|
-
* Use `hideAll()` method instead.
|
|
6886
|
-
*/
|
|
6887
|
-
dismissAll() {
|
|
6888
|
-
warnOnce('dismissAll() is deprecated. Use hideAll() instead.');
|
|
6889
|
-
this.hideAll();
|
|
6890
|
-
}
|
|
6891
6164
|
/**
|
|
6892
6165
|
* Sets new position strategy for all Toast items.
|
|
6893
6166
|
* @param newStrategy New Position Strategy
|
|
@@ -7112,12 +6385,12 @@ class BaseToastService {
|
|
|
7112
6385
|
_isBoundGlobalPosition(position) {
|
|
7113
6386
|
return !!position.boundTo;
|
|
7114
6387
|
}
|
|
7115
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: BaseToastService, deps: [{ token: i1$
|
|
6388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: BaseToastService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7116
6389
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: BaseToastService }); }
|
|
7117
6390
|
}
|
|
7118
6391
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: BaseToastService, decorators: [{
|
|
7119
6392
|
type: Injectable
|
|
7120
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
6393
|
+
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }]; } });
|
|
7121
6394
|
|
|
7122
6395
|
const toastConnectedTopPosition = {
|
|
7123
6396
|
originX: 'center',
|
|
@@ -7614,9 +6887,43 @@ class BaseToastDurationDismissibleConfig extends BaseToastConfig {
|
|
|
7614
6887
|
}
|
|
7615
6888
|
}
|
|
7616
6889
|
|
|
6890
|
+
/** @hidden */
|
|
6891
|
+
function getDeprecatedModel(current, deprecated) {
|
|
6892
|
+
return {
|
|
6893
|
+
current,
|
|
6894
|
+
deprecated
|
|
6895
|
+
};
|
|
6896
|
+
}
|
|
6897
|
+
/** @hidden */
|
|
6898
|
+
function deprecatedModelProvider(current, deprecated) {
|
|
6899
|
+
return {
|
|
6900
|
+
provide: FD_DEPRECATED_DIRECTIVE_SELECTOR,
|
|
6901
|
+
useValue: getDeprecatedModel(current, deprecated)
|
|
6902
|
+
};
|
|
6903
|
+
}
|
|
6904
|
+
const FD_DEPRECATED_DIRECTIVE_SELECTOR = new InjectionToken('FdDeprecatedDirectiveSelector');
|
|
6905
|
+
class DeprecatedSelector {
|
|
6906
|
+
/** @hidden */
|
|
6907
|
+
constructor() {
|
|
6908
|
+
/** @hidden */
|
|
6909
|
+
this._selectors = inject(FD_DEPRECATED_DIRECTIVE_SELECTOR, { optional: true });
|
|
6910
|
+
if (isDevMode() && this._selectors) {
|
|
6911
|
+
console.warn(this._messageGenerator(this._selectors.deprecated, this._selectors.current));
|
|
6912
|
+
}
|
|
6913
|
+
}
|
|
6914
|
+
/** @hidden */
|
|
6915
|
+
_messageGenerator(deprecated, current) {
|
|
6916
|
+
const segments = [`${deprecated} selector(s) are deprecated and may affect input properties`];
|
|
6917
|
+
if (current) {
|
|
6918
|
+
segments.push(`Use ${current} instead.`);
|
|
6919
|
+
}
|
|
6920
|
+
return segments.join('. ');
|
|
6921
|
+
}
|
|
6922
|
+
}
|
|
6923
|
+
|
|
7617
6924
|
/**
|
|
7618
6925
|
* Generated bundle index. Do not edit.
|
|
7619
6926
|
*/
|
|
7620
6927
|
|
|
7621
|
-
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,
|
|
6928
|
+
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, 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_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, 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, ToastBottomCenterPosition, ToastBottomLeftPosition, ToastBottomRightPosition, ToastTopCenterPosition, ToastTopLeftPosition, ToastTopRightPosition, TruncateDirective, TruncateModule, TruncatePipe, TwoDigitsPipe, UtilsModule, ValueByPathPipe, ValueStrategy, ViewportSizeObservable, alternateSetter, applyCssClass, applyCssStyle, baseToastAnimations, coerceArraySafe, coerceBoolean, coerceCssPixel, consumerProviderFactory, deprecatedModelProvider, destroyObservable, 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, pxToNum, resizeObservable, scrollIntoView, scrollTop, selectStrategy, setDisabledState, setReadonlyState, toNativeElement, toastConnectedBottomLeftPosition, toastConnectedBottomPosition, toastConnectedBottomRightPosition, toastConnectedTopLeftPosition, toastConnectedTopPosition, toastConnectedTopRightPosition, uuidv4, warnOnce };
|
|
7622
6929
|
//# sourceMappingURL=fundamental-ngx-cdk-utils.mjs.map
|