@mediusinc/mng-commons 5.1.0-rc.1 → 5.2.0-rc.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/table/api/descriptors/table.descriptor.mjs +11 -1
- package/esm2022/table/components/table/table.component.mjs +15 -12
- package/esm2022/table/services/data-list.service.mjs +9 -3
- package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +7 -3
- package/esm2022/tableview/action/components/table/action-table.component.mjs +8 -3
- package/esm2022/tableview/action/models/execution/action-context.model.mjs +9 -1
- package/esm2022/tableview/action/services/action-executor.service.mjs +69 -12
- package/esm2022/tableview/api/action/descriptors/action-editor.descriptor.mjs +2 -1
- package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +1 -1
- package/esm2022/tableview/api/action/models/action-descriptor.types.mjs +1 -1
- package/esm2022/tableview/api/editor/models/form-editor.event.mjs +2 -1
- package/esm2022/tableview/api/editor/models/form-editor.interface.mjs +1 -1
- package/esm2022/tableview/api/editor/models/formly-options.model.mjs +1 -1
- package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +16 -10
- package/esm2022/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +2 -6
- package/esm2022/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.mjs +2 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +2 -6
- package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +2 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +3 -4
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +21 -9
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +17 -6
- package/esm2022/tableview/editor/components/formly/fields/formly-field-type.abstract.component.mjs +18 -3
- package/esm2022/tableview/editor/services/form-editor.service.mjs +3 -3
- package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +2 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +10 -0
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table.mjs +22 -13
- package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +2 -0
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +149 -48
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/package.json +7 -7
- package/table/api/descriptors/table.descriptor.d.ts +3 -0
- package/table/components/table/table.component.d.ts +7 -2
- package/table/services/data-list.service.d.ts +5 -2
- package/tableview/action/components/action/action.component.d.ts +1 -1
- package/tableview/action/components/editor/action-editor.component.d.ts +1 -1
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +7 -5
- package/tableview/action/components/localization/data-language-dropdown.component.d.ts +1 -1
- package/tableview/action/components/table/action-table.component.d.ts +8 -4
- package/tableview/action/models/execution/action-context.model.d.ts +7 -0
- package/tableview/action/services/action-executor.service.d.ts +0 -1
- package/tableview/action/services/view-container.service.d.ts +1 -1
- package/tableview/api/action/descriptors/action-editor.descriptor.d.ts +2 -2
- package/tableview/api/action/descriptors/action.descriptor.d.ts +38 -38
- package/tableview/api/action/models/action-descriptor.types.d.ts +2 -2
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +1 -1
- package/tableview/api/editor/models/form-editor.event.d.ts +4 -0
- package/tableview/api/editor/models/form-editor.interface.d.ts +4 -1
- package/tableview/api/editor/models/formly-options.model.d.ts +4 -4
- package/tableview/editor/components/editor/form-editor.component.d.ts +6 -2
- package/tableview/editor/components/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-datepicker/formly-field-datepicker.component.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +0 -1
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +3 -1
- package/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +3 -1
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +5 -1
- package/tableview/editor/services/form-editor.service.d.ts +2 -2
- package/tableview/tableview/components/tableview/tableview.component.d.ts +4 -4
- package/version-info.json +5 -5
|
@@ -9,7 +9,6 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class FormlyFieldLookupDialogComponent<T, ET> extends ACommonsFormlyFieldType<T, ET, FieldLookupDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
10
10
|
private injector;
|
|
11
11
|
table?: TableComponent;
|
|
12
|
-
private readonly destroyRef;
|
|
13
12
|
private readonly logger;
|
|
14
13
|
config: FieldLookupConfig;
|
|
15
14
|
fieldLabelFormControl: FormControl;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TableRowReorderEvent } from 'primeng/table';
|
|
2
3
|
import { ActionDescriptorInst, FieldManyEditorDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
3
4
|
import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class FormlyFieldTableDialogFormComponent<T = any, ET = any> extends ACommonsFormlyFieldType<T[], ET, FieldManyEditorDescriptor<T, ET>> implements OnInit, AfterViewInit, OnDestroy {
|
|
6
7
|
private readonly injector;
|
|
7
|
-
private readonly destroyRef;
|
|
8
8
|
items: import("@angular/core").WritableSignal<T[]>;
|
|
9
9
|
actions: Array<ActionDescriptorInst<T>>;
|
|
10
10
|
toolbarRightActions: Array<ActionDescriptorInst<T>>;
|
|
11
11
|
private isDisabledSubject;
|
|
12
12
|
private isEnabled$;
|
|
13
|
+
disableRowReorder: import("@angular/core").Signal<boolean | undefined>;
|
|
13
14
|
ngOnInit(): void;
|
|
15
|
+
onRowReorder(event: TableRowReorderEvent): void;
|
|
14
16
|
ngAfterViewInit(): void;
|
|
15
17
|
ngOnDestroy(): void;
|
|
16
18
|
private hideActionsForRowWithDefaultLocalization;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { TableRowReorderEvent } from 'primeng/table';
|
|
2
3
|
import { DataListResult } from '@mediusinc/mng-commons/core';
|
|
3
4
|
import { TableComponent } from '@mediusinc/mng-commons/table';
|
|
4
5
|
import { FieldManyToManyEditorDescriptor } from '@mediusinc/mng-commons/tableview/api';
|
|
@@ -6,7 +7,6 @@ import { ACommonsFormlyFieldType } from '../formly-field-type.abstract.component
|
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FormlyFieldTableDialogMultiselectComponent extends ACommonsFormlyFieldType<any, any, FieldManyToManyEditorDescriptor<any, any>> implements OnInit, AfterViewInit, OnDestroy {
|
|
8
9
|
private readonly injector;
|
|
9
|
-
private readonly destroyRef;
|
|
10
10
|
private readonly logger;
|
|
11
11
|
items: import("@angular/core").WritableSignal<any[]>;
|
|
12
12
|
addItems: import("@angular/core").WritableSignal<DataListResult<any>>;
|
|
@@ -20,6 +20,7 @@ export declare class FormlyFieldTableDialogMultiselectComponent extends ACommons
|
|
|
20
20
|
private searchDebounceSubject;
|
|
21
21
|
private lookupDataProviderSubscription?;
|
|
22
22
|
addTableComponent?: TableComponent;
|
|
23
|
+
disableRowReorder: import("@angular/core").Signal<boolean | undefined>;
|
|
23
24
|
ngOnInit(): void;
|
|
24
25
|
ngAfterViewInit(): void;
|
|
25
26
|
ngOnDestroy(): void;
|
|
@@ -29,6 +30,7 @@ export declare class FormlyFieldTableDialogMultiselectComponent extends ACommons
|
|
|
29
30
|
onAddItems(): void;
|
|
30
31
|
removeItem(item: any): void;
|
|
31
32
|
onSearch(event: Event): void;
|
|
33
|
+
onRowReorder(event: TableRowReorderEvent): void;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTableDialogMultiselectComponent, never>;
|
|
33
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTableDialogMultiselectComponent, "mng-formly-table-multiselect-add-field", never, {}, {}, never, never, true, never>;
|
|
34
36
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
4
|
import { AFieldDescriptor, CommonsFormlyFieldConfig, CommonsFormlyFormOptions, CommonsFormlyFormState } from '@mediusinc/mng-commons/tableview/api';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare abstract class ACommonsFormlyFieldType<Model, EditorModel, Descriptor = AFieldDescriptor<Model, EditorModel>> extends FieldType<CommonsFormlyFieldConfig<Model, EditorModel>> implements OnInit {
|
|
7
|
+
protected readonly destroyRef: DestroyRef;
|
|
8
|
+
protected formStateDisabledSubject: BehaviorSubject<boolean>;
|
|
9
|
+
protected formStateDisabled$: import("rxjs").Observable<boolean>;
|
|
6
10
|
get descriptor(): Descriptor;
|
|
7
11
|
get options(): CommonsFormlyFormOptions<EditorModel>;
|
|
8
12
|
get formState(): CommonsFormlyFormState<EditorModel>;
|
|
@@ -2,7 +2,7 @@ import { InputSignal, Provider, WritableSignal } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl, FormGroup, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
4
|
import { Message } from 'primeng/api';
|
|
5
|
-
import { CommonsFormlyFormOptions, EditorDescriptorInst, FormEditorResetFormModelOpts, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
+
import { CommonsFormlyFormOptions, EditorDescriptorInst, FormEditorGetFormValueOpts, FormEditorResetFormModelOpts, IFormEditorComponent } from '@mediusinc/mng-commons/tableview/api';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class FormEditorService<Item, ParentItem = any> implements IFormEditorComponent<Item, ParentItem> {
|
|
8
8
|
private readonly _parentForm?;
|
|
@@ -21,7 +21,7 @@ export declare class FormEditorService<Item, ParentItem = any> implements IFormE
|
|
|
21
21
|
get formlyFields(): FormlyFieldConfig[];
|
|
22
22
|
get formlyInitialItem(): any;
|
|
23
23
|
submit(): void;
|
|
24
|
-
getFormValue(): Item;
|
|
24
|
+
getFormValue(opts?: FormEditorGetFormValueOpts): Item;
|
|
25
25
|
resetFormModel(item?: Item, opts?: FormEditorResetFormModelOpts): void;
|
|
26
26
|
getField(key: keyof Item): AbstractControl | null;
|
|
27
27
|
getFieldUnsafe(key: string): AbstractControl | null;
|
|
@@ -8,10 +8,10 @@ export declare class TableviewComponent<Item = any, Service = undefined, Sorts =
|
|
|
8
8
|
readonly viewContainer: ViewContainer<any, any> | null;
|
|
9
9
|
descriptor: import("@angular/core").InputSignal<TableviewDescriptorInst<Item, Sorts, Filters, undefined>>;
|
|
10
10
|
dataProvider: import("@angular/core").InputSignal<ITableviewDataProvider<Item, Service, Sorts, Filters> | undefined>;
|
|
11
|
-
actions: import("@angular/core").InputSignal<ActionDescriptorInst<any, any>[]>;
|
|
12
|
-
toolbarLeftActions: Signal<ActionDescriptorInst<Item, any>[]>;
|
|
13
|
-
toolbarRightActions: Signal<ActionDescriptorInst<Item, any>[]>;
|
|
14
|
-
tableActions: Signal<ActionDescriptorInst<Item, any>[]>;
|
|
11
|
+
actions: import("@angular/core").InputSignal<ActionDescriptorInst<any, any, any>[]>;
|
|
12
|
+
toolbarLeftActions: Signal<ActionDescriptorInst<Item, any, Item>[]>;
|
|
13
|
+
toolbarRightActions: Signal<ActionDescriptorInst<Item, any, Item>[]>;
|
|
14
|
+
tableActions: Signal<ActionDescriptorInst<Item, any, Item>[]>;
|
|
15
15
|
tableParams: import("@angular/core").WritableSignal<DataListParams<string, string> | undefined>;
|
|
16
16
|
hasItemSelectionAction: Signal<boolean>;
|
|
17
17
|
selectedItems: import("@angular/core").WritableSignal<Item[]>;
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-rc.0",
|
|
4
4
|
"tag": "v5.1.0-rc.1",
|
|
5
|
-
"distance":
|
|
6
|
-
"hash": "
|
|
5
|
+
"distance": 11,
|
|
6
|
+
"hash": "1fe015b8",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "5.1.0-rc.1+
|
|
8
|
+
"semver": "5.1.0-rc.1+11.g1fe015b8.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v5.1.0-rc.1-
|
|
10
|
+
"raw": "v5.1.0-rc.1-11-1fe015b8-dirty"
|
|
11
11
|
}
|