@myrtex-org/form 1.0.18 → 1.0.19
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/base/base-field/base-field.component.mjs +15 -2
- package/esm2022/lib/modules/object-form/components/elements/input/number/input-number.component.mjs +13 -3
- package/esm2022/lib/modules/object-form/components/elements/input/text/input-text.component.mjs +12 -3
- package/esm2022/lib/modules/object-form/components/elements/input/textarea/input-textarea.component.mjs +12 -3
- package/esm2022/lib/modules/object-form/components/object-form-content/object-form-content.component.mjs +7 -7
- package/esm2022/lib/modules/object-form/models/elemets/inputs/input-textarea.model.mjs +1 -1
- package/esm2022/lib/modules/object-form/object-form.module.mjs +8 -5
- package/esm2022/lib/modules/object-form/store/object-form.reducers.mjs +1 -2
- package/fesm2022/myrtex-org-form.mjs +59 -17
- package/fesm2022/myrtex-org-form.mjs.map +1 -1
- package/lib/modules/object-form/components/elements/base/base-field/base-field.component.d.ts +2 -0
- package/lib/modules/object-form/components/elements/input/number/input-number.component.d.ts +4 -0
- package/lib/modules/object-form/components/elements/input/table/input-table.component.d.ts +1 -1
- package/lib/modules/object-form/components/elements/input/text/input-text.component.d.ts +4 -0
- package/lib/modules/object-form/components/elements/input/textarea/input-textarea.component.d.ts +4 -0
- package/lib/modules/object-form/components/object-form-content/object-form-content.component.d.ts +0 -1
- package/lib/modules/object-form/models/elemets/inputs/input-textarea.model.d.ts +2 -2
- package/lib/modules/object-form/object-form.module.d.ts +1 -1
- package/lib/modules/object-form/store/object-form.effects.d.ts +12 -12
- package/package.json +1 -1
package/lib/modules/object-form/components/elements/base/base-field/base-field.component.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare abstract class BaseFieldComponent<TModel extends ComponentModelBa
|
|
|
12
12
|
protected _store: Store;
|
|
13
13
|
protected _detector: ChangeDetectorRef;
|
|
14
14
|
protected _subscriptions$: Subscription[];
|
|
15
|
+
private _changeSubject$;
|
|
15
16
|
private _autoSaveStore;
|
|
16
17
|
private _isCheckRequired;
|
|
17
18
|
model: ComponentValueModel;
|
|
@@ -32,6 +33,7 @@ export declare abstract class BaseFieldComponent<TModel extends ComponentModelBa
|
|
|
32
33
|
protected _transformOutputValue(): ComponentValueModel | ComponentValueModel[];
|
|
33
34
|
protected _customModelModify(event: TOutputEvent): void;
|
|
34
35
|
protected _customInit(): void;
|
|
36
|
+
protected _customValidate(model: ComponentValueModel): boolean;
|
|
35
37
|
protected _initModel(): void;
|
|
36
38
|
dispatchModify(event: TOutputEvent): void;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFieldComponent<any, any>, never>;
|
package/lib/modules/object-form/components/elements/input/number/input-number.component.d.ts
CHANGED
|
@@ -3,10 +3,14 @@ import { ComponentType } from '../../../../../shared-form/enums';
|
|
|
3
3
|
import { BaseFieldComponent } from '../../base';
|
|
4
4
|
import { InputNumberModel } from '../../../../models/elemets/inputs';
|
|
5
5
|
import { InputNumberValueWithId } from '@myrtex-org/ui';
|
|
6
|
+
import { ComponentValueModel } from '../../../../models';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class InputNumberComponent extends BaseFieldComponent<InputNumberModel, InputNumberValueWithId> implements OnInit {
|
|
8
9
|
type: ComponentType;
|
|
10
|
+
validateValue: number;
|
|
9
11
|
get isReadonly(): boolean;
|
|
12
|
+
onChangeInput(): void;
|
|
13
|
+
_customValidate(model: ComponentValueModel): boolean;
|
|
10
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberComponent, never>;
|
|
11
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputNumberComponent, "app-input-number", never, {}, {}, never, never, false, never>;
|
|
12
16
|
}
|
|
@@ -30,7 +30,7 @@ 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"
|
|
33
|
+
getFormat(component: ComponentModelBase): "" | "dd.MM.yyyy";
|
|
34
34
|
getDataType(component: ComponentModelBase): "date" | undefined;
|
|
35
35
|
showTotal(component: ComponentModelBase): boolean;
|
|
36
36
|
isTotalColumn(component: ComponentModelBase): boolean;
|
|
@@ -3,9 +3,13 @@ import { ComponentType } from '../../../../../shared-form/enums';
|
|
|
3
3
|
import { BaseFieldComponent } from '../../base';
|
|
4
4
|
import { InputTextModel } from '../../../../models/elemets/inputs';
|
|
5
5
|
import { InputTextValueWithId } from '@myrtex-org/ui';
|
|
6
|
+
import { ComponentValueModel } from '../../../../models';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class InputTextComponent extends BaseFieldComponent<InputTextModel, InputTextValueWithId> implements OnInit, OnDestroy {
|
|
8
9
|
type: ComponentType;
|
|
10
|
+
validateValue: string;
|
|
11
|
+
onChangeInput(): void;
|
|
12
|
+
_customValidate(model: ComponentValueModel): boolean;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextComponent, never>;
|
|
10
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputTextComponent, "app-input-text", never, {}, {}, never, never, false, never>;
|
|
11
15
|
}
|
package/lib/modules/object-form/components/elements/input/textarea/input-textarea.component.d.ts
CHANGED
|
@@ -3,11 +3,15 @@ import { ComponentType } from '../../../../../shared-form/enums';
|
|
|
3
3
|
import { BaseFieldComponent } from '../../base';
|
|
4
4
|
import { InputTextareaModel } from '../../../../models/elemets/inputs';
|
|
5
5
|
import { InputEditorValueWithId, InputTextareaValueWithId } from '@myrtex-org/ui';
|
|
6
|
+
import { ComponentValueModel } from '../../../../models';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class InputTextareaComponent extends BaseFieldComponent<InputTextareaModel, InputEditorValueWithId | InputTextareaValueWithId> implements OnInit {
|
|
8
9
|
type: ComponentType;
|
|
10
|
+
validateValue: string;
|
|
9
11
|
config: any;
|
|
10
12
|
_customInit(): void;
|
|
13
|
+
onChangeInput(): void;
|
|
14
|
+
_customValidate(model: ComponentValueModel): boolean;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextareaComponent, never>;
|
|
12
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputTextareaComponent, "app-input-textarea", never, {}, {}, never, never, false, never>;
|
|
13
17
|
}
|
package/lib/modules/object-form/components/object-form-content/object-form-content.component.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { SectionModel } from '../../models/elemets';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ApplicationContent implements OnInit {
|
|
7
7
|
private _store;
|
|
8
|
-
private _changeSubject$;
|
|
9
8
|
sectionSettings$: Observable<SectionModel | null>;
|
|
10
9
|
ngOnInit(): void;
|
|
11
10
|
changeCheckRequiredState(): void;
|
|
@@ -5,8 +5,8 @@ export interface InputTextareaOptionsBase extends OptionsBase {
|
|
|
5
5
|
tooltip?: string;
|
|
6
6
|
inputState: InputState;
|
|
7
7
|
mask?: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
minLength: number | null;
|
|
9
|
+
maxLength: number | null;
|
|
10
10
|
editor: boolean;
|
|
11
11
|
textType: boolean;
|
|
12
12
|
textFamily: boolean;
|
|
@@ -32,6 +32,6 @@ import * as i30 from "devextreme-angular/ui/nested";
|
|
|
32
32
|
import * as i31 from "../shared-form/shared-form.module";
|
|
33
33
|
export declare class ObjectFormModule {
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ObjectFormModule, [typeof i1.ObjectFormComponent, typeof i2.ApplicationContent, typeof i3.InputTextComponent, typeof i4.InputTextareaComponent, typeof i5.InputLinkComponent, typeof i6.InputSwitchComponent, typeof i7.InputNumberComponent, typeof i8.InputSelectComponent, typeof i9.InputDateComponent, typeof i10.InputInnComponent, typeof i11.InputFileComponent, typeof i12.InputPhoneComponent, typeof i13.InputCheckboxGroupComponent, typeof i14.InputRadioGroupComponent, typeof i15.InputTableComponent, typeof i16.ContentTitleComponent, typeof i17.ContentTextComponent, typeof i18.ContentTooltipComponent, typeof i19.ContentFileComponent, typeof i20.ContentDividerComponent], [typeof i21.CommonModule, typeof i22.ObjectFormRoutingModule, typeof i23.StoreFeatureModule, typeof i24.EffectsFeatureModule, typeof i25.FormDispenser, typeof i26.FormHeaderModule, typeof i26.MenuAdminModule, typeof i27.LoaderModule, typeof i27.InputTextModule, typeof i27.LabelModule, typeof i27.ContentWrapperModule, typeof i27.EditorModule, typeof i27.InputTextareaModule, typeof i27.ButtonModule, typeof i28.FormsModule, typeof i27.CheckboxModule, typeof i27.SwitchModule, typeof i27.InputNumberModule, typeof i27.InputSelectModule, typeof i27.InputDateTimeModule, typeof i27.InputTimepickerModule, typeof i27.InputFileModule, typeof i27.AlertModule, typeof i27.CheckboxGroupModule, typeof i27.RadioGroupModule, typeof i27.DropdownModule, typeof i27.InputTelModule, typeof i27.LinkModule, typeof i27.ErrorMessageModule, typeof i29.DxDataGridModule, typeof i30.DxiColumnModule, typeof i30.DxiItemModule, typeof i30.DxoToolbarModule, typeof i27.ModalModule, typeof i27.ToasterServiceModule, typeof i31.SharedFormModule], never>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ObjectFormModule, [typeof i1.ObjectFormComponent, typeof i2.ApplicationContent, typeof i3.InputTextComponent, typeof i4.InputTextareaComponent, typeof i5.InputLinkComponent, typeof i6.InputSwitchComponent, typeof i7.InputNumberComponent, typeof i8.InputSelectComponent, typeof i9.InputDateComponent, typeof i10.InputInnComponent, typeof i11.InputFileComponent, typeof i12.InputPhoneComponent, typeof i13.InputCheckboxGroupComponent, typeof i14.InputRadioGroupComponent, typeof i15.InputTableComponent, typeof i16.ContentTitleComponent, typeof i17.ContentTextComponent, typeof i18.ContentTooltipComponent, typeof i19.ContentFileComponent, typeof i20.ContentDividerComponent], [typeof i21.CommonModule, typeof i22.ObjectFormRoutingModule, typeof i23.StoreFeatureModule, typeof i24.EffectsFeatureModule, typeof i25.FormDispenser, typeof i26.FormHeaderModule, typeof i26.MenuAdminModule, typeof i27.LoaderModule, typeof i27.InputTextModule, typeof i27.LabelModule, typeof i27.ContentWrapperModule, typeof i27.EditorModule, typeof i27.InputTextareaModule, typeof i27.ButtonModule, typeof i28.FormsModule, typeof i27.CheckboxModule, typeof i27.SwitchModule, typeof i27.InputNumberModule, typeof i27.InputSelectModule, typeof i27.InputDateTimeModule, typeof i27.InputTimepickerModule, typeof i27.InputFileModule, typeof i27.AlertModule, typeof i27.CheckboxGroupModule, typeof i27.RadioGroupModule, typeof i27.DropdownModule, typeof i27.InputTelModule, typeof i27.LinkModule, typeof i27.ErrorMessageModule, typeof i29.DxDataGridModule, typeof i30.DxiColumnModule, typeof i30.DxiItemModule, typeof i30.DxoToolbarModule, typeof i27.ModalModule, typeof i27.ToasterServiceModule, typeof i31.SharedFormModule, typeof i27.HintErrorMessageModule], never>;
|
|
36
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<ObjectFormModule>;
|
|
37
37
|
}
|
|
@@ -21,34 +21,34 @@ export declare class ObjectFormEffects {
|
|
|
21
21
|
apiPrefix: string;
|
|
22
22
|
apiUrl: string;
|
|
23
23
|
}> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
|
-
loadTemplatePending$: Observable<
|
|
25
|
-
templateSysName: string;
|
|
26
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateSuccess>) | ({
|
|
24
|
+
loadTemplatePending$: Observable<({
|
|
27
25
|
templateSysName: string;
|
|
28
26
|
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectPending>) | ({
|
|
29
27
|
templateSysName: string;
|
|
30
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplatePending>)
|
|
31
|
-
|
|
28
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplatePending>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateError> | ({
|
|
29
|
+
templateSysName: string;
|
|
30
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
31
|
+
loadPreviewTemplatePending: Observable<({
|
|
32
32
|
templateSettings: TemplateModel;
|
|
33
33
|
templateSysName: string;
|
|
34
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateSuccess>)
|
|
35
|
-
loadApplicationPending$: Observable<
|
|
34
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateError>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
35
|
+
loadApplicationPending$: Observable<({
|
|
36
36
|
templateSettings: TemplateModel;
|
|
37
37
|
sectionValues: import("../models").SectionValueModel[];
|
|
38
38
|
applicationId: string;
|
|
39
39
|
isDraft: boolean;
|
|
40
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
40
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectError> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CheckAllDependencyRules>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
41
41
|
checkCanUpdateValues$: Observable<[ValueModel | ValueModel[], any]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
42
42
|
saveValuesDebounced$: Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
|
|
43
|
-
updateApplicationValues$: Observable<
|
|
43
|
+
updateApplicationValues$: Observable<({
|
|
44
44
|
result: import("../models").UpdateValueResult;
|
|
45
45
|
objectId: string;
|
|
46
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesSuccess>)
|
|
46
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesError>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
47
47
|
saveApplicationPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveObjectSuccess> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveObjectError>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
48
48
|
copyApplicationPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CopyObjectSuccess> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CopyObjectError>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
49
|
-
loadSectionFilesPending$: Observable<
|
|
49
|
+
loadSectionFilesPending$: Observable<({
|
|
50
50
|
sectionFiles: FileModel[];
|
|
51
|
-
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>)
|
|
51
|
+
} & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesError>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
52
52
|
printDocument$: Observable<[never, string, any]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormEffects, never>;
|
|
54
54
|
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectFormEffects>;
|