@coolon/angular-ui-powerups 16.1.0-aplpha.8 → 16.1.0-aplpha.80
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 +62 -27
- package/assets/table.scss +15 -18
- package/assets/tabs.scss +2 -6
- package/esm2022/lib/angular-ui-powerups.module.mjs +1 -1
- package/esm2022/lib/animations/slide-animations.mjs +6 -1
- package/esm2022/lib/components/alignment.mjs +1 -1
- package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +4 -9
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +1 -1
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +2 -2
- package/esm2022/lib/components/commands/command/command.component.mjs +24 -13
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +11 -3
- package/esm2022/lib/components/commands/command-face.mjs +11 -11
- package/esm2022/lib/components/commands/flex.component.mjs +1 -1
- 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 +11 -11
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +2 -2
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +9 -16
- package/esm2022/lib/components/commands/separator.component.mjs +1 -1
- package/esm2022/lib/components/components.module.mjs +31 -17
- package/esm2022/lib/components/disposable-component.mjs +8 -37
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +2 -6
- package/esm2022/lib/components/exports.mjs +6 -2
- package/esm2022/lib/components/focus-container/focus-container.component.mjs +1 -1
- package/esm2022/lib/components/focusable.component.mjs +2 -2
- package/esm2022/lib/components/forms/abstract-input.component.mjs +62 -15
- package/esm2022/lib/components/forms/abstract-list-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/abstract-value-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +3 -4
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +1 -1
- package/esm2022/lib/components/forms/form-field.mjs +2 -0
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +3 -3
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +49 -10
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +40 -3
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +33 -0
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +12 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +22 -10
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +1 -1
- package/esm2022/lib/components/icon/icon.component.mjs +6 -3
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +1 -1
- package/esm2022/lib/components/loadable-component.mjs +49 -0
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +4 -9
- package/esm2022/lib/components/noop/noop.component.mjs +2 -4
- package/esm2022/lib/components/resize-aware.component.mjs +61 -24
- package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +2 -2
- package/esm2022/lib/components/section-header/section-header.component.mjs +1 -1
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +2 -2
- package/esm2022/lib/components/tables/abstract-table-model.mjs +40 -23
- package/esm2022/lib/components/tables/abstract-table.component.mjs +19 -5
- package/esm2022/lib/components/tables/column/column-manager.mjs +81 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +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 +1 -1
- 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 +1 -1
- 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 +4 -6
- package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +2 -4
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +212 -37
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +2 -4
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +7 -2
- package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +12 -67
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +1 -1
- 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 +2 -4
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +4 -4
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +7 -4
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +3 -3
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +3 -3
- 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 +1 -1
- package/esm2022/lib/directives/command.directive.mjs +2 -2
- package/esm2022/lib/directives/directives.module.mjs +2 -2
- package/esm2022/lib/directives/exports.mjs +2 -1
- package/esm2022/lib/directives/focus-binding-factory.mjs +1 -1
- package/esm2022/lib/directives/focus-binding.directive.mjs +2 -2
- package/esm2022/lib/directives/focus-binding.mjs +1 -1
- package/esm2022/lib/directives/garbage-collector.directive.mjs +2 -1
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +1 -1
- package/esm2022/lib/directives/highlight.pipe.mjs +2 -2
- 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 +4 -4
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +8 -4
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +2 -3
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +3 -3
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +28 -11
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +1 -3
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +2 -2
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
- 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 +3 -3
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +3 -3
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +3 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +4 -1
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +9 -4
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +3 -2
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +129 -0
- 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/exports.mjs +2 -1
- 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 +21 -23
- 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 +3 -3
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +2 -3
- 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 +1 -1
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +3 -4
- package/esm2022/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +2 -4
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +4 -4
- 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 +4 -4
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +1 -1
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/noop-auth-guard.service.mjs +2 -4
- package/esm2022/lib/place/guards/place.guard.mjs +2 -2
- 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 +29 -30
- 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 +3 -5
- package/esm2022/lib/place/place-router.mjs +17 -15
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +1 -5
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/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 +1 -1
- 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 +2 -4
- package/esm2022/lib/services/markdown/pill-plugin.mjs +1 -3
- package/esm2022/lib/services/visibility-service.mjs +4 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs +2235 -1609
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +1 -0
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +1 -4
- package/lib/components/commands/command/command.component.d.ts +4 -4
- package/lib/components/commands/command-face/command-face.component.d.ts +2 -0
- package/lib/components/commands/command-face.d.ts +5 -7
- 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 +55 -53
- package/lib/components/disposable-component.d.ts +1 -6
- 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/password-input/password-input.component.d.ts +7 -1
- package/lib/components/forms/search-input/search-input.component.d.ts +10 -0
- package/lib/components/forms/select-input/select-input.component.d.ts +4 -3
- package/lib/components/forms/string-input/string-input.component.d.ts +3 -1
- 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 +10 -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 +25 -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/abstract-confirm-dialog.component.d.ts +1 -0
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +7 -3
- 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/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +53 -0
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +3 -3
- package/lib/interaction/exports.d.ts +1 -0
- package/lib/interaction/interaction.module.d.ts +28 -28
- 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/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 +4 -10
- 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 +8 -7
- 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,9 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { Injector } from "@angular/core";
|
|
3
3
|
import { BooleanValueModelChain, Command, Constructable, DelegatingListModel, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, SelectionModel, Types, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
4
|
+
import { ColumnManager } from "./column/column-manager";
|
|
4
5
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column/column-model";
|
|
6
|
+
import { ColumnOrderManager } from "./column/column-order-manager";
|
|
5
7
|
import { ColumnTextProperties } from "./column/column-text-properties";
|
|
6
8
|
import { CustomTemplateColumnModel } from "./column/custom-template-column-model";
|
|
7
9
|
import { CustomValueColumnModel } from "./column/custom-value-column-model";
|
|
@@ -10,19 +12,20 @@ import { ListPropertyColumnModel } from "./column/list-propery-column-model";
|
|
|
10
12
|
import { PropertyColumnModel } from "./column/property-column-model";
|
|
11
13
|
import { SelectionColumnModel } from "./column/selection-column-model";
|
|
12
14
|
import { EditSession } from "./editor/edit-session";
|
|
13
|
-
import { CellRenderer } from "./renderer/cell-renderer";
|
|
14
15
|
import { TextSearchPredicate } from "./filter/text-search-predicate";
|
|
16
|
+
import { CellRenderer } from "./renderer/cell-renderer";
|
|
15
17
|
import { TableMoreMenuPopupComponent } from "./renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
16
18
|
export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
17
19
|
protected readonly _dataSource$: DelegatingListModel<Row>;
|
|
18
20
|
protected readonly _filteredRows$: DelegatingListModel<Row>;
|
|
19
21
|
protected readonly _visibleRows$: DelegatingListModel<Row>;
|
|
20
|
-
|
|
22
|
+
protected readonly columnManager: ColumnManager<Row>;
|
|
21
23
|
private _editorSessions;
|
|
22
24
|
private readonly _rowsBeingEdited$;
|
|
23
25
|
private saveCommandFactory;
|
|
24
26
|
private _editorSessionByRowId;
|
|
25
27
|
private readonly rowClassNamePredicates;
|
|
28
|
+
private readonly rowAttributeGenerators;
|
|
26
29
|
private _columnTextPropertiesLookup;
|
|
27
30
|
readonly editing$: BooleanValueModelChain;
|
|
28
31
|
readonly firstEditableColumn$: ValueModelChain<ColumnModel<Row>>;
|
|
@@ -64,7 +67,7 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
64
67
|
getEditSessionFor(row: Row): EditSession<Row>;
|
|
65
68
|
cancelAllEditorSessions(): void;
|
|
66
69
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
67
|
-
get visibleColumns(): ListModel<ColumnModel<Row>>;
|
|
70
|
+
get visibleColumns$(): ListModel<ColumnModel<Row>>;
|
|
68
71
|
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
69
72
|
columnId: string;
|
|
70
73
|
}): PropertyColumnModel<Row, P>;
|
|
@@ -76,11 +79,13 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
76
79
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
77
80
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
78
81
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
79
|
-
addMoreMenu(componentClass: Constructable<
|
|
82
|
+
addMoreMenu<C extends TableMoreMenuPopupComponent<Row>>(componentClass: Constructable<C>, initialiseCallback?: (component: C) => void): CustomValueColumnModel<Row, Row>;
|
|
80
83
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
81
84
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
85
|
+
addRowAttribute(attributeName: string, getValue: (row: Row) => string): void;
|
|
82
86
|
getRowClasses(row: Row): string[];
|
|
83
|
-
|
|
87
|
+
getRowAttributes(row: Row): Record<string, string>;
|
|
88
|
+
protected addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnOrderManager.Position): C;
|
|
84
89
|
columnTextProperties(columnTextProperties: {
|
|
85
90
|
[columnName: string]: ColumnTextProperties;
|
|
86
91
|
}): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector, OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
-
import { DelegatingListModel, DelegatingValueModel,
|
|
2
|
+
import { DelegatingListModel, DelegatingValueModel, ListModelChain, ValueModel } from "@coolon/pectin";
|
|
3
3
|
import { DisposableComponent } from "../disposable-component";
|
|
4
4
|
import { AbstractTableModel } from './abstract-table-model';
|
|
5
5
|
import { ColumnModel } from './column/column-model';
|
|
@@ -72,7 +72,8 @@ export declare class AbstractTableComponent<Row> extends DisposableComponent imp
|
|
|
72
72
|
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
73
73
|
* containment area.
|
|
74
74
|
*/
|
|
75
|
-
enableScrolling
|
|
75
|
+
accessor enableScrolling$: ValueModel<boolean>;
|
|
76
|
+
accessor enableScrolling: boolean;
|
|
76
77
|
columns: ListModelChain<ColumnModel<Row>>;
|
|
77
78
|
columnIds: ListModelChain<string>;
|
|
78
79
|
private columnsById;
|
|
@@ -87,9 +88,9 @@ export declare class AbstractTableComponent<Row> extends DisposableComponent imp
|
|
|
87
88
|
constructor(injector: Injector);
|
|
88
89
|
identityOf(row: Row): any;
|
|
89
90
|
ngOnInit(): void;
|
|
90
|
-
get visibleRows$(): ListModel<Row>;
|
|
91
|
+
get visibleRows$(): import("@coolon/pectin").ListModel<Row>;
|
|
91
92
|
protected getModel(): AbstractTableModel<Row>;
|
|
92
93
|
registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
93
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableComponent<any>, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, {}, never, never, false, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling$": { "alias": "enableScrolling$"; "required": false; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, {}, never, never, false, never>;
|
|
95
96
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GarbageCollector, ListModel, WatchList } from '@coolon/pectin';
|
|
2
|
+
import { ColumnModel } from './column-model';
|
|
3
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
4
|
+
export declare class ColumnManager<Row> extends GarbageCollector implements ColumnOrderManager {
|
|
5
|
+
private readonly _columnRefs$;
|
|
6
|
+
private readonly orderedColumnRefs$;
|
|
7
|
+
private readonly _columnsById$;
|
|
8
|
+
readonly allColumns$: ListModel<ColumnModel<Row>>;
|
|
9
|
+
readonly columnVisibilities$: WatchList<boolean>;
|
|
10
|
+
readonly visibleColumns$: ListModel<ColumnModel<Row>>;
|
|
11
|
+
constructor();
|
|
12
|
+
position(column: ColumnModel<any>, newPosition: ColumnOrderManager.Position): void;
|
|
13
|
+
getColumn(id: string): ColumnModel<Row>;
|
|
14
|
+
hasColumn(id: string): boolean;
|
|
15
|
+
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
16
|
+
addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnOrderManager.Position): C;
|
|
17
|
+
computePosition(position?: ColumnOrderManager.Position): string;
|
|
18
|
+
doComputeValue(): ColumnModel<Row>[];
|
|
19
|
+
}
|
|
@@ -3,10 +3,11 @@ import { CdkPortalOutletAttachedRef } from "@angular/cdk/portal";
|
|
|
3
3
|
import { Injector } from "@angular/core";
|
|
4
4
|
import { Command, GarbageCollector, ValueModel } from "@coolon/pectin";
|
|
5
5
|
import { EditSession } from "../editor/edit-session";
|
|
6
|
+
import { ColumnTextSearchFormatter } from "../filter/column-text-search-formatter";
|
|
6
7
|
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from "../renderer/cell-portal-ref";
|
|
7
8
|
import { TableCellComponent } from "../renderer/table-cell/table-cell.component";
|
|
8
9
|
import { TableHeaderCellComponent } from "../renderer/table-header-cell/table-header-cell.component";
|
|
9
|
-
import {
|
|
10
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
10
11
|
import { ColumnTextProperties } from "./column-text-properties";
|
|
11
12
|
export interface RowData<Row> {
|
|
12
13
|
row: Row;
|
|
@@ -23,6 +24,7 @@ export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends
|
|
|
23
24
|
}
|
|
24
25
|
export declare class ColumnModel<Row> extends GarbageCollector {
|
|
25
26
|
readonly columnId: string;
|
|
27
|
+
private readonly order;
|
|
26
28
|
private textPropertiesProvider;
|
|
27
29
|
private _columnTextProperties;
|
|
28
30
|
private _columnHeaderPortalRef;
|
|
@@ -36,7 +38,7 @@ export declare class ColumnModel<Row> extends GarbageCollector {
|
|
|
36
38
|
readonly dasherisedColumnId: string;
|
|
37
39
|
private readonly textSearchDelegate;
|
|
38
40
|
readonly visible$: ValueModel<boolean>;
|
|
39
|
-
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider);
|
|
41
|
+
constructor(columnId: string, order: ColumnOrderManager, textPropertiesProvider: ColumnModel.TextPropertiesProvider);
|
|
40
42
|
protected installHeaderRenderer(): void;
|
|
41
43
|
getHeaderText(): string;
|
|
42
44
|
isVisible(): boolean;
|
|
@@ -51,6 +53,8 @@ export declare class ColumnModel<Row> extends GarbageCollector {
|
|
|
51
53
|
*/
|
|
52
54
|
textProperties(columnTextProperties: ColumnTextProperties): this;
|
|
53
55
|
columnTextProperties(columnTextProperties: ColumnTextProperties): this;
|
|
56
|
+
positionAfter(column: ColumnModel<any>): this;
|
|
57
|
+
positionBefore(column: ColumnModel<any>): this;
|
|
54
58
|
getSearchTextFor(row: Row): string;
|
|
55
59
|
configureColumnTextSearch(formatter: ColumnTextSearchFormatter<Row>): this;
|
|
56
60
|
configureColumnTextSearch<T>(formatter: ColumnTextSearchFormatter<T>, mapper: (row: Row) => T): this;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ColumnModel } from "./column-model";
|
|
2
|
+
export interface ColumnOrderManager {
|
|
3
|
+
position(column: ColumnModel<any>, position: ColumnOrderManager.Position): void;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ColumnOrderManager {
|
|
6
|
+
interface Before {
|
|
7
|
+
before: ColumnModel<any> | null;
|
|
8
|
+
}
|
|
9
|
+
interface After {
|
|
10
|
+
after: ColumnModel<any> | null;
|
|
11
|
+
}
|
|
12
|
+
export type Position = Before | After;
|
|
13
|
+
export function processPosition(position: Position | undefined, callback: {
|
|
14
|
+
before(col: ColumnModel<any> | null): string;
|
|
15
|
+
after(col: ColumnModel<any> | null): string;
|
|
16
|
+
first(): string;
|
|
17
|
+
last(): string;
|
|
18
|
+
}): string;
|
|
19
|
+
export {};
|
|
20
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
2
|
import { ColumnModel } from "./column-model";
|
|
3
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
3
4
|
export declare class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {
|
|
4
5
|
private readonly config;
|
|
5
|
-
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider);
|
|
6
|
+
constructor(columnId: string, order: ColumnOrderManager, defaults: ColumnModel.TextPropertiesProvider);
|
|
6
7
|
setTemplate(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
7
8
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
8
9
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column-model";
|
|
3
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
3
4
|
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
4
5
|
private getValue;
|
|
5
|
-
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, getValue: (row: Row) => V);
|
|
6
|
+
constructor(columnId: string, order: ColumnOrderManager, defaults: ColumnModel.TextPropertiesProvider, getValue: (row: Row) => V);
|
|
6
7
|
cellRenderer<C extends {
|
|
7
8
|
value: Partial<V>;
|
|
8
9
|
}>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
|
|
@@ -2,8 +2,9 @@ import { ComponentType } from "@angular/cdk/overlay";
|
|
|
2
2
|
import { Command, DirtyTrackingForm } from "@coolon/pectin";
|
|
3
3
|
import { EditSession } from "../editor/edit-session";
|
|
4
4
|
import { ColumnModel } from "./column-model";
|
|
5
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
5
6
|
export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
6
|
-
constructor(columnId: string, saveCommandFactory: Command.Factory<DirtyTrackingForm<Row>, boolean | Promise<boolean>>, defaults: ColumnModel.TextPropertiesProvider);
|
|
7
|
+
constructor(columnId: string, order: ColumnOrderManager, saveCommandFactory: Command.Factory<DirtyTrackingForm<Row>, boolean | Promise<boolean>>, defaults: ColumnModel.TextPropertiesProvider);
|
|
7
8
|
cellRenderer(componentType: ComponentType<{
|
|
8
9
|
row: Row;
|
|
9
10
|
editSession: EditSession<Row>;
|
|
@@ -3,11 +3,12 @@ import { Types, Validator } from "@coolon/pectin";
|
|
|
3
3
|
import { CellListEditorComponent } from "../renderer/cell-editors";
|
|
4
4
|
import { CellRenderer } from "../renderer/cell-renderer";
|
|
5
5
|
import { ColumnModel } from "./column-model";
|
|
6
|
+
import { ColumnOrderManager } from "./column-order-manager";
|
|
6
7
|
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
7
8
|
readonly property: P;
|
|
8
9
|
private _userFormat;
|
|
9
10
|
private _defaultSearchTextFormat;
|
|
10
|
-
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
11
|
+
constructor(id: string, order: ColumnOrderManager, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
11
12
|
cellRenderer(componentType: ComponentType<CellRenderer<Types.ArrayElementType<Row, P>[]>>): Omit<this, "format">;
|
|
12
13
|
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, validators?: Validator<Types.ArrayElementType<Row, P>[]>[], initialiseComponent?: (component: C) => void): this;
|
|
13
14
|
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, initialiseComponent?: (component: C) => void): this;
|
|
@@ -4,11 +4,12 @@ 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";
|
|
7
8
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
8
9
|
readonly property: P;
|
|
9
10
|
private _userFormat;
|
|
10
11
|
private _defaultSearchTextFormatter;
|
|
11
|
-
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
12
|
+
constructor(id: string, order: ColumnOrderManager, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
12
13
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): Omit<this, "format">;
|
|
13
14
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): Omit<this, "format">;
|
|
14
15
|
liveEditCellRenderer<E extends EditableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
@@ -1,11 +1,12 @@
|
|
|
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";
|
|
4
5
|
export declare class SelectionColumnModel<Row> extends ColumnModel<Row> {
|
|
5
6
|
readonly selectionModel: Proxified<SelectionModel<Row>>;
|
|
6
7
|
private _enableHeaderControls;
|
|
7
8
|
private _color;
|
|
8
|
-
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: Proxified<SelectionModel<Row>>);
|
|
9
|
+
constructor(columnId: string, order: ColumnOrderManager, defaults: ColumnModel.TextPropertiesProvider, selectionModel: Proxified<SelectionModel<Row>>);
|
|
9
10
|
useSelectionModel(selectionModel: SelectionModel<Row>): void;
|
|
10
11
|
protected getDefaultHeaderText(): string;
|
|
11
12
|
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 EditRowControlsComponent<Row> extends DisposableComponent {
|
|
6
6
|
row: Row;
|
|
7
7
|
accessor editRowCommand: Command<void>;
|
|
8
8
|
private _session;
|
|
@@ -12,6 +12,6 @@ export declare class EditRowControls<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<EditRowControlsComponent<any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditRowControlsComponent<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 { CellRenderer } from '../renderer/cell-renderer';
|
|
2
1
|
import { Disposable } from '@coolon/pectin';
|
|
2
|
+
import { CellRenderer } from '../renderer/cell-renderer';
|
|
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 { ColumnTextSearchFormatter } from "./column-text-search-formatter";
|
|
5
4
|
import { CellRenderer } from "../renderer/cell-renderer";
|
|
5
|
+
import { ColumnTextSearchFormatter } from "./column-text-search-formatter";
|
|
6
6
|
export declare const Keys: {
|
|
7
7
|
useFunction: "useFunction";
|
|
8
8
|
useInstance: "useInstance";
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
import { AbstractConstructable } from "@coolon/restilence-plugin";
|
|
1
2
|
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,9 +10,8 @@ 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
|
|
15
|
-
abstract onPortalAttached(host: Host, portalComponent: Portal): any;
|
|
13
|
+
abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>): void;
|
|
14
|
+
abstract onPortalAttached(host: Host, portalComponent: Portal): void;
|
|
16
15
|
}
|
|
17
16
|
export declare class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
18
17
|
readonly componentType: ComponentType<C>;
|
package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ 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();
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultCellRendererComponent<any>, never>;
|
|
9
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultCellRendererComponent<any>, "aup-default-cell-renderer", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class DefaultHeaderCellRendererComponent {
|
|
3
3
|
headerText: string;
|
|
4
|
-
constructor();
|
|
5
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHeaderCellRendererComponent, never>;
|
|
6
5
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultHeaderCellRendererComponent, "aup-default-header-renderer", never, { "headerText": { "alias": "headerText"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
6
|
}
|
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import { ListModel, ListModelChain, ValueModel } from "@coolon/pectin";
|
|
1
|
+
import { ElementRef, InjectionToken, OnInit } from "@angular/core";
|
|
2
|
+
import { ListModel, ListModelChain, MutableValueModel, ValueModel } from "@coolon/pectin";
|
|
3
|
+
import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
|
|
3
4
|
import { ResizeAwareComponent } from "../../../resize-aware.component";
|
|
4
5
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
5
6
|
import { ColumnModel } from "../../column/column-model";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export declare const AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER: InjectionToken<number>;
|
|
9
|
+
export declare class TableRowAttributesDirective implements OnInit {
|
|
10
|
+
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
11
|
+
aupTableRowAttributes: Record<string, string>;
|
|
12
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAttributesDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowAttributesDirective, "[aupTableRowAttributes]", never, { "aupTableRowAttributes": { "alias": "aupTableRowAttributes"; "required": false; }; }, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
7
17
|
export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements OnInit {
|
|
18
|
+
protected bufferMultiplier: number;
|
|
8
19
|
accessor data$: ListModel<Row>;
|
|
9
20
|
accessor tableModel: AbstractTableModel<Row>;
|
|
10
21
|
accessor showHeader$: ValueModel<boolean>;
|
|
11
22
|
accessor showHeader: boolean;
|
|
12
|
-
readonly visibleRowCount: EventEmitter<number>;
|
|
13
23
|
trackBy: (index: number, item: Row) => any;
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
24
|
+
accessor scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
|
|
25
|
+
accessor scrollMode: TableBodyComponent.ScrollMode;
|
|
20
26
|
columns$: ListModelChain<ColumnModel<Row>>;
|
|
21
27
|
columnIds$: ListModelChain<string>;
|
|
22
28
|
private columnsById$;
|
|
23
|
-
readonly
|
|
24
|
-
|
|
25
|
-
private readonly rowHeight$;
|
|
29
|
+
protected readonly headerHeight$: MutableValueModel<number>;
|
|
30
|
+
protected rowHeight$: MutableValueModel<number>;
|
|
26
31
|
baseCssClass: string;
|
|
27
|
-
|
|
32
|
+
protected virtualScrollDataSource: TableVirtualScrollDataSource<Row>;
|
|
33
|
+
constructor(bufferMultiplier?: number);
|
|
28
34
|
get hideHeader(): boolean;
|
|
29
35
|
isEditing(row: Row): boolean;
|
|
30
36
|
notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
|
|
31
37
|
isFirstVisibleColumn(columnId: string): boolean;
|
|
32
38
|
isLastVisibleColumn(columnId: string): boolean;
|
|
33
39
|
getColumnClasses(columnId: string): string[];
|
|
34
|
-
|
|
35
|
-
static
|
|
40
|
+
private scheduleTableHeightCheck;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
|
|
42
|
+
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; }; "scrollMode$": { "alias": "scrollMode$"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace TableBodyComponent {
|
|
45
|
+
type ScrollMode = "none" | "classic" | "virtual";
|
|
36
46
|
}
|
|
@@ -7,7 +7,6 @@ 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();
|
|
11
10
|
ngOnInit(): void;
|
|
12
11
|
initialiseHeader(ref: CdkPortalOutletAttachedRef): void;
|
|
13
12
|
getPortal(): Portal<any>;
|
|
@@ -13,8 +13,9 @@ 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?;
|
|
16
17
|
constructor();
|
|
17
|
-
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T
|
|
18
|
+
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>, configureCallback?: (component: TableMoreMenuPopupComponent<T>) => void): void;
|
|
18
19
|
preventDefault($event: MouseEvent): void;
|
|
19
20
|
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
20
21
|
get visible$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import {
|
|
1
|
+
import { Injector, OnInit } from "@angular/core";
|
|
2
|
+
import { ValueModelChain } 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";
|
|
6
7
|
import { TableModel } from "./table-model";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
@@ -65,23 +66,16 @@ import * as i0 from "@angular/core";
|
|
|
65
66
|
* }
|
|
66
67
|
* }
|
|
67
68
|
*/
|
|
68
|
-
export declare class TableComponent<Row> extends AbstractTableComponent<Row> {
|
|
69
|
+
export declare class TableComponent<Row> extends AbstractTableComponent<Row> implements OnInit {
|
|
69
70
|
accessor tableModel: TableModel<Row>;
|
|
70
71
|
accessor filterModel: TableFilterModel<Row>;
|
|
71
|
-
accessor enablePaging$: ValueModel<boolean>;
|
|
72
|
-
accessor enablePaging: boolean;
|
|
73
72
|
private _footerContentAdded;
|
|
74
73
|
private readonly _filteredRows$;
|
|
75
|
-
|
|
76
|
-
private pagedListModel;
|
|
74
|
+
protected readonly scrollMode$: ValueModelChain<TableBodyComponent.ScrollMode>;
|
|
77
75
|
constructor(injector: Injector);
|
|
78
76
|
ngOnInit(): void;
|
|
79
77
|
protected getModel(): AbstractTableModel<Row>;
|
|
80
|
-
get pageController(): import("@coolon/pectin").PageController;
|
|
81
|
-
private configurePaging;
|
|
82
|
-
private disposeOfPagedListModel;
|
|
83
78
|
footerContentChanged($event: any): void;
|
|
84
|
-
updatePageSize(count: number): void;
|
|
85
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; };
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; }, {}, never, ["[footer]"], false, never>;
|
|
87
81
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Disposable, DisposedWith, GarbageCollector, ListModel
|
|
1
|
+
import { Disposable, DisposedWith, GarbageCollector, ListModel } 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$(): ValueModel<(node: T) => boolean>;
|
|
11
|
+
get isExpandedPredicate$(): import("@coolon/pectin").ValueModel<(node: T) => boolean>;
|
|
12
12
|
expand(node: T): void;
|
|
13
13
|
collapse(node: T): void;
|
|
14
14
|
canExpand(node: T): boolean;
|
|
@@ -1,13 +1,14 @@
|
|
|
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";
|
|
4
5
|
import { TreeLabelCellRendererComponent } from './tree-label-cell-renderer/tree-label-cell-renderer.component';
|
|
5
6
|
import { TreeTableModel } from './tree-table-model';
|
|
6
7
|
export declare class TreeLabelColumnModel<Row> extends ColumnModel<Row> {
|
|
7
8
|
readonly expansionModel: TreeTableModel<Row>;
|
|
8
9
|
private labelFactory;
|
|
9
10
|
private iconFactory;
|
|
10
|
-
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
|
|
11
|
+
constructor(columnId: string, order: ColumnOrderManager, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
|
|
11
12
|
pluck<P extends Types.StringValuePropertiesOf<Row>>(property: P): void;
|
|
12
13
|
useLabel(factory: (row: Row) => string): void;
|
|
13
14
|
/**
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
1
|
+
import { Injector, OnInit } from "@angular/core";
|
|
2
|
+
import { ValueModel } from '@coolon/pectin';
|
|
2
3
|
import { TreeNode } from '@coolon/typescript-utilities';
|
|
3
4
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
4
5
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
6
|
+
import { TableBodyComponent } from "../renderer/table-body/table-body.component";
|
|
5
7
|
import { TreeExpansionModel } from "./tree-expansion-model";
|
|
6
8
|
import { TreeTableModel } from './tree-table-model';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
@@ -65,9 +67,10 @@ import * as i0 from "@angular/core";
|
|
|
65
67
|
* }
|
|
66
68
|
* }
|
|
67
69
|
*/
|
|
68
|
-
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T> {
|
|
70
|
+
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T> implements OnInit {
|
|
69
71
|
accessor treeTableModel: TreeTableModel<T>;
|
|
70
72
|
accessor expansionModel: TreeExpansionModel<T>;
|
|
73
|
+
protected readonly scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
|
|
71
74
|
constructor(injector: Injector);
|
|
72
75
|
ngOnInit(): void;
|
|
73
76
|
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>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, NgZone } from '@angular/core';
|
|
2
|
+
import { ValueModel } from '@coolon/pectin';
|
|
3
|
+
import { DisposableComponent } from '../components/disposable-component';
|
|
4
|
+
import { Bounds } from '../components/types/bounds.class';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ResizeObserverDirective extends DisposableComponent implements AfterViewInit {
|
|
7
|
+
aupOnResize: EventEmitter<Bounds>;
|
|
8
|
+
protected readonly elementRef: ElementRef<any>;
|
|
9
|
+
protected readonly ngZone: NgZone;
|
|
10
|
+
private _bounds$;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
get bounds$(): ValueModel<Bounds>;
|
|
13
|
+
private _updateBounds;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeObserverDirective, "[aupOnResize]", never, {}, { "aupOnResize": "aupOnResize"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Constructable, Deferred
|
|
1
|
+
import { Constructable, Deferred } 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(): ValueModel<boolean>;
|
|
23
|
+
get activityBusy(): import("@coolon/pectin").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 { LoadableComponent } from "../components/loadable-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 LoadableComponent implements AfterViewInit {
|
|
10
10
|
readonly activityData: D;
|
|
11
11
|
private readonly activityReadyListeners;
|
|
12
12
|
private readonly _busy$;
|
|
@@ -4,6 +4,7 @@ import { AbstractDialogComponent } from './abstract-dialog.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
|
|
6
6
|
readonly cancelFace: CommandFace;
|
|
7
|
+
confirmClass: string;
|
|
7
8
|
constructor(config: Confirm);
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfirmDialogComponent<any, any, any>, never>;
|
|
9
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractConfirmDialogComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|