@rdlabo/ionic-angular-kit 22.0.0-2 → 22.0.0-4

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/README.md CHANGED
@@ -25,6 +25,7 @@ Install `@ionic/storage-angular` when using storage. Other peers are feature-sco
25
25
  | `@rdlabo/ionic-angular-kit` | Storage, overlays, guards, HTTP, realtime, directives, keyboard, and utilities |
26
26
  | `@rdlabo/ionic-angular-kit/offline` | Scoped local replica, outbox, pull, replay, and request policies |
27
27
  | `@rdlabo/ionic-angular-kit/theme` | Persisted light/dark theme and native status bar sync |
28
+ | `@rdlabo/ionic-angular-kit/forms` | Ionic error text and state classes for Angular Signal Forms |
28
29
  | `@rdlabo/ionic-angular-kit/review` | Throttled native in-app review requests |
29
30
  | `@rdlabo/ionic-angular-kit/printer` | DOM-to-PNG, Brother label, and PDF helpers |
30
31
  | `@rdlabo/ionic-angular-kit/auth-firebase` | Firebase dependency wiring and authentication flows |
@@ -42,6 +43,7 @@ Most features expose a provider whose callbacks keep routes, copy, credentials,
42
43
  - [Authentication and HTTP](./docs/auth-http.md)
43
44
  - [Offline and Realtime](./docs/offline-realtime.md)
44
45
  - [Optional Features](./docs/optional-features.md)
46
+ - [Ionic Signal Forms](./docs/forms.md)
45
47
 
46
48
  <!-- rdlabo-docs-omit -->
47
49
  **Full documentation:** [https://docs.rdlabo.dev/projects/ionic-angular-kit](https://docs.rdlabo.dev/projects/ionic-angular-kit)
package/docs/forms.md ADDED
@@ -0,0 +1,66 @@
1
+ # Ionic Signal Forms
2
+
3
+ This entry point targets Angular 22 Signal Forms.
4
+
5
+ Import Angular's `FormField` together with the kit adapter in each standalone component that binds Signal Forms to Ionic controls.
6
+
7
+ ```ts
8
+ import { FormField } from '@angular/forms/signals';
9
+ import { KitIonicFormField } from '@rdlabo/ionic-angular-kit/forms';
10
+
11
+ @Component({
12
+ imports: [FormField, KitIonicFormField],
13
+ })
14
+ export class ProfilePage {}
15
+ ```
16
+
17
+ The adapter copies the first non-empty explicit validation message to Ionic's `errorText` property for `ion-input`, `ion-textarea`, `ion-select`, `ion-checkbox`, `ion-radio-group`, and `ion-toggle`. When Angular's validator does not provide a message, the adapter derives a generic English message from the validation error `kind` and its constraint metadata. Built-in validators therefore need no message configuration:
18
+
19
+ ```ts
20
+ readonly profileForm = form(this.profile, (path) => {
21
+ required(path.name);
22
+ email(path.email);
23
+ maxLength(path.name, 200);
24
+ });
25
+ ```
26
+
27
+ Unknown custom error kinds fall back to `Enter a valid value.`. Keep business-rule failures outside field validation. An explicit validation message still takes precedence for compatibility, and an explicit `errorText` or `[errorText]` binding prevents the adapter from being instantiated.
28
+
29
+ Applications may replace the fallback resolver for localization without changing validator definitions:
30
+
31
+ ```ts
32
+ import type { ValidationError } from '@angular/forms/signals';
33
+ import { KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER } from '@rdlabo/ionic-angular-kit/forms';
34
+
35
+ export const appConfig: ApplicationConfig = {
36
+ providers: [
37
+ {
38
+ provide: KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER,
39
+ useValue: (error: ValidationError) => localizedMessageFor(error),
40
+ },
41
+ ],
42
+ };
43
+ ```
44
+
45
+ Install the state-class configuration once at application bootstrap:
46
+
47
+ ```ts
48
+ import { provideKitIonicSignalForms } from '@rdlabo/ionic-angular-kit/forms';
49
+
50
+ export const appConfig: ApplicationConfig = {
51
+ providers: [provideKitIonicSignalForms()],
52
+ };
53
+ ```
54
+
55
+ Angular does not merge multiple `provideSignalFormsConfig` class configurations. If the application provides its own configuration, combine all required class mappings in one provider instead of registering both providers and relying on their order.
56
+
57
+ When using `@rdlabo/eslint-plugin-rules`, enable its adapter-aware mode only after every relevant standalone component has imported the adapter:
58
+
59
+ ```js
60
+ {
61
+ files: ['**/*.html'],
62
+ rules: {
63
+ '@rdlabo/rules/require-ion-error-text': ['error', { formFieldProvidesErrorText: true }],
64
+ },
65
+ }
66
+ ```
@@ -0,0 +1,97 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, ElementRef, Renderer2, effect, Directive } from '@angular/core';
3
+ import { FORM_FIELD, provideSignalFormsConfig } from '@angular/forms/signals';
4
+
5
+ const formatDate = (value) => (Number.isNaN(value.getTime()) ? 'a valid date' : value.toISOString().slice(0, 10));
6
+ /** Resolves Angular Signal Forms built-in validation errors to generic English messages. */
7
+ const kitDefaultSignalFormErrorMessage = (error) => {
8
+ switch (error.kind) {
9
+ case 'required':
10
+ return 'This field is required.';
11
+ case 'email':
12
+ return 'Enter a valid email address.';
13
+ case 'min':
14
+ return `Enter a value of at least ${error.min}.`;
15
+ case 'max':
16
+ return `Enter a value of no more than ${error.max}.`;
17
+ case 'minLength':
18
+ return `Enter at least ${error.minLength} characters.`;
19
+ case 'maxLength':
20
+ return `Enter no more than ${error.maxLength} characters.`;
21
+ case 'minDate':
22
+ return `Enter a date on or after ${formatDate(error.minDate)}.`;
23
+ case 'maxDate':
24
+ return `Enter a date on or before ${formatDate(error.maxDate)}.`;
25
+ case 'pattern':
26
+ return 'Enter a value in the required format.';
27
+ case 'parse':
28
+ return 'Enter a valid value.';
29
+ default:
30
+ return 'Enter a valid value.';
31
+ }
32
+ };
33
+ /** Override to localize or otherwise customize Signal Forms fallback messages. */
34
+ const KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER = new InjectionToken('KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER', {
35
+ providedIn: 'root',
36
+ factory: () => kitDefaultSignalFormErrorMessage,
37
+ });
38
+
39
+ class KitIonicFormField {
40
+ #field = inject(FORM_FIELD, { self: true });
41
+ #element = inject((ElementRef));
42
+ #renderer = inject(Renderer2);
43
+ #resolveErrorMessage = inject(KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER);
44
+ constructor() {
45
+ effect(() => {
46
+ const message = this.#field
47
+ .errors()
48
+ .map((error) => {
49
+ if (typeof error.message === 'string' && error.message.trim().length > 0) {
50
+ return error.message;
51
+ }
52
+ return this.#resolveErrorMessage(error);
53
+ })
54
+ .find((candidate) => typeof candidate === 'string' && candidate.trim().length > 0);
55
+ this.#renderer.setProperty(this.#element.nativeElement, 'errorText', message);
56
+ });
57
+ }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: KitIonicFormField, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
59
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: KitIonicFormField, isStandalone: true, selector: "\n ion-input[formField]:not([errorText]),\n ion-textarea[formField]:not([errorText]),\n ion-select[formField]:not([errorText]),\n ion-checkbox[formField]:not([errorText]),\n ion-radio-group[formField]:not([errorText]),\n ion-toggle[formField]:not([errorText])\n ", ngImport: i0 }); }
60
+ }
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: KitIonicFormField, decorators: [{
62
+ type: Directive,
63
+ args: [{
64
+ // Angular's FormField owns [formField]. This sibling directive only adapts its validation message to Ionic.
65
+ selector: `
66
+ ion-input[formField]:not([errorText]),
67
+ ion-textarea[formField]:not([errorText]),
68
+ ion-select[formField]:not([errorText]),
69
+ ion-checkbox[formField]:not([errorText]),
70
+ ion-radio-group[formField]:not([errorText]),
71
+ ion-toggle[formField]:not([errorText])
72
+ `,
73
+ }]
74
+ }], ctorParameters: () => [] });
75
+
76
+ /** Adds Angular and Ionic validity state classes to Signal Forms controls. */
77
+ const provideKitIonicSignalForms = () => provideSignalFormsConfig({
78
+ classes: {
79
+ 'ng-dirty': ({ state }) => state().dirty(),
80
+ 'ng-invalid': ({ state }) => state().invalid(),
81
+ 'ng-pending': ({ state }) => state().pending(),
82
+ 'ng-pristine': ({ state }) => !state().dirty(),
83
+ 'ng-touched': ({ state }) => state().touched(),
84
+ 'ng-untouched': ({ state }) => !state().touched(),
85
+ 'ng-valid': ({ state }) => state().valid(),
86
+ 'ion-invalid': ({ state }) => state().invalid(),
87
+ 'ion-touched': ({ state }) => state().touched(),
88
+ 'ion-valid': ({ state }) => state().valid(),
89
+ },
90
+ });
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER, KitIonicFormField, kitDefaultSignalFormErrorMessage, provideKitIonicSignalForms };
97
+ //# sourceMappingURL=rdlabo-ionic-angular-kit-forms.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rdlabo-ionic-angular-kit-forms.mjs","sources":["../../../projects/kit/forms/src/kit-signal-form-error-message.ts","../../../projects/kit/forms/src/kit-ionic-form-field.ts","../../../projects/kit/forms/src/provide-kit-ionic-signal-forms.ts","../../../projects/kit/forms/src/rdlabo-ionic-angular-kit-forms.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport type {\n MaxLengthValidationError,\n MaxValidationError,\n MinLengthValidationError,\n MinValidationError,\n ValidationError,\n} from '@angular/forms/signals';\n\nexport type KitSignalFormErrorMessageResolver = (error: ValidationError) => string | undefined;\n\nconst formatDate = (value: Date): string => (Number.isNaN(value.getTime()) ? 'a valid date' : value.toISOString().slice(0, 10));\n\n/** Resolves Angular Signal Forms built-in validation errors to generic English messages. */\nexport const kitDefaultSignalFormErrorMessage: KitSignalFormErrorMessageResolver = (error) => {\n switch (error.kind) {\n case 'required':\n return 'This field is required.';\n case 'email':\n return 'Enter a valid email address.';\n case 'min':\n return `Enter a value of at least ${(error as MinValidationError).min}.`;\n case 'max':\n return `Enter a value of no more than ${(error as MaxValidationError).max}.`;\n case 'minLength':\n return `Enter at least ${(error as MinLengthValidationError).minLength} characters.`;\n case 'maxLength':\n return `Enter no more than ${(error as MaxLengthValidationError).maxLength} characters.`;\n case 'minDate':\n return `Enter a date on or after ${formatDate((error as ValidationError & { minDate: Date }).minDate)}.`;\n case 'maxDate':\n return `Enter a date on or before ${formatDate((error as ValidationError & { maxDate: Date }).maxDate)}.`;\n case 'pattern':\n return 'Enter a value in the required format.';\n case 'parse':\n return 'Enter a valid value.';\n default:\n return 'Enter a valid value.';\n }\n};\n\n/** Override to localize or otherwise customize Signal Forms fallback messages. */\nexport const KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER = new InjectionToken<KitSignalFormErrorMessageResolver>(\n 'KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER',\n {\n providedIn: 'root',\n factory: () => kitDefaultSignalFormErrorMessage,\n },\n);\n","import { Directive, effect, ElementRef, inject, Renderer2 } from '@angular/core';\nimport { FORM_FIELD } from '@angular/forms/signals';\nimport { KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER } from './kit-signal-form-error-message';\n\n@Directive({\n // Angular's FormField owns [formField]. This sibling directive only adapts its validation message to Ionic.\n selector: `\n ion-input[formField]:not([errorText]),\n ion-textarea[formField]:not([errorText]),\n ion-select[formField]:not([errorText]),\n ion-checkbox[formField]:not([errorText]),\n ion-radio-group[formField]:not([errorText]),\n ion-toggle[formField]:not([errorText])\n `,\n})\nexport class KitIonicFormField {\n readonly #field = inject(FORM_FIELD, { self: true });\n readonly #element = inject(ElementRef<HTMLElement>);\n readonly #renderer = inject(Renderer2);\n readonly #resolveErrorMessage = inject(KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER);\n\n constructor() {\n effect(() => {\n const message = this.#field\n .errors()\n .map((error) => {\n if (typeof error.message === 'string' && error.message.trim().length > 0) {\n return error.message;\n }\n return this.#resolveErrorMessage(error);\n })\n .find((candidate): candidate is string => typeof candidate === 'string' && candidate.trim().length > 0);\n this.#renderer.setProperty(this.#element.nativeElement, 'errorText', message);\n });\n }\n}\n","import { provideSignalFormsConfig } from '@angular/forms/signals';\n\n/** Adds Angular and Ionic validity state classes to Signal Forms controls. */\nexport const provideKitIonicSignalForms = () =>\n provideSignalFormsConfig({\n classes: {\n 'ng-dirty': ({ state }) => state().dirty(),\n 'ng-invalid': ({ state }) => state().invalid(),\n 'ng-pending': ({ state }) => state().pending(),\n 'ng-pristine': ({ state }) => !state().dirty(),\n 'ng-touched': ({ state }) => state().touched(),\n 'ng-untouched': ({ state }) => !state().touched(),\n 'ng-valid': ({ state }) => state().valid(),\n 'ion-invalid': ({ state }) => state().invalid(),\n 'ion-touched': ({ state }) => state().touched(),\n 'ion-valid': ({ state }) => state().valid(),\n },\n });\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAWA,MAAM,UAAU,GAAG,CAAC,KAAW,MAAc,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,cAAc,GAAG,KAAK,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAE/H;AACO,MAAM,gCAAgC,GAAsC,CAAC,KAAK,KAAI;AAC3F,IAAA,QAAQ,KAAK,CAAC,IAAI;AAChB,QAAA,KAAK,UAAU;AACb,YAAA,OAAO,yBAAyB;AAClC,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,8BAA8B;AACvC,QAAA,KAAK,KAAK;AACR,YAAA,OAAO,CAAA,0BAAA,EAA8B,KAA4B,CAAC,GAAG,GAAG;AAC1E,QAAA,KAAK,KAAK;AACR,YAAA,OAAO,CAAA,8BAAA,EAAkC,KAA4B,CAAC,GAAG,GAAG;AAC9E,QAAA,KAAK,WAAW;AACd,YAAA,OAAO,CAAA,eAAA,EAAmB,KAAkC,CAAC,SAAS,cAAc;AACtF,QAAA,KAAK,WAAW;AACd,YAAA,OAAO,CAAA,mBAAA,EAAuB,KAAkC,CAAC,SAAS,cAAc;AAC1F,QAAA,KAAK,SAAS;YACZ,OAAO,CAAA,yBAAA,EAA4B,UAAU,CAAE,KAA6C,CAAC,OAAO,CAAC,GAAG;AAC1G,QAAA,KAAK,SAAS;YACZ,OAAO,CAAA,0BAAA,EAA6B,UAAU,CAAE,KAA6C,CAAC,OAAO,CAAC,GAAG;AAC3G,QAAA,KAAK,SAAS;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EAAE;AAC5C,KAAA;AACF,CAAA;;ACjBH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "22.0.0-2",
3
+ "version": "22.0.0-4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-dev/ionic-angular-library.git"
@@ -92,6 +92,10 @@
92
92
  "types": "./types/rdlabo-ionic-angular-kit-auth-firebase-social.d.ts",
93
93
  "default": "./fesm2022/rdlabo-ionic-angular-kit-auth-firebase-social.mjs"
94
94
  },
95
+ "./forms": {
96
+ "types": "./types/rdlabo-ionic-angular-kit-forms.d.ts",
97
+ "default": "./fesm2022/rdlabo-ionic-angular-kit-forms.mjs"
98
+ },
95
99
  "./live-update": {
96
100
  "types": "./types/rdlabo-ionic-angular-kit-live-update.d.ts",
97
101
  "default": "./fesm2022/rdlabo-ionic-angular-kit-live-update.mjs"
@@ -0,0 +1,22 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
3
+ import { ValidationError } from '@angular/forms/signals';
4
+
5
+ declare class KitIonicFormField {
6
+ #private;
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitIonicFormField, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KitIonicFormField, " ion-input[formField]:not([errorText]), ion-textarea[formField]:not([errorText]), ion-select[formField]:not([errorText]), ion-checkbox[formField]:not([errorText]), ion-radio-group[formField]:not([errorText]), ion-toggle[formField]:not([errorText]) ", never, {}, {}, never, never, true, never>;
10
+ }
11
+
12
+ type KitSignalFormErrorMessageResolver = (error: ValidationError) => string | undefined;
13
+ /** Resolves Angular Signal Forms built-in validation errors to generic English messages. */
14
+ declare const kitDefaultSignalFormErrorMessage: KitSignalFormErrorMessageResolver;
15
+ /** Override to localize or otherwise customize Signal Forms fallback messages. */
16
+ declare const KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER: InjectionToken<KitSignalFormErrorMessageResolver>;
17
+
18
+ /** Adds Angular and Ionic validity state classes to Signal Forms controls. */
19
+ declare const provideKitIonicSignalForms: () => i0.Provider[];
20
+
21
+ export { KIT_SIGNAL_FORM_ERROR_MESSAGE_RESOLVER, KitIonicFormField, kitDefaultSignalFormErrorMessage, provideKitIonicSignalForms };
22
+ export type { KitSignalFormErrorMessageResolver };