@rdlabo/ionic-angular-kit 22.0.0-1 → 22.0.0-3
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 +2 -0
- package/docs/forms.md +40 -0
- package/fesm2022/rdlabo-ionic-angular-kit-forms.mjs +57 -0
- package/fesm2022/rdlabo-ionic-angular-kit-forms.mjs.map +1 -0
- package/fesm2022/rdlabo-ionic-angular-kit.mjs +27 -28
- package/fesm2022/rdlabo-ionic-angular-kit.mjs.map +1 -1
- package/package.json +5 -1
- package/types/rdlabo-ionic-angular-kit-forms.d.ts +13 -0
- package/types/rdlabo-ionic-angular-kit.d.ts +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/ionic-angular-kit",
|
|
3
|
-
"version": "22.0.0-
|
|
3
|
+
"version": "22.0.0-3",
|
|
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,13 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class KitIonicFormField {
|
|
4
|
+
#private;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitIonicFormField, never>;
|
|
7
|
+
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>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** Adds Angular and Ionic validity state classes to Signal Forms controls. */
|
|
11
|
+
declare const provideKitIonicSignalForms: () => i0.Provider[];
|
|
12
|
+
|
|
13
|
+
export { KitIonicFormField, provideKitIonicSignalForms };
|
|
@@ -1726,15 +1726,18 @@ declare const objectEqual: (a: object, b: object) => boolean;
|
|
|
1726
1726
|
* controls always recover; handle errors inside `work` when the caller needs to react.
|
|
1727
1727
|
*
|
|
1728
1728
|
* @param event - The click or submit event that triggered the operation.
|
|
1729
|
-
* @param work - The
|
|
1730
|
-
*
|
|
1729
|
+
* @param work - The operation result. Promise-like work keeps controls disabled until it settles;
|
|
1730
|
+
* void work still shares this entry point and submit prevention without a synthetic async boundary.
|
|
1731
|
+
* @returns A Promise for asynchronous work, otherwise void.
|
|
1731
1732
|
* @example
|
|
1732
1733
|
* ```html
|
|
1733
1734
|
* <form #formRef (submit)="helper.disableHandler($event, save())"></form>
|
|
1734
1735
|
* <ion-button type="submit" [form]="formRef">Save</ion-button>
|
|
1735
1736
|
* ```
|
|
1736
1737
|
*/
|
|
1737
|
-
declare
|
|
1738
|
+
declare function disableHandler(event: Event, work: void): void;
|
|
1739
|
+
declare function disableHandler(event: Event, work: PromiseLike<unknown>): Promise<void>;
|
|
1740
|
+
declare function disableHandler(event: Event, work: void | PromiseLike<unknown>): void | Promise<void>;
|
|
1738
1741
|
|
|
1739
1742
|
/**
|
|
1740
1743
|
* Toggle the `disabled` flag of a signal-held `ion-infinite-scroll` / `ion-refresher` element.
|