@mediusinc/mng-commons 0.2.5 → 0.2.9
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 +46 -0
- package/assets/i18n/en.json +202 -147
- package/assets/i18n/sl.json +202 -147
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +1 -1
- package/esm2020/lib/api/models/filter-match-type.model.mjs +1 -1
- package/esm2020/lib/api/models/filter-param.model.mjs +16 -27
- package/esm2020/lib/api/models/mappers.mjs +7 -7
- package/esm2020/lib/api/models/query-mode.model.mjs +1 -1
- package/esm2020/lib/api/models/query-param.model.mjs +38 -37
- package/esm2020/lib/api/models/query-result.model.mjs +14 -13
- package/esm2020/lib/api/services/crud-api.abstract.service.mjs +28 -21
- package/esm2020/lib/api/utils/medius-rest.util.mjs +11 -7
- package/esm2020/lib/api/utils/object-serializer.util.mjs +34 -27
- package/esm2020/lib/components/action/action.component.mjs +10 -7
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +17 -14
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
- package/esm2020/lib/components/action/models/action-execution.model.mjs +1 -1
- package/esm2020/lib/components/action/route/action-route.component.mjs +8 -6
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +16 -14
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +16 -15
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +21 -24
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +4 -4
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +8 -4
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +13 -14
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +12 -11
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +4 -4
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +1 -3
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +1 -3
- package/esm2020/lib/components/form/models/form-editor.event.mjs +1 -1
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +3 -3
- package/esm2020/lib/components/layout/footer.component.mjs +3 -3
- package/esm2020/lib/components/layout/main-layout.component.mjs +4 -4
- package/esm2020/lib/components/layout/menu-item.component.mjs +36 -34
- package/esm2020/lib/components/layout/menu.component.mjs +3 -3
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +4 -1
- package/esm2020/lib/components/layout/topbar.component.mjs +5 -4
- package/esm2020/lib/components/tableview/index.mjs +2 -1
- package/esm2020/lib/components/tableview/models/table.event.mjs +1 -1
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +4 -4
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +33 -0
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +9 -5
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +4 -3
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +1 -1
- package/esm2020/lib/components/tableview/table/table.component.mjs +29 -27
- package/esm2020/lib/components/tableview/tableview.component.mjs +11 -3
- package/esm2020/lib/config/formly.config.mjs +30 -22
- package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
- package/esm2020/lib/data-providers/base.data-provider.mjs +1 -8
- package/esm2020/lib/data-providers/editor.data-provider.mjs +2 -2
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +1 -1
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +2 -2
- package/esm2020/lib/descriptors/action.descriptor.mjs +3 -5
- package/esm2020/lib/descriptors/editor.descriptor.mjs +105 -72
- package/esm2020/lib/descriptors/field.validator.mjs +1 -1
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/model.descriptor.mjs +3 -3
- package/esm2020/lib/descriptors/table.descriptor.mjs +52 -43
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +7 -7
- package/esm2020/lib/directives/component.directive.mjs +2 -2
- package/esm2020/lib/directives/template.directive.mjs +2 -3
- package/esm2020/lib/mng-commons.module.mjs +36 -41
- package/esm2020/lib/models/enum.model.mjs +2 -0
- package/esm2020/lib/models/index.mjs +2 -2
- package/esm2020/lib/models/user.model.mjs +1 -1
- package/esm2020/lib/pipes/boolean.pipe.mjs +1 -1
- package/esm2020/lib/pipes/i18n-property.pipe.mjs +18 -0
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/pipes/property-path.pipe.mjs +1 -1
- package/esm2020/lib/router/index.mjs +2 -0
- package/esm2020/lib/router/models/index.mjs +2 -0
- package/esm2020/lib/router/models/router.model.mjs +2 -0
- package/esm2020/lib/router/route-builder.mjs +293 -0
- package/esm2020/lib/services/action.service.mjs +19 -15
- package/esm2020/lib/services/commons.service.mjs +15 -23
- package/esm2020/lib/services/configuration.service.mjs +3 -4
- package/esm2020/lib/services/navigation.service.mjs +2 -2
- package/esm2020/lib/services/providers/config-service.provider.mjs +2 -2
- package/esm2020/lib/services/providers/formly-config.provider.mjs +1 -1
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +1 -1
- package/esm2020/lib/types/type.decorator.mjs +7 -1
- package/esm2020/lib/types/type.model.mjs +1 -1
- package/esm2020/lib/utils/editor-formly.util.mjs +10 -21
- package/esm2020/lib/utils/enum.util.mjs +61 -0
- package/esm2020/lib/utils/i18n.util.mjs +39 -27
- package/esm2020/lib/utils/index.mjs +2 -1
- package/esm2020/lib/utils/model.util.mjs +1 -1
- package/esm2020/lib/utils/route.util.mjs +24 -0
- package/esm2020/lib/utils/toast.util.mjs +3 -2
- package/esm2020/lib/utils/type.util.mjs +40 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/mediusinc-mng-commons.mjs +3138 -2599
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +3129 -2589
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/filter-param.model.d.ts +1 -1
- package/lib/api/services/crud-api.abstract.service.d.ts +6 -6
- package/lib/api/utils/medius-rest.util.d.ts +1 -1
- package/lib/api/utils/object-serializer.util.d.ts +6 -5
- package/lib/components/action/action.component.d.ts +3 -3
- package/lib/components/action/dialog/action-dialog.component.d.ts +9 -8
- package/lib/components/action/models/action-execution.model.d.ts +1 -1
- package/lib/components/action/route/action-route.component.d.ts +2 -2
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +4 -3
- package/lib/components/form/dropdown/dropdown.component.d.ts +4 -3
- package/lib/components/form/editor/form-editor.component.d.ts +7 -6
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +2 -1
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +1 -1
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +1 -3
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +1 -3
- package/lib/components/layout/main-layout.component.d.ts +3 -3
- package/lib/components/layout/menu-item.component.d.ts +7 -7
- package/lib/components/layout/services/main-layout.component.service.d.ts +1 -1
- package/lib/components/layout/topbar.component.d.ts +4 -4
- package/lib/components/tableview/index.d.ts +1 -0
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +4 -3
- package/lib/components/tableview/route/tableview-route.component.d.ts +15 -0
- package/lib/components/tableview/services/tableview.component.service.d.ts +3 -2
- package/lib/components/tableview/table/table.component.d.ts +21 -19
- package/lib/components/tableview/tableview.component.d.ts +6 -4
- package/lib/config/formly.config.d.ts +2 -1
- package/lib/data-providers/base.data-provider.d.ts +0 -3
- package/lib/descriptors/action.descriptor.d.ts +2 -2
- package/lib/descriptors/editor.descriptor.d.ts +40 -33
- package/lib/descriptors/lookup.descriptor.d.ts +1 -1
- package/lib/descriptors/table.descriptor.d.ts +19 -16
- package/lib/descriptors/tableview.descriptor.d.ts +9 -9
- package/lib/mng-commons.module.d.ts +68 -65
- package/lib/models/enum.model.d.ts +5 -0
- package/lib/models/index.d.ts +1 -1
- package/lib/pipes/i18n-property.pipe.d.ts +8 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/router/index.d.ts +1 -0
- package/lib/router/models/index.d.ts +1 -0
- package/lib/router/models/router.model.d.ts +22 -0
- package/lib/router/route-builder.d.ts +66 -0
- package/lib/services/action.service.d.ts +3 -3
- package/lib/services/commons.service.d.ts +6 -6
- package/lib/services/navigation.service.d.ts +1 -1
- package/lib/services/providers/formly-config.provider.d.ts +1 -1
- package/lib/types/type.decorator.d.ts +2 -0
- package/lib/types/type.model.d.ts +2 -2
- package/lib/utils/editor-formly.util.d.ts +1 -1
- package/lib/utils/enum.util.d.ts +39 -0
- package/lib/utils/i18n.util.d.ts +6 -2
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/model.util.d.ts +1 -1
- package/lib/utils/route.util.d.ts +4 -0
- package/lib/utils/toast.util.d.ts +1 -1
- package/lib/utils/type.util.d.ts +22 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/scss/common/layout/_breadcrumb.scss +6 -6
- package/scss/common/layout/_config.scss +7 -8
- package/scss/common/layout/_exception.scss +12 -11
- package/scss/common/layout/_footer.scss +3 -3
- package/scss/common/layout/_help.scss +8 -9
- package/scss/common/layout/_inlinemenu.scss +3 -3
- package/scss/common/layout/_invoice.scss +16 -16
- package/scss/common/layout/_landing.scss +57 -60
- package/scss/common/layout/_loader.scss +0 -1
- package/scss/common/layout/_login.scss +3 -4
- package/scss/common/layout/_main.scss +3 -3
- package/scss/common/layout/_mixins.scss +28 -20
- package/scss/common/layout/_rightmenu.scss +5 -5
- package/scss/common/layout/_topbar.scss +7 -5
- package/scss/common/layout/_typography.scss +11 -6
- package/scss/common/layout/_utils.scss +1 -1
- package/scss/common/layout/_widgets.scss +20 -19
- package/scss/common/layout/menu/_menu_common.scss +6 -6
- package/scss/common/layout/menu/_menu_overlay.scss +1 -1
- package/scss/common/layout/menu/_menu_sidebar.scss +6 -5
- package/scss/common/layout/menu/_menu_slim.scss +2 -3
- package/scss/common/layout/menu/_menu_static.scss +1 -1
- package/scss/common/layout/menu/_menu_theme.scss +2 -3
- package/scss/common/theme/designer/_colors.scss +11 -12
- package/scss/common/theme/designer/_common.scss +4 -3
- package/scss/common/theme/designer/_mixins.scss +56 -56
- package/scss/common/theme/designer/components/button/_button.scss +32 -20
- package/scss/common/theme/designer/components/button/_speeddial.scss +1 -1
- package/scss/common/theme/designer/components/button/_splitbutton.scss +2 -1
- package/scss/common/theme/designer/components/data/_carousel.scss +1 -1
- package/scss/common/theme/designer/components/data/_datatable.scss +5 -5
- package/scss/common/theme/designer/components/data/_filter.scss +2 -3
- package/scss/common/theme/designer/components/data/_fullcalendar.scss +10 -10
- package/scss/common/theme/designer/components/data/_orderlist.scss +2 -2
- package/scss/common/theme/designer/components/data/_paginator.scss +1 -1
- package/scss/common/theme/designer/components/data/_picklist.scss +1 -1
- package/scss/common/theme/designer/components/data/_timeline.scss +3 -6
- package/scss/common/theme/designer/components/data/_tree.scss +2 -2
- package/scss/common/theme/designer/components/data/_treetable.scss +2 -3
- package/scss/common/theme/designer/components/input/_autocomplete.scss +8 -8
- package/scss/common/theme/designer/components/input/_calendar.scss +6 -6
- package/scss/common/theme/designer/components/input/_cascadeselect.scss +1 -1
- package/scss/common/theme/designer/components/input/_checkbox.scss +4 -4
- package/scss/common/theme/designer/components/input/_chips.scss +4 -4
- package/scss/common/theme/designer/components/input/_colorpicker.scss +2 -2
- package/scss/common/theme/designer/components/input/_dropdown.scss +2 -2
- package/scss/common/theme/designer/components/input/_editor.scss +7 -7
- package/scss/common/theme/designer/components/input/_inputgroup.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputmask.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputnumber.scss +1 -1
- package/scss/common/theme/designer/components/input/_inputswitch.scss +2 -2
- package/scss/common/theme/designer/components/input/_inputtext.scss +3 -3
- package/scss/common/theme/designer/components/input/_listbox.scss +1 -1
- package/scss/common/theme/designer/components/input/_multiselect.scss +5 -6
- package/scss/common/theme/designer/components/input/_radiobutton.scss +2 -2
- package/scss/common/theme/designer/components/input/_rating.scss +1 -1
- package/scss/common/theme/designer/components/input/_selectbutton.scss +1 -1
- package/scss/common/theme/designer/components/input/_togglebutton.scss +1 -1
- package/scss/common/theme/designer/components/input/_treeselect.scss +2 -2
- package/scss/common/theme/designer/components/menu/_contextmenu.scss +3 -2
- package/scss/common/theme/designer/components/menu/_dock.scss +4 -4
- package/scss/common/theme/designer/components/menu/_megamenu.scss +10 -9
- package/scss/common/theme/designer/components/menu/_menu.scss +2 -2
- package/scss/common/theme/designer/components/menu/_menubar.scss +12 -11
- package/scss/common/theme/designer/components/menu/_panelmenu.scss +1 -2
- package/scss/common/theme/designer/components/menu/_slidemenu.scss +3 -2
- package/scss/common/theme/designer/components/menu/_steps.scss +1 -2
- package/scss/common/theme/designer/components/menu/_tieredmenu.scss +3 -2
- package/scss/common/theme/designer/components/messages/_message.scss +1 -1
- package/scss/common/theme/designer/components/messages/_toast.scss +1 -2
- package/scss/common/theme/designer/components/misc/_avatar.scss +1 -1
- package/scss/common/theme/designer/components/misc/_badge.scss +1 -1
- package/scss/common/theme/designer/components/misc/_blockui.scss +1 -1
- package/scss/common/theme/designer/components/misc/_chip.scss +2 -2
- package/scss/common/theme/designer/components/misc/_inplace.scss +0 -1
- package/scss/common/theme/designer/components/misc/_scrolltop.scss +1 -1
- package/scss/common/theme/designer/components/misc/_skeleton.scss +1 -1
- package/scss/common/theme/designer/components/misc/_tag.scss +1 -1
- package/scss/common/theme/designer/components/misc/_terminal.scss +8 -8
- package/scss/common/theme/designer/components/multimedia/_galleria.scss +1 -1
- package/scss/common/theme/designer/components/overlay/_confirmpopup.scss +2 -4
- package/scss/common/theme/designer/components/overlay/_dialog.scss +3 -3
- package/scss/common/theme/designer/components/overlay/_overlaypanel.scss +2 -4
- package/scss/common/theme/designer/components/panel/_accordion.scss +2 -2
- package/scss/common/theme/designer/components/panel/_divider.scss +1 -1
- package/scss/common/theme/designer/components/panel/_scrollpanel.scss +1 -1
- package/scss/common/theme/designer/components/panel/_splitter.scss +1 -1
- package/scss/common/theme/extensions/_button.scss +18 -6
- package/scss/common/theme/extensions/_orderlist.scss +0 -1
- package/scss/common/theme/extensions/_picklist.scss +0 -1
- package/scss/common/theme/extensions/_tree.scss +0 -1
- package/scss/common/variables/layout/_common.scss +9 -9
- package/scss/common/variables/layout/_layout_dark.scss +12 -12
- package/scss/common/variables/layout/_layout_light.scss +13 -13
- package/scss/common/variables/theme/_theme_dark.scss +76 -76
- package/scss/common/variables/theme/_theme_light.scss +80 -80
- package/scss/layout/default/_mng-variables-layout-dark.scss +1 -1
- package/scss/mng-commons-dark.scss +2 -2
- package/scss/mng-commons-light.scss +2 -2
- package/scss/mng-overrides/_layout_dialog.scss +4 -3
- package/scss/mng-overrides/_layout_forms.scss +6 -1
- package/scss/mng-overrides/_layout_radio.scss +1 -1
- package/scss/mng-overrides/_theme_datepicker.scss +7 -0
- package/scss/mng-overrides/_theme_dialog.scss +0 -1
- package/scss/mng-overrides/_theme_dropdown.scss +0 -1
- package/scss/mng-overrides/_theme_styles.scss +1 -0
- package/scss/mng-overrides/_theme_tableview.scss +6 -6
- package/scss/theme/default/_mng-variables-theme-dark.scss +2 -1
- package/scss/theme/default/_mng-variables-theme-light.scss +2 -1
- package/esm2020/lib/models/router.model.mjs +0 -2
- package/lib/models/router.model.d.ts +0 -14
|
@@ -2,10 +2,11 @@ import { Type } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { ClassType, EnumMemberType } from '../types';
|
|
6
|
-
import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
|
|
7
|
-
import { ModelDescriptor, TableDescriptor, TableviewDescriptor, FieldValidator, ILookupDescriptor } from './';
|
|
8
5
|
import { MediusQueryParam, MediusQueryResult } from '../api/models';
|
|
6
|
+
import { ILookupDataProvider, ITableDataProvider } from '../data-providers';
|
|
7
|
+
import { EnumValue } from '../models';
|
|
8
|
+
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
9
|
+
import { FieldValidator, ILookupDescriptor, ModelDescriptor, TableDescriptor, TableviewDescriptor } from './';
|
|
9
10
|
export declare class EditorDescriptor<T> {
|
|
10
11
|
static readonly defaultGroupName = "_default";
|
|
11
12
|
private readonly _model;
|
|
@@ -14,27 +15,27 @@ export declare class EditorDescriptor<T> {
|
|
|
14
15
|
private readonly _fields;
|
|
15
16
|
private _currentTabGroup?;
|
|
16
17
|
private _currentGroup?;
|
|
17
|
-
private _disabled;
|
|
18
18
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
19
|
+
private _disabled;
|
|
20
|
+
get disabled(): boolean;
|
|
19
21
|
get model(): ModelDescriptor<T>;
|
|
20
22
|
get tabs(): FieldTabGroupDescriptor<T>[];
|
|
21
|
-
get disabled(): boolean;
|
|
22
23
|
get fields(): AFieldDescriptor<any, T>[];
|
|
23
24
|
createTabGroup(name: string, title?: string): FieldTabGroupDescriptor<T>;
|
|
24
|
-
createFieldGroup(name: string, title?: string): FieldGroupDescriptor<T>;
|
|
25
|
+
createFieldGroup(name: string, title?: string | null): FieldGroupDescriptor<T>;
|
|
25
26
|
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
26
27
|
addField(property: string): FieldInputDescriptor<T>;
|
|
27
28
|
removeField(property: string): this;
|
|
28
29
|
getField(property: string): AFieldDescriptor<any, T> | null;
|
|
29
30
|
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
30
|
-
addFieldLookupEnum(property: string,
|
|
31
|
+
addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
|
|
31
32
|
addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
32
33
|
addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
33
34
|
withDisabled(disabled?: boolean): this;
|
|
34
35
|
addValidator(name: string, expression: (control: AbstractControl) => boolean): void;
|
|
35
36
|
copy(): EditorDescriptor<T>;
|
|
36
|
-
private createTabGroupDescriptor;
|
|
37
37
|
createFieldGroupDescriptor(fieldGroup: FieldGroupDescriptor<T>): this;
|
|
38
|
+
private createTabGroupDescriptor;
|
|
38
39
|
private createDefaultGroup;
|
|
39
40
|
private createDefaultTabGroup;
|
|
40
41
|
}
|
|
@@ -50,30 +51,35 @@ export declare abstract class AFieldDescriptor<T, ET> extends AGenericFieldDescr
|
|
|
50
51
|
protected _placeholder?: string;
|
|
51
52
|
protected _required: boolean;
|
|
52
53
|
protected _disabled: boolean;
|
|
54
|
+
protected _defaultValue?: T;
|
|
53
55
|
protected _className: string;
|
|
54
56
|
protected _getter?: (item: ET) => T;
|
|
55
57
|
protected _setter?: (item: ET, value: T) => void;
|
|
56
58
|
protected _validators: Array<FieldValidator>;
|
|
59
|
+
protected _disabledFunction?: (model: any) => boolean;
|
|
57
60
|
protected constructor(editor: EditorDescriptor<ET>, property: string);
|
|
58
|
-
abstract copy(): AFieldDescriptor<T, ET>;
|
|
59
|
-
get property(): string;
|
|
60
61
|
get group(): AFieldGroupDescriptor<ET> | undefined;
|
|
61
62
|
get label(): string | undefined;
|
|
62
63
|
get placeholder(): string | undefined;
|
|
63
64
|
get required(): boolean;
|
|
64
65
|
get disabled(): boolean;
|
|
66
|
+
get defaultValue(): T | undefined;
|
|
65
67
|
get className(): string;
|
|
66
68
|
get getter(): ((item: ET) => T) | undefined;
|
|
67
69
|
get setter(): ((item: ET, value: T) => void) | undefined;
|
|
68
70
|
get validators(): FieldValidator[];
|
|
71
|
+
get disabledFunction(): ((model: any) => boolean) | undefined;
|
|
72
|
+
get property(): string;
|
|
73
|
+
abstract copy(): AFieldDescriptor<T, ET>;
|
|
69
74
|
withLabel(label: string): this;
|
|
70
75
|
withPlaceholder(placeholder: string): this;
|
|
71
76
|
withRequired(required?: boolean): this;
|
|
72
|
-
withDisabled(disabled?: boolean): this;
|
|
77
|
+
withDisabled(disabled?: boolean, disabledFunction?: (model: any) => boolean): this;
|
|
78
|
+
withDefaultValue(defaultValue: T): this;
|
|
73
79
|
withClassName(className: string): this;
|
|
74
80
|
withGetter(getter: (item: ET) => T): this;
|
|
75
81
|
withSetter(setter: (item: ET, value: T) => void): this;
|
|
76
|
-
withValidator(name: string, expression: (control: AbstractControl) => boolean, message
|
|
82
|
+
withValidator(name: string, expression: (control: AbstractControl) => boolean, message?: (err: any, field: FormlyFieldConfig) => string): this;
|
|
77
83
|
protected copyFieldsTo(obj: AFieldDescriptor<T, ET>): void;
|
|
78
84
|
}
|
|
79
85
|
export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string | number | boolean | Date, ET> {
|
|
@@ -94,13 +100,13 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
94
100
|
private _pattern?;
|
|
95
101
|
constructor(editor: EditorDescriptor<ET>, property: string);
|
|
96
102
|
get fieldType(): FieldInputDescriptor.TypeEnum;
|
|
97
|
-
get
|
|
103
|
+
get rows(): number | undefined;
|
|
98
104
|
get numberMin(): number | undefined;
|
|
99
105
|
get numberMax(): number | undefined;
|
|
100
|
-
get
|
|
106
|
+
get numberStep(): number | undefined;
|
|
101
107
|
get numberMinFractionDigits(): number | undefined;
|
|
102
108
|
get numberMaxFractionDigits(): number | undefined;
|
|
103
|
-
get radioOptions(): string[];
|
|
109
|
+
get radioOptions(): EnumValue<string | number | boolean | Date>[];
|
|
104
110
|
get datePickerFormat(): string | undefined;
|
|
105
111
|
get datePickerMin(): Date | undefined;
|
|
106
112
|
get datePickerMax(): Date | undefined;
|
|
@@ -108,11 +114,12 @@ export declare class FieldInputDescriptor<ET> extends AFieldDescriptor<string |
|
|
|
108
114
|
get maxLength(): number | undefined;
|
|
109
115
|
get minLength(): number | undefined;
|
|
110
116
|
get pattern(): string | RegExp | undefined;
|
|
111
|
-
asText(minLength?: number, maxLength?: number, pattern?: string | RegExp): this;
|
|
112
|
-
asTextarea(rows?: number): this;
|
|
117
|
+
asText(minLength?: number, maxLength?: number, pattern?: string | RegExp, isEmail?: boolean): this;
|
|
118
|
+
asTextarea(rows?: number, minLength?: number, maxLength?: number, pattern?: string | RegExp): this;
|
|
113
119
|
asNumber(step?: number, min?: number, max?: number, minFractionDigits?: number, maxFractionDigits?: number): this;
|
|
114
120
|
asSwitch(): this;
|
|
115
|
-
asRadio(options: Array<string
|
|
121
|
+
asRadio(options: Array<string | number>, optionsTitlePath?: string): this;
|
|
122
|
+
asRadioFromEnum(enumType: EnumType, optionsTitlePath?: string | null, values?: Array<EnumConstantType>, nameAsValue?: boolean): this;
|
|
116
123
|
asDatePicker(format?: string, min?: Date, max?: Date, showTime?: boolean): this;
|
|
117
124
|
copy(): FieldInputDescriptor<ET>;
|
|
118
125
|
}
|
|
@@ -134,12 +141,12 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
|
|
|
134
141
|
protected _dataKeyProperty?: string;
|
|
135
142
|
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
136
143
|
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
|
|
137
|
-
get modelType(): ClassType<T> | null;
|
|
138
144
|
get lookupType(): FieldLookupDescriptor.LookupTypeEnum;
|
|
139
145
|
get itemsLabelProperty(): string | undefined;
|
|
140
146
|
get itemsValueProperty(): string | undefined;
|
|
141
147
|
get dataKeyProperty(): string | undefined;
|
|
142
148
|
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
149
|
+
get modelType(): ClassType<T> | null;
|
|
143
150
|
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
144
151
|
withItemsValueProperty(itemsValueProperty: string): this;
|
|
145
152
|
withDataKeyProperty(property: string): this;
|
|
@@ -154,10 +161,10 @@ export declare namespace FieldLookupDescriptor {
|
|
|
154
161
|
Autocomplete = 1
|
|
155
162
|
}
|
|
156
163
|
}
|
|
157
|
-
export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<
|
|
158
|
-
private readonly
|
|
159
|
-
constructor(editor: EditorDescriptor<ET>, property: string,
|
|
160
|
-
get
|
|
164
|
+
export declare class FieldLookupEnumDescriptor<ET> extends FieldLookupDescriptor<EnumValue<string | number>, ET> {
|
|
165
|
+
private readonly _enumType;
|
|
166
|
+
constructor(editor: EditorDescriptor<ET>, property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
167
|
+
get enumType(): EnumType;
|
|
161
168
|
copy(): FieldLookupEnumDescriptor<ET>;
|
|
162
169
|
}
|
|
163
170
|
export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescriptor<T, ET> {
|
|
@@ -171,14 +178,14 @@ export declare class FieldManyToManyEditorDescriptor<T, ET> extends AFieldDescri
|
|
|
171
178
|
private _excludeFilterProperty;
|
|
172
179
|
private _excludeValueProperty;
|
|
173
180
|
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, mainTableDescriptor: TableDescriptor<T>, lookupTableDescriptor: TableDescriptor<T>);
|
|
174
|
-
get
|
|
175
|
-
get lookupTableDescriptor(): TableDescriptor<T>;
|
|
181
|
+
get fieldType(): FieldManyToManyEditorDescriptor.TypeEnum;
|
|
176
182
|
get lookupTableDataProvider(): ITableDataProvider<T, any> | null;
|
|
177
183
|
get actions(): FieldManyToManyEditorDescriptor.ActionEnum[];
|
|
178
|
-
get fieldType(): FieldManyToManyEditorDescriptor.TypeEnum;
|
|
179
184
|
get hasLookupExcludeValues(): boolean;
|
|
180
185
|
get excludeFilterProperty(): string;
|
|
181
186
|
get excludeValueProperty(): string;
|
|
187
|
+
get mainTableDescriptor(): TableDescriptor<T>;
|
|
188
|
+
get lookupTableDescriptor(): TableDescriptor<T>;
|
|
182
189
|
withLookup<S>(getAll: (queryParam: MediusQueryParam, service?: S) => Observable<MediusQueryResult<T>>, serviceType?: Type<S>): this;
|
|
183
190
|
withLookupDataProvider(dataProvider: ITableDataProvider<T, any>): this;
|
|
184
191
|
withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
|
|
@@ -200,13 +207,13 @@ export declare class FieldManyEditorDescriptor<T, ET> extends AFieldDescriptor<T
|
|
|
200
207
|
private _fieldType;
|
|
201
208
|
private _actions;
|
|
202
209
|
constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T>, tableviewDescriptor: TableviewDescriptor<T>);
|
|
210
|
+
get fieldType(): FieldManyEditorDescriptor.TypeEnum;
|
|
211
|
+
get actions(): FieldManyEditorDescriptor.ActionEnum[];
|
|
203
212
|
get tableviewDescriptor(): TableviewDescriptor<T>;
|
|
204
213
|
get tableDescriptor(): TableDescriptor<T>;
|
|
205
214
|
get editorForCreate(): EditorDescriptor<T>;
|
|
206
215
|
get editorForRead(): EditorDescriptor<T>;
|
|
207
216
|
get editorForUpdate(): EditorDescriptor<T>;
|
|
208
|
-
get fieldType(): FieldManyEditorDescriptor.TypeEnum;
|
|
209
|
-
get actions(): FieldManyEditorDescriptor.ActionEnum[];
|
|
210
217
|
withActions(actions?: Array<FieldManyToManyEditorDescriptor.ActionEnum>): this;
|
|
211
218
|
copy(): FieldManyEditorDescriptor<T, ET>;
|
|
212
219
|
}
|
|
@@ -227,15 +234,15 @@ export declare abstract class AFieldGroupDescriptor<ET> extends AGenericFieldDes
|
|
|
227
234
|
protected _fields: AGenericFieldDescriptor<ET>[];
|
|
228
235
|
protected _validators: Array<FieldValidator>;
|
|
229
236
|
protected constructor(editor: EditorDescriptor<ET>, name: string);
|
|
237
|
+
get title(): string | undefined;
|
|
230
238
|
abstract get fields(): AGenericFieldDescriptor<ET>[];
|
|
231
|
-
|
|
232
|
-
abstract addField(field: AGenericFieldDescriptor<ET>): this;
|
|
233
|
-
abstract copy(): AFieldGroupDescriptor<ET>;
|
|
239
|
+
get validators(): FieldValidator[];
|
|
234
240
|
get baseName(): string;
|
|
235
241
|
get name(): string;
|
|
236
242
|
get default(): boolean;
|
|
237
|
-
|
|
238
|
-
|
|
243
|
+
abstract groupName(): string;
|
|
244
|
+
abstract addField(field: AGenericFieldDescriptor<ET>): this;
|
|
245
|
+
abstract copy(): AFieldGroupDescriptor<ET>;
|
|
239
246
|
withTitle(title: string): this;
|
|
240
247
|
withValidator(name: string, expression: (control: AbstractControl) => boolean): this;
|
|
241
248
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { MediusQueryParam } from '../api/models';
|
|
3
4
|
import { ILookupDataProvider } from '../data-providers';
|
|
4
5
|
import { ClassType } from '../types';
|
|
5
|
-
import { MediusQueryParam } from '../api/models';
|
|
6
6
|
export interface ILookupDescriptor<T> {
|
|
7
7
|
modelType: ClassType<T> | null;
|
|
8
8
|
itemsLabelProperty?: string;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { ModelDescriptor } from './model.descriptor';
|
|
4
|
-
import { ILookupDescriptor } from './lookup.descriptor';
|
|
5
|
-
import { ClassType } from '../types';
|
|
6
|
-
import { ILookupDataProvider } from '../data-providers';
|
|
7
3
|
import { MediusQueryParam } from '../api/models';
|
|
4
|
+
import { ILookupDataProvider } from '../data-providers';
|
|
5
|
+
import { ClassType } from '../types';
|
|
6
|
+
import { ILookupDescriptor } from './lookup.descriptor';
|
|
7
|
+
import { ModelDescriptor } from './model.descriptor';
|
|
8
8
|
export declare class TableDescriptor<T> {
|
|
9
9
|
private readonly _model;
|
|
10
10
|
private _filterDisplay;
|
|
11
11
|
private _paginationMode;
|
|
12
12
|
private _columns;
|
|
13
13
|
private _title?;
|
|
14
|
+
private _hideHeader;
|
|
14
15
|
private _dataKeyProperty?;
|
|
15
16
|
private _hasDefaultSort;
|
|
16
17
|
private _defaultSortProperty;
|
|
@@ -18,17 +19,18 @@ export declare class TableDescriptor<T> {
|
|
|
18
19
|
private _rowHeight;
|
|
19
20
|
private _tableFullHeightOffset;
|
|
20
21
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
21
|
-
get model(): ModelDescriptor<T>;
|
|
22
22
|
get filterDisplay(): TableDescriptor.FilterDisplayEnum;
|
|
23
23
|
get paginationMode(): TableDescriptor.PaginationModeEnum;
|
|
24
24
|
get columns(): ColumnDescriptor<any, T>[];
|
|
25
25
|
get title(): string | undefined;
|
|
26
|
+
get hideHeader(): boolean;
|
|
26
27
|
get dataKeyProperty(): string | undefined;
|
|
27
28
|
get hasDefaultSort(): boolean;
|
|
28
29
|
get defaultSortProperty(): string[];
|
|
29
30
|
get defaultSortAsc(): boolean[];
|
|
30
31
|
get rowHeight(): number;
|
|
31
32
|
get tableFullHeightOffset(): number;
|
|
33
|
+
get model(): ModelDescriptor<T>;
|
|
32
34
|
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
33
35
|
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
34
36
|
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
@@ -38,12 +40,13 @@ export declare class TableDescriptor<T> {
|
|
|
38
40
|
withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
|
|
39
41
|
withPaginationMode(paginationMode: TableDescriptor.PaginationModeEnum): this;
|
|
40
42
|
withTitle(title: string): TableDescriptor<T>;
|
|
43
|
+
withHideHeader(hideHeader?: boolean): this;
|
|
41
44
|
withDataKeyProperty(property: string): TableDescriptor<T>;
|
|
42
45
|
withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
|
|
43
46
|
withRowHeight(rowHeight: number): TableDescriptor<T>;
|
|
44
47
|
withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
|
|
45
|
-
private setDataKeyFromColumn;
|
|
46
48
|
copy(): TableDescriptor<T>;
|
|
49
|
+
private setDataKeyFromColumn;
|
|
47
50
|
}
|
|
48
51
|
export declare namespace TableDescriptor {
|
|
49
52
|
enum PaginationModeEnum {
|
|
@@ -66,15 +69,15 @@ export declare class ColumnDescriptor<T, TT> {
|
|
|
66
69
|
private _filterDescriptor?;
|
|
67
70
|
private _displayFormat?;
|
|
68
71
|
constructor(table: TableDescriptor<TT>, property: string);
|
|
69
|
-
get table(): TableDescriptor<TT>;
|
|
70
|
-
get property(): string;
|
|
71
72
|
get modelType(): ClassType<T> | null;
|
|
72
|
-
get
|
|
73
|
+
get columnType(): ColumnDescriptor.TypeEnum;
|
|
73
74
|
get title(): string | undefined;
|
|
75
|
+
get displayPropertyPath(): string | undefined;
|
|
74
76
|
get isSortEnabled(): boolean;
|
|
75
|
-
get columnType(): ColumnDescriptor.TypeEnum;
|
|
76
77
|
get filterDescriptor(): FilterDescriptor<T> | undefined;
|
|
77
78
|
get displayFormat(): string | undefined;
|
|
79
|
+
get table(): TableDescriptor<TT>;
|
|
80
|
+
get property(): string;
|
|
78
81
|
asType(type?: ColumnDescriptor.TypeEnum): this;
|
|
79
82
|
asNumber(displayFormat?: string): this;
|
|
80
83
|
asDate(displayFormat?: string): this;
|
|
@@ -103,12 +106,12 @@ export declare class FilterDescriptor<T> {
|
|
|
103
106
|
protected _placeholder?: string;
|
|
104
107
|
protected _className: string;
|
|
105
108
|
constructor(property: string);
|
|
106
|
-
get property(): string;
|
|
107
109
|
get filterType(): FilterDescriptor.TypeEnum;
|
|
108
110
|
get filterProperty(): string | undefined;
|
|
109
111
|
get matchModes(): string[] | null;
|
|
110
112
|
get placeholder(): string | undefined;
|
|
111
113
|
get className(): string;
|
|
114
|
+
get property(): string;
|
|
112
115
|
asFilterType(filterType: ColumnDescriptor.TypeEnum): this;
|
|
113
116
|
/**
|
|
114
117
|
* Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
|
|
@@ -118,8 +121,8 @@ export declare class FilterDescriptor<T> {
|
|
|
118
121
|
withPlaceholder(placeholder: string): this;
|
|
119
122
|
withClassName(className: string): this;
|
|
120
123
|
withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
|
|
121
|
-
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
122
124
|
copy(): FilterDescriptor<T>;
|
|
125
|
+
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
123
126
|
}
|
|
124
127
|
export declare namespace FilterDescriptor {
|
|
125
128
|
enum TypeEnum {
|
|
@@ -157,24 +160,24 @@ export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> imple
|
|
|
157
160
|
private _multiselect;
|
|
158
161
|
protected _dropdownClassName: string;
|
|
159
162
|
constructor(property: string, modelType: ClassType<T> | null);
|
|
160
|
-
get modelType(): ClassType<T> | null;
|
|
161
163
|
get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
|
|
164
|
+
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
162
165
|
get itemsLabelProperty(): string | undefined;
|
|
163
166
|
get itemsValueProperty(): string | undefined;
|
|
164
167
|
get dataKeyProperty(): string | undefined;
|
|
165
|
-
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
166
168
|
get multiselect(): boolean;
|
|
169
|
+
get dropdownClassName(): string;
|
|
170
|
+
get modelType(): ClassType<T> | null;
|
|
167
171
|
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
168
172
|
withItemsValueProperty(itemsValueProperty: string): this;
|
|
169
173
|
withDataKeyProperty(dataKeyProperty: string): this;
|
|
170
|
-
get dropdownClassName(): string;
|
|
171
174
|
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
172
175
|
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
173
176
|
withMultiselect(multiselect?: boolean): this;
|
|
174
177
|
withDropdownClassName(dropdownClassName: string): this;
|
|
175
178
|
asAutocomplete(): this;
|
|
176
|
-
protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
|
|
177
179
|
copy(): FilterLookupDescriptor<T>;
|
|
180
|
+
protected copyFieldsTo(descriptor: FilterLookupDescriptor<T>): void;
|
|
178
181
|
}
|
|
179
182
|
export declare namespace FilterLookupDescriptor {
|
|
180
183
|
enum LookupTypeEnum {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
3
|
+
import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
|
|
4
4
|
export declare class TableviewDescriptor<T> {
|
|
5
5
|
private readonly _model;
|
|
6
|
-
private _table;
|
|
7
|
-
private _viewEditor;
|
|
8
|
-
private _addEditor;
|
|
9
|
-
private _editEditor;
|
|
10
|
-
private _tableTitle;
|
|
11
6
|
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
12
|
-
|
|
7
|
+
private _table;
|
|
13
8
|
get table(): TableDescriptor<T>;
|
|
9
|
+
private _viewEditor;
|
|
14
10
|
get viewEditor(): EditorDescriptor<T>;
|
|
11
|
+
private _addEditor;
|
|
15
12
|
get addEditor(): EditorDescriptor<T>;
|
|
13
|
+
private _editEditor;
|
|
16
14
|
get editEditor(): EditorDescriptor<T>;
|
|
15
|
+
private _tableTitle;
|
|
17
16
|
get tableTitle(): string;
|
|
17
|
+
get model(): ModelDescriptor<T>;
|
|
18
18
|
withTableDescriptor(descriptor: TableDescriptor<T>): this;
|
|
19
19
|
withViewDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
20
20
|
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
@@ -32,7 +32,7 @@ export declare class TableviewDescriptor<T> {
|
|
|
32
32
|
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
33
33
|
addField(property: string): FieldInputDescriptor<T>;
|
|
34
34
|
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
35
|
-
addFieldLookupEnum(property: string,
|
|
35
|
+
addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
|
|
36
36
|
addFieldManyEditor<FT>(property: string, type: ClassType<FT>, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
37
37
|
addFieldManyToManyEditor<FT>(property: string, type: ClassType<FT>, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
38
38
|
copy(): TableviewDescriptor<T>;
|
|
@@ -6,74 +6,77 @@ import * as i1 from "./directives/component.directive";
|
|
|
6
6
|
import * as i2 from "./directives/template.directive";
|
|
7
7
|
import * as i3 from "./pipes/property-path.pipe";
|
|
8
8
|
import * as i4 from "./pipes/boolean.pipe";
|
|
9
|
-
import * as i5 from "./
|
|
10
|
-
import * as i6 from "./components/layout/
|
|
11
|
-
import * as i7 from "./components/layout/
|
|
12
|
-
import * as i8 from "./components/layout/
|
|
13
|
-
import * as i9 from "./components/layout/menu
|
|
14
|
-
import * as i10 from "./components/layout/
|
|
15
|
-
import * as i11 from "./components/
|
|
16
|
-
import * as i12 from "./components/form/
|
|
17
|
-
import * as i13 from "./components/form/
|
|
18
|
-
import * as i14 from "./components/form/formly/wrappers/formly-
|
|
19
|
-
import * as i15 from "./components/form/formly/
|
|
20
|
-
import * as i16 from "./components/form/formly/fields/formly-field-
|
|
21
|
-
import * as i17 from "./components/form/formly/fields/formly-field-
|
|
22
|
-
import * as i18 from "./components/form/formly/fields/formly-field-
|
|
23
|
-
import * as i19 from "./components/form/formly/fields/formly-field-table-dialog-
|
|
24
|
-
import * as i20 from "./components/form/formly/fields/formly-field-
|
|
25
|
-
import * as i21 from "./components/form/formly/fields/formly-field-
|
|
26
|
-
import * as i22 from "./components/
|
|
27
|
-
import * as i23 from "./components/tableview/
|
|
28
|
-
import * as i24 from "./components/tableview/
|
|
29
|
-
import * as i25 from "./components/tableview/table/column-
|
|
30
|
-
import * as i26 from "./components/
|
|
31
|
-
import * as i27 from "./components/
|
|
32
|
-
import * as i28 from "./components/
|
|
33
|
-
import * as i29 from "./components/action/
|
|
34
|
-
import * as i30 from "
|
|
35
|
-
import * as i31 from "
|
|
36
|
-
import * as i32 from "@angular/common
|
|
37
|
-
import * as i33 from "@angular/
|
|
38
|
-
import * as i34 from "@
|
|
39
|
-
import * as i35 from "@
|
|
40
|
-
import * as i36 from "
|
|
41
|
-
import * as i37 from "
|
|
42
|
-
import * as i38 from "primeng/
|
|
43
|
-
import * as i39 from "primeng/
|
|
44
|
-
import * as i40 from "primeng/
|
|
45
|
-
import * as i41 from "primeng/
|
|
46
|
-
import * as i42 from "primeng/
|
|
47
|
-
import * as i43 from "primeng/
|
|
48
|
-
import * as i44 from "primeng/
|
|
49
|
-
import * as i45 from "primeng/
|
|
50
|
-
import * as i46 from "primeng/
|
|
51
|
-
import * as i47 from "primeng/
|
|
52
|
-
import * as i48 from "primeng/
|
|
53
|
-
import * as i49 from "primeng/
|
|
54
|
-
import * as i50 from "primeng/
|
|
55
|
-
import * as i51 from "primeng/
|
|
56
|
-
import * as i52 from "primeng/
|
|
57
|
-
import * as i53 from "primeng/
|
|
58
|
-
import * as i54 from "primeng/
|
|
59
|
-
import * as i55 from "primeng/
|
|
60
|
-
import * as i56 from "primeng/
|
|
61
|
-
import * as i57 from "primeng/
|
|
62
|
-
import * as i58 from "primeng/
|
|
63
|
-
import * as i59 from "primeng/
|
|
64
|
-
import * as i60 from "primeng/
|
|
65
|
-
import * as i61 from "primeng/
|
|
66
|
-
import * as i62 from "primeng/
|
|
67
|
-
import * as i63 from "primeng/
|
|
68
|
-
import * as i64 from "primeng/
|
|
69
|
-
import * as i65 from "primeng/
|
|
70
|
-
import * as i66 from "primeng/
|
|
71
|
-
import * as i67 from "primeng/
|
|
72
|
-
import * as i68 from "primeng/
|
|
9
|
+
import * as i5 from "./pipes/i18n-property.pipe";
|
|
10
|
+
import * as i6 from "./components/layout/breadcrumb.component";
|
|
11
|
+
import * as i7 from "./components/layout/footer.component";
|
|
12
|
+
import * as i8 from "./components/layout/main-layout.component";
|
|
13
|
+
import * as i9 from "./components/layout/menu.component";
|
|
14
|
+
import * as i10 from "./components/layout/menu-item.component";
|
|
15
|
+
import * as i11 from "./components/layout/topbar.component";
|
|
16
|
+
import * as i12 from "./components/form/autocomplete/autocomplete.component";
|
|
17
|
+
import * as i13 from "./components/form/dropdown/dropdown.component";
|
|
18
|
+
import * as i14 from "./components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component";
|
|
19
|
+
import * as i15 from "./components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component";
|
|
20
|
+
import * as i16 from "./components/form/formly/fields/formly-field-input/formly-field-input.component";
|
|
21
|
+
import * as i17 from "./components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component";
|
|
22
|
+
import * as i18 from "./components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component";
|
|
23
|
+
import * as i19 from "./components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component";
|
|
24
|
+
import * as i20 from "./components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component";
|
|
25
|
+
import * as i21 from "./components/form/formly/fields/formly-field-tabs/formly-field-tabs.component";
|
|
26
|
+
import * as i22 from "./components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component";
|
|
27
|
+
import * as i23 from "./components/tableview/table/table.component";
|
|
28
|
+
import * as i24 from "./components/tableview/tableview.component";
|
|
29
|
+
import * as i25 from "./components/tableview/table/column-value/column-value.component";
|
|
30
|
+
import * as i26 from "./components/tableview/table/column-filter/column-filter.component";
|
|
31
|
+
import * as i27 from "./components/tableview/route/tableview-route.component";
|
|
32
|
+
import * as i28 from "./components/form/editor/form-editor.component";
|
|
33
|
+
import * as i29 from "./components/action/action.component";
|
|
34
|
+
import * as i30 from "./components/action/dialog/action-dialog.component";
|
|
35
|
+
import * as i31 from "./components/action/route/action-route.component";
|
|
36
|
+
import * as i32 from "@angular/common";
|
|
37
|
+
import * as i33 from "@angular/router";
|
|
38
|
+
import * as i34 from "@angular/common/http";
|
|
39
|
+
import * as i35 from "@angular/forms";
|
|
40
|
+
import * as i36 from "@ngx-translate/core";
|
|
41
|
+
import * as i37 from "@ngx-formly/core";
|
|
42
|
+
import * as i38 from "primeng/autocomplete";
|
|
43
|
+
import * as i39 from "primeng/breadcrumb";
|
|
44
|
+
import * as i40 from "primeng/button";
|
|
45
|
+
import * as i41 from "primeng/calendar";
|
|
46
|
+
import * as i42 from "primeng/card";
|
|
47
|
+
import * as i43 from "primeng/checkbox";
|
|
48
|
+
import * as i44 from "primeng/chip";
|
|
49
|
+
import * as i45 from "primeng/confirmdialog";
|
|
50
|
+
import * as i46 from "primeng/confirmpopup";
|
|
51
|
+
import * as i47 from "primeng/dialog";
|
|
52
|
+
import * as i48 from "primeng/dynamicdialog";
|
|
53
|
+
import * as i49 from "primeng/dropdown";
|
|
54
|
+
import * as i50 from "primeng/fileupload";
|
|
55
|
+
import * as i51 from "primeng/inputnumber";
|
|
56
|
+
import * as i52 from "primeng/inputmask";
|
|
57
|
+
import * as i53 from "primeng/inputswitch";
|
|
58
|
+
import * as i54 from "primeng/inputtext";
|
|
59
|
+
import * as i55 from "primeng/inputtextarea";
|
|
60
|
+
import * as i56 from "primeng/paginator";
|
|
61
|
+
import * as i57 from "primeng/radiobutton";
|
|
62
|
+
import * as i58 from "primeng/ripple";
|
|
63
|
+
import * as i59 from "primeng/selectbutton";
|
|
64
|
+
import * as i60 from "primeng/table";
|
|
65
|
+
import * as i61 from "primeng/tag";
|
|
66
|
+
import * as i62 from "primeng/toast";
|
|
67
|
+
import * as i63 from "primeng/togglebutton";
|
|
68
|
+
import * as i64 from "primeng/toolbar";
|
|
69
|
+
import * as i65 from "primeng/tooltip";
|
|
70
|
+
import * as i66 from "primeng/messages";
|
|
71
|
+
import * as i67 from "primeng/progressspinner";
|
|
72
|
+
import * as i68 from "primeng/tabview";
|
|
73
|
+
import * as i69 from "primeng/fieldset";
|
|
74
|
+
import * as i70 from "primeng/multiselect";
|
|
75
|
+
import * as i71 from "primeng/skeleton";
|
|
73
76
|
export declare const primeNgModules: (typeof InputTextModule)[];
|
|
74
77
|
export declare class MngCommonsModule {
|
|
75
78
|
static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
|
|
76
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
|
|
77
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngI18nPropertyPipe, typeof i6.MngBreadcrumbComponent, typeof i7.MngFooterComponent, typeof i8.MngMainLayoutComponent, typeof i9.MngMenuComponent, typeof i10.MngMenuItemComponent, typeof i11.MngTopbarComponent, typeof i12.MngAutocompleteComponent, typeof i13.MngDropdownComponent, typeof i14.MngFormlyFieldWrapperComponent, typeof i15.MngFormlyTableWrapperComponent, typeof i16.MngFormlyFieldInputComponent, typeof i17.MngFormlyFieldDropdownComponent, typeof i18.MngFormlyFieldAutocompleteComponent, typeof i19.MngFormlyFieldTableDialogMultiselectComponent, typeof i20.MngFormlyFieldTableDialogFormComponent, typeof i21.MngFormlyFieldTabsComponent, typeof i22.MngFormlyFieldFieldsetComponent, typeof i23.MngTableComponent, typeof i24.MngTableviewComponent, typeof i25.MngTableColumnValueComponent, typeof i26.MngTableColumnFilterComponent, typeof i27.MngTableviewRouteComponent, typeof i28.MngFormEditorComponent, typeof i29.MngActionComponent, typeof i30.MngActionDialogComponent, typeof i31.MngActionRouteComponent], [typeof i32.CommonModule, typeof i33.RouterModule, typeof i34.HttpClientModule, typeof i35.ReactiveFormsModule, typeof i36.TranslateModule, typeof i37.FormlyModule, typeof i38.AutoCompleteModule, typeof i39.BreadcrumbModule, typeof i40.ButtonModule, typeof i41.CalendarModule, typeof i42.CardModule, typeof i43.CheckboxModule, typeof i44.ChipModule, typeof i45.ConfirmDialogModule, typeof i46.ConfirmPopupModule, typeof i47.DialogModule, typeof i48.DynamicDialogModule, typeof i49.DropdownModule, typeof i50.FileUploadModule, typeof i51.InputNumberModule, typeof i52.InputMaskModule, typeof i53.InputSwitchModule, typeof i54.InputTextModule, typeof i55.InputTextareaModule, typeof i56.PaginatorModule, typeof i57.RadioButtonModule, typeof i58.RippleModule, typeof i59.SelectButtonModule, typeof i60.TableModule, typeof i61.TagModule, typeof i62.ToastModule, typeof i63.ToggleButtonModule, typeof i64.ToolbarModule, typeof i65.TooltipModule, typeof i66.MessagesModule, typeof i67.ProgressSpinnerModule, typeof i68.TabViewModule, typeof i69.FieldsetModule, typeof i70.MultiSelectModule, typeof i71.SkeletonModule], [typeof i38.AutoCompleteModule, typeof i39.BreadcrumbModule, typeof i40.ButtonModule, typeof i41.CalendarModule, typeof i42.CardModule, typeof i43.CheckboxModule, typeof i44.ChipModule, typeof i45.ConfirmDialogModule, typeof i46.ConfirmPopupModule, typeof i47.DialogModule, typeof i48.DynamicDialogModule, typeof i49.DropdownModule, typeof i50.FileUploadModule, typeof i51.InputNumberModule, typeof i52.InputMaskModule, typeof i53.InputSwitchModule, typeof i54.InputTextModule, typeof i55.InputTextareaModule, typeof i56.PaginatorModule, typeof i57.RadioButtonModule, typeof i58.RippleModule, typeof i59.SelectButtonModule, typeof i60.TableModule, typeof i61.TagModule, typeof i62.ToastModule, typeof i63.ToggleButtonModule, typeof i64.ToolbarModule, typeof i65.TooltipModule, typeof i66.MessagesModule, typeof i67.ProgressSpinnerModule, typeof i68.TabViewModule, typeof i69.FieldsetModule, typeof i70.MultiSelectModule, typeof i71.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.MngPropertyPathPipe, typeof i4.MngBooleanPipe, typeof i5.MngI18nPropertyPipe, typeof i6.MngBreadcrumbComponent, typeof i7.MngFooterComponent, typeof i8.MngMainLayoutComponent, typeof i9.MngMenuComponent, typeof i10.MngMenuItemComponent, typeof i11.MngTopbarComponent, typeof i12.MngAutocompleteComponent, typeof i13.MngDropdownComponent, typeof i14.MngFormlyFieldWrapperComponent, typeof i15.MngFormlyTableWrapperComponent, typeof i16.MngFormlyFieldInputComponent, typeof i17.MngFormlyFieldDropdownComponent, typeof i18.MngFormlyFieldAutocompleteComponent, typeof i19.MngFormlyFieldTableDialogMultiselectComponent, typeof i20.MngFormlyFieldTableDialogFormComponent, typeof i21.MngFormlyFieldTabsComponent, typeof i22.MngFormlyFieldFieldsetComponent, typeof i23.MngTableComponent, typeof i24.MngTableviewComponent, typeof i25.MngTableColumnValueComponent, typeof i26.MngTableColumnFilterComponent, typeof i27.MngTableviewRouteComponent, typeof i28.MngFormEditorComponent, typeof i29.MngActionComponent, typeof i30.MngActionDialogComponent, typeof i31.MngActionRouteComponent]>;
|
|
78
81
|
static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
|
|
79
82
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './enum.model';
|
|
2
2
|
export * from './user.model';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ModelDescriptor } from '../descriptors';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MngI18nPropertyPipe implements PipeTransform {
|
|
5
|
+
transform(property: string, model: ModelDescriptor<any>): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngI18nPropertyPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MngI18nPropertyPipe, "i18nProperty">;
|
|
8
|
+
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './route-builder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './router.model';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, Data } from '@angular/router';
|
|
3
|
+
import { MenuItem } from 'primeng/api';
|
|
4
|
+
import { TableviewDataProvider } from '../../data-providers';
|
|
5
|
+
import { ActionDescriptor, TableviewDescriptor } from '../../descriptors';
|
|
6
|
+
export declare type BreadcrumbType = string | string[] | MngBreadcrumbMenuItem | MngBreadcrumbMenuItem[] | ((routeUrl: string, route: ActivatedRouteSnapshot) => MngBreadcrumbMenuItem[]);
|
|
7
|
+
export interface MngBreadcrumbMenuItem extends MenuItem {
|
|
8
|
+
isHome?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MngRouterData extends Data {
|
|
11
|
+
breadcrumb?: BreadcrumbType | null;
|
|
12
|
+
pageTitle?: string;
|
|
13
|
+
tableview?: {
|
|
14
|
+
descriptor: TableviewDescriptor<any>;
|
|
15
|
+
dataProvider: TableviewDataProvider<any, any>;
|
|
16
|
+
actions?: Array<ActionDescriptor<any>>;
|
|
17
|
+
};
|
|
18
|
+
topbarComponent?: Type<any>;
|
|
19
|
+
breadcrumbComponent?: Type<any>;
|
|
20
|
+
menuComponent?: Type<any>;
|
|
21
|
+
footerComponent?: Type<any>;
|
|
22
|
+
}
|