@koobiq/components 19.8.4 → 19.8.5

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.
@@ -0,0 +1,42 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormControl } from '@angular/forms';
3
+ import { KbqInput } from '@koobiq/components/input';
4
+ import { KbqBasePipe } from './base-pipe';
5
+ import * as i0 from "@angular/core";
6
+ export declare class KbqPipeInputComponent extends KbqBasePipe<string | null> implements OnInit {
7
+ /** @docs-private */
8
+ protected readonly input: import("@angular/core").Signal<KbqInput>;
9
+ /**
10
+ * Input control.
11
+ *
12
+ * Must stay nullable: `reset()` — all `KbqFormField.clearValue()` and its Escape handler ever call —
13
+ * resolves to `defaultValue`, which is `null` only while `nonNullable` is unset. `{ nonNullable: true }`
14
+ * would make `reset()` yield `''` and silently break the cleaner bridge below.
15
+ */
16
+ readonly control: FormControl<string | null>;
17
+ /**
18
+ * Debounce in milliseconds between the last keystroke and the typed value being applied to the filter.
19
+ * Matches `defaultEmitValueTimeout` of `kbq-search-expandable`, so both search fields of a bar feel the
20
+ * same. `Enter` and blur apply immediately and cancel a pending apply.
21
+ */
22
+ debounceTime: number;
23
+ /**
24
+ * Minimum number of characters before typing applies the value to the filter. Anything shorter —
25
+ * including an emptied field — is applied as `null`, so the filter never keeps text the user has
26
+ * already erased. `Enter` and blur ignore the threshold. Set to `0` to apply every keystroke.
27
+ */
28
+ minLength: number;
29
+ /** Cancels a pending debounced apply once the value has been applied (or cleared) through another path. */
30
+ private readonly cancelPendingApply;
31
+ /** Whether the current pipe is empty. Used for apply style modifier */
32
+ get isEmpty(): boolean;
33
+ ngOnInit(): void;
34
+ /** clears the pipe and triggers changes */
35
+ onClear(): void;
36
+ /** focuses the input */
37
+ open(): void;
38
+ /** Commits a value to `data` and notifies the filter-bar. */
39
+ private commit;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqPipeInputComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqPipeInputComponent, "kbq-pipe-input", never, {}, {}, never, never, true, never>;
42
+ }
@@ -0,0 +1,10 @@
1
+ .kbq-pipe.kbq-pipe__input {
2
+ // Fall back like base-pipe.scss does for --kbq-filter-bar-pipe-max-width: the token is declared on
3
+ // .kbq-filter-bar, which a pipe rendered outside a bar never sees.
4
+ width: var(--kbq-filter-bar-pipe-input-width, 240px);
5
+ flex: none;
6
+
7
+ .kbq-form-field {
8
+ width: 100%;
9
+ }
10
+ }
@@ -12,6 +12,7 @@ export * from './pipes/base-pipe';
12
12
  export * from './pipes/pipe-button';
13
13
  export * from './pipes/pipe-date';
14
14
  export * from './pipes/pipe-datetime';
15
+ export * from './pipes/pipe-input';
15
16
  export * from './pipes/pipe-multi-select';
16
17
  export * from './pipes/pipe-readonly';
17
18
  export * from './pipes/pipe-select';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koobiq/components",
3
- "version": "19.8.4",
3
+ "version": "19.8.5",
4
4
  "description": "koobiq",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,9 +25,9 @@
25
25
  "@angular/cdk": ">=19.0.0",
26
26
  "@angular/core": ">=19.0.0",
27
27
  "@angular/forms": ">=19.0.0",
28
- "@koobiq/cdk": "19.8.4",
29
- "@koobiq/angular-moment-adapter": "19.8.4",
30
- "@koobiq/angular-luxon-adapter": "19.8.4",
28
+ "@koobiq/cdk": "19.8.5",
29
+ "@koobiq/angular-moment-adapter": "19.8.5",
30
+ "@koobiq/angular-luxon-adapter": "19.8.5",
31
31
  "@koobiq/date-formatter": "^3.2.3",
32
32
  "@koobiq/icons": "^11.1.3",
33
33
  "@koobiq/design-tokens": "^3.14.0"
@@ -27,8 +27,8 @@ function ngAdd(options) {
27
27
  }
28
28
  // Installing dependencies
29
29
  utils_packageConfig.addPackageToPackageJson(tree, '@angular/cdk', "^19.2.19");
30
- utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^19.8.4");
31
- utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^19.8.4");
30
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/cdk', "^19.8.5");
31
+ utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/angular-luxon-adapter', "^19.8.5");
32
32
  utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-formatter', "^3.5.1");
33
33
  utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/date-adapter', "^3.5.1");
34
34
  utils_packageConfig.addPackageToPackageJson(tree, '@koobiq/icons', "^11.5.0");