@ng-forge/dynamic-forms-bootstrap 1.3.0-next.2 → 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/fesm2022/ng-forge-dynamic-forms-bootstrap-bs-field-errors-wrapper.component-42hynKVO.mjs +56 -0
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-bs-field-errors-wrapper.component-42hynKVO.mjs.map +1 -0
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-addon-button.mjs +64 -37
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-addon-button.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-addon-icon.mjs +92 -34
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-addon-icon.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-button.mjs +94 -49
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-button.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-checkbox.mjs +97 -23
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-checkbox.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-datepicker.mjs +169 -40
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-datepicker.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-input.mjs +180 -88
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-input.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-multi-checkbox.mjs +143 -66
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-multi-checkbox.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-radio.mjs +326 -61
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-radio.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-select.mjs +123 -33
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-select.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-slider.mjs +161 -30
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-slider.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-textarea.mjs +97 -23
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-textarea.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-toggle.mjs +97 -23
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-lazy-toggle.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-shared.mjs +100 -41
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-shared.mjs.map +1 -1
- package/fesm2022/ng-forge-dynamic-forms-bootstrap.mjs +238 -251
- package/fesm2022/ng-forge-dynamic-forms-bootstrap.mjs.map +1 -1
- package/package.json +2 -2
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-addon-button.d.ts +18 -18
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-addon-icon.d.ts +24 -17
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-button.d.ts +94 -88
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-checkbox.d.ts +24 -18
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-datepicker.d.ts +49 -28
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-input.d.ts +51 -37
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-multi-checkbox.d.ts +34 -23
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-radio.d.ts +30 -19
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-select.d.ts +36 -24
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-slider.d.ts +56 -35
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-textarea.d.ts +24 -18
- package/types/ng-forge-dynamic-forms-bootstrap-lazy-toggle.d.ts +23 -17
- package/types/ng-forge-dynamic-forms-bootstrap-shared.d.ts +78 -71
- package/types/ng-forge-dynamic-forms-bootstrap.d.ts +225 -250
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-bs-field-errors-wrapper.component-D4qTxFSp.mjs +0 -25
- package/fesm2022/ng-forge-dynamic-forms-bootstrap-bs-field-errors-wrapper.component-D4qTxFSp.mjs.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { BsButtonAddon } from '@ng-forge/dynamic-forms-bootstrap/shared';
|
|
5
|
-
|
|
1
|
+
import { BsButtonAddon } from "@ng-forge/dynamic-forms-bootstrap/shared";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
6
4
|
/** Renderer for the `bs-button` addon type. */
|
|
7
|
-
declare class BsButtonAddonComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
export declare class BsButtonAddonComponent {
|
|
6
|
+
protected readonly action: import("@ng-forge/dynamic-forms/integration").TypedNgForgeAddonAction<BsButtonAddon>;
|
|
7
|
+
/** Re-exposed for template binding — same signal stored on the directive. */
|
|
8
|
+
protected readonly addon: import("@angular/core").Signal<BsButtonAddon>;
|
|
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 iconClass: import("@angular/core").Signal<string>;
|
|
12
|
+
protected readonly buttonClass: import("@angular/core").Signal<string>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsButtonAddonComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsButtonAddonComponent, "df-bs-button-addon", never, {}, {}, never, never, true, [{
|
|
15
|
+
directive: typeof i1.NgForgeAddonAction;
|
|
16
|
+
inputs: {};
|
|
17
|
+
outputs: {};
|
|
18
|
+
}]>;
|
|
19
|
+
}
|
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { BsIconAddon } from '@ng-forge/dynamic-forms-bootstrap/shared';
|
|
5
|
-
|
|
1
|
+
import { WrapperFieldInputs } from "@ng-forge/dynamic-forms/integration";
|
|
2
|
+
import { BsIconAddon } from "@ng-forge/dynamic-forms-bootstrap/shared";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
6
4
|
/** Renderer for the `bs-icon` addon type. */
|
|
7
|
-
declare class BsIconAddonComponent {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
export declare class BsIconAddonComponent {
|
|
6
|
+
readonly addon: import("@angular/core").InputSignal<BsIconAddon>;
|
|
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 iconClass: 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<BsIconAddonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsIconAddonComponent, "df-bs-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,121 +1,127 @@
|
|
|
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 BsButtonProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
variant?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
|
|
7
|
+
outline?: boolean;
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
block?: boolean;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
type?: 'button' | 'submit' | 'reset';
|
|
13
12
|
}
|
|
14
13
|
type BsButtonField<TEvent extends FormEvent> = ButtonField<BsButtonProps, TEvent>;
|
|
15
14
|
/** Specific button field types with preconfigured events */
|
|
16
15
|
/** Submit button field - automatically disabled when form is invalid */
|
|
17
16
|
type BsSubmitButtonField = Omit<BsButtonField<FormSubmitEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
18
|
-
|
|
17
|
+
type: 'submit';
|
|
19
18
|
};
|
|
20
19
|
/** Next page button field - with preconfigured NextPageEvent */
|
|
21
20
|
type BsNextButtonField = Omit<BsButtonField<NextPageEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
22
|
-
|
|
21
|
+
type: 'next';
|
|
23
22
|
};
|
|
24
23
|
/** Previous page button field - with preconfigured PreviousPageEvent */
|
|
25
24
|
type BsPreviousButtonField = Omit<BsButtonField<PreviousPageEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
26
|
-
|
|
25
|
+
type: 'previous';
|
|
27
26
|
};
|
|
28
27
|
/** Add array item button field - dispatches AppendArrayItemEvent */
|
|
29
28
|
type BsAddArrayItemButtonField = Omit<BsButtonField<AppendArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
type: 'add-array-item' | 'addArrayItem';
|
|
30
|
+
/**
|
|
31
|
+
* The key of the array field to add items to.
|
|
32
|
+
* Required when the button is placed outside the array.
|
|
33
|
+
* When inside an array, this is automatically determined from context.
|
|
34
|
+
*/
|
|
35
|
+
arrayKey?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Template for the new array item. REQUIRED.
|
|
38
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
39
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
40
|
+
*/
|
|
41
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
43
42
|
};
|
|
44
43
|
/** Prepend array item button field - dispatches PrependArrayItemEvent (adds at beginning) */
|
|
45
44
|
type BsPrependArrayItemButtonField = Omit<BsButtonField<PrependArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
type: 'prepend-array-item' | 'prependArrayItem';
|
|
46
|
+
/**
|
|
47
|
+
* The key of the array field to prepend items to.
|
|
48
|
+
* Required when the button is placed outside the array.
|
|
49
|
+
* When inside an array, this is automatically determined from context.
|
|
50
|
+
*/
|
|
51
|
+
arrayKey?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Template for the new array item. REQUIRED.
|
|
54
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
55
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
56
|
+
*/
|
|
57
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
59
58
|
};
|
|
60
59
|
/** Insert array item button field - dispatches InsertArrayItemEvent (adds at specific index) */
|
|
61
60
|
type BsInsertArrayItemButtonField = Omit<BsButtonField<InsertArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
61
|
+
type: 'insert-array-item' | 'insertArrayItem';
|
|
62
|
+
/**
|
|
63
|
+
* The key of the array field to insert items into.
|
|
64
|
+
* Required when the button is placed outside the array.
|
|
65
|
+
* When inside an array, this is automatically determined from context.
|
|
66
|
+
*/
|
|
67
|
+
arrayKey?: string;
|
|
68
|
+
/** The index at which to insert the new item. */
|
|
69
|
+
index: number;
|
|
70
|
+
/**
|
|
71
|
+
* Template for the new array item. REQUIRED.
|
|
72
|
+
* - Single field (ArrayAllowedChildren): Creates a primitive item (field's value is extracted directly)
|
|
73
|
+
* - Array of fields (ArrayAllowedChildren[]): Creates an object item (fields merged into object)
|
|
74
|
+
*/
|
|
75
|
+
template: ArrayAllowedChildren | readonly ArrayAllowedChildren[];
|
|
77
76
|
};
|
|
78
77
|
/** Remove array item button field - dispatches RemoveAtIndexEvent or PopArrayItemEvent */
|
|
79
78
|
type BsRemoveArrayItemButtonField = Omit<BsButtonField<RemoveAtIndexEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
type: 'remove-array-item' | 'removeArrayItem';
|
|
80
|
+
/**
|
|
81
|
+
* The key of the array field to remove items from.
|
|
82
|
+
* Required when the button is placed outside the array.
|
|
83
|
+
* When inside an array, this is automatically determined from context.
|
|
84
|
+
*/
|
|
85
|
+
arrayKey?: string;
|
|
87
86
|
};
|
|
88
87
|
/** Pop array item button field - dispatches PopArrayItemEvent (removes last item) */
|
|
89
88
|
type BsPopArrayItemButtonField = Omit<BsButtonField<PopArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
type: 'pop-array-item' | 'popArrayItem';
|
|
90
|
+
/**
|
|
91
|
+
* The key of the array field to remove the last item from.
|
|
92
|
+
* REQUIRED - must specify which array to pop from.
|
|
93
|
+
*/
|
|
94
|
+
arrayKey: string;
|
|
96
95
|
};
|
|
97
96
|
/** Shift array item button field - dispatches ShiftArrayItemEvent (removes first item) */
|
|
98
97
|
type BsShiftArrayItemButtonField = Omit<BsButtonField<ShiftArrayItemEvent>, 'event' | 'type' | 'eventArgs'> & {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
type: 'shift-array-item' | 'shiftArrayItem';
|
|
99
|
+
/**
|
|
100
|
+
* The key of the array field to remove the first item from.
|
|
101
|
+
* REQUIRED - must specify which array to shift from.
|
|
102
|
+
*/
|
|
103
|
+
arrayKey: string;
|
|
105
104
|
};
|
|
106
|
-
|
|
107
105
|
declare class BsButtonFieldComponent<TEvent extends FormEvent> {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
protected readonly action: import("@ng-forge/dynamic-forms/integration").NgForgeAction<TEvent>;
|
|
107
|
+
readonly props: import("@angular/core").InputSignal<BsButtonProps | undefined>;
|
|
108
|
+
/** Resolved button type — defaults to 'button' unless overridden via props. */
|
|
109
|
+
readonly buttonType: import("@angular/core").Signal<"button" | "submit" | "reset">;
|
|
110
|
+
readonly buttonTestId: import("@angular/core").Signal<string>;
|
|
111
|
+
readonly buttonClasses: import("@angular/core").Signal<string>;
|
|
112
|
+
/** Submit buttons let the native form handle submission; other buttons dispatch via the directive. */
|
|
113
|
+
onClick(): void;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsButtonFieldComponent<any>, never>;
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsButtonFieldComponent<any>, "df-bs-button", never, {
|
|
116
|
+
"props": {
|
|
117
|
+
"alias": "props";
|
|
118
|
+
"required": false;
|
|
119
|
+
"isSignal": true;
|
|
120
|
+
};
|
|
121
|
+
}, {}, never, never, true, [{
|
|
122
|
+
directive: typeof i1.NgForgeActionHost;
|
|
123
|
+
inputs: {};
|
|
124
|
+
outputs: {};
|
|
125
|
+
}]>;
|
|
118
126
|
}
|
|
119
|
-
|
|
120
|
-
export { BsButtonFieldComponent };
|
|
121
|
-
export type { BsAddArrayItemButtonField, BsButtonField, BsButtonProps, BsInsertArrayItemButtonField, BsNextButtonField, BsPopArrayItemButtonField, BsPrependArrayItemButtonField, BsPreviousButtonField, BsRemoveArrayItemButtonField, BsShiftArrayItemButtonField, BsSubmitButtonField };
|
|
127
|
+
export { type BsAddArrayItemButtonField, type BsButtonField, BsButtonFieldComponent, type BsButtonProps, type BsInsertArrayItemButtonField, type BsNextButtonField, type BsPopArrayItemButtonField, type BsPrependArrayItemButtonField, type BsPreviousButtonField, type BsRemoveArrayItemButtonField, type BsShiftArrayItemButtonField, type BsSubmitButtonField };
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { CheckboxField } from
|
|
4
|
-
import
|
|
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 BsCheckboxProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
switch?: boolean;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
reverse?: boolean;
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
hint?: DynamicText;
|
|
12
11
|
}
|
|
13
12
|
type BsCheckboxField = CheckboxField<BsCheckboxProps>;
|
|
14
|
-
|
|
15
13
|
declare class BsCheckboxFieldComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<boolean>;
|
|
15
|
+
readonly props: import("@angular/core").InputSignal<BsCheckboxProps | undefined>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsCheckboxFieldComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsCheckboxFieldComponent, "df-bs-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 { BsCheckboxFieldComponent };
|
|
23
|
-
export type { BsCheckboxField, BsCheckboxProps };
|
|
29
|
+
export { type BsCheckboxField, BsCheckboxFieldComponent, type BsCheckboxProps };
|
|
@@ -1,33 +1,54 @@
|
|
|
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 BsDatepickerProps extends DatepickerProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
useNgBootstrap?: boolean;
|
|
7
|
+
size?: 'sm' | 'lg';
|
|
8
|
+
floatingLabel?: boolean;
|
|
9
|
+
hint?: DynamicText;
|
|
10
|
+
validFeedback?: DynamicText;
|
|
11
|
+
invalidFeedback?: DynamicText;
|
|
12
|
+
displayMonths?: number;
|
|
13
|
+
navigation?: 'select' | 'arrows' | 'none';
|
|
14
|
+
outsideDays?: 'visible' | 'collapsed' | 'hidden';
|
|
15
|
+
showWeekNumbers?: boolean;
|
|
17
16
|
}
|
|
18
17
|
type BsDatepickerField = DatepickerField<BsDatepickerProps>;
|
|
19
|
-
|
|
20
18
|
declare class BsDatepickerFieldComponent {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<string>;
|
|
20
|
+
readonly minDate: import("@angular/core").InputSignal<string | Date | null>;
|
|
21
|
+
readonly maxDate: import("@angular/core").InputSignal<string | Date | null>;
|
|
22
|
+
readonly startAt: import("@angular/core").InputSignal<Date | null>;
|
|
23
|
+
readonly props: import("@angular/core").InputSignal<BsDatepickerProps | undefined>;
|
|
24
|
+
readonly minAsString: import("@angular/core").Signal<string | null>;
|
|
25
|
+
readonly maxAsString: import("@angular/core").Signal<string | null>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDatepickerFieldComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsDatepickerFieldComponent, "df-bs-datepicker", never, {
|
|
28
|
+
"minDate": {
|
|
29
|
+
"alias": "minDate";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
"maxDate": {
|
|
34
|
+
"alias": "maxDate";
|
|
35
|
+
"required": false;
|
|
36
|
+
"isSignal": true;
|
|
37
|
+
};
|
|
38
|
+
"startAt": {
|
|
39
|
+
"alias": "startAt";
|
|
40
|
+
"required": false;
|
|
41
|
+
"isSignal": true;
|
|
42
|
+
};
|
|
43
|
+
"props": {
|
|
44
|
+
"alias": "props";
|
|
45
|
+
"required": false;
|
|
46
|
+
"isSignal": true;
|
|
47
|
+
};
|
|
48
|
+
}, {}, never, never, true, [{
|
|
49
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
50
|
+
inputs: {};
|
|
51
|
+
outputs: {};
|
|
52
|
+
}]>;
|
|
30
53
|
}
|
|
31
|
-
|
|
32
|
-
export { BsDatepickerFieldComponent };
|
|
33
|
-
export type { BsDatepickerField, BsDatepickerProps };
|
|
54
|
+
export { type BsDatepickerField, BsDatepickerFieldComponent, type BsDatepickerProps };
|
|
@@ -1,50 +1,64 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
2
|
+
import { InputField, InputProps, WrapperFieldInputs } from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { DynamicText, TemplateAddon, TextAddon } from "@ng-forge/dynamic-forms";
|
|
4
|
+
import { BsButtonAddon, BsIconAddon } from "@ng-forge/dynamic-forms-bootstrap/shared";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
7
6
|
interface BsInputProps extends InputProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
size?: 'sm' | 'lg';
|
|
8
|
+
floatingLabel?: boolean;
|
|
9
|
+
hint?: DynamicText;
|
|
10
|
+
validFeedback?: DynamicText;
|
|
11
|
+
invalidFeedback?: DynamicText;
|
|
12
|
+
plaintext?: boolean;
|
|
14
13
|
}
|
|
15
14
|
/**
|
|
16
15
|
* Module-augmentable seam for adding custom addon types to `bs-input` at
|
|
17
16
|
* the type level. Pair with `withCustomAddon(...)` for the runtime side:
|
|
18
17
|
*/
|
|
19
|
-
interface BsAddonExtensions {
|
|
20
|
-
}
|
|
18
|
+
interface BsAddonExtensions {}
|
|
21
19
|
type BsAddonExtension = BsAddonExtensions[keyof BsAddonExtensions];
|
|
22
20
|
/** Addon types accepted by `bs-input`. */
|
|
23
21
|
type BsInputAddon = BsIconAddon | BsButtonAddon | TextAddon | TemplateAddon | BsAddonExtension;
|
|
24
22
|
type BsInputField = InputField<BsInputProps> & {
|
|
25
|
-
|
|
23
|
+
addons?: ReadonlyArray<BsInputAddon>;
|
|
26
24
|
};
|
|
27
|
-
|
|
28
25
|
declare class BsInputFieldComponent {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
private bootstrapConfig;
|
|
27
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<string>;
|
|
28
|
+
protected readonly ngfa: import("@ng-forge/dynamic-forms/integration").TypedNgForgeAddons<BsInputAddon>;
|
|
29
|
+
readonly props: import("@angular/core").InputSignal<BsInputProps | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Wrapper-style host bag pushed by `DfFieldOutlet`. Declared at the
|
|
32
|
+
* component level so `setInputIfDeclared` (which uses
|
|
33
|
+
* `reflectComponentType`) can write it.
|
|
34
|
+
*/
|
|
35
|
+
readonly fieldInputs: import("@angular/core").InputSignal<WrapperFieldInputs | undefined>;
|
|
36
|
+
/** Per-instance type override populated by `toggle-password-visibility` preset. */
|
|
37
|
+
private readonly typeOverride;
|
|
38
|
+
readonly size: import("@angular/core").Signal<"sm" | "lg" | undefined>;
|
|
39
|
+
readonly floatingLabel: import("@angular/core").Signal<boolean>;
|
|
40
|
+
/** Override (set by `toggle-password-visibility` preset) wins over `props().type`. */
|
|
41
|
+
protected readonly type: import("@angular/core").Signal<string>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsInputFieldComponent, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsInputFieldComponent, "df-bs-input", never, {
|
|
44
|
+
"props": {
|
|
45
|
+
"alias": "props";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"fieldInputs": {
|
|
50
|
+
"alias": "fieldInputs";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
}, {}, never, never, true, [{
|
|
55
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
56
|
+
inputs: {};
|
|
57
|
+
outputs: {};
|
|
58
|
+
}, {
|
|
59
|
+
directive: typeof i1.NgForgeAddons;
|
|
60
|
+
inputs: {};
|
|
61
|
+
outputs: {};
|
|
62
|
+
}]>;
|
|
47
63
|
}
|
|
48
|
-
|
|
49
|
-
export { BsInputFieldComponent };
|
|
50
|
-
export type { BsInputField, BsInputProps };
|
|
64
|
+
export { type BsInputField, BsInputFieldComponent, type BsInputProps };
|
|
@@ -1,28 +1,39 @@
|
|
|
1
|
-
import { DynamicText,
|
|
2
|
-
import * as
|
|
3
|
-
import { MultiCheckboxField } from
|
|
4
|
-
import * as
|
|
5
|
-
|
|
1
|
+
import { DynamicText, FieldOption, ValueType } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { MultiCheckboxField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface BsMultiCheckboxProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
switch?: boolean;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
reverse?: boolean;
|
|
9
|
+
hint?: DynamicText;
|
|
11
10
|
}
|
|
12
11
|
type BsMultiCheckboxField<T> = MultiCheckboxField<T, BsMultiCheckboxProps>;
|
|
13
|
-
|
|
14
12
|
declare class BsMultiCheckboxFieldComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<ValueType[]>;
|
|
14
|
+
readonly options: import("@angular/core").InputSignal<FieldOption<ValueType>[]>;
|
|
15
|
+
readonly props: import("@angular/core").InputSignal<BsMultiCheckboxProps | undefined>;
|
|
16
|
+
/** Computed map of checked option values for O(1) lookup in template */
|
|
17
|
+
readonly checkedValuesMap: import("@angular/core").Signal<Record<string, boolean>>;
|
|
18
|
+
valueViewModel: import("@angular/core").WritableSignal<FieldOption<ValueType>[]>;
|
|
19
|
+
constructor();
|
|
20
|
+
onCheckboxChange(option: FieldOption<ValueType>, event: Event): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsMultiCheckboxFieldComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsMultiCheckboxFieldComponent, "df-bs-multi-checkbox", never, {
|
|
23
|
+
"options": {
|
|
24
|
+
"alias": "options";
|
|
25
|
+
"required": false;
|
|
26
|
+
"isSignal": true;
|
|
27
|
+
};
|
|
28
|
+
"props": {
|
|
29
|
+
"alias": "props";
|
|
30
|
+
"required": false;
|
|
31
|
+
"isSignal": true;
|
|
32
|
+
};
|
|
33
|
+
}, {}, never, never, true, [{
|
|
34
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
35
|
+
inputs: {};
|
|
36
|
+
outputs: {};
|
|
37
|
+
}]>;
|
|
25
38
|
}
|
|
26
|
-
|
|
27
|
-
export { BsMultiCheckboxFieldComponent };
|
|
28
|
-
export type { BsMultiCheckboxField, BsMultiCheckboxProps };
|
|
39
|
+
export { type BsMultiCheckboxField, BsMultiCheckboxFieldComponent, type BsMultiCheckboxProps };
|