@ng-forge/dynamic-forms-ionic 1.3.0-next.1 → 1.3.0-next.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 +0 -2
- package/fesm2022/ng-forge-dynamic-forms-ionic-ionic-field-errors-wrapper.component-bXoq9uY6.mjs +64 -0
- package/fesm2022/ng-forge-dynamic-forms-ionic-ionic-field-errors-wrapper.component-bXoq9uY6.mjs.map +1 -0
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-addon-button.mjs +129 -34
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-addon-button.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-addon-icon.mjs +118 -35
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-addon-icon.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-button.mjs +113 -33
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-button.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-checkbox.mjs +124 -24
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-checkbox.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-datepicker.mjs +374 -90
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-datepicker.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-input.mjs +262 -126
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-input.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-multi-checkbox.mjs +191 -64
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-multi-checkbox.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-radio.mjs +178 -27
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-radio.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-select.mjs +163 -27
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-select.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-slider.mjs +144 -27
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-slider.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-textarea.mjs +157 -45
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-textarea.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-toggle.mjs +386 -75
- package/fesm2022/ng-forge-dynamic-forms-ionic-lazy-toggle.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic-shared.mjs +139 -62
- package/fesm2022/ng-forge-dynamic-forms-ionic-shared.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-ionic.mjs +238 -251
- package/fesm2022/ng-forge-dynamic-forms-ionic.mjs.map +1 -1
- package/package.json +2 -3
- package/types/ng-forge-dynamic-forms-ionic-lazy-addon-button.d.ts +28 -28
- package/types/ng-forge-dynamic-forms-ionic-lazy-addon-icon.d.ts +24 -17
- package/types/ng-forge-dynamic-forms-ionic-lazy-button.d.ts +92 -86
- package/types/ng-forge-dynamic-forms-ionic-lazy-checkbox.d.ts +24 -18
- package/types/ng-forge-dynamic-forms-ionic-lazy-datepicker.d.ts +59 -34
- package/types/ng-forge-dynamic-forms-ionic-lazy-input.d.ts +69 -57
- package/types/ng-forge-dynamic-forms-ionic-lazy-multi-checkbox.d.ts +34 -23
- package/types/ng-forge-dynamic-forms-ionic-lazy-radio.d.ts +31 -20
- package/types/ng-forge-dynamic-forms-ionic-lazy-select.d.ts +37 -26
- package/types/ng-forge-dynamic-forms-ionic-lazy-slider.d.ts +53 -38
- package/types/ng-forge-dynamic-forms-ionic-lazy-textarea.d.ts +29 -23
- package/types/ng-forge-dynamic-forms-ionic-lazy-toggle.d.ts +119 -55
- package/types/ng-forge-dynamic-forms-ionic-shared.d.ts +78 -83
- package/types/ng-forge-dynamic-forms-ionic.d.ts +243 -266
- package/fesm2022/ng-forge-dynamic-forms-ionic-ionic-field-errors-wrapper.component-CN0CagvT.mjs +0 -26
- package/fesm2022/ng-forge-dynamic-forms-ionic-ionic-field-errors-wrapper.component-CN0CagvT.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-forge/dynamic-forms-ionic",
|
|
3
|
-
"version": "1.3.0-next.
|
|
3
|
+
"version": "1.3.0-next.3",
|
|
4
4
|
"description": "Ionic integration for @ng-forge/dynamic-forms. Pre-built Ionic form components for mobile and desktop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -95,12 +95,11 @@
|
|
|
95
95
|
"@angular/core": "^22.0.0",
|
|
96
96
|
"@angular/forms": "^22.0.0",
|
|
97
97
|
"@ionic/angular": ">=8.0.0",
|
|
98
|
-
"@ng-forge/dynamic-forms": "~1.3.0-next.
|
|
98
|
+
"@ng-forge/dynamic-forms": "~1.3.0-next.3",
|
|
99
99
|
"rxjs": ">=7.0.0"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"ngxtension": ">=4.0.0",
|
|
103
|
-
"date-fns": "^4.0.0",
|
|
104
103
|
"tslib": "^2.3.0"
|
|
105
104
|
},
|
|
106
105
|
"module": "fesm2022/ng-forge-dynamic-forms-ionic.mjs",
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { IonicButtonAddon } from '@ng-forge/dynamic-forms-ionic/shared';
|
|
5
|
-
|
|
1
|
+
import { IonicButtonAddon } from "@ng-forge/dynamic-forms-ionic/shared";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
6
4
|
/** Renderer for the `ion-button` addon type. */
|
|
7
|
-
declare class IonicButtonAddonComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
5
|
+
export declare class IonicButtonAddonComponent {
|
|
6
|
+
protected readonly action: import("@ng-forge/dynamic-forms/integration").TypedNgForgeAddonAction<IonicButtonAddon>;
|
|
7
|
+
/** Re-exposed for template binding — same signal stored on the directive. */
|
|
8
|
+
protected readonly addon: import("@angular/core").Signal<IonicButtonAddon>;
|
|
9
|
+
protected readonly label: import("@angular/core").Signal<import("@ng-forge/dynamic-forms").DynamicText | undefined>;
|
|
10
|
+
protected readonly ariaLabel: import("@angular/core").Signal<import("@ng-forge/dynamic-forms").DynamicText | undefined>;
|
|
11
|
+
protected readonly icon: import("@angular/core").Signal<string | undefined>;
|
|
12
|
+
/** Default color is undefined so the button inherits the theme's text color
|
|
13
|
+
* (Ionic's `medium` would force low-contrast grey, which fails WCAG on dark
|
|
14
|
+
* surfaces). Consumers can still set `color: 'primary' | 'success' | ...`
|
|
15
|
+
* explicitly when they want adapter-styled coloring. */
|
|
16
|
+
protected readonly color: import("@angular/core").Signal<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium" | "dark" | undefined>;
|
|
17
|
+
protected readonly fill: import("@angular/core").Signal<"clear" | "outline" | "solid" | "default">;
|
|
18
|
+
/** Icon-only when there is an icon but no label — drives the `slot` choice.
|
|
19
|
+
* Truthy check on `label` mirrors Material's heuristic; empty-string label
|
|
20
|
+
* is treated as "no label" so the button doesn't render an invisible text
|
|
21
|
+
* slot beside the icon. */
|
|
22
|
+
protected readonly iconOnly: import("@angular/core").Signal<boolean>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicButtonAddonComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonicButtonAddonComponent, "df-ion-button-addon", never, {}, {}, never, never, true, [{
|
|
25
|
+
directive: typeof i1.NgForgeAddonAction;
|
|
26
|
+
inputs: {};
|
|
27
|
+
outputs: {};
|
|
28
|
+
}]>;
|
|
29
|
+
}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { IonicIconAddon } from '@ng-forge/dynamic-forms-ionic/shared';
|
|
5
|
-
|
|
1
|
+
import { WrapperFieldInputs } from "@ng-forge/dynamic-forms/integration";
|
|
2
|
+
import { IonicIconAddon } from "@ng-forge/dynamic-forms-ionic/shared";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
6
4
|
/** Renderer for the `ion-icon` addon type. */
|
|
7
|
-
declare class IonicIconAddonComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
export declare class IonicIconAddonComponent {
|
|
6
|
+
readonly addon: import("@angular/core").InputSignal<IonicIconAddon>;
|
|
7
|
+
/** Accepted for contract uniformity — `NgComponentOutlet` setInput is strict; every type must declare it. */
|
|
8
|
+
readonly fieldInputs: import("@angular/core").InputSignal<WrapperFieldInputs | undefined>;
|
|
9
|
+
protected readonly iconName: import("@angular/core").Signal<string>;
|
|
10
|
+
protected readonly ariaLabel: import("@angular/core").Signal<import("@ng-forge/dynamic-forms").DynamicText | undefined>;
|
|
11
|
+
protected readonly hasAriaLabel: import("@angular/core").Signal<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicIconAddonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonicIconAddonComponent, "df-ion-icon-addon", never, {
|
|
14
|
+
"addon": {
|
|
15
|
+
"alias": "addon";
|
|
16
|
+
"required": true;
|
|
17
|
+
"isSignal": true;
|
|
18
|
+
};
|
|
19
|
+
"fieldInputs": {
|
|
20
|
+
"alias": "fieldInputs";
|
|
21
|
+
"required": false;
|
|
22
|
+
"isSignal": true;
|
|
23
|
+
};
|
|
24
|
+
}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -1,119 +1,125 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { ButtonField } from
|
|
4
|
-
import * as
|
|
5
|
-
|
|
1
|
+
import { AppendArrayItemEvent, ArrayAllowedChildren, FormEvent, FormSubmitEvent, InsertArrayItemEvent, NextPageEvent, PopArrayItemEvent, PrependArrayItemEvent, PreviousPageEvent, RemoveAtIndexEvent, ShiftArrayItemEvent } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { ButtonField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface IonicButtonProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
expand?: 'full' | 'block';
|
|
7
|
+
fill?: 'clear' | 'outline' | 'solid' | 'default';
|
|
8
|
+
shape?: 'round';
|
|
9
|
+
size?: 'small' | 'default' | 'large';
|
|
10
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'light' | 'medium' | 'dark';
|
|
11
|
+
strong?: boolean;
|
|
12
|
+
type?: 'button' | 'submit' | 'reset';
|
|
14
13
|
}
|
|
15
14
|
type IonicButtonField<TEvent extends FormEvent> = ButtonField<IonicButtonProps, TEvent>;
|
|
16
15
|
/** Specific button field types with preconfigured events */
|
|
17
16
|
/** Submit button field - automatically disabled when form is invalid */
|
|
18
17
|
type IonicSubmitButtonField = Omit<IonicButtonField<FormSubmitEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
19
|
-
|
|
18
|
+
type: 'submit';
|
|
20
19
|
};
|
|
21
20
|
/** Next page button field - with preconfigured NextPageEvent */
|
|
22
21
|
type IonicNextButtonField = Omit<IonicButtonField<NextPageEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
23
|
-
|
|
22
|
+
type: 'next';
|
|
24
23
|
};
|
|
25
24
|
/** Previous page button field - with preconfigured PreviousPageEvent */
|
|
26
25
|
type IonicPreviousButtonField = Omit<IonicButtonField<PreviousPageEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
27
|
-
|
|
26
|
+
type: 'previous';
|
|
28
27
|
};
|
|
29
28
|
/** Add array item button field - dispatches AppendArrayItemEvent */
|
|
30
29
|
type IonicAddArrayItemButtonField = Omit<IonicButtonField<AppendArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
type: 'add-array-item' | 'addArrayItem';
|
|
31
|
+
/**
|
|
32
|
+
* The key of the array field to add items to.
|
|
33
|
+
* Required when the button is placed outside the array.
|
|
34
|
+
* When inside an array, this is automatically determined from context.
|
|
35
|
+
*/
|
|
36
|
+
arrayKey?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Template for the new array item. REQUIRED.
|
|
39
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
40
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
41
|
+
*/
|
|
42
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
44
43
|
};
|
|
45
44
|
/** Prepend array item button field - dispatches PrependArrayItemEvent (adds at beginning) */
|
|
46
45
|
type IonicPrependArrayItemButtonField = Omit<IonicButtonField<PrependArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
46
|
+
type: 'prepend-array-item' | 'prependArrayItem';
|
|
47
|
+
/**
|
|
48
|
+
* The key of the array field to prepend items to.
|
|
49
|
+
* Required when the button is placed outside the array.
|
|
50
|
+
* When inside an array, this is automatically determined from context.
|
|
51
|
+
*/
|
|
52
|
+
arrayKey?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Template for the new array item. REQUIRED.
|
|
55
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
56
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
57
|
+
*/
|
|
58
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
60
59
|
};
|
|
61
60
|
/** Insert array item button field - dispatches InsertArrayItemEvent (adds at specific index) */
|
|
62
61
|
type IonicInsertArrayItemButtonField = Omit<IonicButtonField<InsertArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
type: 'insert-array-item' | 'insertArrayItem';
|
|
63
|
+
/**
|
|
64
|
+
* The key of the array field to insert items into.
|
|
65
|
+
* Required when the button is placed outside the array.
|
|
66
|
+
* When inside an array, this is automatically determined from context.
|
|
67
|
+
*/
|
|
68
|
+
arrayKey?: string;
|
|
69
|
+
/** The index at which to insert the new item. */
|
|
70
|
+
index: number;
|
|
71
|
+
/**
|
|
72
|
+
* Template for the new array item. REQUIRED.
|
|
73
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
74
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
75
|
+
*/
|
|
76
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
78
77
|
};
|
|
79
78
|
/** Remove array item button field - dispatches RemoveAtIndexEvent or PopArrayItemEvent */
|
|
80
79
|
type IonicRemoveArrayItemButtonField = Omit<IonicButtonField<RemoveAtIndexEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
type: 'remove-array-item' | 'removeArrayItem';
|
|
81
|
+
/**
|
|
82
|
+
* The key of the array field to remove items from.
|
|
83
|
+
* Required when the button is placed outside the array.
|
|
84
|
+
* When inside an array, this is automatically determined from context.
|
|
85
|
+
*/
|
|
86
|
+
arrayKey?: string;
|
|
88
87
|
};
|
|
89
88
|
/** Pop array item button field - dispatches PopArrayItemEvent (removes last item) */
|
|
90
89
|
type IonicPopArrayItemButtonField = Omit<IonicButtonField<PopArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
type: 'pop-array-item' | 'popArrayItem';
|
|
91
|
+
/**
|
|
92
|
+
* The key of the array field to remove the last item from.
|
|
93
|
+
* REQUIRED - must specify which array to pop from.
|
|
94
|
+
*/
|
|
95
|
+
arrayKey: string;
|
|
97
96
|
};
|
|
98
97
|
/** Shift array item button field - dispatches ShiftArrayItemEvent (removes first item) */
|
|
99
98
|
type IonicShiftArrayItemButtonField = Omit<IonicButtonField<ShiftArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
type: 'shift-array-item' | 'shiftArrayItem';
|
|
100
|
+
/**
|
|
101
|
+
* The key of the array field to remove the first item from.
|
|
102
|
+
* REQUIRED - must specify which array to shift from.
|
|
103
|
+
*/
|
|
104
|
+
arrayKey: string;
|
|
106
105
|
};
|
|
107
|
-
|
|
108
106
|
declare class IonicButtonFieldComponent<TEvent extends FormEvent> {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
protected readonly action: import("@ng-forge/dynamic-forms/integration").NgForgeAction<TEvent>;
|
|
108
|
+
readonly props: import("@angular/core").InputSignal<IonicButtonProps | undefined>;
|
|
109
|
+
readonly buttonType: import("@angular/core").Signal<"button" | "submit" | "reset">;
|
|
110
|
+
readonly buttonTestId: import("@angular/core").Signal<string>;
|
|
111
|
+
onClick(): void;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicButtonFieldComponent<any>, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonicButtonFieldComponent<any>, "df-ion-button", never, {
|
|
114
|
+
"props": {
|
|
115
|
+
"alias": "props";
|
|
116
|
+
"required": false;
|
|
117
|
+
"isSignal": true;
|
|
118
|
+
};
|
|
119
|
+
}, {}, never, never, true, [{
|
|
120
|
+
directive: typeof i1.NgForgeActionHost;
|
|
121
|
+
inputs: {};
|
|
122
|
+
outputs: {};
|
|
123
|
+
}]>;
|
|
116
124
|
}
|
|
117
|
-
|
|
118
|
-
export { IonicButtonFieldComponent };
|
|
119
|
-
export type { IonicAddArrayItemButtonField, IonicButtonField, IonicButtonProps, IonicInsertArrayItemButtonField, IonicNextButtonField, IonicPopArrayItemButtonField, IonicPrependArrayItemButtonField, IonicPreviousButtonField, IonicRemoveArrayItemButtonField, IonicShiftArrayItemButtonField, IonicSubmitButtonField };
|
|
125
|
+
export { type IonicAddArrayItemButtonField, type IonicButtonField, IonicButtonFieldComponent, type IonicButtonProps, type IonicInsertArrayItemButtonField, type IonicNextButtonField, type IonicPopArrayItemButtonField, type IonicPrependArrayItemButtonField, type IonicPreviousButtonField, type IonicRemoveArrayItemButtonField, type IonicShiftArrayItemButtonField, type IonicSubmitButtonField };
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { DynamicText } from
|
|
2
|
-
import * as
|
|
3
|
-
import { CheckboxField } from
|
|
4
|
-
import * as i0 from
|
|
5
|
-
|
|
1
|
+
import { DynamicText } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { CheckboxField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface IonicCheckboxProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
labelPlacement?: 'start' | 'end' | 'fixed' | 'stacked';
|
|
7
|
+
justify?: 'start' | 'end' | 'space-between';
|
|
8
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
hint?: DynamicText;
|
|
12
11
|
}
|
|
13
12
|
type IonicCheckboxField = CheckboxField<IonicCheckboxProps>;
|
|
14
|
-
|
|
15
13
|
declare class IonicCheckboxFieldComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<boolean>;
|
|
15
|
+
readonly props: import("@angular/core").InputSignal<IonicCheckboxProps | undefined>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicCheckboxFieldComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonicCheckboxFieldComponent, "df-ion-checkbox", never, {
|
|
18
|
+
"props": {
|
|
19
|
+
"alias": "props";
|
|
20
|
+
"required": false;
|
|
21
|
+
"isSignal": true;
|
|
22
|
+
};
|
|
23
|
+
}, {}, never, never, true, [{
|
|
24
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
25
|
+
inputs: {};
|
|
26
|
+
outputs: {};
|
|
27
|
+
}]>;
|
|
20
28
|
}
|
|
21
|
-
|
|
22
|
-
export { IonicCheckboxFieldComponent };
|
|
23
|
-
export type { IonicCheckboxField, IonicCheckboxProps };
|
|
29
|
+
export { type IonicCheckboxField, IonicCheckboxFieldComponent, type IonicCheckboxProps };
|
|
@@ -1,39 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { DatepickerField, DatepickerProps } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { DynamicText } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { DatepickerField, DatepickerProps } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface IonicDatepickerProps extends DatepickerProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
presentation?: 'date' | 'date-time' | 'time' | 'time-date' | 'month' | 'month-year' | 'year';
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
preferWheel?: boolean;
|
|
9
|
+
showDefaultButtons?: boolean;
|
|
10
|
+
showDefaultTitle?: boolean;
|
|
11
|
+
showDefaultTimeLabel?: boolean;
|
|
12
|
+
showClearButton?: boolean;
|
|
13
|
+
doneText?: string;
|
|
14
|
+
cancelText?: string;
|
|
15
|
+
size?: 'cover' | 'fixed';
|
|
16
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
17
|
+
hint?: DynamicText;
|
|
18
|
+
/** BCP 47 locale for the picker and the displayed value. Defaults to the browser locale. */
|
|
19
|
+
locale?: string;
|
|
19
20
|
}
|
|
20
21
|
type IonicDatepickerField = DatepickerField<IonicDatepickerProps>;
|
|
21
|
-
|
|
22
22
|
declare class IonicDatepickerFieldComponent {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<Date | null>;
|
|
24
|
+
readonly minDate: import("@angular/core").InputSignal<Date | null>;
|
|
25
|
+
readonly maxDate: import("@angular/core").InputSignal<Date | null>;
|
|
26
|
+
readonly startAt: import("@angular/core").InputSignal<Date | null>;
|
|
27
|
+
readonly props: import("@angular/core").InputSignal<IonicDatepickerProps | undefined>;
|
|
28
|
+
readonly isModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
/** Canonical locale tag, or undefined (browser locale) when unset or malformed. */
|
|
30
|
+
protected readonly locale: import("@angular/core").Signal<string | undefined>;
|
|
31
|
+
openModal(): void;
|
|
32
|
+
closeModal(): void;
|
|
33
|
+
onDateChange(event: CustomEvent): void;
|
|
34
|
+
dateToIsoString(date: Date | null | undefined): string | undefined;
|
|
35
|
+
formatDisplayDate(date: Date | null | undefined): string;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IonicDatepickerFieldComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IonicDatepickerFieldComponent, "df-ion-datepicker", never, {
|
|
38
|
+
"minDate": {
|
|
39
|
+
"alias": "minDate";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"maxDate": {
|
|
44
|
+
"alias": "maxDate";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
"startAt": {
|
|
49
|
+
"alias": "startAt";
|
|
50
|
+
"required": false;
|
|
51
|
+
"isSignal": true;
|
|
52
|
+
};
|
|
53
|
+
"props": {
|
|
54
|
+
"alias": "props";
|
|
55
|
+
"required": false;
|
|
56
|
+
"isSignal": true;
|
|
57
|
+
};
|
|
58
|
+
}, {}, never, never, true, [{
|
|
59
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
60
|
+
inputs: {};
|
|
61
|
+
outputs: {};
|
|
62
|
+
}]>;
|
|
36
63
|
}
|
|
37
|
-
|
|
38
|
-
export { IonicDatepickerFieldComponent };
|
|
39
|
-
export type { IonicDatepickerField, IonicDatepickerProps };
|
|
64
|
+
export { type IonicDatepickerField, IonicDatepickerFieldComponent, type IonicDatepickerProps };
|