@coolon/angular-ui-powerups 16.1.0-aplpha.59 → 16.1.0-aplpha.6
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 +2 -10
- package/assets/form.scss +27 -45
- package/assets/table.scss +18 -15
- package/assets/tabs.scss +6 -2
- 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 +11 -6
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +4 -4
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +7 -4
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +5 -13
- package/esm2022/lib/components/commands/command-face.mjs +1 -1
- 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 +18 -11
- package/esm2022/lib/components/commands/separator.component.mjs +4 -4
- package/esm2022/lib/components/components.module.mjs +21 -33
- package/esm2022/lib/components/disposable-component.mjs +40 -11
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +9 -5
- package/esm2022/lib/components/exports.mjs +2 -6
- 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 +17 -64
- 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 -5
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +4 -4
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +11 -12
- 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 +5 -8
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +4 -4
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +11 -6
- package/esm2022/lib/components/noop/noop.component.mjs +7 -5
- package/esm2022/lib/components/resize-aware.component.mjs +27 -64
- 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 +7 -21
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +6 -17
- 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 +5 -6
- 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 +2 -4
- 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 +2 -3
- 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 +4 -4
- package/esm2022/lib/components/tables/renderer/cell-editors.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +3 -1
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +7 -5
- package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +7 -5
- 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 +48 -185
- 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 +7 -5
- 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 +5 -10
- package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +69 -14
- 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 +1 -1
- 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 +7 -5
- 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 +7 -10
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +2 -2
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +5 -5
- 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 +1 -2
- 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 +4 -5
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +4 -4
- package/esm2022/lib/directives/highlight.pipe.mjs +4 -4
- 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 +1 -1
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +6 -5
- 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 +6 -4
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +3 -3
- 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 +5 -5
- 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 +4 -5
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +4 -7
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +6 -11
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +5 -6
- package/esm2022/lib/interaction/confirm.mjs +1 -1
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +5 -5
- 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 -19
- 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 +6 -5
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +2 -1
- package/esm2022/lib/interaction/services/modal-interaction-context.factory.mjs +1 -1
- package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +5 -15
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -4
- package/esm2022/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +7 -5
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +5 -5
- 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 +1 -1
- package/esm2022/lib/place/guards/noop-auth-guard.service.mjs +7 -5
- package/esm2022/lib/place/guards/place.guard.mjs +5 -5
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +1 -1
- 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 +5 -2
- 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 +43 -30
- package/esm2022/lib/place/place-config.mjs +1 -1
- package/esm2022/lib/place/place-definition.mjs +1 -1
- package/esm2022/lib/place/place-history.mjs +7 -5
- package/esm2022/lib/place/place-router.mjs +18 -20
- package/esm2022/lib/place/place.decorator.mjs +1 -1
- package/esm2022/lib/place/place.module.mjs +5 -5
- 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 +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +1 -1
- 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 +1 -1
- package/esm2022/lib/place/visit-segment.mjs +1 -1
- package/esm2022/lib/place/visit.mjs +1 -1
- package/esm2022/lib/services/markdown/markdown.service.mjs +7 -5
- package/esm2022/lib/services/markdown/pill-plugin.mjs +3 -1
- package/esm2022/lib/services/visibility-service.mjs +7 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs +1705 -2035
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +4 -1
- package/lib/components/commands/command/command.component.d.ts +3 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- 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 +7 -3
- package/lib/components/components.module.d.ts +21 -23
- package/lib/components/disposable-component.d.ts +8 -3
- package/lib/components/empty-state/empty-state.component.d.ts +4 -1
- package/lib/components/exports.d.ts +1 -5
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/loading-container/loading-container.component.d.ts +4 -1
- package/lib/components/noop/noop.component.d.ts +1 -0
- package/lib/components/resize-aware.component.d.ts +6 -25
- package/lib/components/switch-case/switch-case.component.d.ts +4 -4
- package/lib/components/tables/abstract-table-model.d.ts +5 -7
- package/lib/components/tables/abstract-table.component.d.ts +4 -5
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +2 -6
- package/lib/components/tables/column/custom-template-column-model.d.ts +1 -2
- package/lib/components/tables/column/custom-value-column-model.d.ts +1 -2
- package/lib/components/tables/column/editor-controls-column-model.d.ts +1 -2
- package/lib/components/tables/column/list-propery-column-model.d.ts +1 -2
- package/lib/components/tables/column/property-column-model.d.ts +1 -2
- package/lib/components/tables/column/selection-column-model.d.ts +1 -2
- 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 +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +3 -2
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +1 -0
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -0
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +18 -19
- package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +1 -0
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
- package/lib/components/tables/table/table.component.d.ts +12 -6
- 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 +1 -0
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +1 -2
- package/lib/components/tables/tree-table/tree-table-component.d.ts +2 -5
- package/lib/components/text/markdown/markdown.component.d.ts +1 -1
- package/lib/directives/exports.d.ts +0 -1
- 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 +3 -2
- 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 +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +2 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +0 -1
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -0
- package/lib/place/guards/noop-auth-guard.service.d.ts +1 -0
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +1 -0
- package/lib/place/place-component.d.ts +13 -3
- package/lib/place/place-history.d.ts +1 -0
- package/lib/place/place-router.d.ts +2 -2
- package/lib/place/place.decorator.d.ts +1 -1
- package/lib/place/route/json-types.d.ts +3 -1
- 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 +1 -0
- package/lib/services/visibility-service.d.ts +1 -1
- package/package.json +19 -17
- 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/loadable-component.mjs +0 -49
- 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/directives/resize-observer.directive.mjs +0 -40
- 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/loadable-component.d.ts +0 -17
- 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/directives/resize-observer.directive.d.ts +0 -16
|
@@ -4,12 +4,11 @@ import { EditableCellRenderer } from "../editor/editable-cell-renderer";
|
|
|
4
4
|
import { CellEditorComponent } from "../renderer/cell-editors";
|
|
5
5
|
import { CellRenderer } from "../renderer/cell-renderer";
|
|
6
6
|
import { CellRendererOptions, ColumnModel, MutableCellRendererOptions, OnComponentInit } from "./column-model";
|
|
7
|
-
import { ColumnOrderManager } from "./column-order-manager";
|
|
8
7
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
9
8
|
readonly property: P;
|
|
10
9
|
private _userFormat;
|
|
11
10
|
private _defaultSearchTextFormatter;
|
|
12
|
-
constructor(id: string,
|
|
11
|
+
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
13
12
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): Omit<this, "format">;
|
|
14
13
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): Omit<this, "format">;
|
|
15
14
|
liveEditCellRenderer<E extends EditableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ThemePalette } from "@angular/material/core";
|
|
2
2
|
import { Proxified, SelectionModel } from "@coolon/pectin";
|
|
3
3
|
import { ColumnModel } from "./column-model";
|
|
4
|
-
import { ColumnOrderManager } from "./column-order-manager";
|
|
5
4
|
export declare class SelectionColumnModel<Row> extends ColumnModel<Row> {
|
|
6
5
|
readonly selectionModel: Proxified<SelectionModel<Row>>;
|
|
7
6
|
private _enableHeaderControls;
|
|
8
7
|
private _color;
|
|
9
|
-
constructor(columnId: string,
|
|
8
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: Proxified<SelectionModel<Row>>);
|
|
10
9
|
useSelectionModel(selectionModel: SelectionModel<Row>): void;
|
|
11
10
|
protected getDefaultHeaderText(): string;
|
|
12
11
|
enableHeaderControls(enable: boolean): this;
|
|
@@ -2,7 +2,7 @@ import { Command, DirtyTrackingForm } from '@coolon/pectin';
|
|
|
2
2
|
import { DisposableComponent } from '../../../disposable-component';
|
|
3
3
|
import { EditSession } from '../edit-session';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class EditRowControls<Row> extends DisposableComponent {
|
|
6
6
|
row: Row;
|
|
7
7
|
accessor editRowCommand: Command<void>;
|
|
8
8
|
private _session;
|
|
@@ -12,6 +12,6 @@ export declare class EditRowControlsComponent<Row> extends DisposableComponent {
|
|
|
12
12
|
readonly cancelCommand: Command<void>;
|
|
13
13
|
constructor();
|
|
14
14
|
get form(): DirtyTrackingForm<Row>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditRowControls<any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditRowControls<any>, "aup-row-editor-controls", never, { "row": { "alias": "row"; "required": false; }; "editRowCommand": { "alias": "editRowCommand"; "required": false; }; "editSession": { "alias": "editSession"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Disposable } from '@coolon/pectin';
|
|
2
1
|
import { CellRenderer } from '../renderer/cell-renderer';
|
|
2
|
+
import { Disposable } from '@coolon/pectin';
|
|
3
3
|
export interface EditableCellRenderer<T> extends CellRenderer<T> {
|
|
4
4
|
value: T;
|
|
5
5
|
onValueEdited(callback: (is: T, was: T) => void): Disposable;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { Constructable } from "@coolon/typescript-utilities";
|
|
3
3
|
import { Enum } from "typescript-string-enums";
|
|
4
|
-
import { CellRenderer } from "../renderer/cell-renderer";
|
|
5
4
|
import { ColumnTextSearchFormatter } from "./column-text-search-formatter";
|
|
5
|
+
import { CellRenderer } from "../renderer/cell-renderer";
|
|
6
6
|
export declare const Keys: {
|
|
7
7
|
useFunction: "useFunction";
|
|
8
8
|
useInstance: "useInstance";
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import { AbstractConstructable } from "@coolon/restilence-plugin";
|
|
2
1
|
export type TextSearchPredicate<Row> = (row: Row, regex: RegExp) => boolean;
|
|
3
|
-
export declare class TextSearchContext<Row> {
|
|
4
|
-
readonly row: Row;
|
|
5
|
-
readonly searchText: string;
|
|
6
|
-
readonly searchRegex: RegExp;
|
|
7
|
-
constructor(row: Row, searchText: string, searchRegex: RegExp);
|
|
8
|
-
getOrCreate<T>(type: AbstractConstructable<T>, create: () => T): void;
|
|
9
|
-
matchesText(text: string): boolean;
|
|
10
|
-
}
|
|
@@ -10,8 +10,9 @@ export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
|
10
10
|
export declare const PORTAL_RENDERER_COMPONENT: unique symbol;
|
|
11
11
|
export declare const PORTAL_EDITOR_COMPONENT: unique symbol;
|
|
12
12
|
export declare abstract class CellPortalRef<Row, Host, Portal> {
|
|
13
|
-
|
|
14
|
-
abstract
|
|
13
|
+
constructor();
|
|
14
|
+
abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>): any;
|
|
15
|
+
abstract onPortalAttached(host: Host, portalComponent: Portal): any;
|
|
15
16
|
}
|
|
16
17
|
export declare class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
17
18
|
readonly componentType: ComponentType<C>;
|
package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare class DefaultCellRendererComponent<T> implements CellRenderer<T>
|
|
|
4
4
|
private _value;
|
|
5
5
|
set value(value: T);
|
|
6
6
|
get value(): T;
|
|
7
|
+
constructor();
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultCellRendererComponent<any>, never>;
|
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultCellRendererComponent<any>, "aup-default-cell-renderer", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class DefaultHeaderCellRendererComponent {
|
|
3
3
|
headerText: string;
|
|
4
|
+
constructor();
|
|
4
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHeaderCellRendererComponent, never>;
|
|
5
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeaderCellRendererComponent, "aup-default-header-renderer", never, { "headerText": { "alias": "headerText"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
7
|
}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListModel, ListModelChain,
|
|
3
|
-
import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnInit } from "@angular/core";
|
|
2
|
+
import { ListModel, ListModelChain, ValueModel } from "@coolon/pectin";
|
|
4
3
|
import { ResizeAwareComponent } from "../../../resize-aware.component";
|
|
5
4
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
6
5
|
import { ColumnModel } from "../../column/column-model";
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare const AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER: InjectionToken<number>;
|
|
9
7
|
export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements OnInit {
|
|
10
|
-
protected bufferMultiplier: number;
|
|
11
8
|
accessor data$: ListModel<Row>;
|
|
12
9
|
accessor tableModel: AbstractTableModel<Row>;
|
|
13
10
|
accessor showHeader$: ValueModel<boolean>;
|
|
14
11
|
accessor showHeader: boolean;
|
|
12
|
+
readonly visibleRowCount: EventEmitter<number>;
|
|
15
13
|
trackBy: (index: number, item: Row) => any;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
16
|
+
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
17
|
+
* containment area.
|
|
18
|
+
*/
|
|
19
|
+
enableScrolling: boolean;
|
|
20
|
+
columns: ListModelChain<ColumnModel<Row>>;
|
|
21
|
+
columnIds: ListModelChain<string>;
|
|
22
|
+
private columnsById;
|
|
23
|
+
readonly _visibleRowCount: ValueModel<number>;
|
|
24
|
+
private readonly headerHeight;
|
|
25
|
+
private readonly rowHeight;
|
|
23
26
|
baseCssClass: string;
|
|
24
|
-
|
|
25
|
-
constructor(bufferMultiplier?: number);
|
|
27
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
26
28
|
get hideHeader(): boolean;
|
|
27
29
|
isEditing(row: Row): boolean;
|
|
28
30
|
notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
|
|
29
31
|
isFirstVisibleColumn(columnId: string): boolean;
|
|
30
32
|
isLastVisibleColumn(columnId: string): boolean;
|
|
31
33
|
getColumnClasses(columnId: string): string[];
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>,
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "aup-table-body", never, { "data$": { "alias": "data$"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "
|
|
34
|
-
}
|
|
35
|
-
export declare namespace TableBodyComponent {
|
|
36
|
-
type ScrollMode = "none" | "classic" | "virtual";
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "aup-table-body", never, { "data$": { "alias": "data$"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, { "visibleRowCount": "visibleRowCount"; }, never, never, false, never>;
|
|
37
36
|
}
|
|
@@ -7,6 +7,7 @@ export declare class TableHeaderCellComponent implements OnInit {
|
|
|
7
7
|
column: ColumnModel<any>;
|
|
8
8
|
defaultClassNames: string;
|
|
9
9
|
[HEADER_CELL_RENDERER_PORTAL]: Portal<any>;
|
|
10
|
+
constructor();
|
|
10
11
|
ngOnInit(): void;
|
|
11
12
|
initialiseHeader(ref: CdkPortalOutletAttachedRef): void;
|
|
12
13
|
getPortal(): Portal<any>;
|
|
@@ -13,9 +13,8 @@ export declare class TableMoreMenuComponent<T> extends DisposableComponent imple
|
|
|
13
13
|
private readonly popupType$;
|
|
14
14
|
popupComponentPortal$: ValueModelChain<ComponentPortal<TableMoreMenuPopupComponent<T>>>;
|
|
15
15
|
private readonly _visible$;
|
|
16
|
-
private initialiseCallback?;
|
|
17
16
|
constructor();
|
|
18
|
-
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T
|
|
17
|
+
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>): void;
|
|
19
18
|
preventDefault($event: MouseEvent): void;
|
|
20
19
|
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
21
20
|
get visible$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Injector
|
|
2
|
-
import {
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
2
|
+
import { ValueModel } from "@coolon/pectin";
|
|
3
3
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
4
4
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
5
5
|
import { TableFilterModel } from "../filter/table-filter-model";
|
|
6
|
-
import { TableBodyComponent } from "../renderer/table-body/table-body.component";
|
|
7
6
|
import { TableModel } from "./table-model";
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
/**
|
|
@@ -66,16 +65,23 @@ import * as i0 from "@angular/core";
|
|
|
66
65
|
* }
|
|
67
66
|
* }
|
|
68
67
|
*/
|
|
69
|
-
export declare class TableComponent<Row> extends AbstractTableComponent<Row>
|
|
68
|
+
export declare class TableComponent<Row> extends AbstractTableComponent<Row> {
|
|
70
69
|
accessor tableModel: TableModel<Row>;
|
|
71
70
|
accessor filterModel: TableFilterModel<Row>;
|
|
71
|
+
accessor enablePaging$: ValueModel<boolean>;
|
|
72
|
+
accessor enablePaging: boolean;
|
|
72
73
|
private _footerContentAdded;
|
|
73
74
|
private readonly _filteredRows$;
|
|
74
|
-
|
|
75
|
+
private _pageSize;
|
|
76
|
+
private pagedListModel;
|
|
75
77
|
constructor(injector: Injector);
|
|
76
78
|
ngOnInit(): void;
|
|
77
79
|
protected getModel(): AbstractTableModel<Row>;
|
|
80
|
+
get pageController(): import("@coolon/pectin").PageController;
|
|
81
|
+
private configurePaging;
|
|
82
|
+
private disposeOfPagedListModel;
|
|
78
83
|
footerContentChanged($event: any): void;
|
|
84
|
+
updatePageSize(count: number): void;
|
|
79
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; }, {}, never, ["[footer]"], false, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "enablePaging$": { "alias": "enablePaging$"; "required": false; }; "enablePaging": { "alias": "enablePaging"; "required": false; }; }, {}, never, ["[footer]"], false, never>;
|
|
81
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, DisposedWith, GarbageCollector, ListModel } from '@coolon/pectin';
|
|
1
|
+
import { Disposable, DisposedWith, GarbageCollector, ListModel, ValueModel } from '@coolon/pectin';
|
|
2
2
|
export declare class TreeExpansionModel<T> extends GarbageCollector {
|
|
3
3
|
private readonly _source$;
|
|
4
4
|
private readonly collapsedIds;
|
|
@@ -8,7 +8,7 @@ export declare class TreeExpansionModel<T> extends GarbageCollector {
|
|
|
8
8
|
bindToTable(source$: ListModel<T>, visibleRows$: ListModel<T>): Disposable;
|
|
9
9
|
get visibleRows$(): ListModel<T>;
|
|
10
10
|
protected identityOf(row: T): any;
|
|
11
|
-
get isExpandedPredicate$():
|
|
11
|
+
get isExpandedPredicate$(): ValueModel<(node: T) => boolean>;
|
|
12
12
|
expand(node: T): void;
|
|
13
13
|
collapse(node: T): void;
|
|
14
14
|
canExpand(node: T): boolean;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { Types } from '@coolon/pectin';
|
|
3
3
|
import { ColumnModel } from '../column/column-model';
|
|
4
|
-
import { ColumnOrderManager } from "../column/column-order-manager";
|
|
5
4
|
import { TreeLabelCellRendererComponent } from './tree-label-cell-renderer/tree-label-cell-renderer.component';
|
|
6
5
|
import { TreeTableModel } from './tree-table-model';
|
|
7
6
|
export declare class TreeLabelColumnModel<Row> extends ColumnModel<Row> {
|
|
8
7
|
readonly expansionModel: TreeTableModel<Row>;
|
|
9
8
|
private labelFactory;
|
|
10
9
|
private iconFactory;
|
|
11
|
-
constructor(columnId: string,
|
|
10
|
+
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
|
|
12
11
|
pluck<P extends Types.StringValuePropertiesOf<Row>>(property: P): void;
|
|
13
12
|
useLabel(factory: (row: Row) => string): void;
|
|
14
13
|
/**
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Injector
|
|
2
|
-
import { ValueModel } from '@coolon/pectin';
|
|
1
|
+
import { Injector } from "@angular/core";
|
|
3
2
|
import { TreeNode } from '@coolon/typescript-utilities';
|
|
4
3
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
5
4
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
6
|
-
import { TableBodyComponent } from "../renderer/table-body/table-body.component";
|
|
7
5
|
import { TreeExpansionModel } from "./tree-expansion-model";
|
|
8
6
|
import { TreeTableModel } from './tree-table-model';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
@@ -67,10 +65,9 @@ import * as i0 from "@angular/core";
|
|
|
67
65
|
* }
|
|
68
66
|
* }
|
|
69
67
|
*/
|
|
70
|
-
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T>
|
|
68
|
+
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T> {
|
|
71
69
|
accessor treeTableModel: TreeTableModel<T>;
|
|
72
70
|
accessor expansionModel: TreeExpansionModel<T>;
|
|
73
|
-
protected readonly scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
|
|
74
71
|
constructor(injector: Injector);
|
|
75
72
|
ngOnInit(): void;
|
|
76
73
|
getModel(): AbstractTableModel<T>;
|
|
@@ -22,7 +22,7 @@ export declare class MarkdownComponent extends DisposableComponent implements On
|
|
|
22
22
|
accessor content$: ValueModel<string>;
|
|
23
23
|
accessor content: string;
|
|
24
24
|
inline: boolean;
|
|
25
|
-
constructor(platform:
|
|
25
|
+
constructor(platform: Object, element: ElementRef<HTMLElement>, markdownService: MarkdownService);
|
|
26
26
|
private extractInnerContent;
|
|
27
27
|
private renderContent;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownComponent, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Constructable, Deferred } from '@coolon/pectin';
|
|
1
|
+
import { Constructable, Deferred, ValueModel } from '@coolon/pectin';
|
|
2
2
|
import { Activity } from './activity';
|
|
3
3
|
import { InteractionContext } from './interaction-context';
|
|
4
4
|
export declare class ActivityRef<D, R, E> {
|
|
@@ -20,5 +20,5 @@ export declare class ActivityRef<D, R, E> {
|
|
|
20
20
|
protected finishActivity(resolveOrReject: (deferred: Deferred<R>) => void): void;
|
|
21
21
|
cancel(): void;
|
|
22
22
|
get activityResult(): Promise<R>;
|
|
23
|
-
get activityBusy():
|
|
23
|
+
get activityBusy(): ValueModel<boolean>;
|
|
24
24
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AfterViewInit, InjectionToken } from "@angular/core";
|
|
2
2
|
import { Command, Disposable, ValueModel } from "@coolon/pectin";
|
|
3
|
-
import {
|
|
3
|
+
import { DisposableComponent } from "../components/disposable-component";
|
|
4
4
|
import { ActivityActionsComponent } from "./components/activity-actions/activity-actions.component";
|
|
5
5
|
import { InteractionContext } from "./interaction-context";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
8
|
type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
|
-
export declare class Activity<D, R, E = any> extends
|
|
9
|
+
export declare class Activity<D, R, E = any> extends DisposableComponent implements AfterViewInit {
|
|
10
10
|
readonly activityData: D;
|
|
11
11
|
private readonly activityReadyListeners;
|
|
12
12
|
private readonly _busy$;
|
package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, Injector, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { ComponentFactoryResolver, Injector, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Activity } from '../../../activity';
|
|
3
3
|
import { ActivityRef } from '../../../activity-ref';
|
|
4
4
|
import { InteractionContext } from '../../../interaction-context';
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an
|
|
8
8
|
* external service.
|
|
9
9
|
*/
|
|
10
|
-
export declare class ActivityOutletComponent<D, R, E> {
|
|
10
|
+
export declare class ActivityOutletComponent<D, R, E> implements OnInit {
|
|
11
11
|
private componentFactoryResolver;
|
|
12
12
|
private viewContainerRef;
|
|
13
13
|
private injector;
|
|
@@ -17,6 +17,7 @@ export declare class ActivityOutletComponent<D, R, E> {
|
|
|
17
17
|
set activityRef(activityRef: ActivityRef<D, R, E>);
|
|
18
18
|
get activityRef(): ActivityRef<D, R, E>;
|
|
19
19
|
constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, injector: Injector);
|
|
20
|
+
ngOnInit(): void;
|
|
20
21
|
loadActivity(activityRef: ActivityRef<D, R, E>): void;
|
|
21
22
|
get component(): Activity<D, R, E>;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivityOutletComponent<any, any, any>, never>;
|
|
@@ -5,6 +5,6 @@ export declare class StringInputActivity extends InputActivity<string> {
|
|
|
5
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputActivity, "aup-string-input-activity", never, {}, {}, never, never, false, never>;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace StringInputActivity {
|
|
8
|
-
interface Data extends InputActivity.Data<
|
|
8
|
+
interface Data extends InputActivity.Data<String> {
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -3,7 +3,7 @@ import { Constructable, GarbageCollector } from '@coolon/pectin';
|
|
|
3
3
|
import { Activity } from '../activity';
|
|
4
4
|
import { InteractionContext } from '../interaction-context';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class InteractionContextTriggerFor<D, R, E> extends GarbageCollector {
|
|
7
7
|
aupInteractionContextTriggerFor: Pick<InteractionContext, 'startActivity' | 'isActive' | 'cancelActiveActivity'>;
|
|
8
8
|
activityClass: Constructable<Activity<D, R, E>>;
|
|
9
9
|
activityData?: D;
|
|
@@ -15,6 +15,6 @@ export declare class InteractionContextTriggerForDirective<D, R, E> extends Garb
|
|
|
15
15
|
onClick(event: MouseEvent): void;
|
|
16
16
|
protected startActivity(): void;
|
|
17
17
|
prepareActivityData(): D;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionContextTriggerFor<any, any, any>, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InteractionContextTriggerFor<any, any, any>, "[aupInteractionContextTriggerFor]", never, { "aupInteractionContextTriggerFor": { "alias": "aupInteractionContextTriggerFor"; "required": false; }; "activityClass": { "alias": "activityClass"; "required": false; }; "activityData": { "alias": "activityData"; "required": false; }; "activityDataFactory": { "alias": "activityDataFactory"; "required": false; }; }, { "activityDone": "activityDone"; "activityCancelled": "activityCancelled"; }, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -40,6 +40,6 @@ import * as i38 from "@angular/material/form-field";
|
|
|
40
40
|
import * as i39 from "@angular/cdk/a11y";
|
|
41
41
|
export declare class InteractionModule {
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<InteractionModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InteractionModule, [typeof i1.ActivityContainerComponent, typeof i2.ConfirmationDialogComponent, typeof i3.ConfirmThenDialogComponent, typeof i4.ConfirmThenExecuteDialogComponent, typeof i5.AlertDialogComponent, typeof i6.ActivityOutletComponent, typeof i7.InPlaceInteractionContextComponent, typeof i8.AddItemInteractionContextComponent, typeof i9.ActivityActionsComponent, typeof i10.PopupInteractionContextComponent, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i13.InputActivity, typeof i14.
|
|
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.InteractionContextTriggerFor, 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.InteractionContextTriggerFor, typeof i11.StringInputActivity, typeof i12.SelectInputActivity, typeof i17.ActivityBodyComponent, typeof i19.PopupActivityTriggerComponent, typeof i20.InlineActivityTriggerComponent, typeof i21.ModalActivityTriggerComponent, typeof i22.AddCardActivityComponent, typeof i23.InlineStringEditorComponent]>;
|
|
44
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<InteractionModule>;
|
|
45
45
|
}
|
package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MatDialog
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatDialogConfig } from '@angular/material/dialog';
|
|
3
4
|
import { BooleanValueModelChain } from '@coolon/pectin';
|
|
4
5
|
import { InteractionContext } from '../../interaction-context';
|
|
5
6
|
import { InteractionService } from '../interaction.service';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MatDialog
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { MatDialogConfig } from '@angular/material/dialog';
|
|
2
3
|
import { Constructable, Disposable } from '@coolon/pectin';
|
|
3
4
|
import { AbstractInteractionContext } from '../../abstract-interaction-context';
|
|
4
5
|
import { Activity } from '../../activity';
|
|
@@ -24,7 +24,6 @@ export declare class AbstractPlaceNavigationComponent extends DisposableComponen
|
|
|
24
24
|
private activePlaceDefinition;
|
|
25
25
|
private placeFaces;
|
|
26
26
|
readonly trackByPlaceDef: TrackByFunction<MenuItem>;
|
|
27
|
-
private authorisedPlaces$;
|
|
28
27
|
constructor(placeRouter: PlaceRouter);
|
|
29
28
|
protected handlePlaceOutLetChanged(outlet: PlaceOutletComponent): void;
|
|
30
29
|
getNavigationFace(placeDef: PlaceDefinition): CommandFace;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NotAuthorisedNoticeComponent {
|
|
3
|
+
constructor();
|
|
3
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotAuthorisedNoticeComponent, never>;
|
|
4
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<NotAuthorisedNoticeComponent, "aup-not-authorised-notice", never, {}, {}, never, never, false, never>;
|
|
5
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NoopAuthGuard {
|
|
4
|
+
constructor();
|
|
4
5
|
canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree>;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopAuthGuard, never>;
|
|
6
7
|
static ɵprov: i0.ɵɵInjectableDeclaration<NoopAuthGuard>;
|
|
@@ -17,6 +17,7 @@ export declare class RemoveLastInteractionFromUrlNavigationSession extends Navig
|
|
|
17
17
|
onPopState(event: NavigationStart): void;
|
|
18
18
|
onRouterStarted(event: NavigationStart): void;
|
|
19
19
|
onRouterCancelled(event: NavigationCancel): void;
|
|
20
|
+
onUrlChange(url: string): void;
|
|
20
21
|
private finishUp;
|
|
21
22
|
onRouterEnd(event: NavigationEnd): void;
|
|
22
23
|
handleCanDeactivateCancelledEventScenario(locationTriggerUrl: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
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,22 @@ 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
16
|
private visitModel;
|
|
17
17
|
private _inVisitUpdate;
|
|
18
18
|
private _active;
|
|
19
19
|
interactionContext?: InteractionContext;
|
|
20
|
-
|
|
20
|
+
childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
21
|
+
readonly authorisedChildPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
22
|
+
private readonly _parameterChangeInterceptors;
|
|
21
23
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
22
24
|
protected readonly placeRouter: PlaceRouter;
|
|
23
25
|
constructor();
|
|
24
26
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated use authorisedChildPlaces$ instead
|
|
29
|
+
*/
|
|
25
30
|
get childPlaces(): readonly Constructable<PlaceComponent>[];
|
|
26
31
|
updateVisit(visit: VisitSegment): void;
|
|
27
32
|
isInitialised(): boolean;
|
|
@@ -53,6 +58,7 @@ export declare class PlaceComponent extends LoadableComponent {
|
|
|
53
58
|
*/
|
|
54
59
|
_notifyPlaceReady(): void;
|
|
55
60
|
onPlaceReady(callback: () => void): void;
|
|
61
|
+
interceptVisitParameterChange<T>(model: ValueModel<T>, callback: PlaceComponent.InterceptCallback<T>, options?: PlaceComponent.InterceptOptions): void;
|
|
56
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceComponent, never>;
|
|
57
63
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceComponent, never, never, {}, {}, never, never, false, never>;
|
|
58
64
|
}
|
|
@@ -61,4 +67,8 @@ export declare namespace PlaceComponent {
|
|
|
61
67
|
function getRouteParameters(klass: Constructable<PlaceComponent>): ParameterDefinition<any>[];
|
|
62
68
|
function getDefinition(snapshotOrConstructor: ActivatedRouteSnapshot | Constructable<PlaceComponent>): PlaceDefinition;
|
|
63
69
|
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
|
+
}
|
|
64
74
|
}
|
|
@@ -12,6 +12,7 @@ export declare class PlaceHistory {
|
|
|
12
12
|
private _previousVisits;
|
|
13
13
|
private _archive;
|
|
14
14
|
private readonly placeHistoryDepth;
|
|
15
|
+
constructor();
|
|
15
16
|
notifyNavigationStarted(): void;
|
|
16
17
|
notifyNavigationFinished(visits: Visit): void;
|
|
17
18
|
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 { NavigationSession } from "./navigation/session/navigation-session";
|
|
7
6
|
import { PlaceAuthService } from "./place-auth-service";
|
|
7
|
+
import { NavigationSession } from "./navigation/session/navigation-session";
|
|
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, any>): 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: Function) => void;
|
|
4
4
|
export declare namespace Place {
|
|
5
5
|
interface Options {
|
|
6
6
|
path: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type JsonPrimitive = boolean | number | string;
|
|
2
|
-
export type AnyJson = JsonPrimitive | null |
|
|
2
|
+
export type AnyJson = JsonPrimitive | null | JsonArray | JsonMap;
|
|
3
|
+
export interface JsonArray extends Array<AnyJson> {
|
|
4
|
+
}
|
|
3
5
|
export interface JsonMap {
|
|
4
6
|
[key: string]: AnyJson;
|
|
5
7
|
}
|
|
@@ -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(): any;
|
|
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(routeParams: Record<string,
|
|
16
|
+
hasParameter(parameterDef: ParameterDefinition<any>): boolean;
|
|
17
|
+
replace<T>(parameter: ParameterDefinition<T, any>, value: T): VisitSegment;
|
|
18
|
+
mergeRouteParameters<S>(routeParams: Record<string, any>): VisitSegment;
|
|
19
19
|
hasRoutingChangedFrom(other: VisitSegment): boolean;
|
|
20
20
|
hasChangedFrom(other: VisitSegment): boolean;
|
|
21
21
|
createRouterCommands(): string[];
|