@porscheinformatik/clr-addons 21.11.0 → 21.11.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porscheinformatik/clr-addons",
3
- "version": "21.11.0",
3
+ "version": "21.11.2",
4
4
  "description": "Addon components for Clarity Angular",
5
5
  "homepage": "https://porscheinformatik.github.io/clarity-addons/",
6
6
  "keywords": [
@@ -2386,8 +2386,9 @@ declare class ClrDateFilterModule {
2386
2386
  declare const CLR_STRING_FILTER_DEBOUNCE_MS = 500;
2387
2387
  declare class ClrStringFilterComponent<T extends {
2388
2388
  [key: string]: any;
2389
- }> implements ClrDatagridFilterInterface<T>, OnDestroy {
2389
+ }> implements ClrDatagridFilterInterface<T>, OnDestroy, AfterViewInit {
2390
2390
  private commonStrings;
2391
+ private inputRef;
2391
2392
  private nestedProp;
2392
2393
  set property(value: string);
2393
2394
  get property(): string;
@@ -2402,7 +2403,10 @@ declare class ClrStringFilterComponent<T extends {
2402
2403
  private readonly inputChanges;
2403
2404
  private readonly _changes;
2404
2405
  private debounceSubscription;
2406
+ private openChangeSubscription;
2407
+ private isOpen;
2405
2408
  constructor(commonStrings: ClrCommonStringsService, filterContainer: ClrDatagridFilter);
2409
+ ngAfterViewInit(): void;
2406
2410
  onInput(value: string): void;
2407
2411
  isActive(): boolean;
2408
2412
  accepts(item: T): boolean;
@@ -2411,6 +2415,12 @@ declare class ClrStringFilterComponent<T extends {
2411
2415
  clearFilter(): void;
2412
2416
  equals(other: ClrDatagridFilterInterface<T, any>): boolean;
2413
2417
  ngOnDestroy(): void;
2418
+ /**
2419
+ * Focuses the filter input. Deferred to a microtask because the popover
2420
+ * content (and therefore the input element) isn't rendered yet when the
2421
+ * `openChange` event fires or during `ngAfterViewInit`.
2422
+ */
2423
+ private focusInput;
2414
2424
  /**
2415
2425
  * (Re)subscribes to the input debounce pipeline, discarding any pending
2416
2426
  * (not-yet-emitted) debounced keystroke so it can't overwrite a value that
@@ -2450,8 +2460,9 @@ declare const CLR_NUMERIC_FILTER_DEBOUNCE_MS = 500;
2450
2460
  type ClrNumericFilterSize = 'S' | 'M' | 'L';
2451
2461
  declare class ClrNumericFilterComponent<T extends {
2452
2462
  [key: string]: any;
2453
- }> implements ClrDatagridFilterInterface<T>, OnDestroy {
2463
+ }> implements ClrDatagridFilterInterface<T>, OnDestroy, AfterViewInit {
2454
2464
  private commonStrings;
2465
+ private lowInputElRef;
2455
2466
  private nestedProp;
2456
2467
  set property(value: string);
2457
2468
  get property(): string;
@@ -2480,7 +2491,10 @@ declare class ClrNumericFilterComponent<T extends {
2480
2491
  private readonly inputChanges;
2481
2492
  private readonly _changes;
2482
2493
  private debounceSubscription;
2494
+ private openChangeSubscription;
2495
+ private isOpen;
2483
2496
  constructor(commonStrings: ClrCommonStringsService, filterContainer: ClrDatagridFilter);
2497
+ ngAfterViewInit(): void;
2484
2498
  onLowInput(value: number | null): void;
2485
2499
  onHighInput(value: number | null): void;
2486
2500
  isActive(): boolean;
@@ -2490,6 +2504,12 @@ declare class ClrNumericFilterComponent<T extends {
2490
2504
  clearFilter(): void;
2491
2505
  equals(other: ClrDatagridFilterInterface<T, any>): boolean;
2492
2506
  ngOnDestroy(): void;
2507
+ /**
2508
+ * Focuses the low-value filter input. Deferred to a microtask because the
2509
+ * popover content (and therefore the input element) isn't rendered yet
2510
+ * when the `openChange` event fires or during `ngAfterViewInit`.
2511
+ */
2512
+ private focusInput;
2493
2513
  /**
2494
2514
  * (Re)subscribes to the input debounce pipeline, discarding any pending
2495
2515
  * (not-yet-emitted) debounced keystroke so it can't overwrite a value that