@mediusinc/mng-commons 0.1.0 → 0.2.5
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/esm2020/lib/api/models/builders/query-param.builder.mjs +48 -48
- package/esm2020/lib/api/models/filter-match-type.model.mjs +26 -26
- package/esm2020/lib/api/models/filter-param.model.mjs +46 -46
- package/esm2020/lib/api/models/index.mjs +9 -9
- package/esm2020/lib/api/models/mappers.mjs +17 -17
- package/esm2020/lib/api/models/query-mode.model.mjs +19 -19
- package/esm2020/lib/api/models/query-param.model.mjs +69 -69
- package/esm2020/lib/api/models/query-result.model.mjs +45 -45
- package/esm2020/lib/api/models/serialization.model.mjs +2 -2
- package/esm2020/lib/api/services/crud-api.abstract.service.mjs +72 -0
- package/esm2020/lib/api/services/index.mjs +2 -2
- package/esm2020/lib/api/utils/index.mjs +3 -3
- package/esm2020/lib/api/utils/medius-rest.util.mjs +122 -122
- package/esm2020/lib/api/utils/object-serializer.util.mjs +226 -226
- package/esm2020/lib/components/action/action.component.mjs +65 -63
- package/esm2020/lib/components/action/dialog/action-dialog.component.mjs +148 -159
- package/esm2020/lib/components/action/index.mjs +4 -4
- package/esm2020/lib/components/action/models/action-confirmation-service.model.mjs +2 -0
- package/esm2020/lib/components/action/models/action-execution.model.mjs +58 -0
- package/esm2020/lib/components/action/models/index.mjs +3 -0
- package/esm2020/lib/components/action/route/action-route.component.mjs +144 -144
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +114 -0
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +113 -0
- package/esm2020/lib/components/form/editor/form-editor.component.mjs +141 -142
- package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +19 -19
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +19 -19
- package/esm2020/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +16 -16
- package/esm2020/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.mjs +26 -26
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +109 -109
- package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +122 -122
- package/esm2020/lib/components/form/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +17 -17
- package/esm2020/lib/components/form/formly/fields/index.mjs +8 -8
- package/esm2020/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +17 -17
- package/esm2020/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.mjs +16 -16
- package/esm2020/lib/components/form/formly/wrappers/index.mjs +3 -3
- package/esm2020/lib/components/form/index.mjs +4 -4
- package/esm2020/lib/components/form/models/form-editor.event.mjs +7 -0
- package/esm2020/lib/components/form/models/index.mjs +2 -0
- package/esm2020/lib/components/layout/breadcrumb.component.mjs +17 -17
- package/esm2020/lib/components/layout/footer.component.mjs +17 -17
- package/esm2020/lib/components/layout/index.mjs +7 -7
- package/esm2020/lib/components/layout/main-layout.component.mjs +54 -33
- package/esm2020/lib/components/layout/menu-item.component.mjs +173 -173
- package/esm2020/lib/components/layout/menu.component.mjs +20 -20
- package/esm2020/lib/components/layout/services/index.mjs +2 -0
- package/esm2020/lib/components/layout/services/main-layout.component.service.mjs +190 -190
- package/esm2020/lib/components/layout/topbar.component.mjs +59 -40
- package/esm2020/lib/components/tableview/index.mjs +6 -6
- package/esm2020/lib/components/tableview/models/index.mjs +2 -0
- package/esm2020/lib/components/tableview/models/table.event.mjs +16 -0
- package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +24 -24
- package/esm2020/lib/components/tableview/services/index.mjs +2 -0
- package/esm2020/lib/components/tableview/services/tableview.component.service.mjs +17 -0
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +85 -74
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +25 -25
- package/esm2020/lib/components/tableview/table/table.component.mjs +307 -307
- package/esm2020/lib/components/tableview/tableview.component.mjs +82 -83
- package/esm2020/lib/config/formly.config.mjs +136 -136
- package/esm2020/lib/config/index.mjs +2 -2
- package/esm2020/lib/config/models/index.mjs +2 -0
- package/esm2020/lib/config/models/mng-config.model.mjs +2 -0
- package/esm2020/lib/data-providers/base.data-provider.mjs +24 -0
- package/esm2020/lib/data-providers/editor.data-provider.mjs +37 -0
- package/esm2020/lib/data-providers/index.mjs +6 -0
- package/esm2020/lib/data-providers/lookup.data-provider.mjs +16 -0
- package/esm2020/lib/data-providers/table.data-provider.mjs +2 -0
- package/esm2020/lib/data-providers/tableview.data-provider.mjs +17 -0
- package/esm2020/lib/descriptors/action.descriptor.mjs +332 -0
- package/esm2020/lib/descriptors/editor.descriptor.mjs +670 -0
- package/esm2020/lib/descriptors/field.validator.mjs +21 -0
- package/esm2020/lib/descriptors/index.mjs +8 -0
- package/esm2020/lib/descriptors/lookup.descriptor.mjs +2 -0
- package/esm2020/lib/descriptors/model.descriptor.mjs +34 -0
- package/esm2020/lib/descriptors/table.descriptor.mjs +427 -0
- package/esm2020/lib/descriptors/tableview.descriptor.mjs +131 -0
- package/esm2020/lib/directives/component.directive.mjs +23 -0
- package/esm2020/lib/directives/index.mjs +3 -2
- package/esm2020/lib/directives/template.directive.mjs +29 -25
- package/esm2020/lib/mng-commons.module.mjs +410 -343
- package/esm2020/lib/models/index.mjs +3 -0
- package/esm2020/lib/models/router.model.mjs +2 -0
- package/esm2020/lib/models/user.model.mjs +2 -0
- package/esm2020/lib/pipes/boolean.pipe.mjs +22 -22
- package/esm2020/lib/pipes/index.mjs +3 -3
- package/esm2020/lib/pipes/property-path.pipe.mjs +36 -36
- package/esm2020/lib/services/action.service.mjs +269 -270
- package/esm2020/lib/services/commons.service.mjs +354 -357
- package/esm2020/lib/services/configuration.service.mjs +78 -77
- package/esm2020/lib/services/index.mjs +5 -5
- package/esm2020/lib/services/navigation.service.mjs +48 -48
- package/esm2020/lib/services/providers/commons-init.provider.mjs +4 -4
- package/esm2020/lib/services/providers/config-service.provider.mjs +20 -12
- package/esm2020/lib/services/providers/formly-config.provider.mjs +31 -31
- package/esm2020/lib/services/providers/index.mjs +4 -3
- package/esm2020/lib/services/tokens/browser-storage.token.mjs +6 -0
- package/esm2020/lib/services/tokens/index.mjs +3 -0
- package/esm2020/lib/services/tokens/module-config.token.mjs +3 -0
- package/esm2020/lib/types/index.mjs +3 -0
- package/esm2020/lib/types/type.decorator.mjs +7 -0
- package/esm2020/lib/types/type.model.mjs +2 -0
- package/esm2020/lib/utils/editor-formly.util.mjs +176 -176
- package/esm2020/lib/utils/i18n.util.mjs +125 -125
- package/esm2020/lib/utils/index.mjs +6 -5
- package/esm2020/lib/utils/model.util.mjs +57 -57
- package/esm2020/lib/utils/toast.util.mjs +39 -39
- package/esm2020/lib/utils/type.util.mjs +39 -39
- package/esm2020/mediusinc-mng-commons.mjs +5 -5
- package/esm2020/public-api.mjs +36 -35
- package/fesm2015/mediusinc-mng-commons.mjs +6086 -5914
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +6010 -5841
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/builders/query-param.builder.d.ts +11 -11
- 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 +36 -36
- package/lib/api/models/serialization.model.d.ts +8 -8
- package/lib/api/services/{abstract-crud-api.service.d.ts → crud-api.abstract.service.d.ts} +23 -23
- package/lib/api/services/index.d.ts +1 -1
- package/lib/api/utils/index.d.ts +2 -2
- package/lib/api/utils/medius-rest.util.d.ts +12 -12
- package/lib/api/utils/object-serializer.util.d.ts +30 -30
- package/lib/components/action/action.component.d.ts +36 -36
- package/lib/components/action/dialog/action-dialog.component.d.ts +46 -49
- package/lib/components/action/index.d.ts +3 -3
- package/lib/{models/interfaces/confirmation-service.model.d.ts → components/action/models/action-confirmation-service.model.d.ts} +6 -6
- package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts} +53 -53
- package/lib/components/action/models/index.d.ts +2 -0
- package/lib/components/action/route/action-route.component.d.ts +32 -32
- package/lib/components/form/autocomplete/{mng-autocomplete.component.d.ts → autocomplete.component.d.ts} +36 -36
- package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts} +34 -34
- package/lib/components/form/editor/form-editor.component.d.ts +39 -39
- package/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.d.ts +11 -11
- package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts +11 -11
- package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +6 -6
- package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts +12 -12
- package/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.d.ts +17 -17
- package/lib/components/form/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.d.ts +36 -36
- 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 +7 -7
- package/lib/components/form/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +8 -8
- package/lib/components/form/formly/wrappers/formly-table-wrapper/formly-table-wrapper.component.d.ts +8 -8
- 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 +5 -0
- package/lib/components/form/models/index.d.ts +1 -0
- 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 +21 -13
- package/lib/components/layout/menu-item.component.d.ts +29 -29
- package/lib/components/layout/menu.component.d.ts +10 -10
- package/lib/components/layout/services/index.d.ts +1 -0
- package/lib/components/layout/services/main-layout.component.service.d.ts +65 -65
- package/lib/components/layout/topbar.component.d.ts +25 -18
- package/lib/components/tableview/index.d.ts +5 -5
- package/lib/components/tableview/models/index.d.ts +1 -0
- package/lib/{models/events/table-event.model.d.ts → components/tableview/models/table.event.d.ts} +17 -17
- package/lib/components/tableview/route/tableview-route.abstract.component.d.ts +14 -14
- package/lib/components/tableview/services/index.d.ts +1 -0
- package/lib/components/tableview/{tableview.component.service.d.ts → services/tableview.component.service.d.ts} +13 -13
- package/lib/components/tableview/table/column-filter/column-filter.component.d.ts +27 -22
- package/lib/components/tableview/table/column-value/column-value.component.d.ts +12 -12
- package/lib/components/tableview/table/table.component.d.ts +79 -79
- package/lib/components/tableview/tableview.component.d.ts +35 -36
- package/lib/config/formly.config.d.ts +14 -14
- package/lib/config/index.d.ts +1 -1
- package/lib/{models/config → config/models}/index.d.ts +1 -1
- package/lib/{models/config → config/models}/mng-config.model.d.ts +34 -37
- package/lib/data-providers/base.data-provider.d.ts +17 -0
- package/lib/data-providers/editor.data-provider.d.ts +25 -0
- package/lib/data-providers/index.d.ts +5 -0
- package/lib/data-providers/lookup.data-provider.d.ts +14 -0
- package/lib/data-providers/table.data-provider.d.ts +6 -0
- package/lib/data-providers/tableview.data-provider.d.ts +15 -0
- package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts} +148 -145
- package/lib/{models/descriptors/editor-descriptor.model.d.ts → descriptors/editor.descriptor.d.ts} +255 -257
- package/lib/{models/validators → descriptors}/field.validator.d.ts +18 -18
- package/lib/descriptors/index.d.ts +7 -0
- package/lib/{models/interfaces/lookup.model.d.ts → descriptors/lookup.descriptor.d.ts} +17 -17
- package/lib/{models/descriptors/model-descriptor.model.d.ts → descriptors/model.descriptor.d.ts} +15 -15
- package/lib/{models/descriptors/table-descriptor.model.d.ts → descriptors/table.descriptor.d.ts} +184 -164
- package/lib/{models/descriptors/tableview-descriptor.model.d.ts → descriptors/tableview.descriptor.d.ts} +39 -41
- package/lib/directives/component.directive.d.ts +11 -0
- package/lib/directives/index.d.ts +2 -1
- package/lib/directives/template.directive.d.ts +13 -11
- package/lib/mng-commons.module.d.ts +79 -78
- package/lib/models/{router/index.d.ts → index.d.ts} +2 -1
- package/lib/models/router.model.d.ts +14 -0
- package/lib/models/{user/user.model.d.ts → user.model.d.ts} +8 -8
- package/lib/pipes/boolean.pipe.d.ts +7 -7
- package/lib/pipes/index.d.ts +2 -2
- package/lib/pipes/property-path.pipe.d.ts +7 -7
- package/lib/services/action.service.d.ts +92 -92
- package/lib/services/commons.service.d.ts +72 -74
- package/lib/services/configuration.service.d.ts +35 -35
- package/lib/services/index.d.ts +4 -4
- package/lib/services/navigation.service.d.ts +14 -14
- package/lib/services/providers/commons-init.provider.d.ts +2 -2
- package/lib/services/providers/config-service.provider.d.ts +5 -5
- package/lib/services/providers/formly-config.provider.d.ts +4 -4
- package/lib/services/providers/index.d.ts +3 -2
- package/lib/services/tokens/browser-storage.token.d.ts +2 -0
- package/lib/services/tokens/index.d.ts +2 -0
- package/lib/services/tokens/module-config.token.d.ts +3 -0
- package/lib/{models/types → types}/index.d.ts +2 -2
- package/lib/{models/types → types}/type.decorator.d.ts +2 -2
- package/lib/{models/types → types}/type.model.d.ts +10 -10
- package/lib/utils/editor-formly.util.d.ts +9 -9
- package/lib/utils/i18n.util.d.ts +18 -18
- package/lib/utils/index.d.ts +5 -4
- package/lib/utils/model.util.d.ts +7 -7
- package/lib/utils/toast.util.d.ts +13 -13
- package/lib/utils/type.util.d.ts +15 -15
- package/mediusinc-mng-commons.d.ts +5 -5
- package/package.json +4 -4
- package/public-api.d.ts +25 -24
- package/scss/common/layout/_exception.scss +1 -1
- package/scss/common/layout/_help.scss +3 -3
- package/scss/common/layout/_landing.scss +1 -1
- package/scss/common/variables/layout/_common.scss +2 -0
- package/scss/common/variables/layout/_layout_dark.scss +4 -3
- package/scss/common/variables/layout/_layout_light.scss +4 -3
- package/scss/layout/default/_mng-variables-layout-light.scss +2 -2
- package/scss/mng-commons-dark.scss +0 -5
- package/scss/mng-commons-light.scss +0 -8
- package/scss/theme/default/_mng-variables-theme-light.scss +4 -4
- package/.pnpm-debug.log +0 -15
- package/esm2020/lib/api/services/abstract-crud-api.service.mjs +0 -72
- package/esm2020/lib/components/form/autocomplete/mng-autocomplete.component.mjs +0 -114
- package/esm2020/lib/components/form/dropdown/mng-dropdown.component.mjs +0 -113
- package/esm2020/lib/components/tableview/tableview.component.service.mjs +0 -18
- package/esm2020/lib/models/action/action.model.mjs +0 -58
- package/esm2020/lib/models/action/index.mjs +0 -2
- package/esm2020/lib/models/config/index.mjs +0 -2
- package/esm2020/lib/models/config/mng-config.model.mjs +0 -3
- package/esm2020/lib/models/descriptors/action-descriptor.model.mjs +0 -325
- package/esm2020/lib/models/descriptors/editor-descriptor.model.mjs +0 -671
- package/esm2020/lib/models/descriptors/index.mjs +0 -6
- package/esm2020/lib/models/descriptors/model-descriptor.model.mjs +0 -34
- package/esm2020/lib/models/descriptors/table-descriptor.model.mjs +0 -401
- package/esm2020/lib/models/descriptors/tableview-descriptor.model.mjs +0 -133
- package/esm2020/lib/models/events/editor-event.model.mjs +0 -14
- package/esm2020/lib/models/events/index.mjs +0 -3
- package/esm2020/lib/models/events/table-event.model.mjs +0 -16
- package/esm2020/lib/models/interfaces/confirmation-service.model.mjs +0 -2
- package/esm2020/lib/models/interfaces/index.mjs +0 -3
- package/esm2020/lib/models/interfaces/lookup.model.mjs +0 -2
- package/esm2020/lib/models/providers/data-provider.model.mjs +0 -86
- package/esm2020/lib/models/providers/index.mjs +0 -2
- package/esm2020/lib/models/router/index.mjs +0 -2
- package/esm2020/lib/models/router/router.model.mjs +0 -2
- package/esm2020/lib/models/types/index.mjs +0 -3
- package/esm2020/lib/models/types/type.decorator.mjs +0 -7
- package/esm2020/lib/models/types/type.model.mjs +0 -2
- package/esm2020/lib/models/user/index.mjs +0 -2
- package/esm2020/lib/models/user/user.model.mjs +0 -2
- package/esm2020/lib/models/validators/field.validator.mjs +0 -21
- package/esm2020/lib/models/validators/index.mjs +0 -2
- package/lib/models/action/index.d.ts +0 -1
- package/lib/models/descriptors/index.d.ts +0 -5
- package/lib/models/events/editor-event.model.d.ts +0 -11
- package/lib/models/events/index.d.ts +0 -2
- package/lib/models/interfaces/index.d.ts +0 -2
- package/lib/models/providers/data-provider.model.d.ts +0 -62
- package/lib/models/providers/index.d.ts +0 -1
- package/lib/models/router/router.model.d.ts +0 -9
- package/lib/models/user/index.d.ts +0 -1
- package/lib/models/validators/index.d.ts +0 -1
- package/mediusinc-mng-commons-0.1.0.tgz +0 -0
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ActionData, ActionRunResult } from '
|
|
6
|
-
import { ActionEditorDescriptor } from '../../../
|
|
7
|
-
import { IdType } from '../../../
|
|
8
|
-
import { IEditorDataProvider } from '../../../
|
|
9
|
-
import {
|
|
10
|
-
import { MngActionService
|
|
11
|
-
import {
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class
|
|
14
|
-
private injector;
|
|
15
|
-
private translate;
|
|
16
|
-
dialogRef: DynamicDialogRef;
|
|
17
|
-
dialogConfig: DynamicDialogConfig;
|
|
18
|
-
private actionService;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionDialogComponent<any, any>, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionDialogComponent<any, any>, "mng-action-dialog", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; }, { "createEventEmitter": "onFinished"; "visibleChangeEventEmitter": "onVisibleChange"; }, ["templates"], never>;
|
|
49
|
-
}
|
|
1
|
+
import { Injector, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ActionData, ActionRunResult } from '../models';
|
|
6
|
+
import { ActionEditorDescriptor } from '../../../descriptors';
|
|
7
|
+
import { IdType } from '../../../types';
|
|
8
|
+
import { IEditorDataProvider } from '../../../data-providers';
|
|
9
|
+
import { MngFormEditorSubmitEvent } from '../../form/models';
|
|
10
|
+
import { MngActionService } from '../../../services';
|
|
11
|
+
import { MngTemplateDirective } from '../../../directives';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class MngActionDialogComponent<T, S> implements OnInit, OnDestroy {
|
|
14
|
+
private injector;
|
|
15
|
+
private translate;
|
|
16
|
+
dialogRef: DynamicDialogRef;
|
|
17
|
+
dialogConfig: DynamicDialogConfig;
|
|
18
|
+
private actionService;
|
|
19
|
+
action: ActionEditorDescriptor<T>;
|
|
20
|
+
itemId?: IdType;
|
|
21
|
+
item?: T;
|
|
22
|
+
actionData?: ActionData;
|
|
23
|
+
dataProvider?: IEditorDataProvider<T, S>;
|
|
24
|
+
templates: QueryList<MngTemplateDirective>;
|
|
25
|
+
private submitButtonElementRef;
|
|
26
|
+
private editorComponent;
|
|
27
|
+
cmpId: string;
|
|
28
|
+
private loadingSubject;
|
|
29
|
+
private submitLoadingSubject;
|
|
30
|
+
loading$: Observable<boolean>;
|
|
31
|
+
submitLoading$: Observable<boolean>;
|
|
32
|
+
isSaveButton: boolean;
|
|
33
|
+
private tableviewService?;
|
|
34
|
+
private sourceComponent;
|
|
35
|
+
private subscriptions;
|
|
36
|
+
constructor(injector: Injector, translate: TranslateService, dialogRef: DynamicDialogRef, dialogConfig: DynamicDialogConfig, actionService: MngActionService);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
onSubmit(event: MngFormEditorSubmitEvent<T>): void;
|
|
40
|
+
closeDialog(result?: ActionRunResult<T, any, any>): void;
|
|
41
|
+
saveItem(): void;
|
|
42
|
+
private loadItemWithDataProvider;
|
|
43
|
+
private setDialogHeaderTitle;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionDialogComponent<any, any>, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionDialogComponent<any, any>, "mng-action-dialog", never, { "action": "action"; "itemId": "itemId"; "item": "item"; "actionData": "actionData"; "dataProvider": "dataProvider"; }, {}, ["templates"], never>;
|
|
46
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './action.component';
|
|
2
|
-
export * from './route/action-route.component';
|
|
3
|
-
export * from './dialog/action-dialog.component';
|
|
1
|
+
export * from './action.component';
|
|
2
|
+
export * from './route/action-route.component';
|
|
3
|
+
export * from './dialog/action-dialog.component';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfirmationService } from 'primeng/api';
|
|
2
|
-
import { ActionDescriptor } from '
|
|
3
|
-
export interface
|
|
4
|
-
getConfirmationService(): ConfirmationService;
|
|
5
|
-
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
6
|
-
}
|
|
1
|
+
import { ConfirmationService } from 'primeng/api';
|
|
2
|
+
import { ActionDescriptor } from '../../../descriptors';
|
|
3
|
+
export interface IActionConfirmationService {
|
|
4
|
+
getConfirmationService(): ConfirmationService;
|
|
5
|
+
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
6
|
+
}
|
package/lib/{models/action/action.model.d.ts → components/action/models/action-execution.model.d.ts}
RENAMED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IdType } from '
|
|
4
|
-
import { IDataProvider } from '
|
|
5
|
-
import { TableviewComponentService } from '../../
|
|
6
|
-
export declare class ActionExecContext<T, S, DP extends IDataProvider<T, S>> {
|
|
7
|
-
readonly dataProvider?: DP | undefined;
|
|
8
|
-
readonly serviceInstance?: S | undefined;
|
|
9
|
-
readonly data?: {
|
|
10
|
-
item?: T | undefined;
|
|
11
|
-
itemId?: IdType | undefined;
|
|
12
|
-
actionData?: ActionData | undefined;
|
|
13
|
-
} | undefined;
|
|
14
|
-
readonly sourceComponent: any;
|
|
15
|
-
readonly tableview: TableviewComponentService<T, S> | null;
|
|
16
|
-
constructor(dataProvider?: DP | undefined, serviceInstance?: S | undefined, data?: {
|
|
17
|
-
item?: T | undefined;
|
|
18
|
-
itemId?: IdType | undefined;
|
|
19
|
-
actionData?: ActionData | undefined;
|
|
20
|
-
} | undefined, sourceComponent?: any, tableview?: TableviewComponentService<T, S> | null);
|
|
21
|
-
}
|
|
22
|
-
export declare class ActionError {
|
|
23
|
-
readonly error: any;
|
|
24
|
-
readonly dismissed: boolean;
|
|
25
|
-
constructor(error: any, // error details
|
|
26
|
-
dismissed?: boolean);
|
|
27
|
-
}
|
|
28
|
-
export declare class ActionRunResult<T, S, DP extends IDataProvider<T, S>> {
|
|
29
|
-
readonly context?: ActionExecContext<T, S, DP> | undefined;
|
|
30
|
-
readonly result?: T | undefined;
|
|
31
|
-
readonly error?: ActionError | undefined;
|
|
32
|
-
constructor(context?: ActionExecContext<T, S, DP> | undefined, result?: T | undefined, error?: ActionError | undefined);
|
|
33
|
-
}
|
|
34
|
-
export declare class ActionActivationResult<T, S, DP extends IDataProvider<T, S>> {
|
|
35
|
-
readonly runResult?: ActionRunResult<T, S, DP> | undefined;
|
|
36
|
-
readonly dialogRef?: DynamicDialogRef | undefined;
|
|
37
|
-
constructor(runResult?: ActionRunResult<T, S, DP> | undefined, dialogRef?: DynamicDialogRef | undefined);
|
|
38
|
-
get runContext(): ActionExecContext<T, S, DP> | null | undefined;
|
|
39
|
-
get result(): T | null | undefined;
|
|
40
|
-
get error(): ActionError | null | undefined;
|
|
41
|
-
}
|
|
42
|
-
export declare class ActionTriggerResult<T, S, DP extends IDataProvider<T, S>> {
|
|
43
|
-
readonly activationResult?: ActionActivationResult<T, S, DP> | undefined;
|
|
44
|
-
readonly routerNavigation?: Observable<boolean> | undefined;
|
|
45
|
-
constructor(activationResult?: ActionActivationResult<T, S, DP> | undefined, routerNavigation?: Observable<boolean> | undefined);
|
|
46
|
-
get runContext(): ActionRunResult<T, S, DP> | null | undefined;
|
|
47
|
-
get result(): T | null | undefined;
|
|
48
|
-
get error(): ActionError | null | undefined;
|
|
49
|
-
get dialogRef(): DynamicDialogRef | null | undefined;
|
|
50
|
-
}
|
|
51
|
-
export declare type ActionData = {
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
};
|
|
1
|
+
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IdType } from '../../../types';
|
|
4
|
+
import { IDataProvider } from '../../../data-providers';
|
|
5
|
+
import { TableviewComponentService } from '../../tableview/services';
|
|
6
|
+
export declare class ActionExecContext<T, S, DP extends IDataProvider<T, S>> {
|
|
7
|
+
readonly dataProvider?: DP | undefined;
|
|
8
|
+
readonly serviceInstance?: S | undefined;
|
|
9
|
+
readonly data?: {
|
|
10
|
+
item?: T | undefined;
|
|
11
|
+
itemId?: IdType | undefined;
|
|
12
|
+
actionData?: ActionData | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
readonly sourceComponent: any;
|
|
15
|
+
readonly tableview: TableviewComponentService<T, S> | null;
|
|
16
|
+
constructor(dataProvider?: DP | undefined, serviceInstance?: S | undefined, data?: {
|
|
17
|
+
item?: T | undefined;
|
|
18
|
+
itemId?: IdType | undefined;
|
|
19
|
+
actionData?: ActionData | undefined;
|
|
20
|
+
} | undefined, sourceComponent?: any, tableview?: TableviewComponentService<T, S> | null);
|
|
21
|
+
}
|
|
22
|
+
export declare class ActionError {
|
|
23
|
+
readonly error: any;
|
|
24
|
+
readonly dismissed: boolean;
|
|
25
|
+
constructor(error: any, // error details
|
|
26
|
+
dismissed?: boolean);
|
|
27
|
+
}
|
|
28
|
+
export declare class ActionRunResult<T, S, DP extends IDataProvider<T, S>> {
|
|
29
|
+
readonly context?: ActionExecContext<T, S, DP> | undefined;
|
|
30
|
+
readonly result?: T | undefined;
|
|
31
|
+
readonly error?: ActionError | undefined;
|
|
32
|
+
constructor(context?: ActionExecContext<T, S, DP> | undefined, result?: T | undefined, error?: ActionError | undefined);
|
|
33
|
+
}
|
|
34
|
+
export declare class ActionActivationResult<T, S, DP extends IDataProvider<T, S>> {
|
|
35
|
+
readonly runResult?: ActionRunResult<T, S, DP> | undefined;
|
|
36
|
+
readonly dialogRef?: DynamicDialogRef | undefined;
|
|
37
|
+
constructor(runResult?: ActionRunResult<T, S, DP> | undefined, dialogRef?: DynamicDialogRef | undefined);
|
|
38
|
+
get runContext(): ActionExecContext<T, S, DP> | null | undefined;
|
|
39
|
+
get result(): T | null | undefined;
|
|
40
|
+
get error(): ActionError | null | undefined;
|
|
41
|
+
}
|
|
42
|
+
export declare class ActionTriggerResult<T, S, DP extends IDataProvider<T, S>> {
|
|
43
|
+
readonly activationResult?: ActionActivationResult<T, S, DP> | undefined;
|
|
44
|
+
readonly routerNavigation?: Observable<boolean> | undefined;
|
|
45
|
+
constructor(activationResult?: ActionActivationResult<T, S, DP> | undefined, routerNavigation?: Observable<boolean> | undefined);
|
|
46
|
+
get runContext(): ActionRunResult<T, S, DP> | null | undefined;
|
|
47
|
+
get result(): T | null | undefined;
|
|
48
|
+
get error(): ActionError | null | undefined;
|
|
49
|
+
get dialogRef(): DynamicDialogRef | null | undefined;
|
|
50
|
+
}
|
|
51
|
+
export declare type ActionData = {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { ConfirmationService } from 'primeng/api';
|
|
4
|
-
import { ActionDescriptor } from '../../../
|
|
5
|
-
import {
|
|
6
|
-
import { MngActionService, MngNavigationService } from '../../../services';
|
|
7
|
-
import { TableviewComponentService } from '../../tableview/
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
10
|
-
private router;
|
|
11
|
-
private route;
|
|
12
|
-
private confirmationService;
|
|
13
|
-
private navigationService;
|
|
14
|
-
private actionService;
|
|
15
|
-
private tableviewService;
|
|
16
|
-
private actions;
|
|
17
|
-
private activeAction?;
|
|
18
|
-
private dialogRef?;
|
|
19
|
-
private dialogCloseSubscription?;
|
|
20
|
-
private subscriptions;
|
|
21
|
-
cmpId: string;
|
|
22
|
-
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngOnDestroy(): void;
|
|
25
|
-
getConfirmationService(): ConfirmationService;
|
|
26
|
-
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
27
|
-
private activateAction;
|
|
28
|
-
private deactivateAction;
|
|
29
|
-
private findActiveAction;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
32
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ConfirmationService } from 'primeng/api';
|
|
4
|
+
import { ActionDescriptor } from '../../../descriptors';
|
|
5
|
+
import { IActionConfirmationService } from '../models';
|
|
6
|
+
import { MngActionService, MngNavigationService } from '../../../services';
|
|
7
|
+
import { TableviewComponentService } from '../../tableview/services';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class MngActionRouteComponent<T, S> implements OnInit, OnDestroy, IActionConfirmationService {
|
|
10
|
+
private router;
|
|
11
|
+
private route;
|
|
12
|
+
private confirmationService;
|
|
13
|
+
private navigationService;
|
|
14
|
+
private actionService;
|
|
15
|
+
private tableviewService;
|
|
16
|
+
private actions;
|
|
17
|
+
private activeAction?;
|
|
18
|
+
private dialogRef?;
|
|
19
|
+
private dialogCloseSubscription?;
|
|
20
|
+
private subscriptions;
|
|
21
|
+
cmpId: string;
|
|
22
|
+
constructor(router: Router, route: ActivatedRoute, confirmationService: ConfirmationService, navigationService: MngNavigationService, actionService: MngActionService, tableviewService: TableviewComponentService<T, S>);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
getConfirmationService(): ConfirmationService;
|
|
26
|
+
getConfirmationServiceInstanceKey(action: ActionDescriptor<any>): string;
|
|
27
|
+
private activateAction;
|
|
28
|
+
private deactivateAction;
|
|
29
|
+
private findActiveAction;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngActionRouteComponent<any, any>, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngActionRouteComponent<any, any>, "mng-action-route", never, {}, {}, never, never>;
|
|
32
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ILookupDataProvider } from '../../../
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
-
export declare class MngAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
8
|
-
private injector;
|
|
9
|
-
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
-
dataKeyProperty?: string;
|
|
11
|
-
itemsLabelProperty?: string;
|
|
12
|
-
multiselect: boolean;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
className: string | null;
|
|
15
|
-
dropdownClassName: string | null;
|
|
16
|
-
onChange: EventEmitter<any>;
|
|
17
|
-
private primeAutocomplete?;
|
|
18
|
-
private suggestionsSubject;
|
|
19
|
-
private searchSubscription;
|
|
20
|
-
private dataProviderService;
|
|
21
|
-
private onChangeFn;
|
|
22
|
-
private onTouchedFn;
|
|
23
|
-
autocompleteFormControl: FormControl;
|
|
24
|
-
suggestions$: Observable<Array<any>>;
|
|
25
|
-
isLoading: boolean;
|
|
26
|
-
constructor(injector: Injector);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
onSearch(event: any): void;
|
|
29
|
-
onSelect(value: any): void;
|
|
30
|
-
registerOnChange(fn: any): void;
|
|
31
|
-
registerOnTouched(fn: any): void;
|
|
32
|
-
setDisabledState(isDisabled: boolean): void;
|
|
33
|
-
writeValue(obj: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
36
|
-
}
|
|
1
|
+
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const MNG_AUTOCOMPLETE_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
+
export declare class MngAutocompleteComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
private injector;
|
|
9
|
+
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
+
dataKeyProperty?: string;
|
|
11
|
+
itemsLabelProperty?: string;
|
|
12
|
+
multiselect: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
className: string | null;
|
|
15
|
+
dropdownClassName: string | null;
|
|
16
|
+
onChange: EventEmitter<any>;
|
|
17
|
+
private primeAutocomplete?;
|
|
18
|
+
private suggestionsSubject;
|
|
19
|
+
private searchSubscription;
|
|
20
|
+
private dataProviderService;
|
|
21
|
+
private onChangeFn;
|
|
22
|
+
private onTouchedFn;
|
|
23
|
+
autocompleteFormControl: FormControl;
|
|
24
|
+
suggestions$: Observable<Array<any>>;
|
|
25
|
+
isLoading: boolean;
|
|
26
|
+
constructor(injector: Injector);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
onSearch(event: any): void;
|
|
29
|
+
onSelect(value: any): void;
|
|
30
|
+
registerOnChange(fn: any): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
writeValue(obj: any): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
36
|
+
}
|
package/lib/components/form/dropdown/{mng-dropdown.component.d.ts → dropdown.component.d.ts}
RENAMED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ILookupDataProvider } from '../../../
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const MNG_DROPDOWN_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
-
export declare class MngDropdownComponent implements OnInit, ControlValueAccessor {
|
|
8
|
-
private injector;
|
|
9
|
-
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
-
dataKeyProperty?: string;
|
|
11
|
-
itemsLabelProperty?: string;
|
|
12
|
-
itemsValueProperty?: string;
|
|
13
|
-
multiselect: boolean;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
showClear: boolean;
|
|
16
|
-
className: string | null;
|
|
17
|
-
dropdownClassName: string | null;
|
|
18
|
-
onChange: EventEmitter<any>;
|
|
19
|
-
private primeDropdown?;
|
|
20
|
-
private itemsSubject;
|
|
21
|
-
private dataProviderService;
|
|
22
|
-
private onChangeFn;
|
|
23
|
-
private onTouchedFn;
|
|
24
|
-
dropdownFormControl: FormControl;
|
|
25
|
-
items$: Observable<Array<any>>;
|
|
26
|
-
constructor(injector: Injector);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
registerOnChange(fn: any): void;
|
|
29
|
-
registerOnTouched(fn: any): void;
|
|
30
|
-
setDisabledState(isDisabled: boolean): void;
|
|
31
|
-
writeValue(obj: any): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
34
|
-
}
|
|
1
|
+
import { EventEmitter, ExistingProvider, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ILookupDataProvider } from '../../../data-providers';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const MNG_DROPDOWN_VALUE_ACCESSOR: ExistingProvider;
|
|
7
|
+
export declare class MngDropdownComponent implements OnInit, ControlValueAccessor {
|
|
8
|
+
private injector;
|
|
9
|
+
dataProvider?: ILookupDataProvider<any, any>;
|
|
10
|
+
dataKeyProperty?: string;
|
|
11
|
+
itemsLabelProperty?: string;
|
|
12
|
+
itemsValueProperty?: string;
|
|
13
|
+
multiselect: boolean;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
showClear: boolean;
|
|
16
|
+
className: string | null;
|
|
17
|
+
dropdownClassName: string | null;
|
|
18
|
+
onChange: EventEmitter<any>;
|
|
19
|
+
private primeDropdown?;
|
|
20
|
+
private itemsSubject;
|
|
21
|
+
private dataProviderService;
|
|
22
|
+
private onChangeFn;
|
|
23
|
+
private onTouchedFn;
|
|
24
|
+
dropdownFormControl: FormControl;
|
|
25
|
+
items$: Observable<Array<any>>;
|
|
26
|
+
constructor(injector: Injector);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(fn: any): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
writeValue(obj: any): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngDropdownComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngDropdownComponent, "mng-dropdown", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsLabelProperty": "itemsLabelProperty"; "itemsValueProperty": "itemsValueProperty"; "multiselect": "multiselect"; "placeholder": "placeholder"; "showClear": "showClear"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "onChange": "onChange"; }, never, never>;
|
|
34
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
-
import { Message } from 'primeng/api';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { EditorDescriptor } from '../../../
|
|
8
|
-
import {
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class
|
|
11
|
-
private translateService;
|
|
12
|
-
descriptor: EditorDescriptor<T>;
|
|
13
|
-
submitLoading: Observable<boolean> | boolean;
|
|
14
|
-
item?: T;
|
|
15
|
-
isSubmitButtonVisible: boolean;
|
|
16
|
-
isFormDisabled: null;
|
|
17
|
-
private submitEventEmitter;
|
|
18
|
-
templates: QueryList<
|
|
19
|
-
submitButtonElementRef?: ElementRef;
|
|
20
|
-
form: FormGroup;
|
|
21
|
-
formOptions: FormlyFormOptions;
|
|
22
|
-
formFields: FormlyFieldConfig[];
|
|
23
|
-
formOrigItem?: T;
|
|
24
|
-
formModel: any;
|
|
25
|
-
formMessages: Message[];
|
|
26
|
-
submitLoading$: Observable<boolean>;
|
|
27
|
-
private subscriptions;
|
|
28
|
-
constructor(translateService: TranslateService);
|
|
29
|
-
ngOnInit(): void;
|
|
30
|
-
ngAfterContentInit(): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
submit(): void;
|
|
33
|
-
onSubmit(event: Event): void;
|
|
34
|
-
private isAnyFieldInvalid;
|
|
35
|
-
private updateFormModel;
|
|
36
|
-
private updateFormState;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
39
|
-
}
|
|
1
|
+
import { AfterContentInit, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
|
+
import { Message } from 'primeng/api';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { EditorDescriptor } from '../../../descriptors';
|
|
8
|
+
import { MngTemplateDirective } from '../../../directives';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class MngFormEditorComponent<T> implements OnInit, AfterContentInit, OnDestroy {
|
|
11
|
+
private translateService;
|
|
12
|
+
descriptor: EditorDescriptor<T>;
|
|
13
|
+
submitLoading: Observable<boolean> | boolean;
|
|
14
|
+
item?: T;
|
|
15
|
+
isSubmitButtonVisible: boolean;
|
|
16
|
+
isFormDisabled: null;
|
|
17
|
+
private submitEventEmitter;
|
|
18
|
+
templates: QueryList<MngTemplateDirective>;
|
|
19
|
+
submitButtonElementRef?: ElementRef;
|
|
20
|
+
form: FormGroup;
|
|
21
|
+
formOptions: FormlyFormOptions;
|
|
22
|
+
formFields: FormlyFieldConfig[];
|
|
23
|
+
formOrigItem?: T;
|
|
24
|
+
formModel: any;
|
|
25
|
+
formMessages: Message[];
|
|
26
|
+
submitLoading$: Observable<boolean>;
|
|
27
|
+
private subscriptions;
|
|
28
|
+
constructor(translateService: TranslateService);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
ngAfterContentInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
submit(): void;
|
|
33
|
+
onSubmit(event: Event): void;
|
|
34
|
+
private isAnyFieldInvalid;
|
|
35
|
+
private updateFormModel;
|
|
36
|
+
private updateFormState;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormEditorComponent<any>, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormEditorComponent<any>, "mng-form-editor", never, { "descriptor": "descriptor"; "submitLoading": "submitLoading"; "item": "item"; "isSubmitButtonVisible": "isSubmitButtonVisible"; "isFormDisabled": "isFormDisabled"; }, { "submitEventEmitter": "onSubmit"; }, ["templates"], never>;
|
|
39
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { FieldLookupDescriptor } from '../../../../../
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
aFormControl: FormControl;
|
|
7
|
-
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
11
|
-
}
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MngFormlyFieldAutocompleteComponent<T> extends FieldType {
|
|
6
|
+
aFormControl: FormControl;
|
|
7
|
+
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldAutocompleteComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldAutocompleteComponent<any>, "mng-formly-field-autocomplete", never, {}, {}, never, never>;
|
|
11
|
+
}
|
package/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { FieldType } from '@ngx-formly/core';
|
|
3
|
-
import { FieldLookupDescriptor } from '../../../../../
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
dFormControl: FormControl;
|
|
7
|
-
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
11
|
-
}
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
|
3
|
+
import { FieldLookupDescriptor } from '../../../../../descriptors';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MngFormlyFieldDropdownComponent<T> extends FieldType {
|
|
6
|
+
dFormControl: FormControl;
|
|
7
|
+
descriptor: FieldLookupDescriptor<T, any>;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldDropdownComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldDropdownComponent<any>, "mng-formly-field-dropdown", never, {}, {}, never, never>;
|
|
11
|
+
}
|
package/lib/components/form/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FieldType } from '@ngx-formly/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
6
|
-
}
|
|
1
|
+
import { FieldType } from '@ngx-formly/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MngFormlyFieldFieldsetComponent extends FieldType {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldFieldsetComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldFieldsetComponent, "mng-formly-field-fieldset", never, {}, {}, never, never>;
|
|
6
|
+
}
|
package/lib/components/form/formly/fields/formly-field-input/formly-field-input.component.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { FieldType } from '@ngx-formly/core';
|
|
4
|
-
import { FieldInputDescriptor } from '../../../../../
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
7
|
-
iFormControl: FormControl;
|
|
8
|
-
descriptor: FieldInputDescriptor<any>;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
12
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { FieldType } from '@ngx-formly/core';
|
|
4
|
+
import { FieldInputDescriptor } from '../../../../../descriptors';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MngFormlyFieldInputComponent extends FieldType implements OnInit {
|
|
7
|
+
iFormControl: FormControl;
|
|
8
|
+
descriptor: FieldInputDescriptor<any>;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MngFormlyFieldInputComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MngFormlyFieldInputComponent, "mng-formly-field-input", never, {}, {}, never, never>;
|
|
12
|
+
}
|