@olafvv/ngx-dynamic-form 0.3.0 → 0.4.0
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/esm2022/lib/components/dynamic-form-field/dynamic-form-field.component.mjs +13 -9
- package/esm2022/lib/controls/button/dynamic-button.component.mjs +3 -4
- package/esm2022/lib/controls/button-toggles/dynamic-button-toggles.component.mjs +3 -3
- package/esm2022/lib/controls/button-toggles/dynamic-button-toggles.model.mjs +1 -3
- package/esm2022/lib/controls/controls.mjs +2 -1
- package/esm2022/lib/controls/datepicker/dynamic-datepicker.component.mjs +31 -0
- package/esm2022/lib/controls/datepicker/dynamic-datepicker.model.mjs +13 -0
- package/fesm2022/olafvv-ngx-dynamic-form.mjs +58 -25
- package/fesm2022/olafvv-ngx-dynamic-form.mjs.map +1 -1
- package/lib/controls/button-toggles/dynamic-button-toggles.model.d.ts +1 -7
- package/lib/controls/controls.d.ts +1 -0
- package/lib/controls/datepicker/dynamic-datepicker.component.d.ts +13 -0
- package/lib/controls/datepicker/dynamic-datepicker.model.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DynamicFormFieldValueConfig, DynamicFormFieldValueModel } from '../../models/classes/dynamic-form-field-value-model';
|
|
2
|
+
export declare const DYNAMIC_FORM_FIELD_DATEPICKER = "datepicker";
|
|
3
|
+
export type DynamicDatepickerControlValue = Date | object | string;
|
|
4
|
+
export interface DynamicDatepickerConfig extends DynamicFormFieldValueConfig<DynamicDatepickerControlValue> {
|
|
5
|
+
/**
|
|
6
|
+
* Maximum date selectable in the datepicker
|
|
7
|
+
* {DynamicDatepickerControlValue}
|
|
8
|
+
* */
|
|
9
|
+
max?: DynamicDatepickerControlValue;
|
|
10
|
+
/** Minimum date selectable in the datepicker */
|
|
11
|
+
min?: DynamicDatepickerControlValue;
|
|
12
|
+
/** The initial date visible inside the datepicker when opening the picker */
|
|
13
|
+
startAt?: DynamicDatepickerControlValue;
|
|
14
|
+
/** The view the picker is initializing when opening */
|
|
15
|
+
startView?: 'month' | 'year' | 'multi-year';
|
|
16
|
+
}
|
|
17
|
+
export declare class DynamicDatepicker extends DynamicFormFieldValueModel<DynamicDatepickerControlValue> {
|
|
18
|
+
max: DynamicDatepickerControlValue | null;
|
|
19
|
+
min: DynamicDatepickerControlValue | null;
|
|
20
|
+
startAt: DynamicDatepickerControlValue | null;
|
|
21
|
+
startView: 'month' | 'year' | 'multi-year';
|
|
22
|
+
readonly type = "datepicker";
|
|
23
|
+
constructor(config: DynamicDatepickerConfig);
|
|
24
|
+
}
|