@mediusinc/mng-commons 5.0.1 → 5.1.0-rc.1
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/README.md +7 -6
- package/core/descriptors/model.descriptor.d.ts +1 -1
- package/core/error/error-helpers.d.ts +18 -1
- package/core/helpers/coercion.d.ts +1 -0
- package/core/i18n/i18n-type.d.ts +0 -9
- package/core/index.d.ts +0 -1
- package/core/services/commons-configuration.service.d.ts +12 -0
- package/esm2022/core/components/notification/notification-wrapper.component.mjs +5 -6
- package/esm2022/core/components/pages/error/error.page.component.mjs +4 -4
- package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +4 -4
- package/esm2022/core/descriptors/model.descriptor.mjs +1 -1
- package/esm2022/core/directives/component.directive.mjs +3 -3
- package/esm2022/core/directives/template.directive.mjs +3 -3
- package/esm2022/core/error/error-helpers.mjs +20 -1
- package/esm2022/core/helpers/coercion.mjs +4 -1
- package/esm2022/core/i18n/i18n-type.mjs +1 -34
- package/esm2022/core/index.mjs +1 -2
- package/esm2022/core/pipes/boolean.pipe.mjs +3 -3
- package/esm2022/core/pipes/class-map.pipe.mjs +3 -3
- package/esm2022/core/pipes/enum.pipe.mjs +5 -5
- package/esm2022/core/pipes/enumerate-async.pipe.mjs +3 -3
- package/esm2022/core/pipes/enumerate.pipe.mjs +3 -3
- package/esm2022/core/pipes/getter.pipe.mjs +3 -3
- package/esm2022/core/pipes/i18n-property.pipe.mjs +3 -3
- package/esm2022/core/pipes/json-path.pipe.mjs +3 -3
- package/esm2022/core/pipes/parametrize.pipe.mjs +3 -3
- package/esm2022/core/pipes/template.pipe.mjs +3 -3
- package/esm2022/core/security/permission.service.mjs +3 -3
- package/esm2022/core/services/commons-configuration.service.mjs +16 -1
- package/esm2022/core/services/commons-init.service.mjs +3 -3
- package/esm2022/core/services/commons-router.service.mjs +3 -3
- package/esm2022/core/services/commons.service.mjs +3 -3
- package/esm2022/core/services/local-storage-config.service.mjs +3 -3
- package/esm2022/form/components/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/form/components/date-range/date-range.component.mjs +4 -4
- package/esm2022/form/components/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/form/directives/input-trim.directive.mjs +14 -19
- package/esm2022/model/descriptors/model.descriptor.mjs +1 -1
- package/esm2022/model/helpers/i18n.mjs +7 -10
- package/esm2022/table/api/descriptors/table.descriptor.mjs +2 -2
- package/esm2022/table/api/models/table.model.mjs +1 -1
- package/esm2022/table/components/column-filter-full/column-filter-full.component.mjs +4 -4
- package/esm2022/table/components/column-value/column-value.component.mjs +43 -53
- package/esm2022/table/components/table/table.component.mjs +300 -365
- package/esm2022/table/pipes/locale-default-row-class.pipe.mjs +3 -3
- package/esm2022/table/pipes/table-column-filter-class.pipe.mjs +3 -3
- package/esm2022/table/services/data-list.service.mjs +3 -3
- package/esm2022/tableview/action/components/action/action.component.mjs +5 -5
- package/esm2022/tableview/action/components/editor/action-editor.component.mjs +6 -7
- package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +5 -4
- package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +3 -3
- package/esm2022/tableview/action/components/route/action-route.component.mjs +3 -3
- package/esm2022/tableview/action/components/table/action-table.component.mjs +43 -92
- package/esm2022/tableview/action/services/component-action-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/data-provider-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/navigation.service.mjs +3 -3
- package/esm2022/tableview/action/services/root-action-executor.service.mjs +3 -3
- package/esm2022/tableview/action/services/view-container.service.mjs +3 -3
- package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/field-lookup.descriptor.mjs +1 -1
- package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +4 -1
- package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +6 -14
- package/esm2022/tableview/api/editor/models/field-action-context.model.mjs +1 -1
- package/esm2022/tableview/api/editor/models/form-editor.interface.mjs +1 -1
- package/esm2022/tableview/api/editor/models/formly-custom-field.model.mjs +5 -5
- package/esm2022/tableview/api/editor/models/formly-field.model.mjs +1 -1
- package/esm2022/tableview/api/editor/models/formly-options.model.mjs +2 -0
- package/esm2022/tableview/api/index.mjs +2 -2
- package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +25 -20
- package/esm2022/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.mjs +7 -8
- package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +10 -12
- package/esm2022/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.mjs +7 -7
- package/esm2022/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.mjs +51 -10
- package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +10 -11
- package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +8 -8
- package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +8 -7
- package/esm2022/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.mjs +7 -8
- package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +19 -33
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +16 -18
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +21 -26
- package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +7 -6
- package/esm2022/tableview/editor/components/formly/fields/formly-field-type.abstract.component.mjs +23 -0
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-no-label-wrapper/formly-field-no-label-wrapper.component.mjs +3 -3
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +3 -3
- package/esm2022/tableview/editor/helpers/editor-formly.mjs +14 -2
- package/esm2022/tableview/editor/helpers/editor-validators.mjs +25 -0
- package/esm2022/tableview/editor/helpers/formly-config.mjs +7 -5
- package/esm2022/tableview/editor/services/form-editor.service.mjs +3 -3
- package/esm2022/tableview/index.mjs +2 -1
- package/esm2022/tableview/tableview/components/route/tableview-route.component.mjs +3 -3
- package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +4 -4
- package/fesm2022/mediusinc-mng-commons-core.mjs +164 -205
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +23 -27
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs +7 -10
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table.mjs +357 -431
- package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +13 -39
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +305 -280
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/form/directives/input-trim.directive.d.ts +5 -8
- package/model/descriptors/model.descriptor.d.ts +3 -3
- package/model/helpers/i18n.d.ts +1 -3
- package/package.json +15 -15
- package/table/api/models/table.model.d.ts +1 -1
- package/table/components/column-value/column-value.component.d.ts +11 -17
- package/table/components/table/table.component.d.ts +43 -47
- package/tableview/action/components/editor/action-editor.component.d.ts +1 -2
- package/tableview/action/components/table/action-table.component.d.ts +26 -29
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +3 -3
- package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +3 -3
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +2 -1
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +13 -9
- package/tableview/api/editor/models/field-action-context.model.d.ts +4 -4
- package/tableview/api/editor/models/form-editor.interface.d.ts +24 -14
- package/tableview/api/editor/models/formly-custom-field.model.d.ts +22 -19
- package/tableview/api/editor/models/formly-field.model.d.ts +20 -0
- package/tableview/api/editor/models/formly-options.model.d.ts +15 -0
- package/tableview/api/index.d.ts +1 -1
- package/tableview/editor/components/editor/form-editor.component.d.ts +9 -17
- package/tableview/editor/components/formly/fields/formly-field-action/formly-field-action.component.d.ts +3 -4
- package/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +3 -7
- package/tableview/editor/components/formly/fields/formly-field-custom/formly-field-custom.component.d.ts +3 -4
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +6 -4
- package/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +3 -6
- package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +3 -4
- package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +4 -6
- package/tableview/editor/components/formly/fields/formly-field-label/formly-field-label.component.d.ts +5 -6
- package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +6 -10
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +4 -7
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +7 -12
- package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +2 -3
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +12 -0
- package/tableview/editor/helpers/editor-validators.d.ts +7 -0
- package/tableview/index.d.ts +1 -0
- package/version-info.json +5 -5
- package/core/directives/dialog-keydown-handler.directive.d.ts +0 -12
- package/esm2022/core/directives/dialog-keydown-handler.directive.mjs +0 -49
- package/esm2022/tableview/api/editor/helpers/field-validators.mjs +0 -23
- package/tableview/api/editor/helpers/field-validators.d.ts +0 -7
|
@@ -3,16 +3,26 @@ import { AbstractControl, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
5
5
|
import { EditorDescriptorInst } from '../descriptors/editor.descriptor';
|
|
6
|
-
|
|
7
|
-
formState?: {
|
|
8
|
-
descriptor?: EditorDescriptorInst<Item>;
|
|
9
|
-
add: boolean;
|
|
10
|
-
edit: boolean;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
6
|
+
import { CommonsFormlyFormOptions } from './formly-options.model';
|
|
14
7
|
export type FormEditorResetFormModelOpts = {
|
|
15
8
|
markAsPristine?: boolean;
|
|
9
|
+
onlySelf?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type FormEditorSetFieldValueOpts = {
|
|
12
|
+
onlySelf?: boolean;
|
|
13
|
+
emitEvent?: boolean;
|
|
14
|
+
emitModelToViewChange?: boolean;
|
|
15
|
+
emitViewToModelChange?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type FormEditorPatchFieldValueOpts = {
|
|
18
|
+
onlySelf?: boolean;
|
|
19
|
+
emitEvent?: boolean;
|
|
20
|
+
emitModelToViewChange?: boolean;
|
|
21
|
+
emitViewToModelChange?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type FormEditorResetFieldValueOpts = {
|
|
24
|
+
onlySelf?: boolean;
|
|
25
|
+
emitEvent?: boolean;
|
|
16
26
|
};
|
|
17
27
|
export interface IFormEditorComponent<Item, ParentItem = any> {
|
|
18
28
|
descriptor: InputSignal<EditorDescriptorInst<Item>>;
|
|
@@ -31,10 +41,10 @@ export interface IFormEditorComponent<Item, ParentItem = any> {
|
|
|
31
41
|
resetFormModel(item?: Item, opts?: FormEditorResetFormModelOpts): void;
|
|
32
42
|
getField(key: keyof Item): AbstractControl | null;
|
|
33
43
|
getFieldUnsafe(key: string): AbstractControl | null;
|
|
34
|
-
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
35
|
-
setFieldValueUnsafe(key: string, value: any): boolean;
|
|
36
|
-
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
37
|
-
patchFieldValueUnsafe(key: string, value: any): boolean;
|
|
38
|
-
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property]): boolean;
|
|
39
|
-
resetFieldValueUnsafe(key: string, value?: any): boolean;
|
|
44
|
+
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorSetFieldValueOpts): boolean;
|
|
45
|
+
setFieldValueUnsafe(key: string, value: any, opts?: FormEditorSetFieldValueOpts): boolean;
|
|
46
|
+
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
47
|
+
patchFieldValueUnsafe(key: string, value: any, opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
48
|
+
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property], opts?: FormEditorResetFieldValueOpts): boolean;
|
|
49
|
+
resetFieldValueUnsafe(key: string, value?: any, opts?: FormEditorResetFieldValueOpts): boolean;
|
|
40
50
|
}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { AbstractControl,
|
|
2
|
-
import { FieldType
|
|
3
|
-
import { CommonsFormlyFieldConfig } from './formly-field.model';
|
|
1
|
+
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { CommonsFormlyFieldConfig, CommonsFormlyFieldProps } from './formly-field.model';
|
|
4
|
+
import { CommonsFormlyFormOptions, CommonsFormlyFormState } from './formly-options.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class AFormlyCustomFieldComponent extends FieldType<CommonsFormlyFieldConfig
|
|
6
|
-
field: CommonsFormlyFieldConfig
|
|
7
|
-
_model:
|
|
8
|
-
_form: FormGroup
|
|
9
|
-
|
|
6
|
+
export declare abstract class AFormlyCustomFieldComponent<Value, FormValue, ParentFormValue = undefined> extends FieldType<CommonsFormlyFieldConfig<Value, FormValue, ParentFormValue>> {
|
|
7
|
+
field: CommonsFormlyFieldConfig<Value, FormValue, ParentFormValue>;
|
|
8
|
+
_model: Value;
|
|
9
|
+
_form: FormGroup<{
|
|
10
|
+
[K in keyof FormValue]: AbstractControl<FormValue[K]>;
|
|
11
|
+
}>;
|
|
12
|
+
_options: CommonsFormlyFormOptions<FormValue>;
|
|
10
13
|
_key: string | number | (string | number)[];
|
|
11
|
-
_formControl:
|
|
12
|
-
_props:
|
|
14
|
+
_formControl: FormControl<Value>;
|
|
15
|
+
_props: CommonsFormlyFieldProps<Value, FormValue, ParentFormValue>;
|
|
13
16
|
_showError: boolean;
|
|
14
17
|
_id: string;
|
|
15
|
-
_formState:
|
|
16
|
-
get model():
|
|
17
|
-
get form(): FormGroup<
|
|
18
|
-
get options():
|
|
18
|
+
_formState: CommonsFormlyFormState<FormValue>;
|
|
19
|
+
get model(): Value;
|
|
20
|
+
get form(): FormGroup<{ [K in keyof FormValue]: AbstractControl<FormValue[K], FormValue[K]>; }>;
|
|
21
|
+
get options(): CommonsFormlyFormOptions<FormValue>;
|
|
19
22
|
get key(): string | number | (string | number)[];
|
|
20
|
-
get formControl():
|
|
21
|
-
get props():
|
|
23
|
+
get formControl(): FormControl<Value>;
|
|
24
|
+
get props(): CommonsFormlyFieldProps<Value, FormValue, ParentFormValue>;
|
|
22
25
|
get showError(): boolean;
|
|
23
26
|
get id(): string;
|
|
24
|
-
get formState():
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AFormlyCustomFieldComponent, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AFormlyCustomFieldComponent, never, never, { "field": { "alias": "field"; "required": false; }; "_model": { "alias": "model"; "required": false; }; "_form": { "alias": "form"; "required": false; }; "_options": { "alias": "options"; "required": false; }; "_key": { "alias": "key"; "required": false; }; "_formControl": { "alias": "formControl"; "required": false; }; "_props": { "alias": "props"; "required": false; }; "_showError": { "alias": "showError"; "required": false; }; "_id": { "alias": "id"; "required": false; }; "_formState": { "alias": "formState"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
get formState(): CommonsFormlyFormState<FormValue>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AFormlyCustomFieldComponent<any, any, any>, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AFormlyCustomFieldComponent<any, any, any>, never, never, { "field": { "alias": "field"; "required": false; }; "_model": { "alias": "model"; "required": false; }; "_form": { "alias": "form"; "required": false; }; "_options": { "alias": "options"; "required": false; }; "_key": { "alias": "key"; "required": false; }; "_formControl": { "alias": "formControl"; "required": false; }; "_props": { "alias": "props"; "required": false; }; "_showError": { "alias": "showError"; "required": false; }; "_id": { "alias": "id"; "required": false; }; "_formState": { "alias": "formState"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
30
|
}
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
+
import { AbstractControl, FormControl, FormGroup } from '@angular/forms';
|
|
1
2
|
import { FieldType, FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
2
3
|
import { AFieldDescriptor } from '../descriptors/field-base.descriptor';
|
|
3
4
|
import { AFieldGroupDescriptor } from '../descriptors/field-group.descriptor';
|
|
4
5
|
import { IFormEditorComponent } from './form-editor.interface';
|
|
6
|
+
import { CommonsFormlyFormOptions } from './formly-options.model';
|
|
5
7
|
export type CommonsFormlyFieldProps<Value = any, FormValue = any, ParentFormValue = any> = FormlyFieldProps & CommonsFormlyFieldAdditionalProps<Value, FormValue, ParentFormValue>;
|
|
6
8
|
export type CommonsFormlyValidation = FormlyFieldConfig['validators'];
|
|
7
9
|
export interface CommonsFormlyFieldConfig<Value = any, FormValue = any, ParentFormValue = any, Props = CommonsFormlyFieldProps<Value, FormValue, ParentFormValue>> extends FormlyFieldConfig<Props> {
|
|
8
10
|
props: Props;
|
|
11
|
+
readonly model?: Value;
|
|
12
|
+
/**
|
|
13
|
+
* The form options.
|
|
14
|
+
*/
|
|
15
|
+
readonly options?: CommonsFormlyFormOptions<Value>;
|
|
16
|
+
/**
|
|
17
|
+
* The parent form.
|
|
18
|
+
*/
|
|
19
|
+
readonly form?: FormGroup<{
|
|
20
|
+
[K in keyof FormValue]: AbstractControl<FormValue[K]>;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* This is the [FormControl](https://angular.io/api/forms/FormControl) for the field.
|
|
24
|
+
* It provides you more control like running validators, calculating status, and resetting state.
|
|
25
|
+
*/
|
|
26
|
+
readonly formControl?: FormControl<Value>;
|
|
9
27
|
}
|
|
10
28
|
export type CommonsFormlyHookFn<T, ET> = (field: CommonsFormlyFieldConfig<T, ET>) => void;
|
|
11
29
|
export interface CommonsFormlyFieldAdditionalProps<Value, FormValue, ParentFormValue = any> {
|
|
@@ -15,6 +33,8 @@ export interface CommonsFormlyFieldAdditionalProps<Value, FormValue, ParentFormV
|
|
|
15
33
|
required?: boolean;
|
|
16
34
|
hide?: boolean;
|
|
17
35
|
disabled?: boolean;
|
|
36
|
+
minDate?: Date;
|
|
37
|
+
maxDate?: Date;
|
|
18
38
|
onValueChange?: (field: CommonsFormlyFieldConfig<Value, FormValue>, value: Value) => void;
|
|
19
39
|
[additionalProperties: string]: any;
|
|
20
40
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormlyFormOptions } from '@ngx-formly/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { EditorDescriptorInst } from '../descriptors/editor.descriptor';
|
|
4
|
+
export type CommonsFormlyFormOptions<Item> = FormlyFormOptions & {
|
|
5
|
+
formState?: CommonsFormlyFormState<Item>;
|
|
6
|
+
};
|
|
7
|
+
export type CommonsFormlyFormState<Item> = {
|
|
8
|
+
descriptor?: EditorDescriptorInst<Item>;
|
|
9
|
+
add: boolean;
|
|
10
|
+
edit: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
disabled$: Observable<boolean>;
|
|
13
|
+
submittedOn?: number;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
};
|
package/tableview/api/index.d.ts
CHANGED
|
@@ -33,7 +33,6 @@ export * from './editor/descriptors/field-many.descriptor';
|
|
|
33
33
|
export * from './editor/descriptors/field-validation.descriptor';
|
|
34
34
|
export * from './editor/helpers/class-attribute-converter';
|
|
35
35
|
export * from './editor/helpers/editor-descriptor-helpers';
|
|
36
|
-
export * from './editor/helpers/field-validators';
|
|
37
36
|
export * from './editor/models/class-tableview-attribute.model';
|
|
38
37
|
export * from './editor/models/editor.model';
|
|
39
38
|
export * from './editor/models/editor-fields.model';
|
|
@@ -44,6 +43,7 @@ export * from './editor/models/form-editor.event';
|
|
|
44
43
|
export * from './editor/models/form-editor.interface';
|
|
45
44
|
export * from './editor/models/formly-custom-field.model';
|
|
46
45
|
export * from './editor/models/formly-field.model';
|
|
46
|
+
export * from './editor/models/formly-options.model';
|
|
47
47
|
export * from './editor/models/radio.model';
|
|
48
48
|
export * from './tableview/data-providers/tableview.data-provider';
|
|
49
49
|
export * from './tableview/data-providers/tableview-data-provider.factory';
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { FormlyFieldConfig
|
|
3
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
5
|
-
import { EditorDescriptorInst, FormEditorResetFormModelOpts, FormEditorSubmitEvent, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
+
import { CommonsFormlyFormOptions, EditorDescriptorInst, FormEditorPatchFieldValueOpts, FormEditorResetFieldValueOpts, FormEditorResetFormModelOpts, FormEditorSetFieldValueOpts, FormEditorSubmitEvent, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
type CommonsFormlyFormOptions<Item> = FormlyFormOptions & {
|
|
8
|
-
formState?: {
|
|
9
|
-
descriptor?: EditorDescriptorInst<Item>;
|
|
10
|
-
add: boolean;
|
|
11
|
-
edit: boolean;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
7
|
export declare class FormEditorComponent<Item = any, ParentItem = any> implements IFormEditorComponent<Item, ParentItem>, OnInit, OnDestroy {
|
|
16
8
|
private readonly formlyConfig;
|
|
17
9
|
private readonly translateService;
|
|
@@ -26,6 +18,7 @@ export declare class FormEditorComponent<Item = any, ParentItem = any> implement
|
|
|
26
18
|
formSubmit: import("@angular/core").OutputEmitterRef<FormEditorSubmitEvent<Item>>;
|
|
27
19
|
submitButtonElementRef: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
28
20
|
private readonly _form;
|
|
21
|
+
private readonly _formlyStateDisabledSubject;
|
|
29
22
|
private readonly _formlyOptions;
|
|
30
23
|
private _formlyFields;
|
|
31
24
|
private _formlyInitialItem;
|
|
@@ -53,16 +46,15 @@ export declare class FormEditorComponent<Item = any, ParentItem = any> implement
|
|
|
53
46
|
resetFormModel(item?: Item, opts?: FormEditorResetFormModelOpts): void;
|
|
54
47
|
getField(key: keyof Item): AbstractControl<any, any> | null;
|
|
55
48
|
getFieldUnsafe(key: string): AbstractControl<any, any> | null;
|
|
56
|
-
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
57
|
-
setFieldValueUnsafe(key: string, value: any): boolean;
|
|
58
|
-
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property]): boolean;
|
|
59
|
-
patchFieldValueUnsafe(key: string, value: any): boolean;
|
|
60
|
-
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property]): boolean;
|
|
61
|
-
resetFieldValueUnsafe(key: string, value?: any): boolean;
|
|
49
|
+
setFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorSetFieldValueOpts): boolean;
|
|
50
|
+
setFieldValueUnsafe(key: string, value: any, opts?: FormEditorSetFieldValueOpts): boolean;
|
|
51
|
+
patchFieldValue<Property extends keyof Item>(key: Property, value: Item[Property], opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
52
|
+
patchFieldValueUnsafe(key: string, value: any, opts?: FormEditorPatchFieldValueOpts): boolean;
|
|
53
|
+
resetFieldValue<Property extends keyof Item>(key: Property, value?: Item[Property], opts?: FormEditorResetFieldValueOpts): boolean;
|
|
54
|
+
resetFieldValueUnsafe(key: string, value?: any, opts?: FormEditorResetFieldValueOpts): boolean;
|
|
62
55
|
private getFormModelFromItem;
|
|
63
56
|
private findFormField;
|
|
64
57
|
private isAnyFieldInvalid;
|
|
65
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormEditorComponent<any, any>, never>;
|
|
66
59
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormEditorComponent<any, any>, "mng-form-editor", never, { "descriptor": { "alias": "descriptor"; "required": true; "isSignal": true; }; "submitLoading": { "alias": "submitLoading"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "isFormDisabled": { "alias": "isFormDisabled"; "required": false; "isSignal": true; }; }, { "formSubmit": "formSubmit"; }, never, never, true, never>;
|
|
67
60
|
}
|
|
68
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FieldActionDescriptor, FieldActionResultMessage } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormlyFieldActionComponent<EditorModel> extends
|
|
6
|
-
descriptor: FieldActionDescriptor<EditorModel>;
|
|
5
|
+
export declare class FormlyFieldActionComponent<EditorModel> extends ACommonsFormlyFieldType<void, EditorModel, FieldActionDescriptor<EditorModel>> implements OnInit, OnDestroy {
|
|
7
6
|
buttonClass: string;
|
|
8
7
|
actionMessage?: FieldActionResultMessage;
|
|
9
8
|
private resultSubscription?;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CommonsFormlyFieldConfig, FieldLookupDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
2
|
+
import { FieldLookupDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldAutocompleteComponent<T, ET> extends
|
|
5
|
+
export declare class FormlyFieldAutocompleteComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
7
6
|
private readonly destroyRef;
|
|
8
|
-
aFormControl: FormControl;
|
|
9
|
-
descriptor: FieldLookupDescriptor<T, ET>;
|
|
10
|
-
private subscriptions;
|
|
11
7
|
ngOnInit(): void;
|
|
12
8
|
ngAfterViewInit(): void;
|
|
13
9
|
ngOnDestroy(): void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FieldInputDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormlyFieldCustomComponent<ET> extends
|
|
6
|
-
descriptor: FieldInputDescriptor<ET>;
|
|
5
|
+
export declare class FormlyFieldCustomComponent<ET> extends ACommonsFormlyFieldType<any, ET, FieldInputDescriptor<ET>> implements OnInit {
|
|
7
6
|
inputs: Record<string, any>;
|
|
8
7
|
ngOnInit(): void;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCustomComponent<any>, never>;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { FieldInputDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
4
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldDatepickerComponent<ET> extends
|
|
6
|
+
export declare class FormlyFieldDatepickerComponent<ET> extends ACommonsFormlyFieldType<any, ET, FieldInputDescriptor<ET>> implements OnInit, OnDestroy {
|
|
7
7
|
dpFormControl: FormControl<any>;
|
|
8
|
-
descriptor: FieldInputDescriptor<ET>;
|
|
9
8
|
styleClass: import("@angular/core").WritableSignal<string>;
|
|
10
9
|
private readonly moduleConfig;
|
|
11
10
|
private destroyRef;
|
|
12
11
|
private dateTimeInUtc;
|
|
13
12
|
private dateTimeWithTimezone;
|
|
14
13
|
private dateTimeWithMillis;
|
|
14
|
+
minDate: import("@angular/core").WritableSignal<Date | undefined>;
|
|
15
|
+
maxDate: import("@angular/core").WritableSignal<Date | undefined>;
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
onBlur(): void;
|
|
18
|
+
private initializeMinMaxValidators;
|
|
17
19
|
private convertDateValue;
|
|
18
20
|
private areDateValuesEqual;
|
|
19
21
|
ngOnDestroy(): void;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CommonsFormlyFieldConfig, FieldLookupDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
2
|
+
import { FieldLookupDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldDropdownComponent<T, ET> extends
|
|
5
|
+
export declare class FormlyFieldDropdownComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, OnDestroy {
|
|
7
6
|
private readonly destroyRef;
|
|
8
|
-
dFormControl: FormControl;
|
|
9
|
-
descriptor: FieldLookupDescriptor<T, ET>;
|
|
10
7
|
ngOnInit(): void;
|
|
11
8
|
ngOnDestroy(): void;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldDropdownComponent<any, any>, never>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FieldGroupDescriptor, FieldGroupTypeEnum } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormlyFieldFieldsetComponent<ET> extends
|
|
5
|
+
export declare class FormlyFieldFieldsetComponent<ET> extends ACommonsFormlyFieldType<ET, ET, FieldGroupDescriptor<ET>> implements OnInit {
|
|
6
6
|
readonly typeFieldset = FieldGroupTypeEnum.Fieldset;
|
|
7
7
|
readonly typeLogical = FieldGroupTypeEnum.Logical;
|
|
8
|
-
descriptor?: FieldGroupDescriptor<ET>;
|
|
9
8
|
ngOnInit(): void;
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldFieldsetComponent<any>, never>;
|
|
11
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldFieldsetComponent<any>, "mng-formly-field-fieldset", never, {}, {}, never, never, true, never>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormArray, FormControl } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { FormEditorComponent } from '../../../editor/form-editor.component';
|
|
3
|
+
import { FieldInputDescriptor, FieldInputTypeEnum, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
|
|
4
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormlyFieldInputComponent<ET> extends
|
|
6
|
+
export declare class FormlyFieldInputComponent<ET> extends ACommonsFormlyFieldType<any, ET, FieldInputDescriptor<ET>> implements OnInit, OnDestroy {
|
|
8
7
|
readonly NUMBER_MIN_SAFE: number;
|
|
9
8
|
readonly NUMBER_MAX_SAFE: number;
|
|
10
9
|
readonly DESC_INPUT_TYPE_IMAGE_FILE = FieldInputTypeEnum.ImageFile;
|
|
@@ -13,12 +12,11 @@ export declare class FormlyFieldInputComponent<ET> extends FieldType<CommonsForm
|
|
|
13
12
|
private readonly formBuilder;
|
|
14
13
|
private readonly translateService;
|
|
15
14
|
iFormControl: FormControl;
|
|
16
|
-
descriptor: FieldInputDescriptor<ET>;
|
|
17
15
|
numberFieldMode: 'decimal' | 'currency';
|
|
18
16
|
currency?: string;
|
|
19
17
|
private files;
|
|
20
18
|
imageFormArray: FormArray;
|
|
21
|
-
formEditorComponent?:
|
|
19
|
+
formEditorComponent?: IFormEditorComponent<ET, any>;
|
|
22
20
|
ngOnInit(): void;
|
|
23
21
|
ngOnDestroy(): void;
|
|
24
22
|
onFileSelect(event: any): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FieldInputDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormlyFieldLabelComponent
|
|
5
|
+
export declare class FormlyFieldLabelComponent extends ACommonsFormlyFieldType<any, any, FieldInputDescriptor<any>> implements OnInit {
|
|
6
6
|
className: string;
|
|
7
|
-
private descriptor;
|
|
8
7
|
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldLabelComponent
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldLabelComponent
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldLabelComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldLabelComponent, "mng-formly-field-label", never, {}, {}, never, never, true, never>;
|
|
11
10
|
}
|
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FieldType } from '@ngx-formly/core';
|
|
4
3
|
import { Message } from 'primeng/api';
|
|
5
|
-
import { Observable, Subject } from 'rxjs';
|
|
6
4
|
import { DataListResult } from '@mediusinc/mng-commons/core';
|
|
7
5
|
import { TableComponent } from '@mediusinc/mng-commons/table';
|
|
8
|
-
import {
|
|
6
|
+
import { FieldLookupConfig, FieldLookupDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
7
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class FormlyFieldLookupDialogComponent<T, ET> extends
|
|
9
|
+
export declare class FormlyFieldLookupDialogComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
11
10
|
private injector;
|
|
12
11
|
table?: TableComponent;
|
|
13
12
|
private readonly destroyRef;
|
|
14
13
|
private readonly logger;
|
|
15
|
-
descriptor: FieldLookupDescriptor<T, ET>;
|
|
16
14
|
config: FieldLookupConfig;
|
|
17
15
|
fieldLabelFormControl: FormControl;
|
|
18
|
-
|
|
19
|
-
addItemsAsync: Observable<DataListResult<T>>;
|
|
16
|
+
addItems: import("@angular/core").WritableSignal<DataListResult<T>>;
|
|
20
17
|
dialogUseDataProvider: boolean;
|
|
21
18
|
private dialogDataProviderService;
|
|
22
|
-
private dialogIsLoadingSubject;
|
|
23
19
|
isDialogVisible: boolean;
|
|
24
20
|
dialogAreItemsLoaded: boolean;
|
|
25
21
|
dialogSelectedItem: any;
|
|
26
22
|
dialogMessages: Message[];
|
|
27
|
-
dialogIsLoading
|
|
23
|
+
dialogIsLoading: import("@angular/core").WritableSignal<boolean>;
|
|
28
24
|
private lookupDataProviderSubscription?;
|
|
29
25
|
constructor(injector: Injector);
|
|
30
26
|
ngOnInit(): void;
|
|
@@ -36,7 +32,7 @@ export declare class FormlyFieldLookupDialogComponent<T, ET> extends FieldType<C
|
|
|
36
32
|
onColumnActionCmpInst(instance: any): void;
|
|
37
33
|
clear(): void;
|
|
38
34
|
hideDialog(): void;
|
|
39
|
-
|
|
35
|
+
onAddItem(): void;
|
|
40
36
|
private setFieldLabelValue;
|
|
41
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldLookupDialogComponent<any, any>, never>;
|
|
42
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldLookupDialogComponent<any, any>, "mng-formly-field-lookup-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ActionDescriptorInst, CommonsFormlyFieldConfig, FieldManyEditorDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
2
|
+
import { ActionDescriptorInst, FieldManyEditorDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FormlyFieldTableDialogFormComponent<T = any, ET = any> extends
|
|
5
|
+
export declare class FormlyFieldTableDialogFormComponent<T = any, ET = any> extends ACommonsFormlyFieldType<T[], ET, FieldManyEditorDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
7
6
|
private readonly injector;
|
|
8
7
|
private readonly destroyRef;
|
|
9
|
-
|
|
10
|
-
itemsSubject: Subject<Array<T>>;
|
|
11
|
-
items$: Observable<Array<T>>;
|
|
8
|
+
items: import("@angular/core").WritableSignal<T[]>;
|
|
12
9
|
actions: Array<ActionDescriptorInst<T>>;
|
|
13
10
|
toolbarRightActions: Array<ActionDescriptorInst<T>>;
|
|
14
11
|
private isDisabledSubject;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
|
4
2
|
import { DataListResult } from '@mediusinc/mng-commons/core';
|
|
5
3
|
import { TableComponent } from '@mediusinc/mng-commons/table';
|
|
6
|
-
import {
|
|
4
|
+
import { FieldManyToManyEditorDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FormlyFieldTableDialogMultiselectComponent extends
|
|
7
|
+
export declare class FormlyFieldTableDialogMultiselectComponent extends ACommonsFormlyFieldType<any, any, FieldManyToManyEditorDescriptor<any, any>> implements OnInit, AfterViewInit, OnDestroy {
|
|
9
8
|
private readonly injector;
|
|
10
9
|
private readonly destroyRef;
|
|
11
10
|
private readonly logger;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
itemsAsync: Observable<Array<any>>;
|
|
15
|
-
addItemsSubject: Subject<DataListResult>;
|
|
16
|
-
addItemsAsync: Observable<DataListResult>;
|
|
11
|
+
items: import("@angular/core").WritableSignal<any[]>;
|
|
12
|
+
addItems: import("@angular/core").WritableSignal<DataListResult<any>>;
|
|
17
13
|
private dialogDataProviderService;
|
|
18
|
-
private dialogIsLoadingSubject;
|
|
19
14
|
isDialogVisible: boolean;
|
|
20
15
|
dialogAreItemsLoaded: boolean;
|
|
21
16
|
dialogSelectedAddItems: Array<any>;
|
|
22
|
-
dialogIsLoading
|
|
17
|
+
dialogIsLoading: import("@angular/core").WritableSignal<boolean>;
|
|
23
18
|
hasAddAction: boolean;
|
|
24
19
|
hasDeleteAction: boolean;
|
|
25
20
|
private searchDebounceSubject;
|
|
@@ -31,7 +26,7 @@ export declare class FormlyFieldTableDialogMultiselectComponent extends FieldTyp
|
|
|
31
26
|
openAddDialog(): void;
|
|
32
27
|
onSelectionChange(items: Array<any>): void;
|
|
33
28
|
hideDialog(): void;
|
|
34
|
-
|
|
29
|
+
onAddItems(): void;
|
|
35
30
|
removeItem(item: any): void;
|
|
36
31
|
onSearch(event: Event): void;
|
|
37
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTableDialogMultiselectComponent, never>;
|
package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CommonsFormlyFieldConfig } from '@mediusinc/mng-commons/tableview/api';
|
|
1
|
+
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FormlyFieldTabsComponent extends
|
|
3
|
+
export declare class FormlyFieldTabsComponent extends ACommonsFormlyFieldType<any, any, never> {
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTabsComponent, never>;
|
|
6
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTabsComponent, "mng-formly-field-tabs", never, {}, {}, never, never, true, never>;
|
|
7
6
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { AFieldDescriptor, CommonsFormlyFieldConfig, CommonsFormlyFormOptions, CommonsFormlyFormState } from '@mediusinc/mng-commons/tableview/api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class ACommonsFormlyFieldType<Model, EditorModel, Descriptor = AFieldDescriptor<Model, EditorModel>> extends FieldType<CommonsFormlyFieldConfig<Model, EditorModel>> implements OnInit {
|
|
6
|
+
get descriptor(): Descriptor;
|
|
7
|
+
get options(): CommonsFormlyFormOptions<EditorModel>;
|
|
8
|
+
get formState(): CommonsFormlyFormState<EditorModel>;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ACommonsFormlyFieldType<any, any, any>, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ACommonsFormlyFieldType<any, any, any>, never, never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldInputDatePickerDynamicMinMaxFnType, FieldValidator } from '@mediusinc/mng-commons/tableview/api';
|
|
2
|
+
export declare const minDateValidationName = "minDate";
|
|
3
|
+
export declare const minDateValidator: (min: Date | FieldInputDatePickerDynamicMinMaxFnType<Date | string | number | undefined | null, Date | string | number | undefined | null, undefined> | undefined) => FieldValidator<Date | string | number | undefined | null, any>;
|
|
4
|
+
export declare const maxDateValidationName = "maxDate";
|
|
5
|
+
export declare const maxDateValidator: (max: Date | FieldInputDatePickerDynamicMinMaxFnType<Date | string | number | undefined | null, Date | string | number | undefined | null, undefined> | undefined) => FieldValidator<Date | string | number | undefined | null, any>;
|
|
6
|
+
export declare const emailValidationName = "email";
|
|
7
|
+
export declare const emailValidator: () => FieldValidator<string | undefined | null, any>;
|
package/tableview/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './editor/components/formly/wrappers/formly-field-wrapper/formly-f
|
|
|
39
39
|
export * from './editor/helpers/editor-formly';
|
|
40
40
|
export * from './editor/helpers/formly-config';
|
|
41
41
|
export * from './editor/helpers/notification';
|
|
42
|
+
export * from './editor/helpers/editor-validators';
|
|
42
43
|
export * from './editor/models/formly-config.model';
|
|
43
44
|
export * from './editor/services/form-editor.service';
|
|
44
45
|
export * from './editor/services/formly-config.provider';
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "5.0.1",
|
|
4
|
-
"tag": "v5.0.1",
|
|
3
|
+
"version": "5.1.0-rc.1",
|
|
4
|
+
"tag": "v5.1.0-rc.1",
|
|
5
5
|
"distance": 0,
|
|
6
|
-
"hash": "
|
|
6
|
+
"hash": "13a1f4c5",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "5.0.1+0.
|
|
8
|
+
"semver": "5.1.0-rc.1+0.g13a1f4c5.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v5.0.1-
|
|
10
|
+
"raw": "v5.1.0-rc.1-13a1f4c5-dirty"
|
|
11
11
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DialogKeydownHandlerDirective implements OnInit, OnDestroy {
|
|
4
|
-
private readonly dialogService;
|
|
5
|
-
private readonly dynamicDialog;
|
|
6
|
-
private readonly dialog;
|
|
7
|
-
private readonly dialogsWithKeydownListener;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogKeydownHandlerDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogKeydownHandlerDirective, "[mngDialogKeydownHandler]", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|