@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
package/lib/{models/descriptors/action-descriptor.model.d.ts → descriptors/action.descriptor.d.ts}
RENAMED
|
@@ -1,145 +1,148 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClassType } from '../types';
|
|
3
|
-
import { EditorDescriptor, ModelDescriptor } from '
|
|
4
|
-
import { IDataProvider, IEditorDataProvider } from '../providers';
|
|
5
|
-
import { ActionExecContext } from '../action';
|
|
6
|
-
export declare class ActionDescriptor<T> {
|
|
7
|
-
protected readonly _model: ModelDescriptor<T>;
|
|
8
|
-
protected readonly _actionName: string;
|
|
9
|
-
protected readonly _parentType?: ClassType<any>;
|
|
10
|
-
protected readonly _parentTypeName?: string;
|
|
11
|
-
protected readonly _parentProperty?: string;
|
|
12
|
-
protected readonly _i18nModelActionBaseKey: string;
|
|
13
|
-
protected _type: ActionTypeEnum;
|
|
14
|
-
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
15
|
-
protected _position: ActionPositionEnum;
|
|
16
|
-
protected _level: ActionLevelEnum;
|
|
17
|
-
protected _routeUrl: string | null;
|
|
18
|
-
protected _title?: string | null;
|
|
19
|
-
protected _icon?: string;
|
|
20
|
-
protected _className: string;
|
|
21
|
-
protected
|
|
22
|
-
protected
|
|
23
|
-
protected
|
|
24
|
-
|
|
25
|
-
private
|
|
26
|
-
private
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
private
|
|
33
|
-
private
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
get
|
|
39
|
-
get
|
|
40
|
-
get
|
|
41
|
-
get
|
|
42
|
-
get
|
|
43
|
-
get
|
|
44
|
-
get
|
|
45
|
-
get
|
|
46
|
-
get
|
|
47
|
-
get
|
|
48
|
-
get
|
|
49
|
-
get
|
|
50
|
-
get
|
|
51
|
-
get
|
|
52
|
-
get
|
|
53
|
-
get
|
|
54
|
-
get
|
|
55
|
-
get
|
|
56
|
-
get
|
|
57
|
-
get
|
|
58
|
-
get
|
|
59
|
-
get
|
|
60
|
-
get
|
|
61
|
-
get
|
|
62
|
-
get
|
|
63
|
-
get
|
|
64
|
-
get
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
private
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
get
|
|
99
|
-
get
|
|
100
|
-
get
|
|
101
|
-
get
|
|
102
|
-
get
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
export declare class
|
|
113
|
-
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
114
|
-
}
|
|
115
|
-
export declare class
|
|
116
|
-
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
117
|
-
}
|
|
118
|
-
export declare class
|
|
119
|
-
constructor(
|
|
120
|
-
}
|
|
121
|
-
export declare
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ClassType } from '../types';
|
|
3
|
+
import { EditorDescriptor, ModelDescriptor } from './';
|
|
4
|
+
import { IDataProvider, IEditorDataProvider } from '../data-providers';
|
|
5
|
+
import { ActionExecContext } from '../components/action/models';
|
|
6
|
+
export declare class ActionDescriptor<T> {
|
|
7
|
+
protected readonly _model: ModelDescriptor<T>;
|
|
8
|
+
protected readonly _actionName: string;
|
|
9
|
+
protected readonly _parentType?: ClassType<any>;
|
|
10
|
+
protected readonly _parentTypeName?: string;
|
|
11
|
+
protected readonly _parentProperty?: string;
|
|
12
|
+
protected readonly _i18nModelActionBaseKey: string;
|
|
13
|
+
protected _type: ActionTypeEnum;
|
|
14
|
+
protected _activationTrigger: ActionActivationTriggerEnum;
|
|
15
|
+
protected _position: ActionPositionEnum;
|
|
16
|
+
protected _level: ActionLevelEnum;
|
|
17
|
+
protected _routeUrl: string | null;
|
|
18
|
+
protected _title?: string | null;
|
|
19
|
+
protected _icon?: string;
|
|
20
|
+
protected _className: string;
|
|
21
|
+
protected _tooltip?: string | null;
|
|
22
|
+
protected _runFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
23
|
+
protected _isVisibleFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
24
|
+
protected _isEnabledFunction?: (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>;
|
|
25
|
+
private _hasRunConfirmation;
|
|
26
|
+
private _runConfirmationIcon?;
|
|
27
|
+
private _runConfirmationTitle?;
|
|
28
|
+
private _runConfirmationMessage?;
|
|
29
|
+
private _runConfirmationAcceptTitle?;
|
|
30
|
+
private _runConfirmationRejectTitle?;
|
|
31
|
+
protected _hasRunNotificationSuccess: boolean;
|
|
32
|
+
private _runNotificationSuccessTitle?;
|
|
33
|
+
private _runNotificationSuccessMessage?;
|
|
34
|
+
private _hasRunNotificationError;
|
|
35
|
+
private _runNotificationErrorTitle?;
|
|
36
|
+
private _runNotificationErrorMessage?;
|
|
37
|
+
constructor(model: ModelDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
38
|
+
get model(): ModelDescriptor<T>;
|
|
39
|
+
get parentTypeName(): string | undefined;
|
|
40
|
+
get parentProperty(): string | undefined;
|
|
41
|
+
get i18nModelActionBaseKey(): string;
|
|
42
|
+
get type(): ActionTypeEnum;
|
|
43
|
+
get activationTrigger(): ActionActivationTriggerEnum;
|
|
44
|
+
get position(): ActionPositionEnum;
|
|
45
|
+
get level(): ActionLevelEnum;
|
|
46
|
+
get routeUrl(): string | null;
|
|
47
|
+
get title(): string | null | undefined;
|
|
48
|
+
get icon(): string | undefined;
|
|
49
|
+
get tooltip(): string | null | undefined;
|
|
50
|
+
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
51
|
+
get isVisibleFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
52
|
+
get isEnabledFunction(): ((ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<boolean>) | undefined;
|
|
53
|
+
get actionName(): string;
|
|
54
|
+
get className(): string;
|
|
55
|
+
get hasRunConfirmation(): boolean;
|
|
56
|
+
get runConfirmationIcon(): string | undefined;
|
|
57
|
+
get runConfirmationTitle(): string | undefined;
|
|
58
|
+
get runConfirmationMessage(): string | undefined;
|
|
59
|
+
get runConfirmationAcceptTitle(): string | undefined;
|
|
60
|
+
get runConfirmationRejectTitle(): string | undefined;
|
|
61
|
+
get hasRunNotificationSuccess(): boolean;
|
|
62
|
+
get runNotificationSuccessTitle(): string | undefined;
|
|
63
|
+
get runNotificationSuccessMessage(): string | undefined;
|
|
64
|
+
get hasRunNotificationError(): boolean;
|
|
65
|
+
get runNotificationErrorTitle(): string | undefined;
|
|
66
|
+
get runNotificationErrorMessage(): string | undefined;
|
|
67
|
+
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
68
|
+
withIsVisibleFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
69
|
+
withIsEnabledFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<boolean>): this;
|
|
70
|
+
withRouteTrigger(routeUrl: string): this;
|
|
71
|
+
withLevel(level: ActionLevelEnum): this;
|
|
72
|
+
/**
|
|
73
|
+
* Overrides default title key with model action key (${model.typeName}.actions.${actionName}). Not relevant if parentType name is provided.
|
|
74
|
+
*/
|
|
75
|
+
withModelTitle(): this;
|
|
76
|
+
/**
|
|
77
|
+
* Overrides default title key (${actionName}.title). If null, no title will be shown.
|
|
78
|
+
* @param title Title i18n key or title.
|
|
79
|
+
*/
|
|
80
|
+
withTitle(title: string | null): this;
|
|
81
|
+
withIcon(icon: string): this;
|
|
82
|
+
withTooltip(tooltip: string | null): this;
|
|
83
|
+
withClassName(className: string): this;
|
|
84
|
+
withPosition(position: ActionPositionEnum): this;
|
|
85
|
+
withRunConfirmation(icon?: string, title?: string, message?: string, acceptTitle?: string, rejectTitle?: string): this;
|
|
86
|
+
withRunNotificationSuccess(title?: string, message?: string, hasNotification?: boolean): void;
|
|
87
|
+
withRunNotificationError(title?: string, message?: string, hasNotification?: boolean): void;
|
|
88
|
+
}
|
|
89
|
+
export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
|
|
90
|
+
private readonly _editorDescriptor;
|
|
91
|
+
protected _editorTitle?: string;
|
|
92
|
+
private _hasFetchNotificationSuccess;
|
|
93
|
+
private _fetchNotificationSuccessTitle?;
|
|
94
|
+
private _fetchNotificationSuccessMessage?;
|
|
95
|
+
protected _fetchFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
96
|
+
protected _submitFunction?: (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
97
|
+
constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<any>, parentProperty?: string);
|
|
98
|
+
get editorTitle(): string | undefined;
|
|
99
|
+
get editorDescriptor(): EditorDescriptor<T>;
|
|
100
|
+
get hasFetchNotificationSuccess(): boolean;
|
|
101
|
+
get fetchNotificationSuccessTitle(): string | undefined;
|
|
102
|
+
get fetchNotificationSuccessMessage(): string | undefined;
|
|
103
|
+
get runFunction(): (ctx: ActionExecContext<T, any, IDataProvider<T, any>>) => Observable<T>;
|
|
104
|
+
get fetchFunction(): (ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>;
|
|
105
|
+
get submitFunction(): ((ctx: ActionExecContext<T, any, IEditorDataProvider<T, any>>) => Observable<T>) | undefined;
|
|
106
|
+
withEditorTitle(title: string): this;
|
|
107
|
+
withRunFunction<S>(fn: (ctx: ActionExecContext<T, S, IDataProvider<T, S>>) => Observable<T>): this;
|
|
108
|
+
withFetchFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
109
|
+
withSubmitFunction<S>(fn: (ctx: ActionExecContext<T, S, IEditorDataProvider<T, S>>) => Observable<T>): this;
|
|
110
|
+
withFetchNotificationError(title?: string, message?: string, hasNotification?: boolean): void;
|
|
111
|
+
}
|
|
112
|
+
export declare class ActionEditorDetailsDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
113
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
114
|
+
}
|
|
115
|
+
export declare class ActionEditorAddDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
116
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
117
|
+
}
|
|
118
|
+
export declare class ActionEditorEditDescriptor<T> extends ActionEditorDescriptor<T> {
|
|
119
|
+
constructor(editorDescriptor: EditorDescriptor<T>);
|
|
120
|
+
}
|
|
121
|
+
export declare class ActionDeleteDescriptor<T> extends ActionDescriptor<T> {
|
|
122
|
+
constructor(model: ModelDescriptor<T>);
|
|
123
|
+
}
|
|
124
|
+
export declare enum ActionPositionEnum {
|
|
125
|
+
ToolbarLeft = 0,
|
|
126
|
+
ToolbarRight = 1,
|
|
127
|
+
TableHeader = 2,
|
|
128
|
+
RowInline = 3,
|
|
129
|
+
RowClick = 4
|
|
130
|
+
}
|
|
131
|
+
export declare enum ActionActivationTriggerEnum {
|
|
132
|
+
OnClick = 0,
|
|
133
|
+
OnRoute = 1
|
|
134
|
+
}
|
|
135
|
+
export declare enum ActionTypeEnum {
|
|
136
|
+
Direct = 0,
|
|
137
|
+
Editor = 1
|
|
138
|
+
}
|
|
139
|
+
export declare enum ActionLevelEnum {
|
|
140
|
+
Default = 0,
|
|
141
|
+
Primary = 1,
|
|
142
|
+
Secondary = 2,
|
|
143
|
+
Info = 3,
|
|
144
|
+
Help = 4,
|
|
145
|
+
Success = 5,
|
|
146
|
+
Warning = 6,
|
|
147
|
+
Danger = 7
|
|
148
|
+
}
|