@ng-modular-forms/core 0.7.9 → 0.8.1

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.
@@ -1,6 +1,6 @@
1
- import { FormControlBase } from '../base/form-control-base';
2
- import { CurrencyBehavior } from '../behavior/currency.behavior';
3
- import { TextBehavior } from '../behavior/text.behavior';
1
+ import { FormControlBase } from '../../base/form-control-base';
2
+ import { TextBehavior } from '../../behavior/text/text.behavior';
3
+ import { CurrencyBehavior } from '../../behavior/currency/currency.behavior';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class InputNumberComponent extends FormControlBase<string | number | null> {
6
6
  formatValue: import("@angular/core").InputSignal<boolean>;
@@ -1,14 +1,15 @@
1
- import { FormControlBase } from '../base/form-control-base';
1
+ import { FormControlBase } from '../../base/form-control-base';
2
2
  import * as i0 from "@angular/core";
3
3
  export interface SelectOption {
4
- key: string | number;
4
+ value: string | number;
5
5
  label: string | number;
6
6
  disabled?: boolean;
7
7
  }
8
8
  export declare class InputSelectComponent extends FormControlBase<string | number | null> {
9
9
  options: import("@angular/core").InputSignal<SelectOption[]>;
10
10
  emptyOptionLabel: import("@angular/core").InputSignal<string>;
11
- clearOptionLabel: import("@angular/core").InputSignal<string | null>;
11
+ allowEmptyOptionSelection: import("@angular/core").InputSignal<boolean>;
12
+ handleChange(event: Event): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputSelectComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "nmf-select", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "emptyOptionLabel": { "alias": "emptyOptionLabel"; "required": false; "isSignal": true; }; "clearOptionLabel": { "alias": "clearOptionLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputSelectComponent, "nmf-select", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "emptyOptionLabel": { "alias": "emptyOptionLabel"; "required": false; "isSignal": true; }; "allowEmptyOptionSelection": { "alias": "allowEmptyOptionSelection"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
15
  }
@@ -1,10 +1,11 @@
1
- import { FormControlBase } from '../base/form-control-base';
2
- import { TextBehavior } from '../behavior/text.behavior';
1
+ import { FormControlBase } from '../../base/form-control-base';
2
+ import { TextBehavior } from '../../behavior/text/text.behavior';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class InputTextComponent extends FormControlBase<string | number | null> {
5
5
  type: import("@angular/core").InputSignal<"number" | "email" | "search" | "text" | "tel" | "url" | "password">;
6
6
  behavior: TextBehavior;
7
7
  computedType: import("@angular/core").Signal<"number" | "email" | "search" | "text" | "tel" | "url" | "password">;
8
+ onInput(event: Event): void;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
9
10
  static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "nmf-text", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
10
11
  }
@@ -1,8 +1,9 @@
1
- import { FormControlBase } from '../base/form-control-base';
1
+ import { FormControlBase } from '../../base/form-control-base';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class InputTextareaComponent extends FormControlBase<string | null> {
4
4
  rows: import("@angular/core").InputSignal<number>;
5
5
  cols: import("@angular/core").InputSignal<number>;
6
+ onInput(event: Event): void;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
7
8
  static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "nmf-textarea", never, { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "cols": { "alias": "cols"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
9
  }
@@ -1,4 +1,4 @@
1
- import { FormControlBase } from '../base/form-control-base';
1
+ import { FormControlBase } from '../../base/form-control-base';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class InputTimepickerComponent extends FormControlBase<Date | null> {
4
4
  step: import("@angular/core").InputSignal<number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-modular-forms/core",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "description": "Composable Angular reactive form primitives, custom controls, and Material-compatible components for building enterprise-ready, complex typed forms.",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -1,15 +1,18 @@
1
1
  export * from './lib/base/form-control-base';
2
2
  export * from './lib/base/form-handler-base';
3
3
  export * from './lib/base/form-mapper-base';
4
- export * from './lib/behavior/currency.behavior';
5
- export * from './lib/behavior/text.behavior';
6
- export * from './lib/input/input-currency.component';
7
- export * from './lib/input/input-datepicker.component';
8
- export * from './lib/input/input-number.component';
9
- export * from './lib/input/input-select.component';
10
- export * from './lib/input/input-text.component';
11
- export * from './lib/input/input-textarea.component';
12
- export * from './lib/input/input-timepicker.component';
4
+ export * from './lib/behavior/currency/currency.behavior';
5
+ export * from './lib/behavior/lookup/lookup.behavior';
6
+ export * from './lib/behavior/text/text.behavior';
7
+ export * from './lib/controls/currency/currency.component';
8
+ export * from './lib/controls/datepicker/datepicker.component';
9
+ export * from './lib/controls/lookup/lookup.component';
10
+ export * from './lib/controls/lookup/lookup.types';
11
+ export * from './lib/controls/number/number.component';
12
+ export * from './lib/controls/select/select.component';
13
+ export * from './lib/controls/text/text.component';
14
+ export * from './lib/controls/textarea/textarea.component';
15
+ export * from './lib/controls/timepicker/timepicker.component';
13
16
  export * from './lib/form-hydrator';
14
17
  export * from './lib/form-orchestrator';
15
18
  export * from './lib/form-serializer';