@coolon/angular-ui-powerups 16.1.0-aplpha.7 → 16.1.0-aplpha.71
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/input-activities.scss +10 -2
- package/assets/form.scss +51 -27
- package/assets/table.scss +15 -18
- package/assets/tabs.scss +2 -6
- package/esm2022/lib/angular-ui-powerups.module.mjs +5 -5
- package/esm2022/lib/components/alignment.mjs +1 -1
- package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +6 -11
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +4 -4
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +5 -5
- package/esm2022/lib/components/commands/command/command.component.mjs +5 -8
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +13 -5
- package/esm2022/lib/components/commands/command-face.mjs +11 -11
- package/esm2022/lib/components/commands/flex.component.mjs +4 -4
- package/esm2022/lib/components/commands/group/command-container.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-container.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +13 -13
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +4 -4
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +4 -4
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +5 -5
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +11 -18
- package/esm2022/lib/components/commands/separator.component.mjs +4 -4
- package/esm2022/lib/components/components.module.mjs +33 -21
- package/esm2022/lib/components/disposable-component.mjs +11 -40
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +5 -9
- package/esm2022/lib/components/exports.mjs +6 -2
- package/esm2022/lib/components/focus-container/focus-container.component.mjs +4 -4
- package/esm2022/lib/components/focusable.component.mjs +5 -5
- package/esm2022/lib/components/forms/abstract-input.component.mjs +64 -17
- package/esm2022/lib/components/forms/abstract-list-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/abstract-value-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +6 -7
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/form-field.mjs +2 -0
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +6 -6
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +51 -12
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +14 -13
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +5 -5
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +4 -4
- package/esm2022/lib/components/icon/icon.component.mjs +8 -5
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +4 -4
- package/esm2022/lib/components/loadable-component.mjs +49 -0
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +6 -11
- package/esm2022/lib/components/noop/noop.component.mjs +5 -7
- package/esm2022/lib/components/resize-aware.component.mjs +63 -26
- package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +5 -5
- package/esm2022/lib/components/section-header/section-header.component.mjs +4 -4
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +11 -11
- package/esm2022/lib/components/tables/abstract-table-model.mjs +23 -23
- package/esm2022/lib/components/tables/abstract-table.component.mjs +21 -7
- package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +18 -7
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +19 -0
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +4 -4
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +6 -5
- package/esm2022/lib/components/tables/column/property-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +6 -6
- package/esm2022/lib/components/tables/editor/edit-session.mjs +4 -2
- package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +1 -1
- package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +1 -1
- package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +3 -2
- 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/paginator/paginator.component.mjs +4 -4
- package/esm2022/lib/components/tables/renderer/cell-editors.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -3
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +5 -7
- package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +5 -7
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +4 -4
- package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +192 -39
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +4 -4
- package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +5 -7
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +4 -4
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +10 -5
- package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +14 -69
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +4 -4
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +5 -4
- package/esm2022/lib/components/tables/tree-table/flattened-tree-list-model.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +5 -7
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +4 -4
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +4 -4
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +10 -7
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +3 -3
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +6 -6
- package/esm2022/lib/components/track.mjs +1 -1
- package/esm2022/lib/components/types/bounds.class.mjs +1 -1
- package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +4 -4
- package/esm2022/lib/directives/command.directive.mjs +5 -5
- package/esm2022/lib/directives/directives.module.mjs +6 -6
- package/esm2022/lib/directives/exports.mjs +2 -1
- package/esm2022/lib/directives/focus-binding-factory.mjs +4 -4
- package/esm2022/lib/directives/focus-binding.directive.mjs +5 -5
- package/esm2022/lib/directives/focus-binding.mjs +1 -1
- package/esm2022/lib/directives/garbage-collector.directive.mjs +5 -4
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +4 -4
- package/esm2022/lib/directives/highlight.pipe.mjs +5 -5
- package/esm2022/lib/directives/resize-observer.directive.mjs +40 -0
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +1 -1
- package/esm2022/lib/interaction/activity-ref.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +7 -7
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +5 -6
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +5 -5
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +4 -6
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +5 -5
- package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +3 -3
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +4 -4
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +4 -4
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +2 -2
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +6 -6
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +4 -4
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +6 -5
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +7 -4
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +11 -6
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +6 -5
- package/esm2022/lib/interaction/confirm.mjs +1 -1
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +6 -6
- package/esm2022/lib/interaction/in-place-interaction-context.mjs +1 -1
- package/esm2022/lib/interaction/interaction-context.mjs +1 -1
- package/esm2022/lib/interaction/interaction.module.mjs +19 -26
- package/esm2022/lib/interaction/route-synchronisation-adapter.mjs +1 -1
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +1 -1
- package/esm2022/lib/interaction/services/interaction.service.mjs +6 -6
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +5 -6
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +1 -2
- package/esm2022/lib/interaction/services/modal-interaction-context.factory.mjs +1 -1
- package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +15 -5
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +5 -6
- package/esm2022/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +5 -7
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +7 -7
- package/esm2022/lib/place/components/place-outlet/route-animations.mjs +1 -1
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +6 -6
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +4 -4
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/noop-auth-guard.service.mjs +5 -7
- package/esm2022/lib/place/guards/place.guard.mjs +5 -5
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/abstract-pop-state-navigation.mjs +1 -1
- package/esm2022/lib/place/navigation/session/event-cleanup/event-clean-up-session.mjs +1 -1
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +1 -1
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +1 -1
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +1 -1
- package/esm2022/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +1 -1
- package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +3 -3
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +3 -6
- package/esm2022/lib/place/navigation/session/navigating.mjs +2 -2
- package/esm2022/lib/place/navigation/session/navigation-context.mjs +1 -1
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +1 -1
- package/esm2022/lib/place/navigation/session/pop-state-navigation.mjs +1 -1
- package/esm2022/lib/place/place-access-guard.mjs +1 -1
- package/esm2022/lib/place/place-component.mjs +33 -47
- package/esm2022/lib/place/place-config.mjs +1 -1
- package/esm2022/lib/place/place-definition.mjs +3 -3
- package/esm2022/lib/place/place-history.mjs +6 -8
- package/esm2022/lib/place/place-router.mjs +20 -18
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -9
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/json-types.mjs +1 -1
- package/esm2022/lib/place/route/parameter-decorators.mjs +54 -50
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/route/parameter-sanitiser.mjs +1 -1
- package/esm2022/lib/place/route/parameter-snapshot.mjs +1 -1
- package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +1 -1
- package/esm2022/lib/place/url-service.mjs +4 -4
- 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/markdown/markdown.service.mjs +5 -7
- package/esm2022/lib/services/markdown/pill-plugin.mjs +1 -3
- package/esm2022/lib/services/visibility-service.mjs +7 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs +2170 -1800
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +1 -4
- package/lib/components/commands/command/command.component.d.ts +2 -3
- package/lib/components/commands/command-face/command-face.component.d.ts +2 -0
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +3 -7
- package/lib/components/components.module.d.ts +23 -21
- package/lib/components/disposable-component.d.ts +3 -8
- package/lib/components/empty-state/empty-state.component.d.ts +1 -4
- package/lib/components/exports.d.ts +5 -1
- package/lib/components/forms/abstract-input.component.d.ts +13 -5
- package/lib/components/forms/form-field.d.ts +5 -0
- package/lib/components/forms/number-input/number-input.component.d.ts +8 -4
- 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/loadable-component.d.ts +17 -0
- package/lib/components/loading-container/loading-container.component.d.ts +1 -4
- package/lib/components/noop/noop.component.d.ts +0 -1
- package/lib/components/resize-aware.component.d.ts +24 -5
- package/lib/components/switch-case/switch-case.component.d.ts +4 -4
- package/lib/components/tables/abstract-table-model.d.ts +7 -5
- package/lib/components/tables/abstract-table.component.d.ts +5 -4
- package/lib/components/tables/column/column-manager.d.ts +19 -0
- package/lib/components/tables/column/column-model.d.ts +6 -2
- package/lib/components/tables/column/column-order-manager.d.ts +20 -0
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -1
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -1
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -1
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -1
- package/lib/components/tables/column/property-column-model.d.ts +2 -1
- package/lib/components/tables/column/selection-column-model.d.ts +2 -1
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +3 -3
- package/lib/components/tables/editor/editable-cell-renderer.d.ts +1 -1
- package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +9 -0
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +2 -3
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +0 -1
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +0 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +17 -15
- package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +0 -1
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +2 -1
- package/lib/components/tables/table/table.component.d.ts +6 -12
- package/lib/components/tables/tree-table/tree-expansion-model.d.ts +2 -2
- package/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +0 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -1
- package/lib/components/tables/tree-table/tree-table-component.d.ts +5 -2
- package/lib/components/text/markdown/markdown.component.d.ts +1 -1
- package/lib/directives/exports.d.ts +1 -0
- package/lib/directives/resize-observer.directive.d.ts +16 -0
- package/lib/interaction/activity-ref.d.ts +2 -2
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +2 -3
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +3 -3
- package/lib/interaction/interaction.module.d.ts +6 -7
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -2
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +1 -2
- package/lib/place/components/abstract-place-navigation.component.d.ts +1 -0
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +0 -1
- package/lib/place/guards/noop-auth-guard.service.d.ts +0 -1
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +0 -1
- package/lib/place/place-component.d.ts +5 -15
- package/lib/place/place-history.d.ts +0 -1
- package/lib/place/place-router.d.ts +2 -2
- package/lib/place/place.decorator.d.ts +1 -1
- package/lib/place/place.module.d.ts +4 -5
- package/lib/place/route/json-types.d.ts +1 -3
- package/lib/place/visit-segment.d.ts +4 -4
- package/lib/place/visit.d.ts +2 -2
- package/lib/services/markdown/markdown.service.d.ts +0 -1
- package/lib/services/visibility-service.d.ts +1 -1
- package/package.json +18 -21
- package/esm2022/lib/components/tables/column/column-list-model.mjs +0 -44
- package/lib/components/tables/column/column-list-model.d.ts +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Constructable, ListModel
|
|
2
|
+
import { Constructable, ListModel } from '@coolon/pectin';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
|
-
import {
|
|
4
|
+
import { LoadableComponent } from "../components/loadable-component";
|
|
5
5
|
import { InteractionContext } from '../interaction/interaction-context';
|
|
6
6
|
import { PlaceDefinition } from './place-definition';
|
|
7
7
|
import { PlaceRouter } from "./place-router";
|
|
@@ -11,22 +11,17 @@ 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 LoadableComponent {
|
|
15
15
|
private readonly _placeReadyCallbacks;
|
|
16
16
|
private visitModel;
|
|
17
17
|
private _inVisitUpdate;
|
|
18
18
|
private _active;
|
|
19
19
|
interactionContext?: InteractionContext;
|
|
20
|
-
childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
21
|
-
readonly authorisedChildPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
22
|
-
private readonly _parameterChangeInterceptors;
|
|
20
|
+
readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
23
21
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
24
22
|
protected readonly placeRouter: PlaceRouter;
|
|
25
23
|
constructor();
|
|
26
24
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated use authorisedChildPlaces$ instead
|
|
29
|
-
*/
|
|
30
25
|
get childPlaces(): readonly Constructable<PlaceComponent>[];
|
|
31
26
|
updateVisit(visit: VisitSegment): void;
|
|
32
27
|
isInitialised(): boolean;
|
|
@@ -37,7 +32,7 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
37
32
|
*/
|
|
38
33
|
private installAndInitialiseBinding;
|
|
39
34
|
get placeDefinition(): PlaceDefinition;
|
|
40
|
-
get active(): ValueModel<boolean>;
|
|
35
|
+
get active(): import("@coolon/pectin").ValueModel<boolean>;
|
|
41
36
|
/**
|
|
42
37
|
* Called by the router to see if this component can deactivate. This isn't called for route parameter changes.
|
|
43
38
|
* @param interactionContext
|
|
@@ -58,7 +53,6 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
58
53
|
*/
|
|
59
54
|
_notifyPlaceReady(): void;
|
|
60
55
|
onPlaceReady(callback: () => void): void;
|
|
61
|
-
interceptVisitParameterChange<T>(model: ValueModel<T>, callback: PlaceComponent.InterceptCallback<T>, options?: PlaceComponent.InterceptOptions): void;
|
|
62
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceComponent, never>;
|
|
63
57
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceComponent, never, never, {}, {}, never, never, false, never>;
|
|
64
58
|
}
|
|
@@ -67,8 +61,4 @@ export declare namespace PlaceComponent {
|
|
|
67
61
|
function getRouteParameters(klass: Constructable<PlaceComponent>): ParameterDefinition<any>[];
|
|
68
62
|
function getDefinition(snapshotOrConstructor: ActivatedRouteSnapshot | Constructable<PlaceComponent>): PlaceDefinition;
|
|
69
63
|
function injectDefinition(klass: Constructable<PlaceComponent>, definition: PlaceDefinition): void;
|
|
70
|
-
type InterceptCallback<T> = (is: T, was: T, interactionContext: InteractionContext) => boolean | Promise<boolean>;
|
|
71
|
-
interface InterceptOptions {
|
|
72
|
-
initialValue: 'evaluationUnlessNil' | 'evaluate';
|
|
73
|
-
}
|
|
74
64
|
}
|
|
@@ -12,7 +12,6 @@ export declare class PlaceHistory {
|
|
|
12
12
|
private _previousVisits;
|
|
13
13
|
private _archive;
|
|
14
14
|
private readonly placeHistoryDepth;
|
|
15
|
-
constructor();
|
|
16
15
|
notifyNavigationStarted(): void;
|
|
17
16
|
notifyNavigationFinished(visits: Visit): void;
|
|
18
17
|
updateVisitSegment(visit: VisitSegment): void;
|
|
@@ -3,8 +3,8 @@ import { ActivatedRouteSnapshot, NavigationCancel, NavigationEnd, NavigationErro
|
|
|
3
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
|
-
import { PlaceAuthService } from "./place-auth-service";
|
|
7
6
|
import { NavigationSession } from "./navigation/session/navigation-session";
|
|
7
|
+
import { PlaceAuthService } from "./place-auth-service";
|
|
8
8
|
import { PlaceComponent } from "./place-component";
|
|
9
9
|
import { PlaceHistory } from "./place-history";
|
|
10
10
|
import { UrlService } from "./url-service";
|
|
@@ -42,7 +42,7 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
42
42
|
onRouterError(event: NavigationError): void;
|
|
43
43
|
onRouterEnd(event: NavigationEnd): void;
|
|
44
44
|
navigate(visit: Visit): any;
|
|
45
|
-
navigate(placeComponent: Constructable<PlaceComponent>, params?: Record<string,
|
|
45
|
+
navigate(placeComponent: Constructable<PlaceComponent>, params?: Record<string, unknown>): any;
|
|
46
46
|
doNavigation(visit: Visit, runNavigationCommands: (router: Router) => any): Promise<void>;
|
|
47
47
|
navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
48
48
|
get activeVisit$(): ValueModel<Visit>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Constructable } from '@coolon/pectin';
|
|
2
2
|
import { PlaceComponent } from './place-component';
|
|
3
|
-
export declare function Place(options: Place.Options): (target:
|
|
3
|
+
export declare function Place(options: Place.Options): (target: Constructable<any>) => void;
|
|
4
4
|
export declare namespace Place {
|
|
5
5
|
interface Options {
|
|
6
6
|
path: string;
|
|
@@ -14,12 +14,11 @@ 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/
|
|
20
|
-
import * as i19 from "@angular/material/card";
|
|
17
|
+
import * as i16 from "../components/components.module";
|
|
18
|
+
import * as i17 from "@angular/cdk/portal";
|
|
19
|
+
import * as i18 from "@angular/material/card";
|
|
21
20
|
export declare class PlaceModule {
|
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
|
|
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.
|
|
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.ComponentsModule, typeof i17.PortalModule, typeof i18.MatCardModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
|
|
24
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
|
|
25
24
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export type JsonPrimitive = boolean | number | string;
|
|
2
|
-
export type AnyJson = JsonPrimitive | null |
|
|
3
|
-
export interface JsonArray extends Array<AnyJson> {
|
|
4
|
-
}
|
|
2
|
+
export type AnyJson = JsonPrimitive | null | Array<AnyJson> | JsonMap;
|
|
5
3
|
export interface JsonMap {
|
|
6
4
|
[key: string]: AnyJson;
|
|
7
5
|
}
|
|
@@ -4,7 +4,7 @@ export declare class VisitSegment {
|
|
|
4
4
|
readonly placeDefinition: PlaceDefinition;
|
|
5
5
|
readonly visitParameters: Record<string, any>;
|
|
6
6
|
constructor(placeDefinition: PlaceDefinition, visitParameters?: Record<string, any>);
|
|
7
|
-
getRouteId():
|
|
7
|
+
getRouteId(): string | null;
|
|
8
8
|
hasRouteId(): boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Returns the value of the place parameter with the specified name. The parameter
|
|
@@ -13,9 +13,9 @@ export declare class VisitSegment {
|
|
|
13
13
|
* @param parameter the visit parameter definition
|
|
14
14
|
*/
|
|
15
15
|
getParameterValue<T, S>(parameter: ParameterDefinition<T, S> | string): T;
|
|
16
|
-
hasParameter(parameterDef: ParameterDefinition<
|
|
17
|
-
replace<T>(parameter: ParameterDefinition<T,
|
|
18
|
-
mergeRouteParameters
|
|
16
|
+
hasParameter(parameterDef: ParameterDefinition<unknown>): boolean;
|
|
17
|
+
replace<T>(parameter: ParameterDefinition<T, unknown>, value: T): VisitSegment;
|
|
18
|
+
mergeRouteParameters(routeParams: Record<string, unknown>): VisitSegment;
|
|
19
19
|
hasRoutingChangedFrom(other: VisitSegment): boolean;
|
|
20
20
|
hasChangedFrom(other: VisitSegment): boolean;
|
|
21
21
|
createRouterCommands(): string[];
|
package/lib/place/visit.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export declare class Visit {
|
|
|
7
7
|
protected segmentsByPlaceComponent: Map<Constructable<PlaceComponent>, VisitSegment>;
|
|
8
8
|
protected readonly destinationSegment: VisitSegment;
|
|
9
9
|
protected readonly destinationPlaceDef: PlaceDefinition;
|
|
10
|
-
static goto(placeComponent: Constructable<PlaceComponent>, visitParameters?: Record<string,
|
|
10
|
+
static goto(placeComponent: Constructable<PlaceComponent>, visitParameters?: Record<string, unknown>): Visit;
|
|
11
11
|
static fromSegments(segments: VisitSegment[]): Visit;
|
|
12
12
|
protected constructor(segments: VisitSegment[]);
|
|
13
13
|
protected get definedSegments(): Map<Constructable<PlaceComponent>, VisitSegment>;
|
|
14
|
-
withAncestorParameters(placeComponent: Constructable<PlaceComponent>, parameters: Record<string,
|
|
14
|
+
withAncestorParameters(placeComponent: Constructable<PlaceComponent>, parameters: Record<string, unknown>): this;
|
|
15
15
|
get segments(): VisitSegment[];
|
|
16
16
|
private resolveSegments;
|
|
17
17
|
copyWithDefaultsFrom(other: Visit | undefined): Visit;
|
|
@@ -5,7 +5,7 @@ export declare class VisibilityService extends GarbageCollector {
|
|
|
5
5
|
private readonly attributeName;
|
|
6
6
|
private readonly eventName;
|
|
7
7
|
private _visible$;
|
|
8
|
-
constructor(document:
|
|
8
|
+
constructor(document: Document);
|
|
9
9
|
protected updateVisibilityState(): void;
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated use visible$ instead.
|
package/package.json
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
4
|
-
"schematics": "./schematics/collection.json",
|
|
3
|
+
"version": "16.1.0-aplpha.71",
|
|
5
4
|
"peerDependencies": {
|
|
6
|
-
"@angular/animations": "^16.2.
|
|
7
|
-
"@angular/common": "^16.2.
|
|
8
|
-
"@angular/core": "^16.2.
|
|
9
|
-
"@angular/cdk": "^16.2.
|
|
10
|
-
"@angular/forms": "^16.2.
|
|
11
|
-
"@angular/material": "^16.2.
|
|
12
|
-
"@angular/platform-browser": "^16.2.
|
|
13
|
-
"@angular/platform-browser-dynamic": "^16.2.
|
|
14
|
-
"@angular/material-moment-adapter": "^16.2.
|
|
15
|
-
"@angular/router": "^16.2.
|
|
16
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
17
|
-
"
|
|
5
|
+
"@angular/animations": "^16.2.9",
|
|
6
|
+
"@angular/common": "^16.2.9",
|
|
7
|
+
"@angular/core": "^16.2.9",
|
|
8
|
+
"@angular/cdk": "^16.2.10",
|
|
9
|
+
"@angular/forms": "^16.2.9",
|
|
10
|
+
"@angular/material": "^16.2.10",
|
|
11
|
+
"@angular/platform-browser": "^16.2.9",
|
|
12
|
+
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
|
+
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
|
+
"@angular/router": "^16.2.9",
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.26",
|
|
16
|
+
"fast-typescript-memoize": "^1.1.1",
|
|
18
17
|
"lodash-es": "^4.17.21",
|
|
19
18
|
"marked": "4.0.10",
|
|
20
19
|
"reflect-metadata": "^0.1.13",
|
|
21
20
|
"resize-observer-polyfill": "^1.5.1",
|
|
22
21
|
"typescript-string-enums": "^1.0.0",
|
|
23
22
|
"json5": "^2.1.0",
|
|
24
|
-
"immer": ">=
|
|
23
|
+
"immer": ">=10.0.3",
|
|
25
24
|
"escape-string-regexp": "^5.0.0",
|
|
26
|
-
"@coolon/typescript-utilities": "^5.0.0-alpha.
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"@teppeis/multimaps": "2.0.0",
|
|
30
|
-
"zone.js": "0.13.3"
|
|
25
|
+
"@coolon/typescript-utilities": "^5.0.0-alpha.8",
|
|
26
|
+
"fractional-indexing": "^3.2.0",
|
|
27
|
+
"ng-table-virtual-scroll": "^1.6.0"
|
|
31
28
|
},
|
|
32
29
|
"optionalDependencies": {
|
|
33
30
|
"@fortawesome/fontawesome-free": "^6.0.0"
|
|
@@ -49,4 +46,4 @@
|
|
|
49
46
|
}
|
|
50
47
|
},
|
|
51
48
|
"sideEffects": false
|
|
52
|
-
}
|
|
49
|
+
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AbstractComputedListModel, Dsl, lang, MutableListModel } from '@coolon/pectin';
|
|
2
|
-
import { isNil } from 'lodash';
|
|
3
|
-
export class ColumnListModel extends AbstractComputedListModel {
|
|
4
|
-
_allColumns$ = new MutableListModel();
|
|
5
|
-
columnsById$;
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
const { chain } = Dsl.disposeWith(this);
|
|
9
|
-
this.columnsById$ = chain(this._allColumns$).indexBy('columnId');
|
|
10
|
-
}
|
|
11
|
-
get allColumns$() {
|
|
12
|
-
return this._allColumns$.readonly$;
|
|
13
|
-
}
|
|
14
|
-
getColumn(id) {
|
|
15
|
-
return this.columnsById$.get(id);
|
|
16
|
-
}
|
|
17
|
-
hasColumn(id) {
|
|
18
|
-
return !!this.columnsById$.get(id);
|
|
19
|
-
}
|
|
20
|
-
hasMatchingColumn(row, regex) {
|
|
21
|
-
// only search the visible columns
|
|
22
|
-
return !!this.value.find(c => regex.test(c.getSearchTextFor(row)));
|
|
23
|
-
}
|
|
24
|
-
addColumn(column, index) {
|
|
25
|
-
if (this.hasColumn(column.columnId)) {
|
|
26
|
-
lang.illegalState(`Column with id=${column.columnId} already exists`);
|
|
27
|
-
}
|
|
28
|
-
this.registerDisposable(column);
|
|
29
|
-
this.runInTransaction(() => {
|
|
30
|
-
if (!isNil(index)) {
|
|
31
|
-
this._allColumns$.insert(index, column);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this._allColumns$.push(column);
|
|
35
|
-
}
|
|
36
|
-
this.registerDisposable(this.trackSource(column.visible$));
|
|
37
|
-
});
|
|
38
|
-
return column;
|
|
39
|
-
}
|
|
40
|
-
doComputeValue() {
|
|
41
|
-
return this._allColumns$.value.filter(c => c.visible$.value);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sdW1uLWxpc3QtbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9jb21wb25lbnRzL3RhYmxlcy9jb2x1bW4vY29sdW1uLWxpc3QtbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHlCQUF5QixFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQTRCLGdCQUFnQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEgsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFFBQVEsQ0FBQztBQUcvQixNQUFNLE9BQU8sZUFBcUIsU0FBUSx5QkFBb0Q7SUFFM0UsWUFBWSxHQUFHLElBQUksZ0JBQWdCLEVBQW9CLENBQUM7SUFDeEQsWUFBWSxDQUEwQztJQUV2RTtRQUNFLEtBQUssRUFBRSxDQUFDO1FBQ1IsTUFBTSxFQUFFLEtBQUssRUFBRSxHQUFHLEdBQUcsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLEN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zLmhhc0NvbHVtbihjb2x1bW4uY29sdW1uSWQpKSB7XG4gICAgICBsYW5nLmlsbGVnYWxTdGF0ZShgQ29sdW1uIHdpdGggaWQ9JHtjb2x1bW4uY29sdW1uSWR9IGFscmVhZHkgZXhpc3RzYCk7XG4gICAgfVxuICAgIHRoaXMucmVnaXN0ZXJEaXNwb3NhYmxlKGNvbHVtbik7XG4gICAgdGhpcy5ydW5JblRyYW5zYWN0aW9uKCgpID0+IHtcbiAgICAgIGlmICghaXNOaWwoaW5kZXgpKSB7XG4gICAgICAgIHRoaXMuX2FsbENvbHVtbnMkLmluc2VydChpbmRleCwgY29sdW1uKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuX2FsbENvbHVtbnMkLnB1c2goY29sdW1uKTtcbiAgICAgIH1cbiAgICAgIHRoaXMucmVnaXN0ZXJEaXNwb3NhYmxlKHRoaXMudHJhY2tTb3VyY2UoY29sdW1uLnZpc2libGUkKSk7XG4gICAgfSk7XG4gICAgcmV0dXJuIGNvbHVtbjtcbiAgfVxuXG4gIGRvQ29tcHV0ZVZhbHVlKCk6IENvbHVtbk1vZGVsPFJvdz5bXSB7XG4gICAgcmV0dXJuIHRoaXMuX2FsbENvbHVtbnMkLnZhbHVlLmZpbHRlcihjID0+IGMudmlzaWJsZSQudmFsdWUpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
|
|
2
|
-
import { ColumnModel } from './column-model';
|
|
3
|
-
export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
|
|
4
|
-
private readonly _allColumns$;
|
|
5
|
-
private readonly columnsById$;
|
|
6
|
-
constructor();
|
|
7
|
-
get allColumns$(): ListModel<ColumnModel<Row>>;
|
|
8
|
-
getColumn(id: string): ColumnModel<Row>;
|
|
9
|
-
hasColumn(id: string): boolean;
|
|
10
|
-
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
11
|
-
addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
12
|
-
doComputeValue(): ColumnModel<Row>[];
|
|
13
|
-
}
|