@abp/ng.theme.shared 7.4.2 → 8.0.0-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/esm2022/lib/adapters/date-time.adapter.mjs +44 -0
- package/esm2022/lib/adapters/date.adapter.mjs +41 -0
- package/esm2022/lib/adapters/index.mjs +4 -0
- package/esm2022/lib/adapters/time.adapter.mjs +36 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +5 -5
- package/esm2022/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +5 -5
- package/esm2022/lib/components/card/card-body.component.mjs +4 -4
- package/esm2022/lib/components/card/card-footer.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-img-top.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-subtitle.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-title.directive.mjs +4 -4
- package/esm2022/lib/components/card/card.component.mjs +4 -4
- package/esm2022/lib/components/card/card.module.mjs +5 -5
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +8 -8
- package/esm2022/lib/components/confirmation/confirmation.component.mjs +6 -6
- package/esm2022/lib/components/form-input/form-input.component.mjs +8 -8
- package/esm2022/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +5 -5
- package/esm2022/lib/components/internet-connection-status/internet-connection-status.component.mjs +4 -4
- package/esm2022/lib/components/loader-bar/loader-bar.component.mjs +5 -5
- package/esm2022/lib/components/loading/loading.component.mjs +4 -4
- package/esm2022/lib/components/modal/modal-close.directive.mjs +6 -6
- package/esm2022/lib/components/modal/modal-ref.service.mjs +4 -4
- package/esm2022/lib/components/modal/modal.component.mjs +6 -6
- package/esm2022/lib/components/password/password.component.mjs +14 -13
- package/esm2022/lib/components/toast/toast.component.mjs +4 -4
- package/esm2022/lib/components/toast-container/toast-container.component.mjs +4 -4
- package/esm2022/lib/directives/disabled.directive.mjs +30 -0
- package/esm2022/lib/directives/ellipsis.directive.mjs +7 -18
- package/esm2022/lib/directives/index.mjs +2 -1
- package/esm2022/lib/directives/loading.directive.mjs +5 -5
- package/esm2022/lib/directives/ngx-datatable-default.directive.mjs +7 -6
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +7 -6
- package/esm2022/lib/directives/visible.directive.mjs +6 -5
- package/esm2022/lib/handlers/document-dir.handler.mjs +5 -5
- package/esm2022/lib/handlers/error.handler.mjs +5 -5
- package/esm2022/lib/models/nav-item.mjs +1 -1
- package/esm2022/lib/services/abp-format-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/confirmation.service.mjs +5 -5
- package/esm2022/lib/services/create-error-component.service.mjs +5 -5
- package/esm2022/lib/services/nav-items.service.mjs +4 -4
- package/esm2022/lib/services/page-alert.service.mjs +5 -5
- package/esm2022/lib/services/router-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/tenant-resolve-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/toaster.service.mjs +5 -5
- package/esm2022/lib/services/unknown-status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/user-menu.service.mjs +4 -4
- package/esm2022/lib/theme-shared.module.mjs +35 -32
- package/esm2022/lib/utils/date-parser-formatter.mjs +6 -6
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/testing/lib/theme-shared-testing.module.mjs +5 -5
- package/fesm2022/abp-ng.theme.shared-testing.mjs +4 -4
- package/fesm2022/abp-ng.theme.shared-testing.mjs.map +1 -1
- package/fesm2022/abp-ng.theme.shared.mjs +352 -220
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/lib/adapters/index.d.ts +3 -0
- package/lib/components/checkbox/checkbox.component.d.ts +1 -2
- package/lib/components/form-input/form-input.component.d.ts +1 -2
- package/lib/components/password/password.component.d.ts +5 -3
- package/{extensions/lib → lib}/directives/disabled.directive.d.ts +1 -1
- package/lib/directives/ellipsis.directive.d.ts +1 -6
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/ngx-datatable-default.directive.d.ts +1 -1
- package/lib/directives/ngx-datatable-list.directive.d.ts +1 -1
- package/lib/directives/visible.directive.d.ts +1 -1
- package/lib/services/page-alert.service.d.ts +0 -1
- package/lib/theme-shared.module.d.ts +17 -16
- package/package.json +3 -9
- package/public-api.d.ts +1 -0
- package/esm2022/extensions/abp-ng.theme.shared-extensions.mjs +0 -5
- package/esm2022/extensions/lib/adapters/date-time.adapter.mjs +0 -44
- package/esm2022/extensions/lib/adapters/date.adapter.mjs +0 -41
- package/esm2022/extensions/lib/adapters/time.adapter.mjs +0 -36
- package/esm2022/extensions/lib/components/abstract-actions/abstract-actions.component.mjs +0 -25
- package/esm2022/extensions/lib/components/date-time-picker/date-time-picker.component.mjs +0 -109
- package/esm2022/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +0 -198
- package/esm2022/extensions/lib/components/extensible-form/extensible-form.component.mjs +0 -73
- package/esm2022/extensions/lib/components/extensible-table/extensible-table.component.mjs +0 -139
- package/esm2022/extensions/lib/components/grid-actions/grid-actions.component.mjs +0 -39
- package/esm2022/extensions/lib/components/page-toolbar/page-toolbar.component.mjs +0 -38
- package/esm2022/extensions/lib/constants/extra-properties.mjs +0 -2
- package/esm2022/extensions/lib/directives/disabled.directive.mjs +0 -29
- package/esm2022/extensions/lib/directives/prop-data.directive.mjs +0 -41
- package/esm2022/extensions/lib/enums/components.mjs +0 -2
- package/esm2022/extensions/lib/enums/props.enum.mjs +0 -2
- package/esm2022/extensions/lib/models/actions.mjs +0 -48
- package/esm2022/extensions/lib/models/entity-actions.mjs +0 -31
- package/esm2022/extensions/lib/models/entity-props.mjs +0 -44
- package/esm2022/extensions/lib/models/form-props.mjs +0 -76
- package/esm2022/extensions/lib/models/internal/object-extensions.mjs +0 -2
- package/esm2022/extensions/lib/models/object-extensions.mjs +0 -3
- package/esm2022/extensions/lib/models/props.mjs +0 -54
- package/esm2022/extensions/lib/models/toolbar-actions.mjs +0 -44
- package/esm2022/extensions/lib/pipes/create-injector.pipe.mjs +0 -36
- package/esm2022/extensions/lib/services/extensions.service.mjs +0 -24
- package/esm2022/extensions/lib/tokens/extensible-form-view-provider.token.mjs +0 -3
- package/esm2022/extensions/lib/tokens/extensions.token.mjs +0 -12
- package/esm2022/extensions/lib/ui-extensions.module.mjs +0 -98
- package/esm2022/extensions/lib/utils/actions.util.mjs +0 -9
- package/esm2022/extensions/lib/utils/enum.util.mjs +0 -42
- package/esm2022/extensions/lib/utils/factory.util.mjs +0 -4
- package/esm2022/extensions/lib/utils/form-props.util.mjs +0 -51
- package/esm2022/extensions/lib/utils/localization.util.mjs +0 -13
- package/esm2022/extensions/lib/utils/props.util.mjs +0 -14
- package/esm2022/extensions/lib/utils/state.util.mjs +0 -126
- package/esm2022/extensions/lib/utils/typeahead.util.mjs +0 -52
- package/esm2022/extensions/lib/utils/validation.util.mjs +0 -11
- package/esm2022/extensions/public-api.mjs +0 -31
- package/extensions/index.d.ts +0 -5
- package/extensions/lib/components/abstract-actions/abstract-actions.component.d.ts +0 -12
- package/extensions/lib/components/date-time-picker/date-time-picker.component.d.ts +0 -16
- package/extensions/lib/components/extensible-form/extensible-form-prop.component.d.ts +0 -43
- package/extensions/lib/components/extensible-form/extensible-form.component.d.ts +0 -25
- package/extensions/lib/components/extensible-table/extensible-table.component.d.ts +0 -38
- package/extensions/lib/components/grid-actions/grid-actions.component.d.ts +0 -13
- package/extensions/lib/components/page-toolbar/page-toolbar.component.d.ts +0 -20
- package/extensions/lib/constants/extra-properties.d.ts +0 -1
- package/extensions/lib/directives/prop-data.directive.d.ts +0 -19
- package/extensions/lib/enums/components.d.ts +0 -3
- package/extensions/lib/enums/props.enum.d.ts +0 -16
- package/extensions/lib/models/actions.d.ts +0 -38
- package/extensions/lib/models/entity-actions.d.ts +0 -24
- package/extensions/lib/models/entity-props.d.ts +0 -30
- package/extensions/lib/models/form-props.d.ts +0 -59
- package/extensions/lib/models/internal/object-extensions.d.ts +0 -86
- package/extensions/lib/models/object-extensions.d.ts +0 -2
- package/extensions/lib/models/props.d.ts +0 -45
- package/extensions/lib/models/toolbar-actions.d.ts +0 -38
- package/extensions/lib/pipes/create-injector.pipe.d.ts +0 -8
- package/extensions/lib/services/extensions.service.d.ts +0 -14
- package/extensions/lib/tokens/extensible-form-view-provider.token.d.ts +0 -5
- package/extensions/lib/tokens/extensions.token.d.ts +0 -20
- package/extensions/lib/ui-extensions.module.d.ts +0 -24
- package/extensions/lib/utils/actions.util.d.ts +0 -7
- package/extensions/lib/utils/enum.util.d.ts +0 -7
- package/extensions/lib/utils/factory.util.d.ts +0 -1
- package/extensions/lib/utils/form-props.util.d.ts +0 -3
- package/extensions/lib/utils/localization.util.d.ts +0 -3
- package/extensions/lib/utils/props.util.d.ts +0 -9
- package/extensions/lib/utils/state.util.d.ts +0 -5
- package/extensions/lib/utils/typeahead.util.d.ts +0 -11
- package/extensions/lib/utils/validation.util.d.ts +0 -3
- package/extensions/public-api.d.ts +0 -30
- package/fesm2022/abp-ng.theme.shared-extensions.mjs +0 -1474
- package/fesm2022/abp-ng.theme.shared-extensions.mjs.map +0 -1
- /package/{extensions/lib → lib}/adapters/date-time.adapter.d.ts +0 -0
- /package/{extensions/lib → lib}/adapters/date.adapter.d.ts +0 -0
- /package/{extensions/lib → lib}/adapters/time.adapter.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AbpValidators } from '@abp/ng.core';
|
|
2
|
-
export function getValidatorsFromProperty(property) {
|
|
3
|
-
const validators = [];
|
|
4
|
-
property.attributes.forEach(attr => {
|
|
5
|
-
if (attr.typeSimple && attr.typeSimple in AbpValidators) {
|
|
6
|
-
validators.push(AbpValidators[attr.typeSimple](attr.config));
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
return validators;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=data: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vcGVydHk6IE9iamVjdEV4dGVuc2lvbnMuRXh0ZW5zaW9uUHJvcGVydHlEdG8sXHJcbik6IFZhbGlkYXRvckZuW10ge1xyXG4gIGNvbnN0IHZhbGlkYXRvcnM6IFZhbGlkYXRvckZuW10gPSBbXTtcclxuXHJcbiAgcHJvcGVydHkuYXR0cmlidXRlcy5mb3JFYWNoKGF0dHIgPT4ge1xyXG4gICAgaWYgKGF0dHIudHlwZVNpbXBsZSAmJiBhdHRyLnR5cGVTaW1wbGUgaW4gQWJwVmFsaWRhdG9ycykge1xyXG4gICAgICB2YWxpZGF0b3JzLnB1c2goKEFicFZhbGlkYXRvcnMgYXMgYW55KVthdHRyLnR5cGVTaW1wbGVdKGF0dHIuY29uZmlnKSk7XHJcbiAgICB9XHJcbiAgfSk7XHJcblxyXG4gIHJldHVybiB2YWxpZGF0b3JzO1xyXG59XHJcbiJdfQ==
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './lib/adapters/date-time.adapter';
|
|
2
|
-
export * from './lib/adapters/date.adapter';
|
|
3
|
-
export * from './lib/adapters/time.adapter';
|
|
4
|
-
export * from './lib/components/date-time-picker/date-time-picker.component';
|
|
5
|
-
export * from './lib/components/extensible-form/extensible-form-prop.component';
|
|
6
|
-
export * from './lib/components/extensible-form/extensible-form.component';
|
|
7
|
-
export * from './lib/components/extensible-table/extensible-table.component';
|
|
8
|
-
export * from './lib/components/grid-actions/grid-actions.component';
|
|
9
|
-
export * from './lib/components/page-toolbar/page-toolbar.component';
|
|
10
|
-
export * from './lib/constants/extra-properties';
|
|
11
|
-
export * from './lib/directives/disabled.directive';
|
|
12
|
-
export * from './lib/directives/prop-data.directive';
|
|
13
|
-
export * from './lib/enums/props.enum';
|
|
14
|
-
export * from './lib/enums/components';
|
|
15
|
-
export { ActionList, } from './lib/models/actions';
|
|
16
|
-
export { EntityAction, EntityActionList, EntityActions, EntityActionsFactory, } from './lib/models/entity-actions';
|
|
17
|
-
export { EntityProp, EntityPropList, EntityProps, EntityPropsFactory, } from './lib/models/entity-props';
|
|
18
|
-
export { CreateFormPropsFactory, EditFormPropsFactory, FormProp, FormPropData, FormPropList, FormProps, } from './lib/models/form-props';
|
|
19
|
-
export * from './lib/models/object-extensions';
|
|
20
|
-
export { PropList, } from './lib/models/props';
|
|
21
|
-
export { ToolbarAction, ToolbarActionList, ToolbarActions, ToolbarActionsFactory, ToolbarComponent, } from './lib/models/toolbar-actions';
|
|
22
|
-
export * from './lib/pipes/create-injector.pipe';
|
|
23
|
-
export * from './lib/services/extensions.service';
|
|
24
|
-
export * from './lib/tokens/extensions.token';
|
|
25
|
-
export * from './lib/tokens/extensible-form-view-provider.token';
|
|
26
|
-
export * from './lib/ui-extensions.module';
|
|
27
|
-
export * from './lib/utils/actions.util';
|
|
28
|
-
export * from './lib/utils/form-props.util';
|
|
29
|
-
export * from './lib/utils/props.util';
|
|
30
|
-
export * from './lib/utils/state.util';
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3RoZW1lLXNoYXJlZC9leHRlbnNpb25zL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsOERBQThELENBQUM7QUFDN0UsY0FBYyxpRUFBaUUsQ0FBQztBQUNoRixjQUFjLDREQUE0RCxDQUFDO0FBQzNFLGNBQWMsOERBQThELENBQUM7QUFDN0UsY0FBYyxzREFBc0QsQ0FBQztBQUNyRSxjQUFjLHNEQUFzRCxDQUFDO0FBQ3JFLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyxxQ0FBcUMsQ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ztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdXRpbHMvcHJvcHMudXRpbCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3N0YXRlLnV0aWwnO1xyXG4iXX0=
|
package/extensions/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActionData, ActionList, InferredAction } from '../../models/actions';
|
|
3
|
-
import { InferredData, InferredRecord } from '../../models/toolbar-actions';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class AbstractActionsComponent<L extends ActionList<any, InferredAction<L>>> extends ActionData<InferredRecord<L>> {
|
|
6
|
-
readonly actionList: L;
|
|
7
|
-
readonly getInjected: InferredData<L>['getInjected'];
|
|
8
|
-
record: InferredData<L>['record'];
|
|
9
|
-
constructor(injector: Injector);
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractActionsComponent<any>, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractActionsComponent<any>, never, never, { "record": { "alias": "record"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { NgbInputDatepicker, NgbTimepicker } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
-
import { FormProp } from '../../models/form-props';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DateTimePickerComponent {
|
|
6
|
-
readonly cdRef: ChangeDetectorRef;
|
|
7
|
-
prop: FormProp;
|
|
8
|
-
meridian: boolean;
|
|
9
|
-
date: NgbInputDatepicker;
|
|
10
|
-
time: NgbTimepicker;
|
|
11
|
-
constructor(cdRef: ChangeDetectorRef);
|
|
12
|
-
setDate(datestr: string): void;
|
|
13
|
-
setTime(datestr: string): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "abp-date-time-picker", ["abpDateTimePicker"], { "prop": { "alias": "prop"; "required": false; }; "meridian": { "alias": "meridian"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ABP, ConfigStateService, TrackByService } from '@abp/ng.core';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, Injector, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { FormGroupDirective, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { FormProp } from '../../models/form-props';
|
|
6
|
-
import { PropData } from '../../models/props';
|
|
7
|
-
import { eThemeSharedComponents } from '../../enums/components';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
|
|
10
|
-
readonly cdRef: ChangeDetectorRef;
|
|
11
|
-
readonly track: TrackByService;
|
|
12
|
-
protected configState: ConfigStateService;
|
|
13
|
-
private injector;
|
|
14
|
-
data: PropData;
|
|
15
|
-
prop: FormProp;
|
|
16
|
-
first?: boolean;
|
|
17
|
-
private fieldRef;
|
|
18
|
-
injectorForCustomComponent?: Injector;
|
|
19
|
-
asterisk: string;
|
|
20
|
-
containerClassName: string;
|
|
21
|
-
options$: Observable<ABP.Option<any>[]>;
|
|
22
|
-
validators: ValidatorFn[];
|
|
23
|
-
readonly: boolean;
|
|
24
|
-
typeaheadModel: any;
|
|
25
|
-
passwordKey: eThemeSharedComponents;
|
|
26
|
-
private readonly form;
|
|
27
|
-
disabledFn: (data: PropData) => boolean;
|
|
28
|
-
get disabled(): boolean;
|
|
29
|
-
setTypeaheadValue(selectedOption: ABP.Option<string>): void;
|
|
30
|
-
search: (text$: Observable<string>) => Observable<any[]>;
|
|
31
|
-
typeaheadFormatter: (option: ABP.Option<any>) => string;
|
|
32
|
-
get meridian(): any;
|
|
33
|
-
get isInvalid(): boolean;
|
|
34
|
-
constructor(cdRef: ChangeDetectorRef, track: TrackByService, configState: ConfigStateService, groupDirective: FormGroupDirective, injector: Injector);
|
|
35
|
-
private getTypeaheadControls;
|
|
36
|
-
private setAsterisk;
|
|
37
|
-
ngAfterViewInit(): void;
|
|
38
|
-
getComponent(prop: FormProp): string;
|
|
39
|
-
getType(prop: FormProp): string;
|
|
40
|
-
ngOnChanges({ prop, data }: SimpleChanges): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleFormPropComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleFormPropComponent, "abp-extensible-form-prop", never, { "data": { "alias": "data"; "required": false; }; "prop": { "alias": "prop"; "required": false; }; "first": { "alias": "first"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TrackByService } from '@abp/ng.core';
|
|
2
|
-
import { ChangeDetectorRef, QueryList } from '@angular/core';
|
|
3
|
-
import { ControlContainer, UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { FormPropList, GroupedFormPropList } from '../../models/form-props';
|
|
5
|
-
import { ExtensionsService } from '../../services/extensions.service';
|
|
6
|
-
import { ExtensibleFormPropComponent } from './extensible-form-prop.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ExtensibleFormComponent<R = any> {
|
|
9
|
-
readonly cdRef: ChangeDetectorRef;
|
|
10
|
-
readonly track: TrackByService;
|
|
11
|
-
private container;
|
|
12
|
-
private extensions;
|
|
13
|
-
private identifier;
|
|
14
|
-
formProps: QueryList<ExtensibleFormPropComponent>;
|
|
15
|
-
set selectedRecord(record: R);
|
|
16
|
-
extraPropertiesKey: string;
|
|
17
|
-
groupedPropList: GroupedFormPropList;
|
|
18
|
-
record: R;
|
|
19
|
-
createGroupedList(propList: FormPropList<R>): GroupedFormPropList<any>;
|
|
20
|
-
get form(): UntypedFormGroup;
|
|
21
|
-
get extraProperties(): UntypedFormGroup;
|
|
22
|
-
constructor(cdRef: ChangeDetectorRef, track: TrackByService, container: ControlContainer, extensions: ExtensionsService, identifier: string);
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleFormComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleFormComponent<any>, "abp-extensible-form", ["abpExtensibleForm"], { "selectedRecord": { "alias": "selectedRecord"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ConfigStateService, ListService } from '@abp/ng.core';
|
|
2
|
-
import { EventEmitter, InjectFlags, InjectionToken, Injector, OnChanges, SimpleChanges, TemplateRef, TrackByFunction, Type } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { EntityActionList } from '../../models/entity-actions';
|
|
5
|
-
import { EntityProp, EntityPropList } from '../../models/entity-props';
|
|
6
|
-
import { PropData } from '../../models/props';
|
|
7
|
-
import { EntityPropTypeClass } from '../../tokens/extensions.token';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ExtensibleTableComponent<R = any> implements OnChanges {
|
|
10
|
-
private locale;
|
|
11
|
-
private config;
|
|
12
|
-
private injector;
|
|
13
|
-
protected _actionsText: string;
|
|
14
|
-
set actionsText(value: string);
|
|
15
|
-
get actionsText(): string;
|
|
16
|
-
data: R[];
|
|
17
|
-
list: ListService;
|
|
18
|
-
recordsTotal: number;
|
|
19
|
-
set actionsColumnWidth(width: number);
|
|
20
|
-
actionsTemplate?: TemplateRef<any>;
|
|
21
|
-
tableActivate: EventEmitter<any>;
|
|
22
|
-
getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags) => T;
|
|
23
|
-
hasAtLeastOnePermittedAction: boolean;
|
|
24
|
-
entityPropTypeClasses: EntityPropTypeClass;
|
|
25
|
-
readonly columnWidths: number[];
|
|
26
|
-
readonly propList: EntityPropList<R>;
|
|
27
|
-
readonly actionList: EntityActionList<R>;
|
|
28
|
-
readonly trackByFn: TrackByFunction<EntityProp<R>>;
|
|
29
|
-
constructor(locale: string, config: ConfigStateService, injector: Injector);
|
|
30
|
-
private setColumnWidths;
|
|
31
|
-
private getDate;
|
|
32
|
-
private getIcon;
|
|
33
|
-
private getEnum;
|
|
34
|
-
getContent(prop: EntityProp<R>, data: PropData): Observable<string>;
|
|
35
|
-
ngOnChanges({ data }: SimpleChanges): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleTableComponent<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleTableComponent<any>, "abp-extensible-table", ["abpExtensibleTable"], { "actionsText": { "alias": "actionsText"; "required": false; }; "data": { "alias": "data"; "required": false; }; "list": { "alias": "list"; "required": false; }; "recordsTotal": { "alias": "recordsTotal"; "required": false; }; "actionsColumnWidth": { "alias": "actionsColumnWidth"; "required": false; }; "actionsTemplate": { "alias": "actionsTemplate"; "required": false; }; }, { "tableActivate": "tableActivate"; }, never, never, false, never>;
|
|
38
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Injector, TrackByFunction } from '@angular/core';
|
|
2
|
-
import { EntityAction, EntityActionList } from '../../models/entity-actions';
|
|
3
|
-
import { AbstractActionsComponent } from '../abstract-actions/abstract-actions.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GridActionsComponent<R = any> extends AbstractActionsComponent<EntityActionList<R>> {
|
|
6
|
-
icon: string;
|
|
7
|
-
readonly index?: number;
|
|
8
|
-
text: string;
|
|
9
|
-
readonly trackByFn: TrackByFunction<EntityAction<R>>;
|
|
10
|
-
constructor(injector: Injector);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GridActionsComponent<any>, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridActionsComponent<any>, "abp-grid-actions", ["abpGridActions"], { "icon": { "alias": "icon"; "required": false; }; "index": { "alias": "index"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Injector, TrackByFunction } from '@angular/core';
|
|
2
|
-
import { HasCreateInjectorPipe, ToolbarAction, ToolbarActionDefault, ToolbarActionList, ToolbarComponent } from '../../models/toolbar-actions';
|
|
3
|
-
import { AbstractActionsComponent } from '../abstract-actions/abstract-actions.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PageToolbarComponent<R = any> extends AbstractActionsComponent<ToolbarActionList<R>> implements HasCreateInjectorPipe<R> {
|
|
6
|
-
readonly injector: Injector;
|
|
7
|
-
defaultBtnClass: string;
|
|
8
|
-
getData: () => {
|
|
9
|
-
readonly index?: number;
|
|
10
|
-
readonly record: R;
|
|
11
|
-
readonly getInjected: <T>(token: import("@angular/core").Type<T> | import("@angular/core").InjectionToken<T>, notFoundValue?: T, flags?: import("@angular/core").InjectOptions | import("@angular/core").InjectFlags) => T;
|
|
12
|
-
};
|
|
13
|
-
readonly trackByFn: TrackByFunction<ToolbarComponent<R>>;
|
|
14
|
-
constructor(injector: Injector);
|
|
15
|
-
asToolbarAction(value: ToolbarActionDefault): {
|
|
16
|
-
value: ToolbarAction;
|
|
17
|
-
};
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageToolbarComponent<any>, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageToolbarComponent<any>, "abp-page-toolbar", ["abpPageToolbar"], {}, {}, never, never, false, never>;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EXTRA_PROPERTIES_KEY = "extraProperties";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Injector, OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { PropData, PropList } from '../models/props';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PropDataDirective<L extends PropList<any>> extends PropData<InferredData<L>> implements OnChanges, OnDestroy {
|
|
5
|
-
private tempRef;
|
|
6
|
-
private vcRef;
|
|
7
|
-
propList?: L;
|
|
8
|
-
record: InferredData<L>['record'];
|
|
9
|
-
index?: number;
|
|
10
|
-
readonly getInjected: InferredData<L>['getInjected'];
|
|
11
|
-
constructor(tempRef: TemplateRef<any>, vcRef: ViewContainerRef, injector: Injector);
|
|
12
|
-
ngOnChanges(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PropDataDirective<any>, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PropDataDirective<any>, "[abpPropData]", ["abpPropData"], { "propList": { "alias": "abpPropDataFromList"; "required": false; }; "record": { "alias": "abpPropDataWithRecord"; "required": false; }; "index": { "alias": "abpPropDataAtIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
-
}
|
|
17
|
-
type InferredData<L> = PropData<InferredRecord<L>>;
|
|
18
|
-
type InferredRecord<L> = L extends PropList<infer R> ? R : never;
|
|
19
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const enum ePropType {
|
|
2
|
-
Boolean = "boolean",
|
|
3
|
-
Date = "date",
|
|
4
|
-
DateTime = "datetime",
|
|
5
|
-
Email = "email",
|
|
6
|
-
Enum = "enum",
|
|
7
|
-
Hidden = "hidden",
|
|
8
|
-
MultiSelect = "multiselect",
|
|
9
|
-
Number = "number",
|
|
10
|
-
Password = "password",
|
|
11
|
-
PasswordInputGroup = "passwordinputgroup",
|
|
12
|
-
String = "string",
|
|
13
|
-
Text = "text",
|
|
14
|
-
Time = "time",
|
|
15
|
-
Typeahead = "typeahead"
|
|
16
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { LinkedList } from '@abp/utils';
|
|
2
|
-
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
|
|
3
|
-
import { O } from 'ts-toolbelt';
|
|
4
|
-
export declare abstract class ActionList<R = any, A = Action<R>> extends LinkedList<A> {
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class ActionData<R = any> {
|
|
7
|
-
abstract getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectOptions | InjectFlags) => T;
|
|
8
|
-
index?: number;
|
|
9
|
-
abstract record: R;
|
|
10
|
-
get data(): ReadonlyActionData<R>;
|
|
11
|
-
}
|
|
12
|
-
export type ReadonlyActionData<R = any> = O.Readonly<Omit<ActionData<R>, 'data'>>;
|
|
13
|
-
export declare abstract class Action<R = any> {
|
|
14
|
-
readonly permission: string;
|
|
15
|
-
readonly visible: ActionPredicate<R>;
|
|
16
|
-
readonly action: ActionCallback<R>;
|
|
17
|
-
readonly btnClass?: string;
|
|
18
|
-
readonly btnStyle?: string;
|
|
19
|
-
constructor(permission: string, visible?: ActionPredicate<R>, action?: ActionCallback<R>, btnClass?: string, btnStyle?: string);
|
|
20
|
-
}
|
|
21
|
-
export type ActionCallback<T, R = any> = (data: Omit<ActionData<T>, 'data'>) => R;
|
|
22
|
-
export type ActionPredicate<T> = (data?: Omit<ActionData<T>, 'data'>) => boolean;
|
|
23
|
-
export declare abstract class ActionsFactory<C extends Actions<any>> {
|
|
24
|
-
protected abstract _ctor: Type<C>;
|
|
25
|
-
private contributorCallbacks;
|
|
26
|
-
get(name: string): C;
|
|
27
|
-
}
|
|
28
|
-
export declare abstract class Actions<L extends ActionList<any, InferredAction<L>>> {
|
|
29
|
-
private readonly callbackList;
|
|
30
|
-
protected abstract _ctor: Type<L>;
|
|
31
|
-
get actions(): L;
|
|
32
|
-
constructor(callbackList: ActionContributorCallback<L>[]);
|
|
33
|
-
addContributor(contributeCallback: ActionContributorCallback<L>): void;
|
|
34
|
-
clearContributors(): void;
|
|
35
|
-
}
|
|
36
|
-
export type ActionContributorCallbacks<L extends ActionList<any, InferredAction<L>>> = Record<string, ActionContributorCallback<L>[]>;
|
|
37
|
-
export type ActionContributorCallback<L extends ActionList<any, InferredAction<L>>> = (actionList: L) => any;
|
|
38
|
-
export type InferredAction<T> = T extends ActionList<any, infer U> ? U : T;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { O } from 'ts-toolbelt';
|
|
3
|
-
import { Action, ActionContributorCallback, ActionContributorCallbacks, ActionList, Actions, ActionsFactory } from './actions';
|
|
4
|
-
export declare class EntityActionList<R = any> extends ActionList<R, EntityAction<R>> {
|
|
5
|
-
}
|
|
6
|
-
export declare class EntityActions<R = any> extends Actions<EntityActionList<R>> {
|
|
7
|
-
protected _ctor: Type<EntityActionList<R>>;
|
|
8
|
-
}
|
|
9
|
-
export declare class EntityActionsFactory<R = any> extends ActionsFactory<EntityActions<R>> {
|
|
10
|
-
protected _ctor: Type<EntityActions<R>>;
|
|
11
|
-
}
|
|
12
|
-
export declare class EntityAction<R = any> extends Action<R> {
|
|
13
|
-
readonly text: string;
|
|
14
|
-
readonly icon: string;
|
|
15
|
-
readonly btnClass?: string;
|
|
16
|
-
readonly btnStyle?: string;
|
|
17
|
-
constructor(options: EntityActionOptions<R>);
|
|
18
|
-
static create<R = any>(options: EntityActionOptions<R>): EntityAction<R>;
|
|
19
|
-
static createMany<R = any>(arrayOfOptions: EntityActionOptions<R>[]): EntityAction<R>[];
|
|
20
|
-
}
|
|
21
|
-
export type EntityActionOptions<R = any> = O.Optional<O.Writable<EntityAction<R>>, 'permission' | 'visible' | 'icon'>;
|
|
22
|
-
export type EntityActionDefaults<R = any> = Record<string, EntityAction<R>[]>;
|
|
23
|
-
export type EntityActionContributorCallback<R = any> = ActionContributorCallback<EntityActionList<R>>;
|
|
24
|
-
export type EntityActionContributorCallbacks<R = any> = ActionContributorCallbacks<EntityActionList<R>>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ABP } from '@abp/ng.core';
|
|
2
|
-
import { Type } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { O } from 'ts-toolbelt';
|
|
5
|
-
import { ActionCallback } from './actions';
|
|
6
|
-
import { Prop, PropCallback, PropContributorCallback, PropContributorCallbacks, PropList, Props, PropsFactory } from './props';
|
|
7
|
-
export declare class EntityPropList<R = any> extends PropList<R, EntityProp<R>> {
|
|
8
|
-
}
|
|
9
|
-
export declare class EntityProps<R = any> extends Props<EntityPropList<R>> {
|
|
10
|
-
protected _ctor: Type<EntityPropList<R>>;
|
|
11
|
-
}
|
|
12
|
-
export declare class EntityPropsFactory<R = any> extends PropsFactory<EntityProps<R>> {
|
|
13
|
-
protected _ctor: Type<EntityProps<R>>;
|
|
14
|
-
}
|
|
15
|
-
export declare class EntityProp<R = any> extends Prop<R> {
|
|
16
|
-
readonly columnWidth: number | undefined;
|
|
17
|
-
readonly sortable: boolean;
|
|
18
|
-
readonly valueResolver: PropCallback<R, Observable<any>>;
|
|
19
|
-
readonly action?: ActionCallback<R>;
|
|
20
|
-
readonly component?: Type<any>;
|
|
21
|
-
readonly enumList?: Array<ABP.Option<any>>;
|
|
22
|
-
readonly tooltip?: string;
|
|
23
|
-
constructor(options: EntityPropOptions<R>);
|
|
24
|
-
static create<R = any>(options: EntityPropOptions<R>): EntityProp<R>;
|
|
25
|
-
static createMany<R = any>(arrayOfOptions: EntityPropOptions<R>[]): EntityProp<R>[];
|
|
26
|
-
}
|
|
27
|
-
export type EntityPropOptions<R = any> = O.Optional<O.Writable<EntityProp<R>>, 'permission' | 'visible' | 'displayName' | 'isExtra' | 'columnWidth' | 'sortable' | 'valueResolver' | 'action' | 'component' | 'enumList'>;
|
|
28
|
-
export type EntityPropDefaults<R = any> = Record<string, EntityProp<R>[]>;
|
|
29
|
-
export type EntityPropContributorCallback<R = any> = PropContributorCallback<EntityPropList<R>>;
|
|
30
|
-
export type EntityPropContributorCallbacks<R = any> = PropContributorCallbacks<EntityPropList<R>>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ABP } from '@abp/ng.core';
|
|
2
|
-
import { Injector, Type } from '@angular/core';
|
|
3
|
-
import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { O } from 'ts-toolbelt';
|
|
6
|
-
import { Prop, PropCallback, PropContributorCallback, PropContributorCallbacks, PropData, PropDisplayTextResolver, PropList, PropPredicate, Props, PropsFactory } from './props';
|
|
7
|
-
export declare class FormPropList<R = any> extends PropList<R, FormProp<R>> {
|
|
8
|
-
}
|
|
9
|
-
export declare class FormProps<R = any> extends Props<PropList<R, FormProp<R>>> {
|
|
10
|
-
protected _ctor: Type<FormPropList<R>>;
|
|
11
|
-
}
|
|
12
|
-
export interface FormPropGroup {
|
|
13
|
-
name: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class GroupedFormPropList<R = any> {
|
|
17
|
-
readonly items: GroupedFormPropItem[];
|
|
18
|
-
addItem(item: FormProp<R>): void;
|
|
19
|
-
}
|
|
20
|
-
export interface GroupedFormPropItem {
|
|
21
|
-
group?: FormPropGroup;
|
|
22
|
-
formPropList: FormPropList;
|
|
23
|
-
}
|
|
24
|
-
export declare class CreateFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
25
|
-
protected _ctor: Type<FormProps<R>>;
|
|
26
|
-
}
|
|
27
|
-
export declare class EditFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
28
|
-
protected _ctor: Type<FormProps<R>>;
|
|
29
|
-
}
|
|
30
|
-
export declare class FormProp<R = any> extends Prop<R> {
|
|
31
|
-
readonly validators: PropCallback<R, ValidatorFn[]>;
|
|
32
|
-
readonly asyncValidators: PropCallback<R, AsyncValidatorFn[]>;
|
|
33
|
-
readonly disabled: PropPredicate<R>;
|
|
34
|
-
readonly readonly: PropPredicate<R>;
|
|
35
|
-
readonly autocomplete: string;
|
|
36
|
-
readonly defaultValue: boolean | number | string | Date;
|
|
37
|
-
readonly options: PropCallback<R, Observable<ABP.Option<any>[]>> | undefined;
|
|
38
|
-
readonly id: string | undefined;
|
|
39
|
-
readonly template?: Type<any>;
|
|
40
|
-
readonly className?: string;
|
|
41
|
-
readonly group?: FormPropGroup | undefined;
|
|
42
|
-
readonly displayTextResolver?: PropDisplayTextResolver<R>;
|
|
43
|
-
readonly formText?: string;
|
|
44
|
-
constructor(options: FormPropOptions<R>);
|
|
45
|
-
static create<R = any>(options: FormPropOptions<R>): FormProp<R>;
|
|
46
|
-
static createMany<R = any>(arrayOfOptions: FormPropOptions<R>[]): FormProp<R>[];
|
|
47
|
-
}
|
|
48
|
-
export declare class FormPropData<R = any> extends PropData<R> {
|
|
49
|
-
readonly record: R;
|
|
50
|
-
getInjected: PropData<R>['getInjected'];
|
|
51
|
-
constructor(injector: Injector, record: R);
|
|
52
|
-
}
|
|
53
|
-
export type FormPropOptions<R = any> = O.Optional<O.Writable<FormProp<R>>, 'permission' | 'visible' | 'displayName' | 'isExtra' | 'validators' | 'asyncValidators' | 'disabled' | 'readonly' | 'autocomplete' | 'defaultValue' | 'options' | 'id' | 'displayTextResolver' | 'formText'>;
|
|
54
|
-
export type CreateFormPropDefaults<R = any> = Record<string, FormProp<R>[]>;
|
|
55
|
-
export type CreateFormPropContributorCallback<R = any> = PropContributorCallback<FormPropList<R>>;
|
|
56
|
-
export type CreateFormPropContributorCallbacks<R = any> = PropContributorCallbacks<FormPropList<R>>;
|
|
57
|
-
export type EditFormPropDefaults<R = any> = Record<string, FormProp<R>[]>;
|
|
58
|
-
export type EditFormPropContributorCallback<R = any> = PropContributorCallback<FormPropList<R>>;
|
|
59
|
-
export type EditFormPropContributorCallbacks<R = any> = PropContributorCallbacks<FormPropList<R>>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ePropType } from '../../enums/props.enum';
|
|
2
|
-
import { EntityPropList } from '../entity-props';
|
|
3
|
-
import { FormPropList } from '../form-props';
|
|
4
|
-
import { PropContributorCallbacks } from '../props';
|
|
5
|
-
export type DisplayNameGeneratorFn = (displayName: LocalizableStringDto, fallback: LocalizableStringDto) => string | undefined;
|
|
6
|
-
export type EntityExtensions = Record<string, EntityExtensionDto>;
|
|
7
|
-
export interface EntityExtensionDto {
|
|
8
|
-
properties: EntityExtensionProperties;
|
|
9
|
-
configuration: Record<string, object>;
|
|
10
|
-
}
|
|
11
|
-
export type EntityExtensionProperties = Record<string, ExtensionPropertyDto>;
|
|
12
|
-
export interface ExtensionEnumDto {
|
|
13
|
-
fields: ExtensionEnumFieldDto[];
|
|
14
|
-
localizationResource?: string;
|
|
15
|
-
transformed?: any;
|
|
16
|
-
}
|
|
17
|
-
export interface ExtensionEnumFieldDto {
|
|
18
|
-
name?: string;
|
|
19
|
-
value: any;
|
|
20
|
-
}
|
|
21
|
-
export interface ExtensionPropertyApiCreateDto {
|
|
22
|
-
isAvailable: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface ExtensionPropertyApiDto {
|
|
25
|
-
onGet: ExtensionPropertyApiGetDto;
|
|
26
|
-
onCreate: ExtensionPropertyApiCreateDto;
|
|
27
|
-
onUpdate: ExtensionPropertyApiUpdateDto;
|
|
28
|
-
}
|
|
29
|
-
export interface ExtensionPropertyApiGetDto {
|
|
30
|
-
isAvailable: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface ExtensionPropertyApiUpdateDto {
|
|
33
|
-
isAvailable: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface ExtensionPropertyAttributeDto {
|
|
36
|
-
typeSimple?: string;
|
|
37
|
-
config: Record<string, any>;
|
|
38
|
-
}
|
|
39
|
-
export interface ExtensionPropertyDto {
|
|
40
|
-
type?: string;
|
|
41
|
-
typeSimple?: ePropType;
|
|
42
|
-
displayName: LocalizableStringDto;
|
|
43
|
-
api: ExtensionPropertyApiDto;
|
|
44
|
-
ui: ExtensionPropertyUiDto;
|
|
45
|
-
attributes: ExtensionPropertyAttributeDto[];
|
|
46
|
-
configuration: Record<string, any>;
|
|
47
|
-
defaultValue: any;
|
|
48
|
-
formText?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ExtensionPropertyUiDto {
|
|
51
|
-
onTable: ExtensionPropertyUiTableDto;
|
|
52
|
-
onCreateForm: ExtensionPropertyUiFormDto;
|
|
53
|
-
onEditForm: ExtensionPropertyUiFormDto;
|
|
54
|
-
lookup?: ExtensionPropertyUiLookupDto;
|
|
55
|
-
}
|
|
56
|
-
export interface ExtensionPropertyUiFormDto {
|
|
57
|
-
isVisible: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface ExtensionPropertyUiLookupDto {
|
|
60
|
-
url?: string;
|
|
61
|
-
resultListPropertyName?: string;
|
|
62
|
-
displayPropertyName?: string;
|
|
63
|
-
valuePropertyName?: string;
|
|
64
|
-
filterParamName?: string;
|
|
65
|
-
}
|
|
66
|
-
export interface ExtensionPropertyUiTableDto {
|
|
67
|
-
isSortable?: boolean;
|
|
68
|
-
isVisible: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface LocalizableStringDto {
|
|
71
|
-
name?: string;
|
|
72
|
-
resource?: string;
|
|
73
|
-
}
|
|
74
|
-
export interface ModuleExtensionDto {
|
|
75
|
-
entities: Record<string, EntityExtensionDto>;
|
|
76
|
-
configuration: Record<string, object>;
|
|
77
|
-
}
|
|
78
|
-
export interface ObjectExtensionsDto {
|
|
79
|
-
modules: Record<string, ModuleExtensionDto>;
|
|
80
|
-
enums: Record<string, ExtensionEnumDto>;
|
|
81
|
-
}
|
|
82
|
-
export interface PropContributors<T = any> {
|
|
83
|
-
prop: PropContributorCallbacks<EntityPropList<T>>;
|
|
84
|
-
createForm: PropContributorCallbacks<FormPropList<T>>;
|
|
85
|
-
editForm: PropContributorCallbacks<FormPropList<T>>;
|
|
86
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { LinkedList } from '@abp/utils';
|
|
2
|
-
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
|
|
3
|
-
import { O } from 'ts-toolbelt';
|
|
4
|
-
import { ePropType } from '../enums/props.enum';
|
|
5
|
-
export declare abstract class PropList<R = any, A = Prop<R>> extends LinkedList<A> {
|
|
6
|
-
}
|
|
7
|
-
export declare abstract class PropData<R = any> {
|
|
8
|
-
abstract getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, options?: InjectOptions | InjectFlags) => T;
|
|
9
|
-
index?: number;
|
|
10
|
-
abstract record: R;
|
|
11
|
-
get data(): ReadonlyPropData<R>;
|
|
12
|
-
}
|
|
13
|
-
export type ReadonlyPropData<R = any> = O.Readonly<Omit<PropData<R>, 'data'>>;
|
|
14
|
-
export declare abstract class Prop<R = any> {
|
|
15
|
-
readonly type: ePropType;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly displayName: string;
|
|
18
|
-
readonly permission: string;
|
|
19
|
-
readonly visible: PropPredicate<R>;
|
|
20
|
-
readonly isExtra: boolean;
|
|
21
|
-
readonly template?: Type<any>;
|
|
22
|
-
readonly className?: string;
|
|
23
|
-
readonly formText?: string;
|
|
24
|
-
readonly displayTextResolver?: PropDisplayTextResolver<R>;
|
|
25
|
-
constructor(type: ePropType, name: string, displayName: string, permission: string, visible?: PropPredicate<R>, isExtra?: boolean, template?: Type<any>, className?: string, formText?: string, displayTextResolver?: PropDisplayTextResolver<R>);
|
|
26
|
-
}
|
|
27
|
-
export type PropCallback<T, R = any> = (data: Omit<PropData<T>, 'data'>, auxData?: any) => R;
|
|
28
|
-
export type PropPredicate<T> = (data?: Omit<PropData<T>, 'data'>, auxData?: any) => boolean;
|
|
29
|
-
export type PropDisplayTextResolver<T> = (data?: Omit<PropData<T>, 'data'>) => string;
|
|
30
|
-
export declare abstract class PropsFactory<C extends Props<any>> {
|
|
31
|
-
protected abstract _ctor: Type<C>;
|
|
32
|
-
private contributorCallbacks;
|
|
33
|
-
get(name: string): C;
|
|
34
|
-
}
|
|
35
|
-
export declare abstract class Props<L extends PropList<any, InferredProp<L>>> {
|
|
36
|
-
private readonly callbackList;
|
|
37
|
-
protected abstract _ctor: Type<L>;
|
|
38
|
-
get props(): L;
|
|
39
|
-
constructor(callbackList: PropContributorCallback<L>[]);
|
|
40
|
-
addContributor(contributeCallback: PropContributorCallback<L>): void;
|
|
41
|
-
clearContributors(): void;
|
|
42
|
-
}
|
|
43
|
-
export type PropContributorCallbacks<L extends PropList<any, InferredProp<L>>> = Record<string, PropContributorCallback<L>[]>;
|
|
44
|
-
export type PropContributorCallback<L extends PropList<any, InferredProp<L>>> = (propList: L) => any;
|
|
45
|
-
export type InferredProp<T> = T extends PropList<any, infer U> ? U : T;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Injector, Type } from '@angular/core';
|
|
2
|
-
import { O } from 'ts-toolbelt';
|
|
3
|
-
import { Action, ActionContributorCallback, ActionContributorCallbacks, ActionData, ActionList, Actions, ActionsFactory, ReadonlyActionData } from './actions';
|
|
4
|
-
export declare class ToolbarActionList<R = any> extends ActionList<R, ToolbarActionDefault<R>> {
|
|
5
|
-
}
|
|
6
|
-
export declare class ToolbarActions<R = any> extends Actions<ToolbarActionList<R>> {
|
|
7
|
-
protected _ctor: Type<ToolbarActionList<R>>;
|
|
8
|
-
}
|
|
9
|
-
export declare class ToolbarActionsFactory<R = any> extends ActionsFactory<ToolbarActions<R>> {
|
|
10
|
-
protected _ctor: Type<ToolbarActions<R>>;
|
|
11
|
-
}
|
|
12
|
-
export declare class ToolbarAction<R = any> extends Action<R> {
|
|
13
|
-
readonly text: string;
|
|
14
|
-
readonly icon: string;
|
|
15
|
-
readonly btnClass?: string;
|
|
16
|
-
constructor(options: ToolbarActionOptions<R>);
|
|
17
|
-
static create<R = any>(options: ToolbarActionOptions<R>): ToolbarAction<R>;
|
|
18
|
-
static createMany<R = any>(arrayOfOptions: ToolbarActionOptions<R>[]): ToolbarAction<R>[];
|
|
19
|
-
}
|
|
20
|
-
export declare class ToolbarComponent<R = any> extends Action<R> {
|
|
21
|
-
readonly component: Type<any>;
|
|
22
|
-
constructor(options: ToolbarComponentOptions<R>);
|
|
23
|
-
static create<R = any>(options: ToolbarComponentOptions<R>): ToolbarComponent<R>;
|
|
24
|
-
static createMany<R = any>(arrayOfOptions: ToolbarComponentOptions<R>[]): ToolbarComponent<R>[];
|
|
25
|
-
}
|
|
26
|
-
export type ToolbarActionOptions<R = any> = O.Optional<O.Writable<ToolbarAction<R>>, 'permission' | 'visible' | 'icon' | 'btnClass'>;
|
|
27
|
-
export type ToolbarComponentOptions<R = any> = O.Optional<O.Writable<ToolbarComponent<R>>, 'permission' | 'visible' | 'action'>;
|
|
28
|
-
export type ToolbarActionDefault<R = any> = ToolbarAction<R> | ToolbarComponent<R>;
|
|
29
|
-
export type ToolbarActionDefaults<R = any> = Record<string, Array<ToolbarActionDefault<R>>>;
|
|
30
|
-
export type ToolbarActionContributorCallback<R = any> = ActionContributorCallback<ToolbarActionList<R>>;
|
|
31
|
-
export type ToolbarActionContributorCallbacks<R = any> = ActionContributorCallbacks<ToolbarActionList<R>>;
|
|
32
|
-
export type InferredData<L> = ActionData<InferredRecord<L>>;
|
|
33
|
-
export type InferredRecord<L> = L extends ActionList<infer R> ? R : any;
|
|
34
|
-
export interface HasCreateInjectorPipe<R> {
|
|
35
|
-
getData: () => ReadonlyActionData<R>;
|
|
36
|
-
injector: Injector;
|
|
37
|
-
getInjected: InferredData<ToolbarActionList<R>>['getInjected'];
|
|
38
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Injector, PipeTransform } from '@angular/core';
|
|
2
|
-
import { HasCreateInjectorPipe, ToolbarComponent } from '../models/toolbar-actions';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CreateInjectorPipe<R> implements PipeTransform {
|
|
5
|
-
transform(_: any, action: ToolbarComponent<R>, context: HasCreateInjectorPipe<R>): Injector;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CreateInjectorPipe<any>, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CreateInjectorPipe<any>, "createInjector", false>;
|
|
8
|
-
}
|