@myrtex-org/form 1.0.21 → 1.0.23
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/modules/object-form/components/elements/input/date/input-date.component.mjs +70 -22
- package/esm2022/lib/modules/object-form/components/elements/input/table/components/input-table-modal/form-dispenser-modal/form-dispenser-modal.component.mjs +3 -3
- package/esm2022/lib/modules/object-form/components/elements/input/table/components/input-table-modal/input-table-modal.component.mjs +4 -4
- package/esm2022/lib/modules/object-form/components/elements/input/table/input-table.component.mjs +9 -9
- package/esm2022/lib/modules/object-form/helpers/get-menu-model.mjs +2 -2
- package/esm2022/lib/modules/object-form/models/elemets/inputs/input-date.model.mjs +1 -1
- package/esm2022/lib/modules/object-form/object-form-routing.module.mjs +1 -11
- package/esm2022/lib/modules/object-form/store/object-form.reducers.mjs +1 -1
- package/fesm2022/myrtex-org-form.mjs +82 -42
- package/fesm2022/myrtex-org-form.mjs.map +1 -1
- package/lib/modules/object-form/components/elements/input/date/input-date.component.d.ts +5 -0
- package/lib/modules/object-form/components/elements/input/table/input-table.component.d.ts +2 -2
- package/lib/modules/object-form/models/elemets/inputs/input-date.model.d.ts +3 -0
- package/package.json +1 -1
|
@@ -7,16 +7,21 @@ import { InputDateTimeValueWithId } from '@myrtex-org/ui';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class InputDateComponent extends BaseFieldComponent<InputDateModel, InputDateTimeValueWithId> implements OnInit {
|
|
9
9
|
type: ComponentType;
|
|
10
|
+
private readonly _millisecondsInDay;
|
|
10
11
|
private _isInit;
|
|
11
12
|
dateModel: string | string[] | null;
|
|
12
13
|
modelStart: ComponentValueModel;
|
|
13
14
|
modelEnd: ComponentValueModel;
|
|
15
|
+
modelCounter: number;
|
|
14
16
|
get value(): string | string[];
|
|
15
17
|
get getViewTypeTimepicker(): boolean;
|
|
16
18
|
updateValue(event: InputDateTimeValueWithId): void;
|
|
19
|
+
updateCounter(value: number | null): void;
|
|
17
20
|
_transformOutputValue(): ComponentValueModel | ComponentValueModel[];
|
|
18
21
|
_initSubscriptionForValue(): void;
|
|
19
22
|
_customInit(): void;
|
|
23
|
+
private _getDaysDifference;
|
|
24
|
+
private _changeDays;
|
|
20
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
|
|
21
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "app-input-date", never, {}, {}, never, never, false, never>;
|
|
22
27
|
}
|
|
@@ -30,8 +30,8 @@ export declare class InputTableComponent implements OnInit, OnDestroy {
|
|
|
30
30
|
createRow(): void;
|
|
31
31
|
deleteRow(event: any): void;
|
|
32
32
|
editRow(event: any): void;
|
|
33
|
-
getFormat(component: ComponentModelBase): "dd.MM.yyyy hh:mm" | "dd.MM.yyyy"
|
|
34
|
-
getDataType(component: ComponentModelBase): "date" |
|
|
33
|
+
getFormat(component: ComponentModelBase): "" | "dd.MM.yyyy hh:mm" | "dd.MM.yyyy";
|
|
34
|
+
getDataType(component: ComponentModelBase): "date" | "string";
|
|
35
35
|
showTotal(component: ComponentModelBase): boolean;
|
|
36
36
|
isTotalColumn(component: ComponentModelBase): boolean;
|
|
37
37
|
private _initModel;
|
|
@@ -9,6 +9,9 @@ export interface InputDateOptionsBase extends OptionsBase {
|
|
|
9
9
|
range: boolean;
|
|
10
10
|
minDate: string | null;
|
|
11
11
|
maxDate: string | null;
|
|
12
|
+
counter: boolean;
|
|
13
|
+
counterEditable: boolean;
|
|
14
|
+
counterLabel: string;
|
|
12
15
|
}
|
|
13
16
|
export interface InputDateModel extends ComponentModelBase {
|
|
14
17
|
options: InputDateOptionsBase;
|