@coolon/angular-ui-powerups 16.1.0-aplpha.189 → 16.1.0-aplpha.19
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/README.md +0 -4
- package/assets/activities/activities.scss +3 -5
- package/assets/activities/input-activities.scss +6 -14
- package/assets/form.scss +27 -74
- package/assets/icons.scss +0 -1
- package/assets/styles.scss +0 -2
- package/assets/table.scss +19 -41
- package/assets/tabs.scss +5 -15
- package/esm2022/lib/animations/slide-animations.mjs +10 -15
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +5 -28
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +29 -34
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
- package/esm2022/lib/components/commands/command-face.mjs +11 -12
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +8 -31
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +13 -15
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +20 -11
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +7 -12
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +20 -11
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +2 -2
- package/esm2022/lib/components/commands/separator.component.mjs +12 -6
- package/esm2022/lib/components/components.module.mjs +30 -55
- package/esm2022/lib/components/disposable-component.mjs +7 -32
- package/esm2022/lib/components/exports.mjs +6 -14
- package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
- 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 +9 -86
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +11 -30
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +4 -8
- package/esm2022/lib/components/icon/icon.component.mjs +4 -7
- package/esm2022/lib/components/loadable-component.mjs +10 -32
- package/esm2022/lib/components/resize-aware.component.mjs +24 -61
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
- package/esm2022/lib/components/tables/abstract-table-model.mjs +63 -112
- package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +6 -16
- 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 +13 -35
- 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/editor/editable-cell-renderer.mjs +1 -1
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +5 -23
- 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 +4 -7
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +6 -6
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +33 -0
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +60 -0
- package/esm2022/lib/components/tables/table/table-model.mjs +3 -12
- package/esm2022/lib/components/tables/table/table.component.mjs +61 -39
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +84 -0
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- 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 +5 -12
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +7 -4
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/components/types/loadable.mjs +2 -0
- package/esm2022/lib/directives/command.directive.mjs +7 -18
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/highlight.pipe.mjs +8 -9
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +7 -6
- package/esm2022/lib/interaction/activity.mjs +21 -20
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +8 -11
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +41 -1
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +16 -28
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +2 -8
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +15 -46
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +15 -53
- 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/confirm-then-dialog/confirm-then-dialog.component.mjs +8 -4
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +8 -4
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +9 -7
- 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 +5 -21
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +35 -40
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +9 -10
- package/esm2022/lib/interaction/confirm.mjs +2 -26
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +1 -6
- package/esm2022/lib/interaction/interaction-context.mjs +2 -3
- package/esm2022/lib/interaction/interaction.module.mjs +14 -22
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
- package/esm2022/lib/interaction/services/interaction.service.mjs +6 -18
- 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 +4 -23
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +5 -4
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
- 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 +5 -6
- 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 +6 -3
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +2 -2
- package/esm2022/lib/place/place-auth-service.mjs +6 -7
- package/esm2022/lib/place/place-component.mjs +19 -29
- package/esm2022/lib/place/place-definition.mjs +4 -15
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place-router.mjs +53 -67
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -1
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -6
- package/esm2022/lib/place/route/parameter-sanitiser.mjs +2 -7
- 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/fesm2022/coolon-angular-ui-powerups.mjs +1135 -2553
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +3 -6
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +8 -8
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +9 -8
- package/lib/components/commands/group/popup-aware.component.d.ts +4 -9
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +4 -2
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +0 -2
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +4 -2
- package/lib/components/commands/separator.component.d.ts +4 -2
- package/lib/components/components.module.d.ts +55 -60
- package/lib/components/disposable-component.d.ts +3 -16
- package/lib/components/exports.d.ts +5 -13
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -16
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -7
- package/lib/components/forms/text-input/text-input.component.d.ts +0 -3
- package/lib/components/loadable-component.d.ts +5 -11
- package/lib/components/resize-aware.component.d.ts +5 -24
- package/lib/components/switch-case/switch-case.component.d.ts +3 -2
- package/lib/components/tables/abstract-table-model.d.ts +25 -50
- package/lib/components/tables/abstract-table.component.d.ts +3 -4
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +3 -7
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
- package/lib/components/tables/column/property-column-model.d.ts +2 -3
- package/lib/components/tables/column/selection-column-model.d.ts +4 -10
- 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 +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +12 -20
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +3 -2
- package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +15 -0
- package/lib/components/tables/renderer/{table-custom-more-menu/table-custom-more-menu.component.d.ts → table-more-menu/table-more-menu.component.d.ts} +7 -8
- package/lib/components/tables/table/table-model.d.ts +4 -4
- package/lib/components/tables/table/table.component.d.ts +10 -14
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +28 -0
- 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 +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- package/lib/components/types/loadable.d.ts +5 -0
- package/lib/directives/command.directive.d.ts +4 -6
- package/lib/directives/exports.d.ts +0 -1
- package/lib/interaction/abstract-interaction-context.d.ts +1 -1
- package/lib/interaction/activity.d.ts +7 -7
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -2
- package/lib/interaction/components/abstract-dialog.component.d.ts +14 -5
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -12
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +4 -10
- 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 +1 -6
- 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 +3 -5
- package/lib/interaction/confirm.d.ts +0 -4
- package/lib/interaction/exports.d.ts +0 -5
- package/lib/interaction/interaction-context.d.ts +1 -7
- package/lib/interaction/interaction.module.d.ts +33 -35
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +2 -2
- package/lib/interaction/services/interaction.service.d.ts +1 -2
- 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 +1 -3
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- package/lib/place/place-auth-service.d.ts +4 -4
- package/lib/place/place-component.d.ts +5 -7
- package/lib/place/place-definition.d.ts +0 -2
- package/lib/place/place-router.d.ts +3 -8
- package/lib/place/place.module.d.ts +5 -4
- package/lib/place/route/parameter-decorators.d.ts +4 -3
- package/lib/place/route/parameter-definition.d.ts +2 -2
- package/lib/place/route/parameter-sanitiser.d.ts +0 -7
- package/package.json +4 -6
- package/assets/draw.scss +0 -20
- package/assets/layout.scss +0 -3
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +0 -115
- package/esm2022/lib/components/file/file-download/file-download.component.mjs +0 -89
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -7
- package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +0 -2
- package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +0 -153
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +0 -45
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +0 -71
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/activity-context.mjs +0 -4
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +0 -55
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +0 -54
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
- package/esm2022/lib/interaction/interaction-context-provider.mjs +0 -17
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +0 -30
- package/lib/components/file/file-download/file-download.component.d.ts +0 -45
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -6
- package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +0 -7
- package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +0 -42
- package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +0 -19
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/activity-context.d.ts +0 -9
- package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +0 -17
- package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +0 -15
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
- package/lib/interaction/interaction-context-provider.d.ts +0 -11
|
@@ -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, ["*"
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivityTitleComponent, "aup-activity-title", never, { "hasTransparentBackground": { "alias": "hasTransparentBackground"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { CommandFace } from "../../../components/commands/command-face";
|
|
2
1
|
import { Alert } from '../../alert';
|
|
3
2
|
import { AbstractDialogComponent } from '../abstract-dialog.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AlertDialogComponent extends AbstractDialogComponent<Alert,
|
|
6
|
-
readonly confirmFace: CommandFace;
|
|
7
|
-
readonly title: string;
|
|
8
|
-
readonly content: string[];
|
|
9
|
-
readonly color?: 'primary' | 'accent' | 'warn';
|
|
4
|
+
export declare class AlertDialogComponent extends AbstractDialogComponent<Alert, void> {
|
|
10
5
|
constructor(alert: Alert);
|
|
11
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertDialogComponent, never>;
|
|
12
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<AlertDialogComponent, "aup-alert-dialog", never, {}, {}, never, never, false, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit
|
|
1
|
+
import { AfterViewInit } 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('inPlaceInteractionContext', { static: true })
|
|
20
20
|
* interactionContext: InteractionContext;
|
|
21
21
|
*
|
|
22
22
|
*
|
|
@@ -35,8 +35,6 @@ 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>;
|
|
40
38
|
get animationDuration(): string;
|
|
41
39
|
get animationDurationMillis(): number;
|
|
42
40
|
get active(): boolean;
|
|
@@ -55,5 +53,5 @@ export declare class InPlaceInteractionContextComponent<D, R, E> extends Disposa
|
|
|
55
53
|
startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1, options?: InteractionContext.Options): Promise<R1>;
|
|
56
54
|
onTabChanged($event: MatTabChangeEvent): void;
|
|
57
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<InPlaceInteractionContextComponent<any, any, any>, [{ optional: true; }]>;
|
|
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; }; }, {
|
|
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>;
|
|
59
57
|
}
|
|
@@ -3,7 +3,3 @@ 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,13 +2,11 @@
|
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
4
|
export * from "./abstract-interaction-context";
|
|
5
|
-
export * from "./activity-context";
|
|
6
5
|
export * from "./activity-ref";
|
|
7
6
|
export * from "./activity";
|
|
8
7
|
export * from "./alert";
|
|
9
8
|
export * from "./confirm";
|
|
10
9
|
export * from "./in-place-interaction-context";
|
|
11
|
-
export * from "./interaction-context-provider";
|
|
12
10
|
export * from "./interaction-context";
|
|
13
11
|
export * from "./interaction.module";
|
|
14
12
|
export * from "./route-synchronisation-adapter";
|
|
@@ -26,8 +24,6 @@ export * from "./components/activity-triggers/popup-activity-trigger/popup-activ
|
|
|
26
24
|
export * from "./components/add-card-activity/add-card-activity.component";
|
|
27
25
|
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
28
26
|
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";
|
|
31
27
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
32
28
|
export * from "./components/confirm-then-execute-dialog/confirm-then-execute-dialog.component";
|
|
33
29
|
export * from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
@@ -39,7 +35,6 @@ export * from "./components/input-activities/input-activity";
|
|
|
39
35
|
export * from "./components/input-activities/select-input-activity";
|
|
40
36
|
export * from "./components/input-activities/string-input-activity";
|
|
41
37
|
export * from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
42
|
-
export * from "./components/slide-down-interaction-context/slide-down-interaction-context.component";
|
|
43
38
|
export * from "./directives/interaction-context-trigger-for.directive";
|
|
44
39
|
export * from "./services/interaction-service-routing-adapter";
|
|
45
40
|
export * from "./services/interaction.service";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { InjectionToken } from "@angular/core";
|
|
2
1
|
import { Constructable, Disposable } from '@coolon/pectin';
|
|
3
2
|
import { Activity } from './activity';
|
|
4
3
|
import { Alert } from './alert';
|
|
5
4
|
import { Confirm } from './confirm';
|
|
6
|
-
export declare const INTERACTION_CONTEXT: InjectionToken<InteractionContext>;
|
|
7
5
|
export interface InteractionContext extends Disposable, Disposable.Collector {
|
|
8
6
|
readonly identifier: string;
|
|
9
7
|
isActive(): boolean;
|
|
@@ -17,10 +15,6 @@ export interface InteractionContext extends Disposable, Disposable.Collector {
|
|
|
17
15
|
}
|
|
18
16
|
export declare namespace InteractionContext {
|
|
19
17
|
interface Options {
|
|
20
|
-
|
|
21
|
-
* @deprecated use Activity.disableCloseWhile(condition$);
|
|
22
|
-
*/
|
|
23
|
-
disableClose?: boolean;
|
|
24
|
-
enableCloseOnBackdropClick?: boolean;
|
|
18
|
+
disableClose: boolean;
|
|
25
19
|
}
|
|
26
20
|
}
|
|
@@ -6,42 +6,40 @@ 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/
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./activity";
|
|
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-dialog.component";
|
|
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/
|
|
41
|
-
import * as i40 from "@angular/material/form-field";
|
|
42
|
-
import * as i41 from "@angular/cdk/a11y";
|
|
9
|
+
import * as i8 from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
10
|
+
import * as i9 from "./components/activity-actions/activity-actions.component";
|
|
11
|
+
import * as i10 from "./components/popup-interaction-context/popup-interaction-context.component";
|
|
12
|
+
import * as i11 from "./components/input-activities/string-input-activity";
|
|
13
|
+
import * as i12 from "./components/input-activities/select-input-activity";
|
|
14
|
+
import * as i13 from "./components/input-activities/input-activity";
|
|
15
|
+
import * as i14 from "./directives/interaction-context-trigger-for.directive";
|
|
16
|
+
import * as i15 from "./activity";
|
|
17
|
+
import * as i16 from "./components/activity-title/activity-title.component";
|
|
18
|
+
import * as i17 from "./components/activity-body/activity-body.component";
|
|
19
|
+
import * as i18 from "./components/activity-triggers/abstract-activity-trigger.component";
|
|
20
|
+
import * as i19 from "./components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component";
|
|
21
|
+
import * as i20 from "./components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component";
|
|
22
|
+
import * as i21 from "./components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component";
|
|
23
|
+
import * as i22 from "./components/add-card-activity/add-card-activity.component";
|
|
24
|
+
import * as i23 from "./components/editors/inline-string-editor/inline-string-editor.component";
|
|
25
|
+
import * as i24 from "./components/abstract-dialog.component";
|
|
26
|
+
import * as i25 from "./components/abstract-confirm-dialog.component";
|
|
27
|
+
import * as i26 from "@angular/common";
|
|
28
|
+
import * as i27 from "@angular/material/button";
|
|
29
|
+
import * as i28 from "@angular/material/dialog";
|
|
30
|
+
import * as i29 from "@angular/material/tabs";
|
|
31
|
+
import * as i30 from "@angular/cdk/portal";
|
|
32
|
+
import * as i31 from "@angular/router";
|
|
33
|
+
import * as i32 from "@angular/material/icon";
|
|
34
|
+
import * as i33 from "../directives/directives.module";
|
|
35
|
+
import * as i34 from "@angular/flex-layout";
|
|
36
|
+
import * as i35 from "../components/components.module";
|
|
37
|
+
import * as i36 from "@angular/forms";
|
|
38
|
+
import * as i37 from "@angular/material/input";
|
|
39
|
+
import * as i38 from "@angular/material/form-field";
|
|
40
|
+
import * as i39 from "@angular/cdk/a11y";
|
|
43
41
|
export declare class InteractionModule {
|
|
44
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionModule, never>;
|
|
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.
|
|
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.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i13.InputActivity, typeof i14.InteractionContextTriggerForDirective, typeof i15.Activity, typeof i16.ActivityTitleComponent, typeof i17.ActivityBodyComponent, typeof i9.ActivityActionsComponent, typeof i18.AbstractActivityTriggerComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent, typeof i24.AbstractDialogComponent, typeof i25.AbstractConfirmDialogComponent], [typeof i26.CommonModule, typeof i27.MatButtonModule, typeof i28.MatDialogModule, typeof i29.MatTabsModule, typeof i30.PortalModule, typeof i31.RouterModule, typeof i32.MatIconModule, typeof i33.DirectivesModule, typeof i34.FlexModule, typeof i34.GridModule, typeof i35.ComponentsModule, typeof i36.FormsModule, typeof i37.MatInputModule, typeof i38.MatFormFieldModule, typeof i39.A11yModule], [typeof i1.ActivityContainerComponent, typeof i6.ActivityOutletComponent, typeof i16.ActivityTitleComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i14.InteractionContextTriggerForDirective, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i17.ActivityBodyComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent]>;
|
|
46
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
|
|
47
45
|
}
|
|
@@ -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 createExclusiveInteractionContext: () => InteractionContext;
|
|
8
|
+
constructor(activeInteractionContextIds: ListModel<string>, activeModalContext: ValueModel<InteractionContext>, createExclusiveInteractionContext: () => 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 exclusiveInteractionRegistry;
|
|
15
15
|
private modalInteractionRegistry;
|
|
16
16
|
private inPlaceInteractionRegistry;
|
|
17
17
|
private activeModalContext;
|
|
@@ -19,7 +19,6 @@ export declare class InteractionService {
|
|
|
19
19
|
readonly inModalInteraction: BooleanValueModelChain;
|
|
20
20
|
constructor(modelInteractionContextFactory: ModalInteractionContextFactory);
|
|
21
21
|
isActive(): boolean;
|
|
22
|
-
cancelAllActivities(): Promise<void>;
|
|
23
22
|
/**
|
|
24
23
|
* @deprecated use #createModalInteractionContextDisposedWith instead.
|
|
25
24
|
* @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): InteractionContext;
|
|
15
|
+
createInteractionContext(identifier: string, api: InteractionService.Api, disableClose?: boolean): InteractionContext;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DialogInteractionContextFactory, [null, { optional: true; }, { optional: true; }]>;
|
|
17
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogInteractionContextFactory>;
|
|
18
18
|
}
|
|
@@ -2,7 +2,6 @@ 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';
|
|
6
5
|
import { InteractionService } from '../interaction.service';
|
|
7
6
|
export declare class DialogInteractionContext extends AbstractInteractionContext {
|
|
8
7
|
readonly identifier: string;
|
|
@@ -17,6 +16,5 @@ export declare class DialogInteractionContext extends AbstractInteractionContext
|
|
|
17
16
|
dispose(): void;
|
|
18
17
|
registerDisposable<T extends Disposable>(disposable: T): T;
|
|
19
18
|
isActive(): boolean;
|
|
20
|
-
protected createAndLaunchActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data: D,
|
|
21
|
-
private canClose;
|
|
19
|
+
protected createAndLaunchActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data: D, disableClose: boolean): Promise<R>;
|
|
22
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
2
|
-
import { EventEmitter, InjectionToken } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter, InjectionToken } from '@angular/core';
|
|
3
3
|
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
4
4
|
import { BooleanValueModelChain, Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
5
5
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
@@ -13,6 +13,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
13
13
|
private readonly router;
|
|
14
14
|
private readonly placeRouter;
|
|
15
15
|
readonly placeConfig: PlaceConfig;
|
|
16
|
+
private readonly cdr;
|
|
16
17
|
accessor animate$: ValueModel<boolean>;
|
|
17
18
|
accessor animate: boolean;
|
|
18
19
|
accessor customPlaceAnimationOrder$: ListModel<Constructable<PlaceComponent>>;
|
|
@@ -36,7 +37,7 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
36
37
|
readonly animationEnabled: BooleanValueModelChain;
|
|
37
38
|
readonly authorised: ValueModelChain<boolean>;
|
|
38
39
|
readonly notAuthorisedNoticePortal: ComponentPortal<any>;
|
|
39
|
-
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent);
|
|
40
|
+
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, unauthorisedPlaceNotice: Constructable<any>, parentOutlet: PlaceOutletComponent, cdr: ChangeDetectorRef);
|
|
40
41
|
getAnimationOrder(): number;
|
|
41
42
|
get animationDuration(): string;
|
|
42
43
|
get isAuthorised(): boolean;
|
|
@@ -52,6 +53,6 @@ export declare class PlaceOutletComponent extends DisposableComponent {
|
|
|
52
53
|
private notifyComponentVisitSegmentChanged;
|
|
53
54
|
animationStarted(): void;
|
|
54
55
|
animationDone(): void;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }]>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
56
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate$": { "alias": "animate$"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "customPlaceAnimationOrder$": { "alias": "placeAnimationOrderModel"; "required": false; }; "customPlaceAnimationOrder": { "alias": "placeAnimationOrder"; "required": false; }; }, { "placeChanged": "placeChanged"; }, never, never, false, never>;
|
|
57
58
|
}
|
|
@@ -19,8 +19,8 @@ export declare class PlaceAuthService extends GarbageCollector {
|
|
|
19
19
|
enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
|
|
20
20
|
waitUntilAuthenticationReady(): Promise<void>;
|
|
21
21
|
waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
|
|
22
|
-
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot):
|
|
23
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>):
|
|
22
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
23
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
24
24
|
isAuthenticated(): boolean;
|
|
25
25
|
isAuthorised(c: PlaceDefinition): boolean;
|
|
26
26
|
}
|
|
@@ -28,12 +28,12 @@ export declare namespace PlaceAuthService {
|
|
|
28
28
|
type AuthorisationCheck = (def: PlaceDefinition) => boolean;
|
|
29
29
|
interface AuthenticationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
30
30
|
isAuthenticated$: ValueModel<boolean>;
|
|
31
|
-
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent
|
|
31
|
+
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent>;
|
|
32
32
|
}
|
|
33
33
|
interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
34
34
|
isAuthorised: AuthorisationCheck;
|
|
35
35
|
dependsOn$?: HasValue<any>;
|
|
36
|
-
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[]
|
|
36
|
+
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[];
|
|
37
37
|
}
|
|
38
38
|
interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
|
|
39
39
|
when$?: ValueModel<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Constructable, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { Constructable, ListModel, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
|
-
import {
|
|
4
|
+
import { DisposableComponent } from '../components/disposable-component';
|
|
5
5
|
import { InteractionContext } from '../interaction/interaction-context';
|
|
6
6
|
import { PlaceDefinition } from './place-definition';
|
|
7
7
|
import { PlaceRouter } from "./place-router";
|
|
@@ -11,17 +11,15 @@ import { VisitSegment } from './visit-segment';
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare const DEFINITION_META_DATA_KEY = "PLACE_DEFINITION_OPTIONS";
|
|
13
13
|
export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
|
|
14
|
-
export declare class PlaceComponent extends
|
|
14
|
+
export declare class PlaceComponent extends DisposableComponent {
|
|
15
15
|
private readonly _placeReadyCallbacks;
|
|
16
|
-
private
|
|
16
|
+
private visitModel;
|
|
17
17
|
private _inVisitUpdate;
|
|
18
18
|
private _active;
|
|
19
19
|
interactionContext?: InteractionContext;
|
|
20
20
|
readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
21
|
-
readonly placeId: string;
|
|
22
21
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
23
22
|
protected readonly placeRouter: PlaceRouter;
|
|
24
|
-
private readonly activatedRoute;
|
|
25
23
|
constructor();
|
|
26
24
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
27
25
|
get childPlaces(): readonly Constructable<PlaceComponent>[];
|
|
@@ -34,7 +32,7 @@ export declare class PlaceComponent extends LoadableComponent {
|
|
|
34
32
|
*/
|
|
35
33
|
private installAndInitialiseBinding;
|
|
36
34
|
get placeDefinition(): PlaceDefinition;
|
|
37
|
-
get active():
|
|
35
|
+
get active(): ValueModel<boolean>;
|
|
38
36
|
/**
|
|
39
37
|
* Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
|
|
40
38
|
* @param interactionContext
|
|
@@ -13,11 +13,9 @@ export declare class PlaceDefinition {
|
|
|
13
13
|
readonly children: PlaceDefinition[];
|
|
14
14
|
readonly redirectToFirstChild: boolean;
|
|
15
15
|
private _parent;
|
|
16
|
-
readonly name: string;
|
|
17
16
|
constructor(component: Constructable<PlaceComponent>, path: string, authenticate: boolean, role: any, data: Record<string, any>, routeParameters: ParameterDefinition<any>[], children: PlaceDefinition[], redirectToFirstChild: boolean);
|
|
18
17
|
ancestors(): PlaceDefinition[];
|
|
19
18
|
ancestorsAndSelf(): PlaceDefinition[];
|
|
20
|
-
get placeId(): string;
|
|
21
19
|
protected setParent(parent: PlaceDefinition): void;
|
|
22
20
|
get parent(): PlaceDefinition;
|
|
23
21
|
isRoot(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Location } from "@angular/common";
|
|
2
2
|
import { ActivatedRouteSnapshot, NavigationCancel, NavigationEnd, NavigationError, NavigationExtras, NavigationStart, Router, RouterStateSnapshot } from "@angular/router";
|
|
3
|
-
import {
|
|
3
|
+
import { GarbageCollector, MutableValueModel, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
4
4
|
import { Constructable } from "@coolon/typescript-utilities";
|
|
5
5
|
import { InteractionService } from "../interaction/services/interaction.service";
|
|
6
6
|
import { NavigationSession } from "./navigation/session/navigation-session";
|
|
@@ -27,16 +27,12 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
27
27
|
private readonly routerInteractionAdapter;
|
|
28
28
|
private sessionFinishedJobs;
|
|
29
29
|
readonly authService: PlaceAuthService;
|
|
30
|
-
private readonly _ready$;
|
|
31
|
-
readonly ready$: ValueModel<boolean>;
|
|
32
30
|
constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
|
|
31
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
32
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
36
33
|
get navigationSession(): NavigationSession;
|
|
37
34
|
get currentSession(): NavigationSession;
|
|
38
35
|
isNavigating(): boolean;
|
|
39
|
-
waitUntilRouterReady(): Promise<this>;
|
|
40
36
|
waitUntilIdle(): Promise<this>;
|
|
41
37
|
waitActivitiesSynchronised(): Promise<this>;
|
|
42
38
|
onPopState(event: NavigationStart): void;
|
|
@@ -50,7 +46,6 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
50
46
|
doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any): Promise<void>;
|
|
51
47
|
navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
52
48
|
get activeVisit$(): ValueModel<Visit>;
|
|
53
|
-
filterAuthorizedPlaces(places: ReadonlyArray<Constructable<PlaceComponent>>, options: DisposedWith): ListModel<Constructable<PlaceComponent>>;
|
|
54
49
|
notifyVisitSegmentChanged(is: VisitSegment, was: VisitSegment): Promise<void>;
|
|
55
50
|
private createNavigationSession;
|
|
56
51
|
protected transitionTo(next: NavigationSession): void;
|
|
@@ -14,11 +14,12 @@ import * as i12 from "@angular/material/list";
|
|
|
14
14
|
import * as i13 from "@angular/material/tooltip";
|
|
15
15
|
import * as i14 from "@angular/material/icon";
|
|
16
16
|
import * as i15 from "../directives/directives.module";
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "@angular/
|
|
17
|
+
import * as i16 from "@angular/flex-layout";
|
|
18
|
+
import * as i17 from "../components/components.module";
|
|
19
|
+
import * as i18 from "@angular/cdk/portal";
|
|
20
|
+
import * as i19 from "@angular/material/card";
|
|
20
21
|
export declare class PlaceModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatTabsModule, typeof i12.MatListModule, typeof i13.MatTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.FlexModule, typeof i17.ComponentsModule, typeof i18.PortalModule, typeof i19.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
|
|
24
25
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Constructable } from '@coolon/pectin';
|
|
1
2
|
import { Formatter } from './formatter';
|
|
2
3
|
import { ParameterSanitiser } from './parameter-sanitiser';
|
|
3
4
|
export interface RouteIdOptions<T> {
|
|
@@ -5,7 +6,7 @@ export interface RouteIdOptions<T> {
|
|
|
5
6
|
optional?: boolean;
|
|
6
7
|
remember?: boolean;
|
|
7
8
|
defaultValue?: T;
|
|
8
|
-
sanitiser?: ParameterSanitiser
|
|
9
|
+
sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser<T>;
|
|
9
10
|
}
|
|
10
11
|
export interface RouteParameterOptions<T> {
|
|
11
12
|
as?: string;
|
|
@@ -13,7 +14,7 @@ export interface RouteParameterOptions<T> {
|
|
|
13
14
|
remember?: boolean;
|
|
14
15
|
defaultValue?: T;
|
|
15
16
|
storeInUrl?: Formatter<T>;
|
|
16
|
-
sanitiser?: ParameterSanitiser
|
|
17
|
+
sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser<T>;
|
|
17
18
|
}
|
|
18
19
|
export interface RouteListParameterOptions<T> {
|
|
19
20
|
as?: string;
|
|
@@ -21,7 +22,7 @@ export interface RouteListParameterOptions<T> {
|
|
|
21
22
|
remember?: boolean;
|
|
22
23
|
defaultValue?: T[];
|
|
23
24
|
storeInUrl?: Formatter<T>;
|
|
24
|
-
sanitiser?: ParameterSanitiser
|
|
25
|
+
sanitiser?: Constructable<ParameterSanitiser<T[]>> | ParameterSanitiser<T[]>;
|
|
25
26
|
}
|
|
26
27
|
export declare function RouteId<T extends string | number>(formatter: Formatter<T>, options?: RouteIdOptions<T>): PropertyDecorator;
|
|
27
28
|
export declare function VisitParameter<T>(options?: RouteParameterOptions<T>): PropertyDecorator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { HasValue, ListModel, MutableListModel, MutableValueModel, ValueModel } from '@coolon/pectin';
|
|
2
|
+
import { Constructable, HasValue, ListModel, MutableListModel, MutableValueModel, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { PlaceHistory } from '../place-history';
|
|
4
4
|
import { VisitSegment } from '../visit-segment';
|
|
5
5
|
import { Formatter } from './formatter';
|
|
@@ -32,7 +32,7 @@ export declare namespace ParameterDefinition {
|
|
|
32
32
|
optional?: boolean;
|
|
33
33
|
remember?: boolean;
|
|
34
34
|
defaultValue?: T;
|
|
35
|
-
sanitiser?: ParameterSanitiser
|
|
35
|
+
sanitiser?: Constructable<ParameterSanitiser<T>> | ParameterSanitiser<T>;
|
|
36
36
|
}
|
|
37
37
|
class RouteId<T> extends ParameterDefinition<T> {
|
|
38
38
|
readonly isRouteId = true;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { Constructable } from '@coolon/pectin';
|
|
3
2
|
import { VisitSegment } from '../visit-segment';
|
|
4
3
|
export interface ParameterSanitiser<T> {
|
|
5
4
|
sanitise(parameterValue: T, visit?: VisitSegment, injector?: Injector): Promise<T> | T;
|
|
6
5
|
}
|
|
7
|
-
export declare namespace ParameterSanitiser {
|
|
8
|
-
abstract class Factory<T> {
|
|
9
|
-
abstract create(injector: Injector): ParameterSanitiser<T>;
|
|
10
|
-
}
|
|
11
|
-
type Def<T> = ParameterSanitiser<T> | Constructable<ParameterSanitiser<T>> | Factory<T>;
|
|
12
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.19",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
16
|
-
"fast-
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.6",
|
|
16
|
+
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|
|
19
19
|
"reflect-metadata": "^0.1.13",
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
"json5": "^2.1.0",
|
|
23
23
|
"immer": ">=10.0.3",
|
|
24
24
|
"escape-string-regexp": "^5.0.0",
|
|
25
|
-
"@coolon/typescript-utilities": "^5.0.0-alpha.
|
|
26
|
-
"fractional-indexing": "^3.2.0",
|
|
27
|
-
"ng-table-virtual-scroll": "^1.6.1"
|
|
25
|
+
"@coolon/typescript-utilities": "^5.0.0-alpha.3"
|
|
28
26
|
},
|
|
29
27
|
"optionalDependencies": {
|
|
30
28
|
"@fortawesome/fontawesome-free": "^6.0.0"
|
package/assets/draw.scss
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
mat-drawer-container {
|
|
2
|
-
background-color: white;
|
|
3
|
-
&.flex, &[flex] {
|
|
4
|
-
flex: 1;
|
|
5
|
-
::ng-deep {
|
|
6
|
-
.mat-drawer-inner-container {
|
|
7
|
-
display:flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: stretch;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
mat-drawer-content {
|
|
14
|
-
display:flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}
|
package/assets/layout.scss
DELETED