@coolon/angular-ui-powerups 16.1.0-aplpha.17 → 16.1.0-aplpha.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/activities/activities.scss +5 -3
- package/assets/activities/input-activities.scss +14 -6
- package/assets/draw.scss +20 -0
- package/assets/form.scss +74 -27
- package/assets/icons.scss +1 -0
- package/assets/layout.scss +3 -0
- package/assets/styles.scss +2 -0
- package/assets/table.scss +41 -19
- package/assets/tabs.scss +15 -5
- package/esm2022/lib/animations/slide-animations.mjs +15 -10
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +115 -0
- package/esm2022/lib/components/commands/command/command.component.mjs +34 -29
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +11 -3
- package/esm2022/lib/components/commands/command-face.mjs +12 -11
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +31 -8
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +25 -23
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +11 -20
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +12 -7
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +11 -20
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +8 -6
- package/esm2022/lib/components/commands/separator.component.mjs +6 -12
- package/esm2022/lib/components/components.module.mjs +55 -30
- package/esm2022/lib/components/disposable-component.mjs +32 -7
- package/esm2022/lib/components/exports.mjs +14 -5
- package/esm2022/lib/components/file/file-download/file-download.component.mjs +78 -0
- package/esm2022/lib/components/forms/abstract-input.component.mjs +55 -12
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +8 -6
- package/esm2022/lib/components/forms/form-field.mjs +2 -0
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +84 -9
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +40 -3
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +11 -10
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +30 -11
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +8 -4
- package/esm2022/lib/components/icon/icon.component.mjs +7 -4
- package/esm2022/lib/components/loadable-component.mjs +36 -8
- package/esm2022/lib/components/resize-aware.component.mjs +61 -24
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +5 -7
- package/esm2022/lib/components/tables/abstract-table-model.mjs +112 -63
- package/esm2022/lib/components/tables/abstract-table.component.mjs +19 -5
- package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +16 -6
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +19 -0
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +35 -13
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +2 -2
- package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -1
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +4 -2
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +16 -2
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +38 -0
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +7 -0
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +23 -5
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +7 -4
- package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +2 -0
- package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +153 -0
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +150 -40
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +45 -0
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +71 -0
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +30 -0
- package/esm2022/lib/components/tables/table/table-model.mjs +12 -3
- package/esm2022/lib/components/tables/table/table.component.mjs +39 -61
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +5 -4
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +12 -5
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +4 -7
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/directives/command.directive.mjs +18 -7
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +2 -1
- package/esm2022/lib/directives/highlight.pipe.mjs +9 -8
- package/esm2022/lib/directives/resize-observer.directive.mjs +40 -0
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +6 -7
- package/esm2022/lib/interaction/activity-context.mjs +4 -0
- package/esm2022/lib/interaction/activity.mjs +20 -21
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +11 -8
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +1 -41
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +28 -16
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +8 -2
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +46 -15
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +53 -15
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +10 -10
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +55 -0
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +54 -0
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -8
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -8
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +7 -9
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +4 -4
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +21 -5
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +4 -2
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +8 -4
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +134 -0
- package/esm2022/lib/interaction/confirm.mjs +26 -2
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +6 -1
- package/esm2022/lib/interaction/interaction-context-provider.mjs +17 -0
- package/esm2022/lib/interaction/interaction-context.mjs +3 -2
- package/esm2022/lib/interaction/interaction.module.mjs +22 -14
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
- package/esm2022/lib/interaction/services/interaction.service.mjs +18 -6
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -2
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +23 -4
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -5
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +7 -9
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +6 -5
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +3 -6
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +2 -2
- package/esm2022/lib/place/place-auth-service.mjs +7 -6
- package/esm2022/lib/place/place-component.mjs +29 -19
- package/esm2022/lib/place/place-definition.mjs +15 -4
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place-router.mjs +27 -23
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +1 -5
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +54 -50
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- package/esm2022/lib/services/exports.mjs +2 -1
- package/esm2022/lib/services/loading-monitor.mjs +81 -0
- package/fesm2022/coolon-angular-ui-powerups.mjs +2534 -1084
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +1 -0
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +30 -0
- package/lib/components/commands/command/command.component.d.ts +8 -8
- package/lib/components/commands/command-face/command-face.component.d.ts +2 -0
- package/lib/components/commands/command-face.d.ts +8 -9
- package/lib/components/commands/group/popup-aware.component.d.ts +9 -4
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +4 -4
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +2 -4
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -0
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +2 -4
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/commands/separator.component.d.ts +2 -4
- package/lib/components/components.module.d.ts +60 -55
- package/lib/components/disposable-component.d.ts +16 -3
- package/lib/components/exports.d.ts +13 -4
- package/lib/components/file/file-download/file-download.component.d.ts +43 -0
- package/lib/components/forms/abstract-input.component.d.ts +13 -5
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +2 -0
- package/lib/components/forms/form-field.d.ts +5 -0
- package/lib/components/forms/number-input/number-input.component.d.ts +16 -4
- package/lib/components/forms/password-input/password-input.component.d.ts +7 -1
- package/lib/components/forms/search-input/search-input.component.d.ts +10 -0
- package/lib/components/forms/select-input/select-input.component.d.ts +4 -3
- package/lib/components/forms/string-input/string-input.component.d.ts +7 -1
- package/lib/components/forms/text-input/text-input.component.d.ts +3 -0
- package/lib/components/loadable-component.d.ts +10 -5
- package/lib/components/resize-aware.component.d.ts +24 -5
- package/lib/components/switch-case/switch-case.component.d.ts +2 -3
- package/lib/components/tables/abstract-table-model.d.ts +50 -25
- package/lib/components/tables/abstract-table.component.d.ts +4 -3
- package/lib/components/tables/column/column-manager.d.ts +19 -0
- package/lib/components/tables/column/column-model.d.ts +7 -3
- package/lib/components/tables/column/column-order-manager.d.ts +20 -0
- package/lib/components/tables/column/custom-template-column-model.d.ts +3 -2
- package/lib/components/tables/column/custom-value-column-model.d.ts +3 -2
- package/lib/components/tables/column/editor-controls-column-model.d.ts +3 -2
- package/lib/components/tables/column/list-propery-column-model.d.ts +3 -2
- package/lib/components/tables/column/property-column-model.d.ts +3 -2
- package/lib/components/tables/column/selection-column-model.d.ts +10 -4
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/tables/editor/edit-session.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
- package/lib/components/tables/footer/footer-row-model.d.ts +22 -0
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +6 -0
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +20 -12
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +7 -0
- package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +42 -0
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +40 -16
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +2 -3
- package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +19 -0
- package/lib/components/tables/renderer/{table-more-menu/table-more-menu.component.d.ts → table-custom-more-menu/table-custom-more-menu.component.d.ts} +8 -7
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +11 -0
- package/lib/components/tables/table/table-model.d.ts +4 -4
- package/lib/components/tables/table/table.component.d.ts +14 -10
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -2
- package/lib/components/tables/tree-table/tree-table-component.d.ts +3 -0
- package/lib/components/tables/tree-table/tree-table-model.d.ts +4 -5
- package/lib/directives/command.directive.d.ts +6 -4
- package/lib/directives/exports.d.ts +1 -0
- package/lib/directives/resize-observer.directive.d.ts +16 -0
- package/lib/interaction/abstract-interaction-context.d.ts +1 -1
- package/lib/interaction/activity-context.d.ts +9 -0
- package/lib/interaction/activity.d.ts +7 -7
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +2 -1
- package/lib/interaction/components/abstract-dialog.component.d.ts +5 -14
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +12 -9
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +2 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +10 -4
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -3
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +6 -1
- package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +17 -0
- package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +15 -0
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +5 -3
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +53 -0
- package/lib/interaction/confirm.d.ts +4 -0
- package/lib/interaction/exports.d.ts +5 -0
- package/lib/interaction/interaction-context-provider.d.ts +11 -0
- package/lib/interaction/interaction-context.d.ts +7 -1
- package/lib/interaction/interaction.module.d.ts +35 -33
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +2 -2
- package/lib/interaction/services/interaction.service.d.ts +2 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +3 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -4
- package/lib/place/place-auth-service.d.ts +4 -4
- package/lib/place/place-component.d.ts +7 -5
- package/lib/place/place-definition.d.ts +2 -0
- package/lib/place/place-router.d.ts +6 -2
- package/lib/place/place.module.d.ts +4 -5
- package/lib/services/exports.d.ts +1 -0
- package/lib/services/loading-monitor.d.ts +29 -0
- package/package.json +6 -4
- package/esm2022/lib/components/tables/column/column-list-model.mjs +0 -44
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +0 -33
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +0 -60
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -84
- package/lib/components/tables/column/column-list-model.d.ts +0 -13
- package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +0 -15
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +0 -28
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
2
|
import { Command, Disposable, ValueModel } from "@coolon/pectin";
|
|
3
|
-
import {
|
|
4
|
-
import { ActivityActionsComponent } from "./components/activity-actions/activity-actions.component";
|
|
3
|
+
import { LoadableComponent } from "../components/loadable-component";
|
|
5
4
|
import { InteractionContext } from "./interaction-context";
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
7
|
type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
|
-
export declare class Activity<D, R, E = any> extends
|
|
8
|
+
export declare class Activity<D, R, E = any> extends LoadableComponent {
|
|
9
|
+
#private;
|
|
10
10
|
readonly activityData: D;
|
|
11
11
|
private readonly activityReadyListeners;
|
|
12
12
|
private readonly _busy$;
|
|
13
13
|
private _focused$;
|
|
14
14
|
private _activityContext;
|
|
15
15
|
private readonly _ready$;
|
|
16
|
-
protected activityActions: ActivityActionsComponent;
|
|
17
16
|
accessor confirmCommand: Command<unknown>;
|
|
18
17
|
accessor cancelCommand: Command<unknown>;
|
|
19
18
|
private _interactionContext;
|
|
@@ -21,8 +20,6 @@ export declare class Activity<D, R, E = any> extends DisposableComponent impleme
|
|
|
21
20
|
get isFocused(): boolean;
|
|
22
21
|
constructor();
|
|
23
22
|
initialise(nestedInteractionContext: InteractionContext, activityContext: Activity.Context<R, E>): void;
|
|
24
|
-
ngAfterViewInit(): void;
|
|
25
|
-
protected initialiseActivityAction(activityActions: ActivityActionsComponent): void;
|
|
26
23
|
get interactionContext(): InteractionContext;
|
|
27
24
|
done(result?: R): void;
|
|
28
25
|
cancel(error?: E): void;
|
|
@@ -40,9 +37,12 @@ export declare class Activity<D, R, E = any> extends DisposableComponent impleme
|
|
|
40
37
|
}): Disposable;
|
|
41
38
|
get ready$(): ValueModel<boolean>;
|
|
42
39
|
get busy$(): ValueModel<boolean>;
|
|
40
|
+
get disableClose$(): ValueModel<boolean>;
|
|
43
41
|
get focused$(): ValueModel<boolean>;
|
|
44
42
|
busyWhile(busyModel: ValueModel<boolean>): void;
|
|
45
43
|
isBusy(): boolean;
|
|
44
|
+
get disableClose(): boolean;
|
|
45
|
+
disableCloseWhile(condition: ValueModel<boolean>): void;
|
|
46
46
|
isInitialised(): boolean;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<Activity<any, any, any>, never>;
|
|
48
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<Activity<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
@@ -2,8 +2,9 @@ import { CommandFace } from '../../components/commands/command-face';
|
|
|
2
2
|
import { Confirm } from '../confirm';
|
|
3
3
|
import { AbstractDialogComponent } from './abstract-dialog.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
|
|
5
|
+
export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<Confirm, D, R, E> {
|
|
6
6
|
readonly cancelFace: CommandFace;
|
|
7
|
+
confirmClass: string;
|
|
7
8
|
constructor(config: Confirm);
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfirmDialogComponent<any, any, any>, never>;
|
|
9
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractConfirmDialogComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { CommandFace } from '../../components/commands/command-face';
|
|
3
2
|
import { Activity } from '../activity';
|
|
4
3
|
import { Alert } from '../alert';
|
|
5
|
-
import { Confirm } from '../confirm';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare const ALERT_CONFIG: InjectionToken<any>;
|
|
8
|
-
export declare class AbstractDialogComponent<D, R, E = any> extends Activity<D, R, E> {
|
|
9
|
-
protected readonly config:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly color?: 'primary' | 'accent' | 'warn';
|
|
14
|
-
constructor(config: Alert | Confirm);
|
|
15
|
-
getConfig(): Alert | Confirm;
|
|
16
|
-
protected checkColor(rawColor: string): 'primary' | 'accent' | 'warn';
|
|
17
|
-
isDestructive(): boolean;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDialogComponent<any, any, any>, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDialogComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
6
|
+
export declare class AbstractDialogComponent<C extends Alert, D, R, E = any> extends Activity<D, R, E> {
|
|
7
|
+
protected readonly config: C;
|
|
8
|
+
constructor(config: C);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDialogComponent<any, any, any, any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDialogComponent<any, any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
20
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
2
1
|
import { Command } from '@coolon/pectin';
|
|
3
2
|
import { Enum } from 'typescript-string-enums';
|
|
4
3
|
import { CommandFace } from '../../../components/commands/command-face';
|
|
5
4
|
import { CommandComponent } from "../../../components/commands/command/command.component";
|
|
6
5
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
6
|
+
import { ActivityContext } from "../../activity-context";
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @example
|
|
@@ -27,7 +27,6 @@ import * as i0 from "@angular/core";
|
|
|
27
27
|
* </aup-activity-actions>
|
|
28
28
|
*/
|
|
29
29
|
export declare class ActivityActionsComponent extends DisposableComponent {
|
|
30
|
-
private readonly cdr;
|
|
31
30
|
protected confirmCommandComponent: CommandComponent;
|
|
32
31
|
protected cancelCommandComponent: CommandComponent;
|
|
33
32
|
/**
|
|
@@ -47,17 +46,15 @@ export declare class ActivityActionsComponent extends DisposableComponent {
|
|
|
47
46
|
set style(style: ActivityActionsComponent.Style);
|
|
48
47
|
layout: ActivityActionsComponent.Layout;
|
|
49
48
|
align: ActivityActionsComponent.Align;
|
|
50
|
-
|
|
49
|
+
alignContent: ActivityActionsComponent.AlignContent;
|
|
50
|
+
protected readonly activityContext: ActivityContext;
|
|
51
|
+
constructor();
|
|
51
52
|
hasConfirmFace(): boolean;
|
|
52
53
|
hasCancelFace(): boolean;
|
|
53
|
-
initCommands(activity: {
|
|
54
|
-
confirmCommand: Command<unknown>;
|
|
55
|
-
cancelCommand: Command<unknown>;
|
|
56
|
-
}): void;
|
|
57
54
|
focusConfirm(): void;
|
|
58
55
|
focusCancel(): void;
|
|
59
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityActionsComponent, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityActionsComponent, "aup-activity-actions", never, { "confirmCommand": { "alias": "confirmCommand"; "required": false; }; "cancelCommand": { "alias": "cancelCommand"; "required": false; }; "faces": { "alias": "faces"; "required": false; }; "confirmFace": { "alias": "confirmFace"; "required": false; }; "cancelFace": { "alias": "cancelFace"; "required": false; }; "style": { "alias": "style"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityActionsComponent, "aup-activity-actions", never, { "confirmCommand": { "alias": "confirmCommand"; "required": false; }; "cancelCommand": { "alias": "cancelCommand"; "required": false; }; "faces": { "alias": "faces"; "required": false; }; "confirmFace": { "alias": "confirmFace"; "required": false; }; "cancelFace": { "alias": "cancelFace"; "required": false; }; "style": { "alias": "style"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "align": { "alias": "align"; "required": false; }; "alignContent": { "alias": "alignContent"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
61
58
|
}
|
|
62
59
|
export declare namespace ActivityActionsComponent {
|
|
63
60
|
const Layout: {
|
|
@@ -67,10 +64,16 @@ export declare namespace ActivityActionsComponent {
|
|
|
67
64
|
type Layout = Enum<typeof Layout>;
|
|
68
65
|
const Align: {
|
|
69
66
|
START: "start";
|
|
70
|
-
END: "end";
|
|
71
67
|
STRETCH: "stretch";
|
|
68
|
+
END: "end";
|
|
72
69
|
};
|
|
73
70
|
type Align = Enum<typeof Align>;
|
|
71
|
+
const AlignContent: {
|
|
72
|
+
START: "start";
|
|
73
|
+
CENTER: "center";
|
|
74
|
+
END: "end";
|
|
75
|
+
};
|
|
76
|
+
type AlignContent = Enum<typeof AlignContent>;
|
|
74
77
|
interface Style {
|
|
75
78
|
confirm: CommandFace;
|
|
76
79
|
cancel: CommandFace;
|
|
@@ -2,6 +2,7 @@ import { DisposableComponent } from '../../../components/disposable-component';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ActivityBodyComponent extends DisposableComponent {
|
|
4
4
|
fullWidth: boolean;
|
|
5
|
+
fullHeight: boolean;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityBodyComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityBodyComponent, "aup-activity-body", never, { "fullWidth": { "alias": "fullWidth"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityBodyComponent, "aup-activity-body", never, { "fullWidth": { "alias": "fullWidth"; "required": false; }; "fullHeight": { "alias": "fullHeight"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
7
8
|
}
|
|
@@ -5,6 +5,7 @@ import { PlaceRouter } from "../../../place/place-router";
|
|
|
5
5
|
import { AbstractInteractionContext } from "../../abstract-interaction-context";
|
|
6
6
|
import { Activity } from "../../activity";
|
|
7
7
|
import { ActivityRef } from "../../activity-ref";
|
|
8
|
+
import { InteractionContext } from "../../interaction-context";
|
|
8
9
|
import { InteractionService } from "../../services/interaction.service";
|
|
9
10
|
import { ActivityOutletComponent } from "./activity-outlet/activity-outlet.component";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
@@ -14,6 +15,7 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
14
15
|
tabs: MatTabGroup;
|
|
15
16
|
activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;
|
|
16
17
|
activityRefs: ActivityRef<any, any, any>[];
|
|
18
|
+
animationDuration: string;
|
|
17
19
|
private _identifier;
|
|
18
20
|
private _deferredCleanUp;
|
|
19
21
|
private interactionServiceApi;
|
|
@@ -26,6 +28,7 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
26
28
|
readonly busy: DelegatingValueModel<boolean>;
|
|
27
29
|
readonly syncTabsJob: () => void;
|
|
28
30
|
readonly stable$: BooleanValueModelChain;
|
|
31
|
+
private wasActive;
|
|
29
32
|
constructor(placeRouter: PlaceRouter);
|
|
30
33
|
get started$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
31
34
|
get ready$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
@@ -41,12 +44,13 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
41
44
|
registerDisposable<T extends Disposable>(disposable: T): T;
|
|
42
45
|
dispose(): void;
|
|
43
46
|
getActiveActivityRef(): ActivityRef<any, any, any>;
|
|
47
|
+
get disableClose(): boolean;
|
|
44
48
|
/**
|
|
45
49
|
* Cancels the current activity and returns true the context is no longer active, false if
|
|
46
50
|
* there is still another activity running.
|
|
47
51
|
*/
|
|
48
52
|
cancelActiveActivity(): Promise<boolean>;
|
|
49
|
-
protected createAndLaunchActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data: D1,
|
|
53
|
+
protected createAndLaunchActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
50
54
|
private getActiveActivityCount;
|
|
51
55
|
/**
|
|
52
56
|
* Checks if this interaction context has finished an is in the process of waiting
|
|
@@ -61,11 +65,13 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
61
65
|
* Synchronises the selected tab index.
|
|
62
66
|
*/
|
|
63
67
|
private synchroniseSelectedTabIndex;
|
|
64
|
-
|
|
68
|
+
finaliseActivityStates(): void;
|
|
65
69
|
private getSelectedOutlet;
|
|
66
|
-
|
|
70
|
+
protected getTabAnimationDuration(): string;
|
|
71
|
+
protected getTabAnimationDurationInMillis(): number;
|
|
67
72
|
getSelectedTabIndex(): number;
|
|
68
73
|
private triggerTabSynchronisation;
|
|
74
|
+
onAnimationDone(): void;
|
|
69
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityContainerComponent<any, any, any>, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityContainerComponent<any, any, any>, "aup-activity-container", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; }, {}, never, never, false, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityContainerComponent<any, any, any>, "aup-activity-container", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; "animationDuration": { "alias": "animationDuration"; "required": false; }; }, {}, never, never, false, never>;
|
|
71
77
|
}
|
package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Activity } from '../../../activity';
|
|
3
3
|
import { ActivityRef } from '../../../activity-ref';
|
|
4
4
|
import { InteractionContext } from '../../../interaction-context';
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
* external service.
|
|
9
9
|
*/
|
|
10
10
|
export declare class ActivityOutletComponent<D, R, E> {
|
|
11
|
-
private
|
|
11
|
+
private interactionContext;
|
|
12
12
|
private viewContainerRef;
|
|
13
13
|
private injector;
|
|
14
14
|
private activityComponentRef;
|
|
@@ -16,7 +16,7 @@ export declare class ActivityOutletComponent<D, R, E> {
|
|
|
16
16
|
private _activityRef;
|
|
17
17
|
set activityRef(activityRef: ActivityRef<D, R, E>);
|
|
18
18
|
get activityRef(): ActivityRef<D, R, E>;
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(interactionContext: InteractionContext, viewContainerRef: ViewContainerRef, injector: Injector);
|
|
20
20
|
loadActivity(activityRef: ActivityRef<D, R, E>): void;
|
|
21
21
|
get component(): Activity<D, R, E>;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityOutletComponent<any, any, any>, never>;
|
|
@@ -13,5 +13,5 @@ export declare class ActivityTitleComponent extends DisposableComponent {
|
|
|
13
13
|
set color(color: ThemePalette);
|
|
14
14
|
get color(): ThemePalette;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityTitleComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityTitleComponent, "aup-activity-title", never, { "hasTransparentBackground": { "alias": "hasTransparentBackground"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityTitleComponent, "aup-activity-title", never, { "hasTransparentBackground": { "alias": "hasTransparentBackground"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*", "[slot='title-end']"], false, never>;
|
|
17
17
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { CommandFace } from "../../../components/commands/command-face";
|
|
1
2
|
import { Alert } from '../../alert';
|
|
2
3
|
import { AbstractDialogComponent } from '../abstract-dialog.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AlertDialogComponent extends AbstractDialogComponent<Alert, void> {
|
|
5
|
+
export declare class AlertDialogComponent extends AbstractDialogComponent<Alert, Alert, void> {
|
|
6
|
+
readonly confirmFace: CommandFace;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly content: string[];
|
|
9
|
+
readonly color?: 'primary' | 'accent' | 'warn';
|
|
5
10
|
constructor(alert: Alert);
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogComponent, never>;
|
|
7
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "aup-alert-dialog", never, {}, {}, never, never, false, never>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from "@coolon/pectin";
|
|
2
|
+
import { CommandFace } from "../../../components/commands/command-face";
|
|
3
|
+
import { DisposableComponent } from "../../../components/disposable-component";
|
|
4
|
+
import { ActivityContext } from "../../activity-context";
|
|
5
|
+
import { Alert } from "../../alert";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AlertRendererComponent<T extends Alert = Alert> extends DisposableComponent {
|
|
8
|
+
config: T;
|
|
9
|
+
accessor confirmCommand: Command;
|
|
10
|
+
protected confirmFace: CommandFace;
|
|
11
|
+
protected title: string;
|
|
12
|
+
protected content: string[];
|
|
13
|
+
protected color?: 'primary' | 'accent' | 'warn';
|
|
14
|
+
constructor(activityContext: ActivityContext);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertRendererComponent<any>, [{ optional: true; }]>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertRendererComponent<any>, "aup-alert-renderer", never, { "config": { "alias": "config"; "required": false; }; "confirmCommand": { "alias": "confirmCommand"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command } from "@coolon/pectin";
|
|
2
|
+
import { CommandFace } from "../../../components/commands/command-face";
|
|
3
|
+
import { ActivityContext } from "../../activity-context";
|
|
4
|
+
import { Confirm } from "../../confirm";
|
|
5
|
+
import { ActivityActionsComponent } from "../activity-actions/activity-actions.component";
|
|
6
|
+
import { AlertRendererComponent } from "../alert-renderer/alert-renderer.component";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ConfirmRendererComponent extends AlertRendererComponent<Confirm> {
|
|
9
|
+
accessor cancelCommand: Command;
|
|
10
|
+
protected activityActions: ActivityActionsComponent;
|
|
11
|
+
protected cancelFace: CommandFace;
|
|
12
|
+
constructor(activityContext: ActivityContext);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmRendererComponent, [{ optional: true; }]>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmRendererComponent, "aup-confirm-renderer", never, { "cancelCommand": { "alias": "cancelCommand"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
2
2
|
import { MatTabChangeEvent, MatTabsConfig } from "@angular/material/tabs";
|
|
3
3
|
import { Constructable } from "@coolon/pectin";
|
|
4
4
|
import { DisposableComponent } from "../../../components/disposable-component";
|
|
@@ -16,7 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
* </aup-in-place-interaction-context>
|
|
17
17
|
*
|
|
18
18
|
* in your component
|
|
19
|
-
* @ViewChild(
|
|
19
|
+
* @ViewChild(InPlaceInteractionContextComponent)
|
|
20
20
|
* interactionContext: InteractionContext;
|
|
21
21
|
*
|
|
22
22
|
*
|
|
@@ -35,6 +35,8 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
35
35
|
* active interactions.
|
|
36
36
|
*/
|
|
37
37
|
syncWithRoutes: boolean;
|
|
38
|
+
started: EventEmitter<void>;
|
|
39
|
+
finished: EventEmitter<void>;
|
|
38
40
|
get animationDuration(): string;
|
|
39
41
|
get animationDurationMillis(): number;
|
|
40
42
|
get active(): boolean;
|
|
@@ -53,5 +55,5 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
53
55
|
startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
54
56
|
onTabChanged($event: MatTabChangeEvent): void;
|
|
55
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPlaceInteractionContextComponent<any, any, any>, [{ optional: true; }]>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": { "alias": "animateFirstActivity"; "required": false; }; "syncWithRoutes": { "alias": "syncWithRoutes"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InPlaceInteractionContextComponent<any, any, any>, "aup-in-place-interaction-context", never, { "animateFirstActivity": { "alias": "animateFirstActivity"; "required": false; }; "syncWithRoutes": { "alias": "syncWithRoutes"; "required": false; }; }, { "started": "started"; "finished": "finished"; }, never, ["*"], false, never>;
|
|
57
59
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AfterViewInit } from "@angular/core";
|
|
2
|
+
import { MatTabsConfig } from "@angular/material/tabs";
|
|
3
|
+
import { Constructable } from "@coolon/pectin";
|
|
4
|
+
import { DisposableComponent } from "../../../components/disposable-component";
|
|
5
|
+
import { Activity } from "../../activity";
|
|
6
|
+
import { Alert } from "../../alert";
|
|
7
|
+
import { Confirm } from "../../confirm";
|
|
8
|
+
import { InPlaceInteractionContext } from "../../in-place-interaction-context";
|
|
9
|
+
import { InteractionContext } from "../../interaction-context";
|
|
10
|
+
import { InteractionService } from "../../services/interaction.service";
|
|
11
|
+
import { ActivityContainerComponent } from "../activity-container/activity-container.component";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* This interaction context remains hidden (height: 0) until it is active.
|
|
15
|
+
* @example
|
|
16
|
+
* <aup-slide-down-interaction-context #inPlaceInteractionContext>
|
|
17
|
+
* </aup-slide-down-interaction-context>
|
|
18
|
+
*
|
|
19
|
+
* in your component
|
|
20
|
+
* @ViewChild(SlideDownInteractionContextComponent)
|
|
21
|
+
* interactionContext: InteractionContext;
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare class SlideDownInteractionContextComponent<D, R, E> extends DisposableComponent implements InPlaceInteractionContext, AfterViewInit {
|
|
26
|
+
private readonly tabConfig;
|
|
27
|
+
activityContainerComponent: ActivityContainerComponent<any, any, any>;
|
|
28
|
+
dynamicHeight: boolean;
|
|
29
|
+
get active(): boolean;
|
|
30
|
+
protected clampShut: boolean;
|
|
31
|
+
readonly interactionService: InteractionService;
|
|
32
|
+
constructor(tabConfig: MatTabsConfig);
|
|
33
|
+
ngAfterViewInit(): void;
|
|
34
|
+
getAnimationState(): {
|
|
35
|
+
value: string;
|
|
36
|
+
params: {
|
|
37
|
+
duration: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
onInplaceInteractionContextRegistered(id: string, api: InteractionService.Api): void;
|
|
41
|
+
get identifier(): string;
|
|
42
|
+
alert(alert: Alert): Promise<void>;
|
|
43
|
+
cancelActiveActivity(): Promise<boolean>;
|
|
44
|
+
confirm(confirm: Confirm): Promise<boolean>;
|
|
45
|
+
confirmOrReject(confirm: Confirm): Promise<void>;
|
|
46
|
+
confirmThen<D1, R1, E1>(confirm: Confirm, activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1>;
|
|
47
|
+
confirmThenExecute<R1>(confirm: Confirm, operation: (interactionContext: InteractionContext) => (Promise<R1> | R1)): Promise<R1>;
|
|
48
|
+
isActive(): boolean;
|
|
49
|
+
startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
50
|
+
onAnimationDone(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideDownInteractionContextComponent<any, any, any>, [{ optional: true; }]>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideDownInteractionContextComponent<any, any, any>, "aup-slide-down-interaction-context", never, { "dynamicHeight": { "alias": "dynamicHeight"; "required": false; }; }, {}, never, never, false, never>;
|
|
53
|
+
}
|
|
@@ -3,3 +3,7 @@ export interface Confirm extends Alert {
|
|
|
3
3
|
destructive?: () => boolean;
|
|
4
4
|
cancel(): string;
|
|
5
5
|
}
|
|
6
|
+
export declare namespace Confirm {
|
|
7
|
+
function checkColor(config: Alert | Confirm): 'primary' | 'accent' | 'warn';
|
|
8
|
+
function isDestructive(config: Alert | Confirm): boolean;
|
|
9
|
+
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
4
|
export * from "./abstract-interaction-context";
|
|
5
|
+
export * from "./activity-context";
|
|
5
6
|
export * from "./activity-ref";
|
|
6
7
|
export * from "./activity";
|
|
7
8
|
export * from "./alert";
|
|
8
9
|
export * from "./confirm";
|
|
9
10
|
export * from "./in-place-interaction-context";
|
|
11
|
+
export * from "./interaction-context-provider";
|
|
10
12
|
export * from "./interaction-context";
|
|
11
13
|
export * from "./interaction.module";
|
|
12
14
|
export * from "./route-synchronisation-adapter";
|
|
@@ -24,6 +26,8 @@ export * from "./components/activity-triggers/popup-activity-trigger/popup-activ
|
|
|
24
26
|
export * from "./components/add-card-activity/add-card-activity.component";
|
|
25
27
|
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
26
28
|
export * from "./components/alert-dialog/alert-dialog.component";
|
|
29
|
+
export * from "./components/alert-renderer/alert-renderer.component";
|
|
30
|
+
export * from "./components/confirm-renderer/confirm-renderer.component";
|
|
27
31
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
28
32
|
export * from "./components/confirm-then-execute-dialog/confirm-then-execute-dialog.component";
|
|
29
33
|
export * from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
@@ -35,6 +39,7 @@ export * from "./components/input-activities/input-activity";
|
|
|
35
39
|
export * from "./components/input-activities/select-input-activity";
|
|
36
40
|
export * from "./components/input-activities/string-input-activity";
|
|
37
41
|
export * from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
42
|
+
export * from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
|
|
38
43
|
export * from "./directives/interaction-context-trigger-for.directive";
|
|
39
44
|
export * from "./services/interaction-service-routing-adapter";
|
|
40
45
|
export * from "./services/interaction.service";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Activity } from "./activity";
|
|
2
|
+
import { InteractionContext } from "./interaction-context";
|
|
3
|
+
export declare abstract class InteractionContextProvider {
|
|
4
|
+
static forActivity(activity: Activity<any, any>): {
|
|
5
|
+
getInteractionContext(): InteractionContext;
|
|
6
|
+
};
|
|
7
|
+
static forInteractionContext(interactionContext: InteractionContext): {
|
|
8
|
+
getInteractionContext(): InteractionContext;
|
|
9
|
+
};
|
|
10
|
+
abstract getInteractionContext(): InteractionContext;
|
|
11
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
1
2
|
import { Constructable, Disposable } from '@coolon/pectin';
|
|
2
3
|
import { Activity } from './activity';
|
|
3
4
|
import { Alert } from './alert';
|
|
4
5
|
import { Confirm } from './confirm';
|
|
6
|
+
export declare const INTERACTION_CONTEXT: InjectionToken<InteractionContext>;
|
|
5
7
|
export interface InteractionContext extends Disposable, Disposable.Collector {
|
|
6
8
|
readonly identifier: string;
|
|
7
9
|
isActive(): boolean;
|
|
@@ -15,6 +17,10 @@ export interface InteractionContext extends Disposable, Disposable.Collector {
|
|
|
15
17
|
}
|
|
16
18
|
export declare namespace InteractionContext {
|
|
17
19
|
interface Options {
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use Activity.disableCloseWhile(condition$);
|
|
22
|
+
*/
|
|
23
|
+
disableClose?: boolean;
|
|
24
|
+
enableCloseOnBackdropClick?: boolean;
|
|
19
25
|
}
|
|
20
26
|
}
|
|
@@ -6,40 +6,42 @@ import * as i4 from "./components/confirm-then-execute-dialog/confirm-then-execu
|
|
|
6
6
|
import * as i5 from "./components/alert-dialog/alert-dialog.component";
|
|
7
7
|
import * as i6 from "./components/activity-container/activity-outlet/activity-outlet.component";
|
|
8
8
|
import * as i7 from "./components/inplace-interaction-context/in-place-interaction-context.component";
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/input-activities/
|
|
14
|
-
import * as i13 from "./components/input-activities/input-activity";
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./
|
|
18
|
-
import * as i17 from "./components/activity-
|
|
19
|
-
import * as i18 from "./components/activity-
|
|
20
|
-
import * as i19 from "./components/activity-triggers/
|
|
21
|
-
import * as i20 from "./components/activity-triggers/
|
|
22
|
-
import * as i21 from "./components/activity-triggers/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "./components/
|
|
26
|
-
import * as i25 from "./components/abstract-
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "@angular/
|
|
31
|
-
import * as i30 from "@angular/
|
|
32
|
-
import * as i31 from "@angular/
|
|
33
|
-
import * as i32 from "@angular/material/
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "@angular/
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "
|
|
39
|
-
import * as i38 from "@angular/
|
|
40
|
-
import * as i39 from "@angular/
|
|
9
|
+
import * as i8 from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
|
|
10
|
+
import * as i9 from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
11
|
+
import * as i10 from "./components/activity-actions/activity-actions.component";
|
|
12
|
+
import * as i11 from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
13
|
+
import * as i12 from "./components/input-activities/string-input-activity";
|
|
14
|
+
import * as i13 from "./components/input-activities/select-input-activity";
|
|
15
|
+
import * as i14 from "./components/input-activities/input-activity";
|
|
16
|
+
import * as i15 from "./directives/interaction-context-trigger-for.directive";
|
|
17
|
+
import * as i16 from "./activity";
|
|
18
|
+
import * as i17 from "./components/activity-title/activity-title.component";
|
|
19
|
+
import * as i18 from "./components/activity-body/activity-body.component";
|
|
20
|
+
import * as i19 from "./components/activity-triggers/abstract-activity-trigger.component";
|
|
21
|
+
import * as i20 from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
22
|
+
import * as i21 from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
23
|
+
import * as i22 from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
24
|
+
import * as i23 from "./components/add-card-activity/add-card-activity.component";
|
|
25
|
+
import * as i24 from "./components/editors/inline-string-editor/inline-string-editor.component";
|
|
26
|
+
import * as i25 from "./components/abstract-dialog.component";
|
|
27
|
+
import * as i26 from "./components/abstract-confirm-dialog.component";
|
|
28
|
+
import * as i27 from "./components/confirm-renderer/confirm-renderer.component";
|
|
29
|
+
import * as i28 from "./components/alert-renderer/alert-renderer.component";
|
|
30
|
+
import * as i29 from "@angular/common";
|
|
31
|
+
import * as i30 from "@angular/material/button";
|
|
32
|
+
import * as i31 from "@angular/material/dialog";
|
|
33
|
+
import * as i32 from "@angular/material/tabs";
|
|
34
|
+
import * as i33 from "@angular/cdk/portal";
|
|
35
|
+
import * as i34 from "@angular/router";
|
|
36
|
+
import * as i35 from "@angular/material/icon";
|
|
37
|
+
import * as i36 from "../directives/directives.module";
|
|
38
|
+
import * as i37 from "../components/components.module";
|
|
39
|
+
import * as i38 from "@angular/forms";
|
|
40
|
+
import * as i39 from "@angular/material/input";
|
|
41
|
+
import * as i40 from "@angular/material/form-field";
|
|
42
|
+
import * as i41 from "@angular/cdk/a11y";
|
|
41
43
|
export declare class InteractionModule {
|
|
42
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.
|
|
45
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.SlideDownInteractionContextComponent, typeof i9.AddItemInteractionContextComponent, typeof i10.ActivityActionsComponent, typeof i11.PopupInteractionContextComponent, typeof i12.StringInputActivity, typeof i13.SelectInputActivity, typeof i14.InputActivity, typeof i15.InteractionContextTriggerForDirective, typeof i16.Activity, typeof i17.ActivityTitleComponent, typeof i18.ActivityBodyComponent, typeof i10.ActivityActionsComponent, typeof i19.AbstractActivityTriggerComponent, typeof i20.PopupActivityTriggerComponent, typeof i21.InlineActivityTriggerComponent, typeof i22.ModalActivityTriggerComponent, typeof i23.AddCardActivityComponent, typeof i24.InlineStringEditorComponent, typeof i25.AbstractDialogComponent, typeof i26.AbstractConfirmDialogComponent, typeof i27.ConfirmRendererComponent, typeof i28.AlertRendererComponent], [typeof i29.CommonModule, typeof i30.MatButtonModule, typeof i31.MatDialogModule, typeof i32.MatTabsModule, typeof i33.PortalModule, typeof i34.RouterModule, typeof i35.MatIconModule, typeof i36.DirectivesModule, typeof i37.ComponentsModule, typeof i38.FormsModule, typeof i39.MatInputModule, typeof i40.MatFormFieldModule, typeof i41.A11yModule], [typeof i1.ActivityContainerComponent, typeof i6.ActivityOutletComponent, typeof i17.ActivityTitleComponent, typeof i7.InPlaceInteractionContextComponent, typeof i9.AddItemInteractionContextComponent, typeof i10.ActivityActionsComponent, typeof i11.PopupInteractionContextComponent, typeof i15.InteractionContextTriggerForDirective, typeof i12.StringInputActivity, typeof i13.SelectInputActivity, typeof i18.ActivityBodyComponent, typeof i20.PopupActivityTriggerComponent, typeof i21.InlineActivityTriggerComponent, typeof i22.ModalActivityTriggerComponent, typeof i23.AddCardActivityComponent, typeof i24.InlineStringEditorComponent, typeof i8.SlideDownInteractionContextComponent, typeof i27.ConfirmRendererComponent, typeof i28.AlertRendererComponent]>;
|
|
44
46
|
static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
|
|
45
47
|
}
|
|
@@ -4,8 +4,8 @@ import { InteractionContext } from '../interaction-context';
|
|
|
4
4
|
export declare class InteractionServiceRoutingAdapter {
|
|
5
5
|
private readonly activeInteractionContextIds;
|
|
6
6
|
private readonly activeModalContext;
|
|
7
|
-
readonly
|
|
8
|
-
constructor(activeInteractionContextIds: ListModel<string>, activeModalContext: ValueModel<InteractionContext>,
|
|
7
|
+
readonly createNavigationSessionInteractionContext: () => InteractionContext;
|
|
8
|
+
constructor(activeInteractionContextIds: ListModel<string>, activeModalContext: ValueModel<InteractionContext>, createNavigationSessionInteractionContext: () => InteractionContext);
|
|
9
9
|
isActive(): boolean;
|
|
10
10
|
isModalActive(): boolean;
|
|
11
11
|
isComponentInteracting(component: PlaceComponent): boolean;
|
|
@@ -11,7 +11,7 @@ export declare class InteractionService {
|
|
|
11
11
|
readonly active: BooleanValueModelChain;
|
|
12
12
|
private readonly _navigationInProgress;
|
|
13
13
|
private placeRouter;
|
|
14
|
-
private
|
|
14
|
+
private navigationSessionInteractionRegistry;
|
|
15
15
|
private modalInteractionRegistry;
|
|
16
16
|
private inPlaceInteractionRegistry;
|
|
17
17
|
private activeModalContext;
|
|
@@ -19,6 +19,7 @@ export declare class InteractionService {
|
|
|
19
19
|
readonly inModalInteraction: BooleanValueModelChain;
|
|
20
20
|
constructor(modelInteractionContextFactory: ModalInteractionContextFactory);
|
|
21
21
|
isActive(): boolean;
|
|
22
|
+
cancelAllActivities(): Promise<void>;
|
|
22
23
|
/**
|
|
23
24
|
* @deprecated use #createModalInteractionContextDisposedWith instead.
|
|
24
25
|
* @param disposable
|
package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class DialogInteractionContextFactory extends ModalInteractionCon
|
|
|
12
12
|
readonly matDialogDefaultConfig: MatDialogConfig<any>;
|
|
13
13
|
readonly active: BooleanValueModelChain;
|
|
14
14
|
constructor(dialogService: MatDialog, dialogServiceDefaults: MatDialogConfig<any>, matDialogDefaultConfig: MatDialogConfig<any>);
|
|
15
|
-
createInteractionContext(identifier: string, api: InteractionService.Api
|
|
15
|
+
createInteractionContext(identifier: string, api: InteractionService.Api): InteractionContext;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogInteractionContextFactory, [null, { optional: true; }, { optional: true; }]>;
|
|
17
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogInteractionContextFactory>;
|
|
18
18
|
}
|
|
@@ -2,6 +2,7 @@ import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
|
2
2
|
import { Constructable, Disposable } from '@coolon/pectin';
|
|
3
3
|
import { AbstractInteractionContext } from '../../abstract-interaction-context';
|
|
4
4
|
import { Activity } from '../../activity';
|
|
5
|
+
import { InteractionContext } from '../../interaction-context';
|
|
5
6
|
import { InteractionService } from '../interaction.service';
|
|
6
7
|
export declare class DialogInteractionContext extends AbstractInteractionContext {
|
|
7
8
|
readonly identifier: string;
|
|
@@ -16,5 +17,6 @@ export declare class DialogInteractionContext extends AbstractInteractionContext
|
|
|
16
17
|
dispose(): void;
|
|
17
18
|
registerDisposable<T extends Disposable>(disposable: T): T;
|
|
18
19
|
isActive(): boolean;
|
|
19
|
-
protected createAndLaunchActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data: D,
|
|
20
|
+
protected createAndLaunchActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data: D, options?: InteractionContext.Options): Promise<R>;
|
|
21
|
+
private canClose;
|
|
20
22
|
}
|