@mediusinc/mng-commons 0.8.0 → 0.9.1-rc.2
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/dev-scripts/version-info.js +98 -0
- package/esm2020/lib/api/models/builders/query-param.builder.mjs +58 -58
- 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 -152
- package/esm2020/lib/api/utils/object-serializer.util.mjs +243 -243
- package/esm2020/lib/components/action/action.component.mjs +178 -177
- package/esm2020/lib/components/action/editor/action-editor.component.mjs +248 -247
- 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 +234 -234
- package/esm2020/lib/components/action/models/index.mjs +2 -2
- package/esm2020/lib/components/action/route/action-route.component.mjs +125 -125
- 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 +42 -42
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +25 -25
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +96 -96
- 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 +155 -156
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +127 -127
- 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 +33 -33
- 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 +17 -17
- package/esm2020/lib/components/layout/index.mjs +8 -7
- 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 +21 -20
- 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/layout/version.component.mjs +58 -0
- 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 +58 -57
- 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 -102
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +71 -71
- package/esm2020/lib/components/tableview/table/table.component.mjs +428 -430
- package/esm2020/lib/components/tableview/tableview.component.mjs +92 -92
- package/esm2020/lib/config/formly.config.mjs +180 -180
- 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 +2 -2
- 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 +566 -623
- package/esm2020/lib/descriptors/column.descriptor.mjs +261 -272
- package/esm2020/lib/descriptors/editor.descriptor.mjs +147 -155
- package/esm2020/lib/descriptors/field-validation.descriptor.mjs +20 -20
- package/esm2020/lib/descriptors/field.descriptor.mjs +800 -864
- package/esm2020/lib/descriptors/filter.descriptor.mjs +262 -295
- package/esm2020/lib/descriptors/index.mjs +10 -12
- package/esm2020/lib/descriptors/interfaces/field-config.interface.mjs +2 -0
- package/esm2020/lib/descriptors/interfaces/index.mjs +3 -0
- package/esm2020/lib/descriptors/interfaces/lookup-descriptor.interface.mjs +2 -0
- package/esm2020/lib/descriptors/model.descriptor.mjs +33 -33
- package/esm2020/lib/descriptors/table.descriptor.mjs +197 -214
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +135 -135
- package/esm2020/lib/descriptors/types/action.type.mjs +53 -0
- package/esm2020/lib/descriptors/types/column.type.mjs +11 -0
- package/esm2020/lib/descriptors/types/editor.type.mjs +8 -0
- package/esm2020/lib/descriptors/types/field.type.mjs +53 -0
- package/esm2020/lib/descriptors/types/filter.type.mjs +31 -0
- package/esm2020/lib/descriptors/types/index.mjs +7 -0
- package/esm2020/lib/descriptors/types/table.type.mjs +17 -0
- 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 +438 -427
- 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 +8 -7
- package/esm2020/lib/models/menu.model.mjs +1 -1
- package/esm2020/lib/models/user.model.mjs +1 -1
- package/esm2020/lib/models/version.model.mjs +2 -0
- 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 +25 -25
- 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 +536 -535
- package/esm2020/lib/services/commons.service.mjs +331 -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/version.service.mjs +38 -0
- 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 +144 -144
- package/esm2020/lib/utils/editor-formly.util.mjs +211 -210
- package/esm2020/lib/utils/enum.util.mjs +81 -81
- package/esm2020/lib/utils/i18n.util.mjs +232 -232
- package/esm2020/lib/utils/index.mjs +7 -7
- package/esm2020/lib/utils/model.util.mjs +60 -60
- 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 -41
- package/esm2020/lib/utils/type.util.mjs +76 -76
- package/esm2020/mediusinc-mng-commons.mjs +4 -4
- package/esm2020/public-api.mjs +42 -40
- package/fesm2015/mediusinc-mng-commons.mjs +9979 -9920
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +9841 -9786
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/builders/query-param.builder.d.ts +13 -13
- 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 +14 -14
- 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 +15 -14
- package/lib/api/utils/object-serializer.util.d.ts +33 -33
- package/lib/components/action/action.component.d.ts +69 -68
- package/lib/components/action/editor/action-editor.component.d.ts +64 -64
- 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 +129 -129
- 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 +13 -12
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +21 -21
- 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 +45 -44
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +22 -22
- 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 +7 -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/layout/version.component.d.ts +19 -0
- 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 +20 -20
- package/lib/components/tableview/route/tableview-route.component.d.ts +18 -18
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +32 -31
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +29 -28
- package/lib/components/tableview/table/table.component.d.ts +105 -104
- package/lib/components/tableview/tableview.component.d.ts +41 -41
- 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 +36 -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 +227 -277
- package/lib/descriptors/column.descriptor.d.ts +81 -91
- package/lib/descriptors/editor.descriptor.d.ts +37 -44
- package/lib/descriptors/field-validation.descriptor.d.ts +18 -18
- package/lib/descriptors/field.descriptor.d.ts +287 -342
- package/lib/descriptors/filter.descriptor.d.ts +97 -127
- package/lib/descriptors/index.d.ts +9 -11
- package/lib/descriptors/{field.descriptor.interface.d.ts → interfaces/field-config.interface.d.ts} +9 -9
- package/lib/descriptors/interfaces/index.d.ts +2 -0
- package/lib/descriptors/{lookup.descriptor.d.ts → interfaces/lookup-descriptor.interface.d.ts} +17 -17
- package/lib/descriptors/model.descriptor.d.ts +15 -15
- package/lib/descriptors/table.descriptor.d.ts +66 -80
- package/lib/descriptors/tableview.descriptor.d.ts +42 -42
- package/lib/descriptors/types/action.type.d.ts +45 -0
- package/lib/descriptors/types/column.type.d.ts +9 -0
- package/lib/descriptors/types/editor.type.d.ts +6 -0
- package/lib/descriptors/types/field.type.d.ts +44 -0
- package/lib/descriptors/types/filter.type.d.ts +27 -0
- package/lib/descriptors/types/index.d.ts +6 -0
- package/lib/descriptors/types/table.type.d.ts +13 -0
- 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 +87 -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 +7 -6
- package/lib/models/menu.model.d.ts +25 -25
- package/lib/models/user.model.d.ts +8 -8
- package/lib/models/version.model.d.ts +18 -0
- 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 -149
- package/lib/services/commons.service.d.ts +73 -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/version.service.d.ts +13 -0
- 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 -20
- package/lib/utils/action-data-provider.util.d.ts +20 -20
- 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 -14
- package/lib/utils/type.util.d.ts +36 -36
- package/mediusinc-mng-commons-0.9.1-rc.2.tgz +0 -0
- package/mediusinc-mng-commons.d.ts +5 -5
- package/package.json +6 -6
- package/public-api.d.ts +30 -28
- package/scss/mng-overrides/_layout_menu.scss +6 -0
- package/scss/mng-overrides/_layout_styles.scss +1 -0
- package/version-info.json +10 -0
- package/esm2020/lib/descriptors/field.descriptor.interface.mjs +0 -2
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +0 -2
|
@@ -1,127 +1,97 @@
|
|
|
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 './
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
protected
|
|
11
|
-
protected
|
|
12
|
-
protected
|
|
13
|
-
protected
|
|
14
|
-
protected
|
|
15
|
-
protected
|
|
16
|
-
protected
|
|
17
|
-
protected
|
|
18
|
-
protected
|
|
19
|
-
protected
|
|
20
|
-
protected
|
|
21
|
-
protected
|
|
22
|
-
protected
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
get
|
|
26
|
-
get
|
|
27
|
-
get
|
|
28
|
-
get
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
get
|
|
33
|
-
get
|
|
34
|
-
get
|
|
35
|
-
get
|
|
36
|
-
get
|
|
37
|
-
get
|
|
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
|
-
protected
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
get
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
+
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 './interfaces';
|
|
8
|
+
import { FilterLookupTypeEnum, FilterMatchModeEnum, FilterTypeEnum } from './types';
|
|
9
|
+
export declare class FilterDescriptor<T> {
|
|
10
|
+
protected readonly _property: string;
|
|
11
|
+
protected _filterType: FilterTypeEnum;
|
|
12
|
+
protected _filterProperty?: string;
|
|
13
|
+
protected _matchModes: string[] | null;
|
|
14
|
+
protected _numberMinFractionDigits?: number;
|
|
15
|
+
protected _numberMaxFractionDigits?: number;
|
|
16
|
+
protected _numberUseGrouping: boolean;
|
|
17
|
+
protected _datePickerFormat?: string;
|
|
18
|
+
protected _datePickerShowTime: boolean;
|
|
19
|
+
protected _placeholder?: string;
|
|
20
|
+
protected _className: string;
|
|
21
|
+
protected _columnClassName: string;
|
|
22
|
+
protected _columnWidth: number | null;
|
|
23
|
+
protected _columnMinWidth: number | null;
|
|
24
|
+
constructor(property: string);
|
|
25
|
+
get filterType(): FilterTypeEnum;
|
|
26
|
+
get filterProperty(): string | undefined;
|
|
27
|
+
get matchModes(): string[] | null;
|
|
28
|
+
get numberMinFractionDigits(): number | undefined;
|
|
29
|
+
get numberMaxFractionDigits(): number | undefined;
|
|
30
|
+
get numberUseGrouping(): boolean;
|
|
31
|
+
get datePickerFormat(): string | undefined;
|
|
32
|
+
get datePickerShowTime(): boolean;
|
|
33
|
+
get placeholder(): string | undefined;
|
|
34
|
+
get className(): string;
|
|
35
|
+
get columnClassName(): string;
|
|
36
|
+
get columnWidth(): number | null;
|
|
37
|
+
get columnMinWidth(): number | null;
|
|
38
|
+
get property(): string;
|
|
39
|
+
asFilterType(filterType: FilterTypeEnum): this;
|
|
40
|
+
/**
|
|
41
|
+
* Sets different filter property name instead of default property. Use this if API requires different property provided to perform correct filter.
|
|
42
|
+
* @param filterProperty
|
|
43
|
+
*/
|
|
44
|
+
withFilterProperty(filterProperty: string): this;
|
|
45
|
+
withNumberFractions(min?: number, max?: number): this;
|
|
46
|
+
withNumberGrouping(useGrouping?: boolean): this;
|
|
47
|
+
withDateFormat(format?: string, showTime?: boolean): this;
|
|
48
|
+
withPlaceholder(placeholder: string): this;
|
|
49
|
+
withClassName(className: string): this;
|
|
50
|
+
withColumnClassName(className: string): this;
|
|
51
|
+
withColumnWidth(width?: number, minWidth?: number): this;
|
|
52
|
+
withMatchModes(matchModes: Array<FilterMatchModeEnum>): this;
|
|
53
|
+
copy(): FilterDescriptor<T>;
|
|
54
|
+
protected copyFieldsTo(descriptor: FilterDescriptor<T>): void;
|
|
55
|
+
}
|
|
56
|
+
export declare class FilterLookupDescriptor<T> extends FilterDescriptor<T> implements ILookupDescriptor<T> {
|
|
57
|
+
protected readonly _modelType: ClassType<T> | null;
|
|
58
|
+
protected _lookupType?: FilterLookupTypeEnum;
|
|
59
|
+
protected _dataProvider?: ILookupDataProvider<T, any>;
|
|
60
|
+
protected _itemsLabelProperty?: string;
|
|
61
|
+
protected _itemsLabelTranslate: boolean;
|
|
62
|
+
protected _itemsValueProperty?: string;
|
|
63
|
+
protected _dataKeyProperty?: string;
|
|
64
|
+
protected _multiselect: boolean;
|
|
65
|
+
protected _dropdownClassName: string;
|
|
66
|
+
protected _autocompleteOpenOnFocus: boolean;
|
|
67
|
+
protected _autocompleteInlineSearch: boolean;
|
|
68
|
+
constructor(property: string, modelType: ClassType<T> | null);
|
|
69
|
+
get lookupType(): FilterLookupTypeEnum | undefined;
|
|
70
|
+
get dataProvider(): ILookupDataProvider<T, any> | undefined;
|
|
71
|
+
get itemsLabelProperty(): string | undefined;
|
|
72
|
+
get itemsLabelTranslate(): boolean;
|
|
73
|
+
get itemsValueProperty(): string | undefined;
|
|
74
|
+
get dataKeyProperty(): string | undefined;
|
|
75
|
+
get multiselect(): boolean;
|
|
76
|
+
get autocompleteOpenOnFocus(): boolean;
|
|
77
|
+
get autocompleteInlineSearch(): boolean;
|
|
78
|
+
get dropdownClassName(): string;
|
|
79
|
+
get modelType(): ClassType<T> | null;
|
|
80
|
+
withItemsLabelProperty(itemsLabelProperty: string, translate?: boolean): this;
|
|
81
|
+
withItemsValueProperty(itemsValueProperty: string): this;
|
|
82
|
+
withDataKeyProperty(dataKeyProperty: string): this;
|
|
83
|
+
withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
|
|
84
|
+
withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
|
|
85
|
+
withMultiselect(multiselect?: boolean): this;
|
|
86
|
+
withDropdownClassName(dropdownClassName: string): this;
|
|
87
|
+
asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean): this;
|
|
88
|
+
copy(): FilterLookupDescriptor<T>;
|
|
89
|
+
protected copyFieldsTo(filter: FilterLookupDescriptor<T>): void;
|
|
90
|
+
}
|
|
91
|
+
export declare class FilterLookupEnumDescriptor extends FilterLookupDescriptor<EnumValue<string | number>> {
|
|
92
|
+
private readonly _enumType;
|
|
93
|
+
constructor(property: string, enumType: EnumType, options?: Array<EnumConstantType>, nameAsValue?: boolean, optionsTitlePath?: string | null);
|
|
94
|
+
get enumType(): EnumType;
|
|
95
|
+
asAutocomplete(openOnFocus?: boolean): this;
|
|
96
|
+
copy(): FilterLookupEnumDescriptor;
|
|
97
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
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
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
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-validation.descriptor';
|
|
6
|
+
export * from './filter.descriptor';
|
|
7
|
+
export * from './model.descriptor';
|
|
8
|
+
export * from './table.descriptor';
|
|
9
|
+
export * from './tableview.descriptor';
|
package/lib/descriptors/{field.descriptor.interface.d.ts → interfaces/field-config.interface.d.ts}
RENAMED
|
@@ -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
|
+
}
|
package/lib/descriptors/{lookup.descriptor.d.ts → interfaces/lookup-descriptor.interface.d.ts}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { MediusQueryParam } from '
|
|
4
|
-
import { ILookupDataProvider } from '
|
|
5
|
-
import { ClassType } from '
|
|
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,80 +1,66 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
get
|
|
28
|
-
get
|
|
29
|
-
get
|
|
30
|
-
get
|
|
31
|
-
get
|
|
32
|
-
get
|
|
33
|
-
get
|
|
34
|
-
get
|
|
35
|
-
get
|
|
36
|
-
get
|
|
37
|
-
get
|
|
38
|
-
get
|
|
39
|
-
get
|
|
40
|
-
get
|
|
41
|
-
get
|
|
42
|
-
get
|
|
43
|
-
get
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
+
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
|
+
import { TableFilterDisplayEnum, TablePaginationModeEnum, TableSizeEnum } from './types';
|
|
7
|
+
export declare class TableDescriptor<T> {
|
|
8
|
+
private readonly _model;
|
|
9
|
+
private _filterDisplay;
|
|
10
|
+
private _paginationMode;
|
|
11
|
+
private _rowsPerPageOptions;
|
|
12
|
+
private _defaultNumRows;
|
|
13
|
+
private _columns;
|
|
14
|
+
private _title?;
|
|
15
|
+
private _hideHeader;
|
|
16
|
+
private _dataKeyProperty?;
|
|
17
|
+
private _hasDefaultSort;
|
|
18
|
+
private _defaultSortProperty;
|
|
19
|
+
private _defaultSortAsc;
|
|
20
|
+
private _className;
|
|
21
|
+
private _size;
|
|
22
|
+
private _tableFullHeightOffset?;
|
|
23
|
+
private _rowHeight?;
|
|
24
|
+
private _hasHover;
|
|
25
|
+
private _hasGridlines;
|
|
26
|
+
constructor(modelType: ClassType<T>, idProperty?: string, titleProperty?: string);
|
|
27
|
+
get filterDisplay(): TableFilterDisplayEnum;
|
|
28
|
+
get paginationMode(): TablePaginationModeEnum;
|
|
29
|
+
get rowsPerPageOptions(): number[];
|
|
30
|
+
get defaultNumRows(): number;
|
|
31
|
+
get columns(): ColumnDescriptor<any, T>[];
|
|
32
|
+
get title(): string | undefined;
|
|
33
|
+
get hideHeader(): boolean;
|
|
34
|
+
get dataKeyProperty(): string | undefined;
|
|
35
|
+
get hasDefaultSort(): boolean;
|
|
36
|
+
get defaultSortProperty(): string[];
|
|
37
|
+
get defaultSortAsc(): boolean[];
|
|
38
|
+
get model(): ModelDescriptor<T>;
|
|
39
|
+
get className(): string;
|
|
40
|
+
get size(): TableSizeEnum;
|
|
41
|
+
get tableFullHeightOffset(): number | undefined;
|
|
42
|
+
get rowHeight(): number | undefined;
|
|
43
|
+
get hasHover(): boolean;
|
|
44
|
+
get hasGridlines(): boolean;
|
|
45
|
+
addColumnDescriptor<CT>(column: ColumnDescriptor<CT, T>): TableDescriptor<T>;
|
|
46
|
+
addColumn(property: string): ColumnDescriptor<string, T>;
|
|
47
|
+
addColumnNumber(property: string, displayFormat?: string): ColumnDescriptor<number, T>;
|
|
48
|
+
addColumnDate(property: string, displayFormat?: string): ColumnDescriptor<Date, T>;
|
|
49
|
+
addColumnBoolean(property: string, yes?: string, no?: string, asIcon?: boolean): ColumnDescriptor<boolean, T>;
|
|
50
|
+
addColumnEnum(property: string, enumType: EnumType, nameAsValue?: boolean, titlePath?: string | null): ColumnDescriptor<EnumType, T>;
|
|
51
|
+
addColumnCustomComponent(property: string, customComponentType: Type<IColumnValueComponent<T>>): ColumnDescriptor<any, T>;
|
|
52
|
+
withFilterDisplay(filterDisplayType: TableFilterDisplayEnum): this;
|
|
53
|
+
withPaginationMode(paginationMode: TablePaginationModeEnum): this;
|
|
54
|
+
withRowsPerPage(rows: number, options?: Array<number>): this;
|
|
55
|
+
withTitle(title: string): TableDescriptor<T>;
|
|
56
|
+
withHideHeader(hideHeader?: boolean): this;
|
|
57
|
+
withDataKeyProperty(property: string): TableDescriptor<T>;
|
|
58
|
+
withDefaultSort(property: string, asc?: boolean): TableDescriptor<T>;
|
|
59
|
+
withClassName(className: string): this;
|
|
60
|
+
withSize(size?: TableSizeEnum): this;
|
|
61
|
+
withTableFullHeightOffset(tableFullHeightOffset: number): TableDescriptor<T>;
|
|
62
|
+
withRowHeight(rowHeight: number): TableDescriptor<T>;
|
|
63
|
+
withHover(hover: boolean): this;
|
|
64
|
+
withGridlines(gridlines: boolean): this;
|
|
65
|
+
copy(): TableDescriptor<T>;
|
|
66
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare enum ActionPositionEnum {
|
|
2
|
+
ToolbarLeft = 0,
|
|
3
|
+
ToolbarRight = 1,
|
|
4
|
+
TableHeader = 2,
|
|
5
|
+
RowInline = 3,
|
|
6
|
+
RowClick = 4,
|
|
7
|
+
FooterLeft = 5,
|
|
8
|
+
FooterRight = 6
|
|
9
|
+
}
|
|
10
|
+
export declare enum ActionActivationTriggerEnum {
|
|
11
|
+
OnClick = 0,
|
|
12
|
+
OnRoute = 1
|
|
13
|
+
}
|
|
14
|
+
export declare enum ActionTypeEnum {
|
|
15
|
+
Direct = 0,
|
|
16
|
+
Editor = 1
|
|
17
|
+
}
|
|
18
|
+
export declare enum ActionLevelEnum {
|
|
19
|
+
Default = 0,
|
|
20
|
+
Primary = 1,
|
|
21
|
+
Secondary = 2,
|
|
22
|
+
Info = 3,
|
|
23
|
+
Help = 4,
|
|
24
|
+
Success = 5,
|
|
25
|
+
Warning = 6,
|
|
26
|
+
Danger = 7
|
|
27
|
+
}
|
|
28
|
+
export declare enum ActionSizeEnum {
|
|
29
|
+
ExtraSmall = 0,
|
|
30
|
+
Small = 1,
|
|
31
|
+
Normal = 2,
|
|
32
|
+
Large = 3,
|
|
33
|
+
ExtraLarge = 4
|
|
34
|
+
}
|
|
35
|
+
export declare enum ActionEditorDialogSizeEnum {
|
|
36
|
+
ExtraSmall = 0,
|
|
37
|
+
Small = 1,
|
|
38
|
+
Normal = 2,
|
|
39
|
+
Large = 3,
|
|
40
|
+
ExtraLarge = 4
|
|
41
|
+
}
|
|
42
|
+
export declare enum ActionEditorSubmitTypeEnum {
|
|
43
|
+
Submit = 0,
|
|
44
|
+
Cancel = 1
|
|
45
|
+
}
|