@ng-forge/dynamic-forms-bootstrap 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/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 -38
- 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 -251
- 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,24 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { RadioField } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { DynamicText, FieldOption, ValueType } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { RadioField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface BsRadioProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
inline?: boolean;
|
|
7
|
+
reverse?: boolean;
|
|
8
|
+
buttonGroup?: boolean;
|
|
9
|
+
buttonSize?: 'sm' | 'lg';
|
|
10
|
+
hint?: DynamicText;
|
|
12
11
|
}
|
|
13
12
|
type BsRadioField<T> = RadioField<T, BsRadioProps>;
|
|
14
|
-
|
|
15
13
|
declare class BsRadioFieldComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<ValueType>;
|
|
15
|
+
readonly options: import("@angular/core").InputSignal<FieldOption<ValueType>[]>;
|
|
16
|
+
readonly props: import("@angular/core").InputSignal<BsRadioProps | undefined>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsRadioFieldComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsRadioFieldComponent, "df-bs-radio", never, {
|
|
19
|
+
"options": {
|
|
20
|
+
"alias": "options";
|
|
21
|
+
"required": false;
|
|
22
|
+
"isSignal": true;
|
|
23
|
+
};
|
|
24
|
+
"props": {
|
|
25
|
+
"alias": "props";
|
|
26
|
+
"required": false;
|
|
27
|
+
"isSignal": true;
|
|
28
|
+
};
|
|
29
|
+
}, {}, never, never, true, [{
|
|
30
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
31
|
+
inputs: {};
|
|
32
|
+
outputs: {};
|
|
33
|
+
}]>;
|
|
21
34
|
}
|
|
22
|
-
|
|
23
|
-
export { BsRadioFieldComponent };
|
|
24
|
-
export type { BsRadioField, BsRadioProps };
|
|
35
|
+
export { type BsRadioField, BsRadioFieldComponent, type BsRadioProps };
|
|
@@ -1,33 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { SelectField, SelectProps } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { DynamicText, FieldOption } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { SelectField, SelectProps } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
7
6
|
* Bootstrap select uses native HTML <select> which only supports string values.
|
|
8
7
|
* The compareWith function signature uses string to match this constraint.
|
|
9
8
|
*/
|
|
10
9
|
interface BsSelectProps extends SelectProps {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
size?: 'sm' | 'lg';
|
|
12
|
+
htmlSize?: number;
|
|
13
|
+
floatingLabel?: boolean;
|
|
14
|
+
hint?: DynamicText;
|
|
15
|
+
validFeedback?: DynamicText;
|
|
16
|
+
invalidFeedback?: DynamicText;
|
|
17
|
+
compareWith?: (o1: string, o2: string) => boolean;
|
|
19
18
|
}
|
|
20
19
|
type BsSelectField<T> = SelectField<T, BsSelectProps>;
|
|
21
|
-
|
|
20
|
+
/** Bootstrap select only supports string values due to native HTML select limitations */
|
|
22
21
|
declare class BsSelectFieldComponent {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<string>;
|
|
23
|
+
readonly options: import("@angular/core").InputSignal<FieldOption<string>[]>;
|
|
24
|
+
readonly props: import("@angular/core").InputSignal<BsSelectProps | undefined>;
|
|
25
|
+
defaultCompare: (value1: any, value2: any) => boolean;
|
|
26
|
+
protected isSelected(optionValue: string, fieldValue: string | string[] | null): boolean;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSelectFieldComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsSelectFieldComponent, "df-bs-select", never, {
|
|
29
|
+
"options": {
|
|
30
|
+
"alias": "options";
|
|
31
|
+
"required": false;
|
|
32
|
+
"isSignal": true;
|
|
33
|
+
};
|
|
34
|
+
"props": {
|
|
35
|
+
"alias": "props";
|
|
36
|
+
"required": false;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
}, {}, never, never, true, [{
|
|
40
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
41
|
+
inputs: {};
|
|
42
|
+
outputs: {};
|
|
43
|
+
}]>;
|
|
30
44
|
}
|
|
31
|
-
|
|
32
|
-
export { BsSelectFieldComponent };
|
|
33
|
-
export type { BsSelectField, BsSelectProps };
|
|
45
|
+
export { type BsSelectField, BsSelectFieldComponent, type BsSelectProps };
|
|
@@ -1,40 +1,61 @@
|
|
|
1
|
-
import { DynamicText } from
|
|
2
|
-
import * as
|
|
3
|
-
import { SliderField } from
|
|
4
|
-
import * as
|
|
5
|
-
|
|
1
|
+
import { DynamicText } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { SliderField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface BsSliderProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
showValue?: boolean;
|
|
7
|
+
valuePrefix?: string;
|
|
8
|
+
valueSuffix?: string;
|
|
9
|
+
hint?: DynamicText;
|
|
10
|
+
/**
|
|
11
|
+
* Adapter-level override for the slider minimum.
|
|
12
|
+
* Field-level `minValue` (or the validator `min`) takes precedence.
|
|
13
|
+
*/
|
|
14
|
+
min?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Adapter-level override for the slider maximum.
|
|
17
|
+
* Field-level `maxValue` (or the validator `max`) takes precedence.
|
|
18
|
+
*/
|
|
19
|
+
max?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Adapter-level override for the slider step increment.
|
|
22
|
+
* Field-level `step` on `SliderField` takes precedence.
|
|
23
|
+
*/
|
|
24
|
+
step?: number;
|
|
26
25
|
}
|
|
27
26
|
type BsSliderField = SliderField<BsSliderProps>;
|
|
28
|
-
|
|
29
27
|
declare class BsSliderFieldComponent {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<number>;
|
|
29
|
+
readonly min: import("@angular/core").InputSignal<number>;
|
|
30
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
31
|
+
readonly step: import("@angular/core").InputSignal<number | undefined>;
|
|
32
|
+
readonly props: import("@angular/core").InputSignal<BsSliderProps | undefined>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsSliderFieldComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsSliderFieldComponent, "df-bs-slider", never, {
|
|
35
|
+
"min": {
|
|
36
|
+
"alias": "min";
|
|
37
|
+
"required": false;
|
|
38
|
+
"isSignal": true;
|
|
39
|
+
};
|
|
40
|
+
"max": {
|
|
41
|
+
"alias": "max";
|
|
42
|
+
"required": false;
|
|
43
|
+
"isSignal": true;
|
|
44
|
+
};
|
|
45
|
+
"step": {
|
|
46
|
+
"alias": "step";
|
|
47
|
+
"required": false;
|
|
48
|
+
"isSignal": true;
|
|
49
|
+
};
|
|
50
|
+
"props": {
|
|
51
|
+
"alias": "props";
|
|
52
|
+
"required": false;
|
|
53
|
+
"isSignal": true;
|
|
54
|
+
};
|
|
55
|
+
}, {}, never, never, true, [{
|
|
56
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
57
|
+
inputs: {};
|
|
58
|
+
outputs: {};
|
|
59
|
+
}]>;
|
|
37
60
|
}
|
|
38
|
-
|
|
39
|
-
export { BsSliderFieldComponent };
|
|
40
|
-
export type { BsSliderField, BsSliderProps };
|
|
61
|
+
export { type BsSliderField, BsSliderFieldComponent, type BsSliderProps };
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { TextareaField, TextareaProps } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { DynamicText } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { TextareaField, TextareaProps } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface BsTextareaProps extends TextareaProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
size?: 'sm' | 'lg';
|
|
7
|
+
floatingLabel?: boolean;
|
|
8
|
+
hint?: DynamicText;
|
|
9
|
+
validFeedback?: DynamicText;
|
|
10
|
+
invalidFeedback?: DynamicText;
|
|
12
11
|
}
|
|
13
12
|
type BsTextareaField = TextareaField<BsTextareaProps>;
|
|
14
|
-
|
|
15
13
|
declare class BsTextareaFieldComponent {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<string>;
|
|
15
|
+
readonly props: import("@angular/core").InputSignal<BsTextareaProps | undefined>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsTextareaFieldComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsTextareaFieldComponent, "df-bs-textarea", 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 { BsTextareaFieldComponent };
|
|
23
|
-
export type { BsTextareaField, BsTextareaProps };
|
|
29
|
+
export { type BsTextareaField, BsTextareaFieldComponent, type BsTextareaProps };
|
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import { ToggleField } from
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { DynamicText } from "@ng-forge/dynamic-forms";
|
|
2
|
+
import * as i1 from "@ng-forge/dynamic-forms/integration";
|
|
3
|
+
import { ToggleField } from "@ng-forge/dynamic-forms/integration";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
6
5
|
interface BsToggleProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
size?: 'sm' | 'lg';
|
|
7
|
+
reverse?: boolean;
|
|
8
|
+
inline?: boolean;
|
|
9
|
+
hint?: DynamicText;
|
|
11
10
|
}
|
|
12
11
|
type BsToggleField = ToggleField<BsToggleProps>;
|
|
13
|
-
|
|
14
12
|
declare class BsToggleFieldComponent {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
protected readonly ngf: import("@ng-forge/dynamic-forms/integration").TypedNgForgeField<boolean>;
|
|
14
|
+
readonly props: import("@angular/core").InputSignal<BsToggleProps | undefined>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsToggleFieldComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsToggleFieldComponent, "df-bs-toggle", never, {
|
|
17
|
+
"props": {
|
|
18
|
+
"alias": "props";
|
|
19
|
+
"required": false;
|
|
20
|
+
"isSignal": true;
|
|
21
|
+
};
|
|
22
|
+
}, {}, never, never, true, [{
|
|
23
|
+
directive: typeof i1.NgForgeFieldHost;
|
|
24
|
+
inputs: {};
|
|
25
|
+
outputs: {};
|
|
26
|
+
}]>;
|
|
19
27
|
}
|
|
20
|
-
|
|
21
|
-
export { BsToggleFieldComponent };
|
|
22
|
-
export type { BsToggleField, BsToggleProps };
|
|
28
|
+
export { type BsToggleField, BsToggleFieldComponent, type BsToggleProps };
|
|
@@ -1,100 +1,107 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { InjectionToken, WritableSignal } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export { PresetCollaborators } from '@ng-forge/dynamic-forms/integration';
|
|
6
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { InjectionToken, WritableSignal } from "@angular/core";
|
|
3
|
+
import { AddonActionContext, AddonActionPreset, BaseAddon, DynamicText, DynamicValue, RegisteredActionRef } from "@ng-forge/dynamic-forms";
|
|
4
|
+
import { AddonActionHandler, PresetCollaborators } from "@ng-forge/dynamic-forms/integration";
|
|
7
5
|
/** Configuration options for Bootstrap form fields. */
|
|
8
6
|
interface BootstrapConfig {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
/** Default size for form controls. */
|
|
8
|
+
size?: 'sm' | 'lg';
|
|
9
|
+
/** Whether to use floating labels by default for inputs. */
|
|
10
|
+
floatingLabel?: boolean;
|
|
11
|
+
/** Default variant for buttons. */
|
|
12
|
+
variant?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'link';
|
|
13
|
+
/** Whether buttons should be outlined by default. */
|
|
14
|
+
outline?: boolean;
|
|
15
|
+
/** Whether buttons should be block-level by default. */
|
|
16
|
+
block?: boolean;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
/** Global configuration for Bootstrap form fields. */
|
|
22
|
-
declare const BOOTSTRAP_CONFIG: InjectionToken<BootstrapConfig>;
|
|
23
|
-
|
|
19
|
+
export declare const BOOTSTRAP_CONFIG: InjectionToken<BootstrapConfig>;
|
|
24
20
|
/** Per-field writable signal that overrides the input's `type` attribute. */
|
|
25
|
-
declare const BS_INPUT_TYPE_OVERRIDE: InjectionToken<WritableSignal<string | undefined>>;
|
|
26
|
-
|
|
21
|
+
export declare const BS_INPUT_TYPE_OVERRIDE: InjectionToken<WritableSignal<string | undefined>>;
|
|
27
22
|
/** Declaratively reflects min, max, and step signal inputs to a native form control. */
|
|
28
|
-
declare class InputConstraintsDirective {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
export declare class InputConstraintsDirective {
|
|
24
|
+
readonly dfMin: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
25
|
+
readonly dfMax: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
26
|
+
readonly dfStep: import("@angular/core").InputSignal<string | number | null | undefined>;
|
|
27
|
+
private readonly element;
|
|
28
|
+
private readonly minEffect;
|
|
29
|
+
private readonly maxEffect;
|
|
30
|
+
private readonly stepEffect;
|
|
31
|
+
private reflectAttribute;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputConstraintsDirective, never>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputConstraintsDirective, "[dfBsInputConstraints]", never, {
|
|
34
|
+
"dfMin": {
|
|
35
|
+
"alias": "dfMin";
|
|
36
|
+
"required": false;
|
|
37
|
+
"isSignal": true;
|
|
38
|
+
};
|
|
39
|
+
"dfMax": {
|
|
40
|
+
"alias": "dfMax";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"dfStep": {
|
|
45
|
+
"alias": "dfStep";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
}, {}, never, never, true, never>;
|
|
39
50
|
}
|
|
40
|
-
|
|
41
51
|
/** Bootstrap adapter binding for the shared preset runner. */
|
|
42
|
-
declare function runBsPresetAction(preset: AddonActionPreset, context: AddonActionContext, collaborators: PresetCollaborators): Promise<void>;
|
|
43
|
-
|
|
52
|
+
export declare function runBsPresetAction(preset: AddonActionPreset, context: AddonActionContext, collaborators: PresetCollaborators): Promise<void>;
|
|
44
53
|
/** Decorative icon addon for Bootstrap fields. */
|
|
45
54
|
interface BsIconAddon extends BaseAddon {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
readonly type: 'bs-icon';
|
|
56
|
+
/** Bootstrap Icons name without the `bi-` prefix (e.g., `'search'`, `'x'`). */
|
|
57
|
+
readonly icon: string;
|
|
58
|
+
/** Accessible label for icons that convey meaning. */
|
|
59
|
+
readonly ariaLabel?: DynamicText;
|
|
51
60
|
}
|
|
52
61
|
interface BsButtonBase extends BaseAddon {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
readonly type: 'bs-button';
|
|
63
|
+
readonly severity?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
64
|
+
readonly loading?: DynamicValue<boolean>;
|
|
56
65
|
}
|
|
57
66
|
type BsButtonActionRef = [RegisteredActionRef] extends [never] ? string : RegisteredActionRef;
|
|
58
67
|
type BsButtonClick = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
68
|
+
readonly preset: AddonActionPreset;
|
|
69
|
+
readonly actionRef?: never;
|
|
70
|
+
readonly action?: never;
|
|
62
71
|
} | {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
readonly preset?: never;
|
|
73
|
+
readonly actionRef: BsButtonActionRef;
|
|
74
|
+
readonly action?: never;
|
|
66
75
|
} | {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
readonly preset?: never;
|
|
77
|
+
readonly actionRef?: never;
|
|
78
|
+
readonly action: AddonActionHandler;
|
|
70
79
|
} | {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
readonly preset?: never;
|
|
81
|
+
readonly actionRef?: never;
|
|
82
|
+
readonly action?: never;
|
|
74
83
|
};
|
|
75
84
|
type BsButtonContent = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
85
|
+
readonly icon: string;
|
|
86
|
+
readonly label?: never;
|
|
87
|
+
readonly ariaLabel: DynamicText;
|
|
79
88
|
} | {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
89
|
+
readonly icon?: string;
|
|
90
|
+
readonly label: DynamicText;
|
|
91
|
+
readonly ariaLabel?: DynamicText;
|
|
83
92
|
} | {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
readonly icon?: never;
|
|
94
|
+
readonly label?: never;
|
|
95
|
+
readonly ariaLabel?: DynamicText;
|
|
87
96
|
};
|
|
88
97
|
/** Interactive button addon for Bootstrap fields. */
|
|
89
98
|
type BsButtonAddon = BsButtonBase & BsButtonContent & BsButtonClick;
|
|
90
99
|
/** Union of all Bootstrap-shipped addon types. */
|
|
91
100
|
type BsAddon = BsIconAddon | BsButtonAddon;
|
|
92
101
|
declare module '@ng-forge/dynamic-forms' {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
102
|
+
interface DynamicFormAddonRegistry {
|
|
103
|
+
'bs-icon': BsIconAddon;
|
|
104
|
+
'bs-button': BsButtonAddon;
|
|
105
|
+
}
|
|
97
106
|
}
|
|
98
|
-
|
|
99
|
-
export { BOOTSTRAP_CONFIG, BS_INPUT_TYPE_OVERRIDE, InputConstraintsDirective, runBsPresetAction };
|
|
100
|
-
export type { BootstrapConfig, BsAddon, BsButtonAddon, BsIconAddon };
|
|
107
|
+
export type { BootstrapConfig, BsAddon, BsButtonAddon, BsIconAddon, PresetCollaborators };
|