@mediusinc/mng-commons 0.6.1 → 0.8.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/assets/i18n/en.json +3 -3
- package/assets/i18n/sl.json +3 -3
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +59 -53
- package/esm2020/lib/api/models/filter-match-type.model.mjs +24 -24
- package/esm2020/lib/api/models/filter-param.model.mjs +32 -32
- package/esm2020/lib/api/models/index.mjs +8 -8
- package/esm2020/lib/api/models/mappers.mjs +12 -12
- package/esm2020/lib/api/models/query-mode.model.mjs +17 -17
- package/esm2020/lib/api/models/query-param.model.mjs +67 -67
- package/esm2020/lib/api/models/query-result.model.mjs +17 -17
- package/esm2020/lib/api/models/serialization.model.mjs +1 -1
- package/esm2020/lib/api/services/api.abstract.service.mjs +55 -55
- package/esm2020/lib/api/services/crud-api.abstract.service.mjs +66 -66
- package/esm2020/lib/api/services/get-all-api.abstract.service.mjs +22 -22
- package/esm2020/lib/api/services/index.mjs +3 -3
- package/esm2020/lib/api/utils/index.mjs +2 -2
- package/esm2020/lib/api/utils/medius-rest.util.mjs +152 -126
- package/esm2020/lib/api/utils/object-serializer.util.mjs +243 -243
- package/esm2020/lib/components/action/action.component.mjs +174 -161
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +230 -236
- package/esm2020/lib/components/action/index.mjs +3 -3
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +1 -1
- package/esm2020/lib/components/action/models/action-execution.model.mjs +231 -59
- package/esm2020/lib/components/action/models/index.mjs +2 -2
- package/esm2020/lib/components/action/route/action-route.component.mjs +125 -127
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +268 -268
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +160 -160
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +189 -189
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +18 -18
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +43 -43
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +24 -24
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +79 -56
- package/esm2020/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.mjs +16 -16
- package/esm2020/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.mjs +179 -179
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +156 -165
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +126 -126
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +16 -16
- package/esm2020/lib/components/form/formly/fields/index.mjs +9 -9
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +14 -14
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +14 -14
- package/esm2020/lib/components/form/formly/wrappers/index.mjs +2 -2
- package/esm2020/lib/components/form/index.mjs +3 -3
- package/esm2020/lib/components/form/models/form-editor.event.mjs +34 -34
- package/esm2020/lib/components/form/models/index.mjs +1 -1
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +16 -16
- package/esm2020/lib/components/layout/footer.component.mjs +16 -16
- package/esm2020/lib/components/layout/index.mjs +6 -6
- package/esm2020/lib/components/layout/main-layout.component.mjs +51 -51
- package/esm2020/lib/components/layout/menu-item.component.mjs +216 -216
- package/esm2020/lib/components/layout/menu.component.mjs +19 -19
- package/esm2020/lib/components/layout/services/index.mjs +1 -1
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +192 -192
- package/esm2020/lib/components/layout/topbar.component.mjs +57 -57
- package/esm2020/lib/components/tableview/index.mjs +6 -6
- package/esm2020/lib/components/tableview/models/index.mjs +1 -1
- package/esm2020/lib/components/tableview/models/table.event.mjs +15 -15
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +35 -35
- package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +53 -53
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +102 -85
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +41 -41
- package/esm2020/lib/components/tableview/table/table.component.mjs +430 -339
- package/esm2020/lib/components/tableview/tableview.component.mjs +89 -97
- package/esm2020/lib/config/formly.config.mjs +172 -163
- package/esm2020/lib/config/index.mjs +1 -1
- package/esm2020/lib/config/models/index.mjs +1 -1
- package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
- package/esm2020/lib/data-providers/base.data-provider.mjs +16 -16
- package/esm2020/lib/data-providers/editor.data-provider.mjs +36 -36
- package/esm2020/lib/data-providers/index.mjs +5 -5
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +15 -15
- package/esm2020/lib/data-providers/table.data-provider.mjs +16 -16
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +16 -16
- package/esm2020/lib/descriptors/action.descriptor.mjs +623 -600
- package/esm2020/lib/descriptors/column.descriptor.mjs +228 -197
- package/esm2020/lib/descriptors/editor.descriptor.mjs +154 -154
- package/esm2020/lib/descriptors/field-validation.descriptor.mjs +20 -20
- package/esm2020/lib/descriptors/field.descriptor.interface.mjs +1 -1
- package/esm2020/lib/descriptors/field.descriptor.mjs +823 -793
- package/esm2020/lib/descriptors/filter.descriptor.mjs +295 -237
- package/esm2020/lib/descriptors/index.mjs +11 -11
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +1 -1
- package/esm2020/lib/descriptors/model.descriptor.mjs +33 -33
- package/esm2020/lib/descriptors/table.descriptor.mjs +214 -171
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +134 -134
- package/esm2020/lib/directives/component.directive.mjs +43 -43
- package/esm2020/lib/directives/index.mjs +2 -2
- package/esm2020/lib/directives/template.directive.mjs +27 -27
- package/esm2020/lib/mng-commons.module.mjs +426 -426
- package/esm2020/lib/models/column-value.model.mjs +1 -1
- package/esm2020/lib/models/enum.model.mjs +1 -1
- package/esm2020/lib/models/error.model.mjs +1 -1
- package/esm2020/lib/models/index.mjs +6 -6
- package/esm2020/lib/models/menu.model.mjs +1 -1
- package/esm2020/lib/models/user.model.mjs +1 -1
- package/esm2020/lib/models/view-container.model.mjs +1 -1
- package/esm2020/lib/pipes/boolean.pipe.mjs +26 -26
- package/esm2020/lib/pipes/enum.pipe.mjs +24 -24
- package/esm2020/lib/pipes/i18n-property.pipe.mjs +17 -17
- package/esm2020/lib/pipes/index.mjs +5 -5
- package/esm2020/lib/pipes/json-path.pipe.mjs +79 -79
- package/esm2020/lib/pipes/link-formatter.pipe.mjs +38 -38
- package/esm2020/lib/router/index.mjs +1 -1
- package/esm2020/lib/router/models/index.mjs +1 -1
- package/esm2020/lib/router/models/router.model.mjs +1 -1
- package/esm2020/lib/router/route-builder.mjs +431 -431
- package/esm2020/lib/services/action-executor.service.mjs +535 -361
- package/esm2020/lib/services/commons.service.mjs +344 -344
- package/esm2020/lib/services/configuration.service.mjs +110 -110
- package/esm2020/lib/services/error-mapper.service.mjs +13 -13
- package/esm2020/lib/services/index.mjs +6 -6
- package/esm2020/lib/services/internal/commons-init.provider.mjs +3 -3
- package/esm2020/lib/services/internal/commons-init.service.mjs +43 -43
- package/esm2020/lib/services/internal/index.mjs +2 -2
- package/esm2020/lib/services/navigation.service.mjs +47 -47
- package/esm2020/lib/services/providers/config-service.provider.mjs +29 -29
- package/esm2020/lib/services/providers/formly-config.provider.mjs +30 -30
- package/esm2020/lib/services/providers/index.mjs +2 -2
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +5 -5
- package/esm2020/lib/services/tokens/commons-init.token.mjs +2 -2
- package/esm2020/lib/services/tokens/default-setting.token.mjs +2 -2
- package/esm2020/lib/services/tokens/index.mjs +4 -4
- package/esm2020/lib/services/tokens/module-config.token.mjs +2 -2
- package/esm2020/lib/services/view-container.component.service.mjs +34 -34
- package/esm2020/lib/types/index.mjs +2 -2
- package/esm2020/lib/types/type.decorator.mjs +12 -12
- package/esm2020/lib/types/type.model.mjs +2 -2
- package/esm2020/lib/utils/action-data-provider.util.mjs +116 -116
- package/esm2020/lib/utils/editor-formly.util.mjs +205 -202
- package/esm2020/lib/utils/enum.util.mjs +82 -82
- package/esm2020/lib/utils/i18n.util.mjs +232 -232
- package/esm2020/lib/utils/index.mjs +7 -7
- package/esm2020/lib/utils/model.util.mjs +59 -59
- package/esm2020/lib/utils/notification.util.mjs +45 -45
- package/esm2020/lib/utils/route.util.mjs +23 -23
- package/esm2020/lib/utils/styles.util.mjs +41 -0
- package/esm2020/lib/utils/type.util.mjs +76 -76
- package/esm2020/mediusinc-mng-commons.mjs +4 -4
- package/esm2020/public-api.mjs +39 -39
- package/fesm2015/mediusinc-mng-commons.mjs +9702 -8977
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +9574 -8848
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/builders/query-param.builder.d.ts +13 -12
- package/lib/api/models/filter-match-type.model.d.ts +23 -23
- package/lib/api/models/filter-param.model.d.ts +23 -23
- package/lib/api/models/index.d.ts +8 -8
- package/lib/api/models/mappers.d.ts +6 -6
- package/lib/api/models/query-mode.model.d.ts +16 -16
- package/lib/api/models/query-param.model.d.ts +31 -31
- package/lib/api/models/query-result.model.d.ts +23 -23
- package/lib/api/models/serialization.model.d.ts +8 -8
- package/lib/api/services/api.abstract.service.d.ts +24 -24
- package/lib/api/services/crud-api.abstract.service.d.ts +22 -22
- package/lib/api/services/get-all-api.abstract.service.d.ts +11 -11
- package/lib/api/services/index.d.ts +3 -3
- package/lib/api/utils/index.d.ts +2 -2
- package/lib/api/utils/medius-rest.util.d.ts +14 -12
- package/lib/api/utils/object-serializer.util.d.ts +33 -33
- package/lib/components/action/action.component.d.ts +66 -65
- package/lib/components/action/editor/action-editor.component.d.ts +62 -59
- package/lib/components/action/index.d.ts +3 -3
- package/lib/components/action/models/action-confirmation-service.model.d.ts +6 -6
- package/lib/components/action/models/action-execution.model.d.ts +126 -57
- package/lib/components/action/models/index.d.ts +2 -2
- package/lib/components/action/route/action-route.component.d.ts +31 -31
- package/lib/components/form/autocomplete/autocomplete.component.d.ts +53 -53
- package/lib/components/form/dropdown/dropdown.component.d.ts +44 -44
- package/lib/components/form/editor/form-editor.component.d.ts +45 -45
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +12 -12
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +14 -14
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +12 -12
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +19 -14
- package/lib/components/form/formly/fields/formly-field-label/formly-field-label.component.d.ts +6 -6
- package/lib/components/form/formly/fields/formly-field-lookup-dialog/formly-field-lookup-dialog.component.d.ts +44 -44
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +22 -25
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +37 -37
- package/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +6 -6
- package/lib/components/form/formly/fields/index.d.ts +9 -9
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +6 -6
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +6 -6
- package/lib/components/form/formly/wrappers/index.d.ts +2 -2
- package/lib/components/form/index.d.ts +3 -3
- package/lib/components/form/models/form-editor.event.d.ts +37 -37
- package/lib/components/form/models/index.d.ts +1 -1
- package/lib/components/layout/breadcrumb.component.d.ts +8 -8
- package/lib/components/layout/footer.component.d.ts +9 -9
- package/lib/components/layout/index.d.ts +6 -6
- package/lib/components/layout/main-layout.component.d.ts +20 -20
- package/lib/components/layout/menu-item.component.d.ts +37 -37
- package/lib/components/layout/menu.component.d.ts +10 -10
- package/lib/components/layout/services/index.d.ts +1 -1
- package/lib/components/layout/services/main-layout.component.service.d.ts +65 -65
- package/lib/components/layout/topbar.component.d.ts +24 -24
- package/lib/components/tableview/index.d.ts +6 -6
- package/lib/components/tableview/models/index.d.ts +1 -1
- package/lib/components/tableview/models/table.event.d.ts +17 -17
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +19 -19
- package/lib/components/tableview/route/tableview-route.component.d.ts +18 -18
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +31 -29
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +17 -17
- package/lib/components/tableview/table/table.component.d.ts +104 -93
- package/lib/components/tableview/tableview.component.d.ts +37 -39
- package/lib/config/formly.config.d.ts +15 -15
- package/lib/config/index.d.ts +1 -1
- package/lib/config/models/index.d.ts +1 -1
- package/lib/config/models/mng-config.model.d.ts +34 -34
- package/lib/data-providers/base.data-provider.d.ts +14 -14
- package/lib/data-providers/editor.data-provider.d.ts +25 -25
- package/lib/data-providers/index.d.ts +5 -5
- package/lib/data-providers/lookup.data-provider.d.ts +14 -14
- package/lib/data-providers/table.data-provider.d.ts +14 -14
- package/lib/data-providers/tableview.data-provider.d.ts +15 -15
- package/lib/descriptors/action.descriptor.d.ts +277 -270
- package/lib/descriptors/column.descriptor.d.ts +76 -66
- package/lib/descriptors/editor.descriptor.d.ts +44 -44
- package/lib/descriptors/field-validation.descriptor.d.ts +18 -18
- package/lib/descriptors/field.descriptor.d.ts +326 -314
- package/lib/descriptors/field.descriptor.interface.d.ts +9 -9
- package/lib/descriptors/filter.descriptor.d.ts +127 -108
- package/lib/descriptors/index.d.ts +11 -11
- package/lib/descriptors/lookup.descriptor.d.ts +17 -17
- package/lib/descriptors/model.descriptor.d.ts +15 -15
- package/lib/descriptors/table.descriptor.d.ts +80 -63
- package/lib/descriptors/tableview.descriptor.d.ts +42 -42
- package/lib/directives/component.directive.d.ts +16 -16
- package/lib/directives/index.d.ts +2 -2
- package/lib/directives/template.directive.d.ts +13 -13
- package/lib/mng-commons.module.d.ts +86 -86
- package/lib/models/column-value.model.d.ts +4 -4
- package/lib/models/enum.model.d.ts +6 -6
- package/lib/models/error.model.d.ts +14 -14
- package/lib/models/index.d.ts +6 -6
- package/lib/models/menu.model.d.ts +25 -25
- package/lib/models/user.model.d.ts +8 -8
- package/lib/models/view-container.model.d.ts +6 -6
- package/lib/pipes/boolean.pipe.d.ts +7 -7
- package/lib/pipes/enum.pipe.d.ts +8 -8
- package/lib/pipes/i18n-property.pipe.d.ts +8 -8
- package/lib/pipes/index.d.ts +5 -5
- package/lib/pipes/json-path.pipe.d.ts +13 -13
- package/lib/pipes/link-formatter.pipe.d.ts +11 -11
- package/lib/router/index.d.ts +1 -1
- package/lib/router/models/index.d.ts +1 -1
- package/lib/router/models/router.model.d.ts +22 -22
- package/lib/router/route-builder.d.ts +86 -86
- package/lib/services/action-executor.service.d.ts +149 -104
- package/lib/services/commons.service.d.ts +72 -72
- package/lib/services/configuration.service.d.ts +36 -36
- package/lib/services/error-mapper.service.d.ts +7 -7
- package/lib/services/index.d.ts +6 -6
- package/lib/services/internal/commons-init.provider.d.ts +3 -3
- package/lib/services/internal/commons-init.service.d.ts +16 -16
- package/lib/services/internal/index.d.ts +2 -2
- package/lib/services/navigation.service.d.ts +14 -14
- package/lib/services/providers/config-service.provider.d.ts +6 -6
- package/lib/services/providers/formly-config.provider.d.ts +4 -4
- package/lib/services/providers/index.d.ts +2 -2
- package/lib/services/tokens/browser-storage.token.d.ts +2 -2
- package/lib/services/tokens/commons-init.token.d.ts +3 -3
- package/lib/services/tokens/default-setting.token.d.ts +2 -2
- package/lib/services/tokens/index.d.ts +4 -4
- package/lib/services/tokens/module-config.token.d.ts +3 -3
- package/lib/services/view-container.component.service.d.ts +22 -22
- package/lib/types/index.d.ts +2 -2
- package/lib/types/type.decorator.d.ts +4 -4
- package/lib/types/type.model.d.ts +20 -17
- package/lib/utils/action-data-provider.util.d.ts +16 -17
- package/lib/utils/editor-formly.util.d.ts +10 -10
- package/lib/utils/enum.util.d.ts +50 -50
- package/lib/utils/i18n.util.d.ts +56 -56
- package/lib/utils/index.d.ts +7 -7
- package/lib/utils/model.util.d.ts +8 -8
- package/lib/utils/notification.util.d.ts +11 -11
- package/lib/utils/route.util.d.ts +4 -4
- package/lib/utils/styles.util.d.ts +14 -0
- package/lib/utils/type.util.d.ts +36 -36
- package/mediusinc-mng-commons-0.8.0-rc.1.tgz +0 -0
- package/mediusinc-mng-commons.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +28 -28
- package/scss/common/theme/designer/_components.scss +1 -1
- package/scss/mng-overrides/_theme_datatable.scss +57 -0
- package/scss/mng-overrides/_theme_forms.scss +16 -0
- package/scss/mng-overrides/_theme_styles.scss +1 -0
- package/scss/mng-overrides/_theme_tableview.scss +0 -43
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
export interface FieldConfig {
|
|
3
|
-
}
|
|
4
|
-
export interface FieldLookupConfig extends FieldConfig {
|
|
5
|
-
table?: {
|
|
6
|
-
captionComponent?: Type<any>;
|
|
7
|
-
columnActionComponent?: Type<any>;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
export interface FieldConfig {
|
|
3
|
+
}
|
|
4
|
+
export interface FieldLookupConfig extends FieldConfig {
|
|
5
|
+
table?: {
|
|
6
|
+
captionComponent?: Type<any>;
|
|
7
|
+
columnActionComponent?: Type<any>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -1,108 +1,127 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam } from '../api/models';
|
|
4
|
-
import { ILookupDataProvider } from '../data-providers';
|
|
5
|
-
import { EnumValue } from '../models';
|
|
6
|
-
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
7
|
-
import { ILookupDescriptor } from './lookup.descriptor';
|
|
8
|
-
export declare class FilterDescriptor<T> {
|
|
9
|
-
protected readonly _property: string;
|
|
10
|
-
protected _filterType: FilterDescriptor.TypeEnum;
|
|
11
|
-
protected _filterProperty?: string;
|
|
12
|
-
protected _matchModes: string[] | null;
|
|
13
|
-
protected
|
|
14
|
-
protected
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
get
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MediusQueryParam } from '../api/models';
|
|
4
|
+
import { ILookupDataProvider } from '../data-providers';
|
|
5
|
+
import { EnumValue } from '../models';
|
|
6
|
+
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
7
|
+
import { ILookupDescriptor } from './lookup.descriptor';
|
|
8
|
+
export declare class FilterDescriptor<T> {
|
|
9
|
+
protected readonly _property: string;
|
|
10
|
+
protected _filterType: FilterDescriptor.TypeEnum;
|
|
11
|
+
protected _filterProperty?: string;
|
|
12
|
+
protected _matchModes: string[] | null;
|
|
13
|
+
protected _numberMinFractionDigits?: number;
|
|
14
|
+
protected _numberMaxFractionDigits?: number;
|
|
15
|
+
protected _numberUseGrouping: boolean;
|
|
16
|
+
protected _datePickerFormat?: string;
|
|
17
|
+
protected _datePickerShowTime: boolean;
|
|
18
|
+
protected _placeholder?: string;
|
|
19
|
+
protected _className: string;
|
|
20
|
+
protected _columnClassName: string;
|
|
21
|
+
protected _columnWidth: number | null;
|
|
22
|
+
protected _columnMinWidth: number | null;
|
|
23
|
+
constructor(property: string);
|
|
24
|
+
get filterType(): FilterDescriptor.TypeEnum;
|
|
25
|
+
get filterProperty(): string | undefined;
|
|
26
|
+
get matchModes(): string[] | null;
|
|
27
|
+
get numberMinFractionDigits(): number | undefined;
|
|
28
|
+
get numberMaxFractionDigits(): number | undefined;
|
|
29
|
+
get numberUseGrouping(): boolean;
|
|
30
|
+
get datePickerFormat(): string | undefined;
|
|
31
|
+
get datePickerShowTime(): boolean;
|
|
32
|
+
get placeholder(): string | undefined;
|
|
33
|
+
get className(): string;
|
|
34
|
+
get columnClassName(): string;
|
|
35
|
+
get columnWidth(): number | null;
|
|
36
|
+
get columnMinWidth(): number | null;
|
|
37
|
+
get property(): string;
|
|
38
|
+
asFilterType(filterType: FilterDescriptor.TypeEnum): this;
|
|
39
|
+
/**
|
|
40
|
+
* Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
|
|
41
|
+
* @param filterProperty
|
|
42
|
+
*/
|
|
43
|
+
withFilterProperty(filterProperty: string): this;
|
|
44
|
+
withNumberFractions(min?: number, max?: number): this;
|
|
45
|
+
withNumberGrouping(useGrouping?: boolean): this;
|
|
46
|
+
withDateFormat(format?: string, showTime?: boolean): this;
|
|
47
|
+
withPlaceholder(placeholder: string): this;
|
|
48
|
+
withClassName(className: string): this;
|
|
49
|
+
withColumnClassName(className: string): this;
|
|
50
|
+
withColumnWidth(width?: number, minWidth?: number): this;
|
|
51
|
+
withMatchModes(matchModes: Array<FilterDescriptor.MatchModeEnum>): this;
|
|
52
|
+
copy(): FilterDescriptor<T>;
|
|
53
|
+
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace FilterDescriptor {
|
|
56
|
+
enum TypeEnum {
|
|
57
|
+
String = 0,
|
|
58
|
+
Number = 1,
|
|
59
|
+
Boolean = 2,
|
|
60
|
+
Date = 3,
|
|
61
|
+
Lookup = 4,
|
|
62
|
+
LookupEnum = 5
|
|
63
|
+
}
|
|
64
|
+
enum MatchModeEnum {
|
|
65
|
+
StartsWith = "startsWith",
|
|
66
|
+
Contains = "contains",
|
|
67
|
+
EndsWith = "endsWith",
|
|
68
|
+
Equals = "equals",
|
|
69
|
+
NotEquals = "notEquals",
|
|
70
|
+
In = "in",
|
|
71
|
+
LessThan = "lt",
|
|
72
|
+
GreaterThan = "gt",
|
|
73
|
+
Between = "between",
|
|
74
|
+
DateIs = "dateIs",
|
|
75
|
+
DateIsNot = "dateIsNot",
|
|
76
|
+
DateBefore = "dateBefore",
|
|
77
|
+
DateAfter = "dateAfter"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
|
|
81
|
+
protected readonly _modelType: ClassType<T> | null;
|
|
82
|
+
protected _lookupType?: FilterLookupDescriptor.LookupTypeEnum;
|
|
83
|
+
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
84
|
+
protected _itemsLabelProperty?: string;
|
|
85
|
+
protected _itemsLabelTranslate: boolean;
|
|
86
|
+
protected _itemsValueProperty?: string;
|
|
87
|
+
protected _dataKeyProperty?: string;
|
|
88
|
+
protected _multiselect: boolean;
|
|
89
|
+
protected _dropdownClassName: string;
|
|
90
|
+
protected _autocompleteOpenOnFocus: boolean;
|
|
91
|
+
protected _autocompleteInlineSearch: boolean;
|
|
92
|
+
constructor(property: string, modelType: ClassType<T> | null);
|
|
93
|
+
get lookupType(): FilterLookupDescriptor.LookupTypeEnum | undefined;
|
|
94
|
+
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
95
|
+
get itemsLabelProperty(): string | undefined;
|
|
96
|
+
get itemsLabelTranslate(): boolean;
|
|
97
|
+
get itemsValueProperty(): string | undefined;
|
|
98
|
+
get dataKeyProperty(): string | undefined;
|
|
99
|
+
get multiselect(): boolean;
|
|
100
|
+
get autocompleteOpenOnFocus(): boolean;
|
|
101
|
+
get autocompleteInlineSearch(): boolean;
|
|
102
|
+
get dropdownClassName(): string;
|
|
103
|
+
get modelType(): ClassType<T> | null;
|
|
104
|
+
withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
|
|
105
|
+
withItemsValueProperty(itemsValueProperty: string): this;
|
|
106
|
+
withDataKeyProperty(dataKeyProperty: string): this;
|
|
107
|
+
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
108
|
+
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
109
|
+
withMultiselect(multiselect?: boolean): this;
|
|
110
|
+
withDropdownClassName(dropdownClassName: string): this;
|
|
111
|
+
asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean): this;
|
|
112
|
+
copy(): FilterLookupDescriptor<T>;
|
|
113
|
+
protected copyFieldsTo(filter: FilterLookupDescriptor<T>): void;
|
|
114
|
+
}
|
|
115
|
+
export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<EnumValue<string | number>> {
|
|
116
|
+
private readonly _enumType;
|
|
117
|
+
constructor(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
118
|
+
get enumType(): EnumType;
|
|
119
|
+
asAutocomplete(openOnFocus?: boolean): this;
|
|
120
|
+
copy(): FilterLookupEnumDescriptor;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace FilterLookupDescriptor {
|
|
123
|
+
enum LookupTypeEnum {
|
|
124
|
+
Dropdown = 0,
|
|
125
|
+
Autocomplete = 1
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './action.descriptor';
|
|
2
|
-
export * from './column.descriptor';
|
|
3
|
-
export * from './editor.descriptor';
|
|
4
|
-
export * from './field.descriptor';
|
|
5
|
-
export * from './field.descriptor.interface';
|
|
6
|
-
export * from './field-validation.descriptor';
|
|
7
|
-
export * from './filter.descriptor';
|
|
8
|
-
export * from './lookup.descriptor';
|
|
9
|
-
export * from './model.descriptor';
|
|
10
|
-
export * from './table.descriptor';
|
|
11
|
-
export * from './tableview.descriptor';
|
|
1
|
+
export * from './action.descriptor';
|
|
2
|
+
export * from './column.descriptor';
|
|
3
|
+
export * from './editor.descriptor';
|
|
4
|
+
export * from './field.descriptor';
|
|
5
|
+
export * from './field.descriptor.interface';
|
|
6
|
+
export * from './field-validation.descriptor';
|
|
7
|
+
export * from './filter.descriptor';
|
|
8
|
+
export * from './lookup.descriptor';
|
|
9
|
+
export * from './model.descriptor';
|
|
10
|
+
export * from './table.descriptor';
|
|
11
|
+
export * from './tableview.descriptor';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam } from '../api/models';
|
|
4
|
-
import { ILookupDataProvider } from '../data-providers';
|
|
5
|
-
import { ClassType } from '../types';
|
|
6
|
-
export interface ILookupDescriptor<T> {
|
|
7
|
-
modelType: ClassType<T> | null;
|
|
8
|
-
itemsLabelProperty?: string;
|
|
9
|
-
itemsValueProperty?: string;
|
|
10
|
-
dataKeyProperty?: string;
|
|
11
|
-
dataProvider?: ILookupDataProvider<T, any>;
|
|
12
|
-
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
13
|
-
withItemsValueProperty(itemsLabelProperty: string): this;
|
|
14
|
-
withDataKeyProperty(dataKeyProperty: string): this;
|
|
15
|
-
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
16
|
-
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
17
|
-
}
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MediusQueryParam } from '../api/models';
|
|
4
|
+
import { ILookupDataProvider } from '../data-providers';
|
|
5
|
+
import { ClassType } from '../types';
|
|
6
|
+
export interface ILookupDescriptor<T> {
|
|
7
|
+
modelType: ClassType<T> | null;
|
|
8
|
+
itemsLabelProperty?: string;
|
|
9
|
+
itemsValueProperty?: string;
|
|
10
|
+
dataKeyProperty?: string;
|
|
11
|
+
dataProvider?: ILookupDataProvider<T, any>;
|
|
12
|
+
withItemsLabelProperty(itemsLabelProperty: string): this;
|
|
13
|
+
withItemsValueProperty(itemsLabelProperty: string): this;
|
|
14
|
+
withDataKeyProperty(dataKeyProperty: string): this;
|
|
15
|
+
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
16
|
+
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
17
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ClassType } from '../types';
|
|
2
|
-
export declare class ModelDescriptor<T> {
|
|
3
|
-
private readonly _type;
|
|
4
|
-
private readonly _typeName;
|
|
5
|
-
private _idPropertyName?;
|
|
6
|
-
private _titlePropertyName?;
|
|
7
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
8
|
-
get type(): ClassType<T>;
|
|
9
|
-
get typeName(): string;
|
|
10
|
-
get idPropertyName(): string | undefined;
|
|
11
|
-
get titlePropertyName(): string | undefined;
|
|
12
|
-
withIdPropertyName(idProperty: string): this;
|
|
13
|
-
withTitlePropertyName(titleProperty: string): this;
|
|
14
|
-
copy(): ModelDescriptor<T>;
|
|
15
|
-
}
|
|
1
|
+
import { ClassType } from '../types';
|
|
2
|
+
export declare class ModelDescriptor<T> {
|
|
3
|
+
private readonly _type;
|
|
4
|
+
private readonly _typeName;
|
|
5
|
+
private _idPropertyName?;
|
|
6
|
+
private _titlePropertyName?;
|
|
7
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
8
|
+
get type(): ClassType<T>;
|
|
9
|
+
get typeName(): string;
|
|
10
|
+
get idPropertyName(): string | undefined;
|
|
11
|
+
get titlePropertyName(): string | undefined;
|
|
12
|
+
withIdPropertyName(idProperty: string): this;
|
|
13
|
+
withTitlePropertyName(titleProperty: string): this;
|
|
14
|
+
copy(): ModelDescriptor<T>;
|
|
15
|
+
}
|
|
@@ -1,63 +1,80 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { IColumnValueComponent } from '../models';
|
|
3
|
-
import { ClassType, EnumType } from '../types';
|
|
4
|
-
import { ColumnDescriptor } from './column.descriptor';
|
|
5
|
-
import { ModelDescriptor } from './model.descriptor';
|
|
6
|
-
export declare class TableDescriptor<T> {
|
|
7
|
-
private readonly _model;
|
|
8
|
-
private _filterDisplay;
|
|
9
|
-
private _paginationMode;
|
|
10
|
-
private _rowsPerPageOptions;
|
|
11
|
-
private _defaultNumRows;
|
|
12
|
-
private _columns;
|
|
13
|
-
private _title?;
|
|
14
|
-
private _hideHeader;
|
|
15
|
-
private _dataKeyProperty?;
|
|
16
|
-
private _hasDefaultSort;
|
|
17
|
-
private _defaultSortProperty;
|
|
18
|
-
private _defaultSortAsc;
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
get
|
|
27
|
-
get
|
|
28
|
-
get
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
get
|
|
33
|
-
get
|
|
34
|
-
get
|
|
35
|
-
get
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { IColumnValueComponent } from '../models';
|
|
3
|
+
import { ClassType, EnumType } from '../types';
|
|
4
|
+
import { ColumnDescriptor } from './column.descriptor';
|
|
5
|
+
import { ModelDescriptor } from './model.descriptor';
|
|
6
|
+
export declare class TableDescriptor<T> {
|
|
7
|
+
private readonly _model;
|
|
8
|
+
private _filterDisplay;
|
|
9
|
+
private _paginationMode;
|
|
10
|
+
private _rowsPerPageOptions;
|
|
11
|
+
private _defaultNumRows;
|
|
12
|
+
private _columns;
|
|
13
|
+
private _title?;
|
|
14
|
+
private _hideHeader;
|
|
15
|
+
private _dataKeyProperty?;
|
|
16
|
+
private _hasDefaultSort;
|
|
17
|
+
private _defaultSortProperty;
|
|
18
|
+
private _defaultSortAsc;
|
|
19
|
+
private _className;
|
|
20
|
+
private _size;
|
|
21
|
+
private _tableFullHeightOffset?;
|
|
22
|
+
private _rowHeight?;
|
|
23
|
+
private _hasHover;
|
|
24
|
+
private _hasGridlines;
|
|
25
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
26
|
+
get filterDisplay(): TableDescriptor.FilterDisplayEnum;
|
|
27
|
+
get paginationMode(): TableDescriptor.PaginationModeEnum;
|
|
28
|
+
get rowsPerPageOptions(): number[];
|
|
29
|
+
get defaultNumRows(): number;
|
|
30
|
+
get columns(): ColumnDescriptor<any, T>[];
|
|
31
|
+
get title(): string | undefined;
|
|
32
|
+
get hideHeader(): boolean;
|
|
33
|
+
get dataKeyProperty(): string | undefined;
|
|
34
|
+
get hasDefaultSort(): boolean;
|
|
35
|
+
get defaultSortProperty(): string[];
|
|
36
|
+
get defaultSortAsc(): boolean[];
|
|
37
|
+
get model(): ModelDescriptor<T>;
|
|
38
|
+
get className(): string;
|
|
39
|
+
get size(): TableDescriptor.SizeEnum;
|
|
40
|
+
get tableFullHeightOffset(): number | undefined;
|
|
41
|
+
get rowHeight(): number | undefined;
|
|
42
|
+
get hasHover(): boolean;
|
|
43
|
+
get hasGridlines(): boolean;
|
|
44
|
+
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
45
|
+
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
46
|
+
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
47
|
+
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
48
|
+
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
49
|
+
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
|
|
50
|
+
addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
|
|
51
|
+
withFilterDisplay(filterDisplayType: TableDescriptor.FilterDisplayEnum): this;
|
|
52
|
+
withPaginationMode(paginationMode: TableDescriptor.PaginationModeEnum): this;
|
|
53
|
+
withRowsPerPage(rows: number, options?: Array<number>): this;
|
|
54
|
+
withTitle(title: string): TableDescriptor<T>;
|
|
55
|
+
withHideHeader(hideHeader?: boolean): this;
|
|
56
|
+
withDataKeyProperty(property: string): TableDescriptor<T>;
|
|
57
|
+
withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
|
|
58
|
+
withClassName(className: string): this;
|
|
59
|
+
withSize(size?: TableDescriptor.SizeEnum): this;
|
|
60
|
+
withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
|
|
61
|
+
withRowHeight(rowHeight: number): TableDescriptor<T>;
|
|
62
|
+
withHover(hover: boolean): this;
|
|
63
|
+
withGridlines(gridlines: boolean): this;
|
|
64
|
+
copy(): TableDescriptor<T>;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace TableDescriptor {
|
|
67
|
+
enum PaginationModeEnum {
|
|
68
|
+
Pagination = 0,
|
|
69
|
+
InfiniteScroll = 1
|
|
70
|
+
}
|
|
71
|
+
enum FilterDisplayEnum {
|
|
72
|
+
Row = 0,
|
|
73
|
+
Menu = 1
|
|
74
|
+
}
|
|
75
|
+
enum SizeEnum {
|
|
76
|
+
Small = 0,
|
|
77
|
+
Normal = 1,
|
|
78
|
+
Large = 2
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { FieldValidatorFn } from '@ngx-formly/core/lib/models/config';
|
|
3
|
-
import { IColumnValueComponent } from '../models';
|
|
4
|
-
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
5
|
-
import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
|
|
6
|
-
export declare class TableviewDescriptor<T> {
|
|
7
|
-
private readonly _model;
|
|
8
|
-
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
9
|
-
private _table;
|
|
10
|
-
get table(): TableDescriptor<T>;
|
|
11
|
-
private _viewEditor;
|
|
12
|
-
get viewEditor(): EditorDescriptor<T>;
|
|
13
|
-
private _addEditor;
|
|
14
|
-
get addEditor(): EditorDescriptor<T>;
|
|
15
|
-
private _editEditor;
|
|
16
|
-
get editEditor(): EditorDescriptor<T>;
|
|
17
|
-
private _tableTitle;
|
|
18
|
-
get tableTitle(): string;
|
|
19
|
-
get model(): ModelDescriptor<T>;
|
|
20
|
-
withTableDescriptor(descriptor: TableDescriptor<T>): this;
|
|
21
|
-
withViewDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
22
|
-
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
23
|
-
withEditDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
24
|
-
withTableTitle(title: string): this;
|
|
25
|
-
withValidator(name: string, expression: FieldValidatorFn): this;
|
|
26
|
-
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
27
|
-
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
28
|
-
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
29
|
-
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
30
|
-
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
31
|
-
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
|
|
32
|
-
addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
|
|
33
|
-
createTabGroup(name: string, title?: string): this;
|
|
34
|
-
createFieldGroup(name: string, title?: string): this;
|
|
35
|
-
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
36
|
-
addField(property: string): FieldInputDescriptor<T>;
|
|
37
|
-
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
38
|
-
addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
|
|
39
|
-
addFieldManyEditor<FT>(property: string, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
40
|
-
addFieldManyToManyEditor<FT>(property: string, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
41
|
-
copy(): TableviewDescriptor<T>;
|
|
42
|
-
}
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { FieldValidatorFn } from '@ngx-formly/core/lib/models/config';
|
|
3
|
+
import { IColumnValueComponent } from '../models';
|
|
4
|
+
import { ClassType, EnumConstantType, EnumType } from '../types';
|
|
5
|
+
import { AFieldDescriptor, ColumnDescriptor, EditorDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, ModelDescriptor, TableDescriptor } from './';
|
|
6
|
+
export declare class TableviewDescriptor<T> {
|
|
7
|
+
private readonly _model;
|
|
8
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
9
|
+
private _table;
|
|
10
|
+
get table(): TableDescriptor<T>;
|
|
11
|
+
private _viewEditor;
|
|
12
|
+
get viewEditor(): EditorDescriptor<T>;
|
|
13
|
+
private _addEditor;
|
|
14
|
+
get addEditor(): EditorDescriptor<T>;
|
|
15
|
+
private _editEditor;
|
|
16
|
+
get editEditor(): EditorDescriptor<T>;
|
|
17
|
+
private _tableTitle;
|
|
18
|
+
get tableTitle(): string;
|
|
19
|
+
get model(): ModelDescriptor<T>;
|
|
20
|
+
withTableDescriptor(descriptor: TableDescriptor<T>): this;
|
|
21
|
+
withViewDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
22
|
+
withAddDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
23
|
+
withEditDescriptor(descriptor: EditorDescriptor<T>): this;
|
|
24
|
+
withTableTitle(title: string): this;
|
|
25
|
+
withValidator(name: string, expression: FieldValidatorFn): this;
|
|
26
|
+
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
27
|
+
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
28
|
+
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
29
|
+
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
30
|
+
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
31
|
+
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
|
|
32
|
+
addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
|
|
33
|
+
createTabGroup(name: string, title?: string): this;
|
|
34
|
+
createFieldGroup(name: string, title?: string): this;
|
|
35
|
+
addFieldDescriptor<FT>(field: AFieldDescriptor<FT, T>): this;
|
|
36
|
+
addField(property: string): FieldInputDescriptor<T>;
|
|
37
|
+
addFieldLookup<FT>(property: string, modelType: ClassType<FT>): FieldLookupDescriptor<FT, T>;
|
|
38
|
+
addFieldLookupEnum(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null): FieldLookupEnumDescriptor<T>;
|
|
39
|
+
addFieldManyEditor<FT>(property: string, tableviewDescriptor: TableviewDescriptor<FT>): FieldManyEditorDescriptor<FT, T>;
|
|
40
|
+
addFieldManyToManyEditor<FT>(property: string, mainTableDescriptor: TableDescriptor<FT>, lookupTableDescriptor: TableDescriptor<FT>): FieldManyToManyEditorDescriptor<FT, T>;
|
|
41
|
+
copy(): TableviewDescriptor<T>;
|
|
42
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ComponentRef, OnInit, Type, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MngComponentDirective<C> implements OnInit {
|
|
4
|
-
viewContainerRef: ViewContainerRef;
|
|
5
|
-
component: Type<C>;
|
|
6
|
-
inputs?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
private componentInstanceEventEmitter;
|
|
10
|
-
componentRef: ComponentRef<C>;
|
|
11
|
-
constructor(viewContainerRef: ViewContainerRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
private isCmpInstanceOfColumnValue;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never>;
|
|
16
|
-
}
|
|
1
|
+
import { ComponentRef, OnInit, Type, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngComponentDirective<C> implements OnInit {
|
|
4
|
+
viewContainerRef: ViewContainerRef;
|
|
5
|
+
component: Type<C>;
|
|
6
|
+
inputs?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
private componentInstanceEventEmitter;
|
|
10
|
+
componentRef: ComponentRef<C>;
|
|
11
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
private isCmpInstanceOfColumnValue;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngComponentDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MngComponentDirective<any>, "[mngComponent]", never, { "component": "mngComponent"; "inputs": "inputs"; }, { "componentInstanceEventEmitter": "instanceCreated"; }, never>;
|
|
16
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './component.directive';
|
|
2
|
-
export * from './template.directive';
|
|
1
|
+
export * from './component.directive';
|
|
2
|
+
export * from './template.directive';
|