@coolon/angular-ui-powerups 16.1.0-alpha.238 → 16.1.0-aplpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/activities/activities.scss +6 -8
- package/assets/activities/input-activities.scss +6 -14
- package/assets/form.scss +23 -77
- package/assets/icons.scss +1 -2
- package/assets/interaction/editor/inline-string-editor.scss +0 -4
- package/assets/interaction.scss +1 -1
- package/assets/styles.scss +0 -4
- package/assets/table.scss +31 -84
- package/assets/tabs.scss +2 -15
- package/esm2022/lib/angular-ui-powerups.module.mjs +9 -9
- package/esm2022/lib/animations/slide-animations.mjs +10 -15
- package/esm2022/lib/components/alignment.mjs +1 -1
- package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +12 -7
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +7 -31
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +6 -6
- package/esm2022/lib/components/cards/card-stack/card-stack.component.mjs +81 -0
- package/esm2022/lib/components/commands/command/command.component.mjs +33 -35
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +5 -13
- package/esm2022/lib/components/commands/command-face.mjs +11 -12
- 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 +8 -31
- package/esm2022/lib/components/commands/group/popup-container.mjs +1 -1
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +25 -27
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +24 -15
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +12 -18
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +23 -14
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +19 -12
- package/esm2022/lib/components/commands/separator.component.mjs +14 -8
- package/esm2022/lib/components/components.module.mjs +58 -73
- package/esm2022/lib/components/disposable-component.mjs +40 -74
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +9 -5
- package/esm2022/lib/components/exports.mjs +12 -16
- 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 +18 -67
- 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 +15 -18
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +8 -10
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +11 -12
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +13 -94
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +7 -44
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +19 -21
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +16 -35
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +8 -12
- package/esm2022/lib/components/icon/icon.component.mjs +7 -10
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +4 -4
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +12 -7
- 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 +17 -15
- package/esm2022/lib/components/tables/abstract-table-model.mjs +113 -116
- package/esm2022/lib/components/tables/abstract-table.component.mjs +8 -23
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +23 -20
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +4 -5
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -4
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +21 -0
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +21 -8
- package/esm2022/lib/components/tables/column/property-column-model.mjs +20 -7
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +13 -35
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +60 -0
- package/esm2022/lib/components/tables/editor/edit-session.mjs +26 -0
- package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +2 -0
- 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 +12 -16
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -17
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +5 -5
- package/esm2022/lib/components/tables/renderer/cell-editors.mjs +2 -0
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +26 -22
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +8 -6
- 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 +8 -19
- package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +9 -18
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +53 -266
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +50 -9
- 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 +33 -0
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +60 -0
- package/esm2022/lib/components/tables/table/table-model.mjs +35 -18
- package/esm2022/lib/components/tables/table/table.component.mjs +64 -42
- package/esm2022/lib/components/tables/table-row-menu/table-row-menu.component.mjs +84 -0
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- package/esm2022/lib/components/tables/tree-table/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 +6 -6
- 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 +8 -15
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +7 -4
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +6 -6
- package/esm2022/lib/components/track.mjs +1 -1
- package/esm2022/lib/components/types/bounds.class.mjs +1 -1
- package/esm2022/lib/components/types/loadable.mjs +2 -0
- package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +4 -4
- package/esm2022/lib/directives/command.directive.mjs +14 -26
- package/esm2022/lib/directives/directives.module.mjs +10 -10
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/focus-binding-factory.mjs +4 -5
- package/esm2022/lib/directives/focus-binding.directive.mjs +5 -5
- package/esm2022/lib/directives/focus-binding.mjs +2 -22
- 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 +13 -22
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +8 -6
- package/esm2022/lib/interaction/activity-ref.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +23 -24
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +10 -14
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +45 -5
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +17 -30
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +4 -10
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +25 -119
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +19 -55
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +6 -6
- package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +4 -5
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +4 -5
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +4 -5
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +4 -5
- 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 -5
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +12 -12
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +10 -6
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +10 -6
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +11 -9
- 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 +13 -13
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +9 -25
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +5 -6
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +38 -44
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +12 -14
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +5 -6
- package/esm2022/lib/interaction/confirm.mjs +2 -26
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +6 -6
- package/esm2022/lib/interaction/exports.mjs +1 -6
- package/esm2022/lib/interaction/in-place-interaction-context.mjs +1 -1
- package/esm2022/lib/interaction/interaction-context.mjs +2 -3
- package/esm2022/lib/interaction/interaction.module.mjs +36 -44
- package/esm2022/lib/interaction/route-synchronisation-adapter.mjs +1 -1
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +4 -4
- package/esm2022/lib/interaction/services/interaction.service.mjs +10 -23
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +10 -16
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +5 -29
- 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 +9 -8
- 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 +21 -23
- 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 +11 -19
- package/esm2022/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +7 -7
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/noop-auth-guard.service.mjs +7 -5
- package/esm2022/lib/place/guards/place.guard.mjs +14 -30
- 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 +4 -39
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +9 -9
- 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 +2 -11
- 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-auth-service.mjs +7 -8
- package/esm2022/lib/place/place-component.mjs +79 -82
- package/esm2022/lib/place/place-config.mjs +1 -1
- package/esm2022/lib/place/place-definition.mjs +5 -18
- package/esm2022/lib/place/place-history.mjs +8 -17
- package/esm2022/lib/place/place-router.mjs +70 -191
- package/esm2022/lib/place/place.decorator.mjs +3 -4
- package/esm2022/lib/place/place.module.mjs +17 -17
- 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 +51 -55
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -6
- package/esm2022/lib/place/route/parameter-sanitiser.mjs +2 -7
- package/esm2022/lib/place/route/parameter-snapshot.mjs +1 -1
- package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +1 -1
- package/esm2022/lib/place/url-service.mjs +4 -4
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -3
- package/esm2022/lib/place/visit.mjs +5 -5
- 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 +3634 -5281
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/angular-ui-powerups.module.d.ts +5 -5
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +4 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +3 -6
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/cards/card-stack/card-stack.component.d.ts +68 -0
- package/lib/components/commands/command/command.component.d.ts +10 -9
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +9 -8
- package/lib/components/commands/group/popup-aware.component.d.ts +5 -10
- package/lib/components/commands/group/popup-container.d.ts +1 -1
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +6 -6
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +4 -2
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -4
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +4 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +7 -3
- package/lib/components/commands/separator.component.d.ts +4 -2
- package/lib/components/components.module.d.ts +30 -33
- package/lib/components/disposable-component.d.ts +9 -26
- package/lib/components/empty-state/empty-state.component.d.ts +4 -1
- package/lib/components/exports.d.ts +11 -15
- package/lib/components/forms/abstract-input.component.d.ts +7 -16
- package/lib/components/forms/abstract-list-input.component.d.ts +1 -1
- package/lib/components/forms/abstract-value-input.component.d.ts +1 -1
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +2 -2
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -16
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -7
- package/lib/components/forms/text-input/text-input.component.d.ts +0 -3
- package/lib/components/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 +7 -26
- package/lib/components/switch-case/switch-case.component.d.ts +7 -6
- package/lib/components/tables/abstract-table-model.d.ts +37 -51
- package/lib/components/tables/abstract-table.component.d.ts +7 -8
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +17 -14
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +3 -4
- package/lib/components/tables/column/editor-controls-column-model.d.ts +13 -0
- package/lib/components/tables/column/list-propery-column-model.d.ts +7 -5
- package/lib/components/tables/column/property-column-model.d.ts +9 -7
- package/lib/components/tables/column/selection-column-model.d.ts +4 -10
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +17 -0
- package/lib/components/tables/editor/edit-session.d.ts +9 -0
- package/lib/components/tables/{renderer → 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/table-filter-model.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/cell-editors.d.ts +9 -0
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +25 -22
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +2 -1
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -0
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +2 -3
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +0 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +21 -55
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +14 -5
- 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-popup/table-more-menu-popup.component.d.ts +15 -0
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +23 -0
- package/lib/components/tables/table/table-model.d.ts +36 -10
- package/lib/components/tables/table/table.component.d.ts +13 -17
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +28 -0
- package/lib/components/tables/tree-table/flattened-tree-list-model.d.ts +1 -1
- 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-cell-renderer/tree-label-cell-renderer.component.d.ts +3 -3
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +3 -4
- package/lib/components/tables/tree-table/tree-table-component.d.ts +3 -6
- package/lib/components/tables/tree-table/tree-table-model.d.ts +6 -5
- package/lib/components/text/markdown/markdown.component.d.ts +1 -1
- package/lib/components/types/loadable.d.ts +5 -0
- package/lib/directives/command.directive.d.ts +5 -7
- package/lib/directives/directives.module.d.ts +5 -5
- package/lib/directives/exports.d.ts +0 -1
- package/lib/directives/focus-binding.d.ts +0 -1
- package/lib/directives/highlight.pipe.d.ts +2 -8
- package/lib/interaction/abstract-interaction-context.d.ts +5 -5
- package/lib/interaction/activity-ref.d.ts +4 -4
- package/lib/interaction/activity.d.ts +8 -8
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +2 -3
- package/lib/interaction/components/abstract-dialog.component.d.ts +15 -6
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -12
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +13 -32
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +7 -6
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.d.ts +2 -2
- package/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.d.ts +1 -1
- package/lib/interaction/components/add-card-activity/add-card-activity.component.d.ts +2 -2
- package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +3 -3
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -6
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +2 -2
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +2 -2
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-editor-model.d.ts +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +2 -2
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +10 -12
- package/lib/interaction/components/input-activities/input-activity.d.ts +1 -1
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -2
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
- package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +2 -2
- package/lib/interaction/confirm.d.ts +0 -4
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +5 -5
- package/lib/interaction/exports.d.ts +0 -5
- package/lib/interaction/in-place-interaction-context.d.ts +2 -2
- package/lib/interaction/interaction-context.d.ts +4 -10
- package/lib/interaction/interaction.module.d.ts +33 -35
- package/lib/interaction/route-synchronisation-adapter.d.ts +3 -3
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +4 -4
- package/lib/interaction/services/interaction.service.d.ts +4 -5
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +5 -4
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +5 -6
- package/lib/interaction/services/modal-interaction-context.factory.d.ts +2 -2
- package/lib/place/components/abstract-place-navigation.component.d.ts +2 -3
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -0
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +7 -6
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -2
- package/lib/place/guards/noop-auth-guard.service.d.ts +1 -0
- package/lib/place/guards/place.guard.d.ts +1 -8
- package/lib/place/navigation/place-component-deactivation-handler.d.ts +4 -4
- package/lib/place/navigation/session/abstract-pop-state-navigation.d.ts +1 -1
- package/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.d.ts +3 -3
- package/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.d.ts +3 -3
- package/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.d.ts +3 -3
- package/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.d.ts +1 -1
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +3 -16
- package/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.d.ts +1 -1
- package/lib/place/navigation/session/navigation-context.d.ts +5 -5
- package/lib/place/navigation/session/navigation-session.d.ts +8 -15
- package/lib/place/place-access-guard.d.ts +1 -1
- package/lib/place/place-auth-service.d.ts +8 -8
- package/lib/place/place-component.d.ts +23 -15
- package/lib/place/place-definition.d.ts +3 -6
- package/lib/place/place-history.d.ts +4 -5
- package/lib/place/place-router.d.ts +10 -41
- package/lib/place/place.decorator.d.ts +1 -9
- package/lib/place/place.module.d.ts +8 -8
- package/lib/place/route/json-types.d.ts +3 -1
- package/lib/place/route/parameter-decorators.d.ts +6 -5
- package/lib/place/route/parameter-definition.d.ts +5 -5
- package/lib/place/route/parameter-sanitiser.d.ts +1 -8
- package/lib/place/route/parameter-snapshot.d.ts +2 -2
- package/lib/place/route/visit-segment-sanitiser.d.ts +3 -3
- package/lib/place/url-service.d.ts +1 -1
- package/lib/place/url-snapshot.d.ts +1 -1
- package/lib/place/visit-segment.d.ts +6 -6
- package/lib/place/visit.d.ts +4 -4
- package/lib/services/markdown/markdown.service.d.ts +1 -0
- package/lib/services/visibility-service.d.ts +1 -1
- package/package.json +20 -19
- package/assets/draw.scss +0 -20
- package/assets/layout.scss +0 -3
- package/assets/place.scss +0 -31
- package/esm2022/lib/components/commands/button-renderer/button-renderer.component.mjs +0 -115
- package/esm2022/lib/components/file/file-download/file-download.component.mjs +0 -89
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/loadable-component.mjs +0 -69
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -82
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -135
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -7
- package/esm2022/lib/components/tables/renderer/editable-cell-renderer.mjs +0 -2
- package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +0 -2
- package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +0 -153
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +0 -45
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +0 -71
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -32
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/activity-context.mjs +0 -4
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +0 -55
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +0 -54
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
- package/esm2022/lib/interaction/interaction-context-provider.mjs +0 -17
- package/esm2022/lib/place/place-metadata.mjs +0 -16
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +0 -30
- package/lib/components/file/file-download/file-download.component.d.ts +0 -45
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/loadable-component.d.ts +0 -20
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/components/tables/footer/footer-row-model.d.ts +0 -72
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -6
- package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +0 -7
- package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +0 -42
- package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +0 -19
- package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.d.ts +0 -24
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -10
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/activity-context.d.ts +0 -9
- package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +0 -17
- package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +0 -15
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
- package/lib/interaction/interaction-context-provider.d.ts +0 -11
- package/lib/place/place-metadata.d.ts +0 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { ColumnModel } from './column-model';
|
|
3
|
+
export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
|
|
4
|
+
private readonly _allColumns$;
|
|
5
|
+
private readonly columnsById$;
|
|
6
|
+
constructor();
|
|
7
|
+
get allColumns$(): ListModel<ColumnModel<Row>>;
|
|
8
|
+
getColumn(id: string): ColumnModel<Row>;
|
|
9
|
+
hasColumn(id: string): boolean;
|
|
10
|
+
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
11
|
+
addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
12
|
+
doComputeValue(): ColumnModel<Row>[];
|
|
13
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { CdkPortalOutletAttachedRef } from "@angular/cdk/portal";
|
|
3
3
|
import { Injector } from "@angular/core";
|
|
4
|
-
import { GarbageCollector, ValueModel } from "@coolon/pectin";
|
|
4
|
+
import { Command, GarbageCollector, ValueModel } from "@coolon/pectin";
|
|
5
|
+
import { EditSession } from "../editor/edit-session";
|
|
6
|
+
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from "../renderer/cell-portal-ref";
|
|
7
|
+
import { TableCellComponent } from "../renderer/table-cell/table-cell.component";
|
|
8
|
+
import { TableHeaderCellComponent } from "../renderer/table-header-cell/table-header-cell.component";
|
|
5
9
|
import { ColumnTextSearchFormatter } from "../filter/column-text-search-formatter";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import type { TableHeaderCellComponent } from "../renderer/table-header-cell/table-header-cell.component";
|
|
9
|
-
import type { ColumnOrderManager } from "./column-order-manager";
|
|
10
|
-
import type { ColumnTextProperties } from "./column-text-properties";
|
|
11
|
-
export interface RowData<Row extends object> {
|
|
10
|
+
import { ColumnTextProperties } from "./column-text-properties";
|
|
11
|
+
export interface RowData<Row> {
|
|
12
12
|
row: Row;
|
|
13
|
+
editSession?: EditSession<Row>;
|
|
14
|
+
editRowCommand: Command<void>;
|
|
13
15
|
}
|
|
14
16
|
export type OnComponentInit<C> = (component: C) => void;
|
|
15
17
|
export interface CellRendererOptions<Row, E> {
|
|
@@ -19,13 +21,13 @@ export interface CellRendererOptions<Row, E> {
|
|
|
19
21
|
export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {
|
|
20
22
|
onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;
|
|
21
23
|
}
|
|
22
|
-
export declare class ColumnModel<Row
|
|
24
|
+
export declare class ColumnModel<Row> extends GarbageCollector {
|
|
23
25
|
readonly columnId: string;
|
|
24
|
-
private readonly order;
|
|
25
26
|
private textPropertiesProvider;
|
|
26
27
|
private _columnTextProperties;
|
|
27
28
|
private _columnHeaderPortalRef;
|
|
28
29
|
private _cellRendererPortalRef;
|
|
30
|
+
private _cellEditorPortalRef;
|
|
29
31
|
private _enableRowSelection;
|
|
30
32
|
private _flex;
|
|
31
33
|
private _defaultVisibility$;
|
|
@@ -34,7 +36,7 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
|
|
|
34
36
|
readonly dasherisedColumnId: string;
|
|
35
37
|
private readonly textSearchDelegate;
|
|
36
38
|
readonly visible$: ValueModel<boolean>;
|
|
37
|
-
constructor(columnId: string,
|
|
39
|
+
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider);
|
|
38
40
|
protected installHeaderRenderer(): void;
|
|
39
41
|
getHeaderText(): string;
|
|
40
42
|
isVisible(): boolean;
|
|
@@ -49,20 +51,21 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
|
|
|
49
51
|
*/
|
|
50
52
|
textProperties(columnTextProperties: ColumnTextProperties): this;
|
|
51
53
|
columnTextProperties(columnTextProperties: ColumnTextProperties): this;
|
|
52
|
-
positionAfter(column: ColumnModel<any>): this;
|
|
53
|
-
positionBefore(column: ColumnModel<any>): this;
|
|
54
54
|
getSearchTextFor(row: Row): string;
|
|
55
55
|
configureColumnTextSearch(formatter: ColumnTextSearchFormatter<Row>): this;
|
|
56
56
|
configureColumnTextSearch<T>(formatter: ColumnTextSearchFormatter<T>, mapper: (row: Row) => T): this;
|
|
57
|
-
protected configureHeaderRenderer<C>(config: CellHeaderPortalRef<Row,
|
|
58
|
-
protected configureCellRenderer<C>(config: CellRendererPortalRef<Row,
|
|
57
|
+
protected configureHeaderRenderer<C>(config: CellHeaderPortalRef<Row, any>): void;
|
|
58
|
+
protected configureCellRenderer<C>(config: CellRendererPortalRef<Row, any>): void;
|
|
59
|
+
protected configureCellEditor<E>(cellEditor: CellEditorPortalRef<Row, E>): void;
|
|
59
60
|
cellHeaderRenderer<C>(componentType: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): this;
|
|
60
61
|
flex(flex?: boolean): void;
|
|
61
62
|
isFlex(): boolean;
|
|
63
|
+
hasEditorPortal(): boolean;
|
|
62
64
|
attachHeaderCell(host: any): void;
|
|
63
65
|
attachCell(host: any): void;
|
|
64
66
|
onHeaderAttached(host: TableHeaderCellComponent, ref: CdkPortalOutletAttachedRef): void;
|
|
65
67
|
onRendererAttached(host: TableCellComponent<Row>, ref: CdkPortalOutletAttachedRef): void;
|
|
68
|
+
onEditorAttached(host: TableCellComponent<Row>, ref: CdkPortalOutletAttachedRef): void;
|
|
66
69
|
updatePortalContent(host: TableCellComponent<Row>): void;
|
|
67
70
|
protected _selectRowOnClick(selectRowOnClick: boolean): this;
|
|
68
71
|
isRowSelectionEnabled(): boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
2
|
import { ColumnModel } from "./column-model";
|
|
3
|
-
|
|
4
|
-
export declare class CustomTemplateColumnModel<Row extends object> extends ColumnModel<Row> {
|
|
3
|
+
export declare class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {
|
|
5
4
|
private readonly config;
|
|
6
|
-
constructor(columnId: string,
|
|
5
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider);
|
|
7
6
|
setTemplate(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
8
7
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
9
8
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare class CustomValueColumnModel<Row extends object, V> extends ColumnModel<Row> {
|
|
2
|
+
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column-model";
|
|
3
|
+
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
5
4
|
private getValue;
|
|
6
|
-
constructor(columnId: string,
|
|
5
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, getValue: (row: Row) => V);
|
|
7
6
|
cellRenderer<C extends {
|
|
8
7
|
value: Partial<V>;
|
|
9
8
|
}>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
+
import { Command, DirtyTrackingForm } from "@coolon/pectin";
|
|
3
|
+
import { EditSession } from "../editor/edit-session";
|
|
4
|
+
import { ColumnModel } from "./column-model";
|
|
5
|
+
export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
6
|
+
constructor(columnId: string, saveCommandFactory: Command.Factory<DirtyTrackingForm<Row>, boolean | Promise<boolean>>, defaults: ColumnModel.TextPropertiesProvider);
|
|
7
|
+
cellRenderer(componentType: ComponentType<{
|
|
8
|
+
row: Row;
|
|
9
|
+
editSession: EditSession<Row>;
|
|
10
|
+
editRowCommand: Command<void>;
|
|
11
|
+
}>): this;
|
|
12
|
+
protected getDefaultHeaderText(): string;
|
|
13
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
-
import { Types } from "@coolon/pectin";
|
|
3
|
-
import
|
|
2
|
+
import { Types, Validator } from "@coolon/pectin";
|
|
3
|
+
import { CellListEditorComponent } from "../renderer/cell-editors";
|
|
4
|
+
import { CellRenderer } from "../renderer/cell-renderer";
|
|
4
5
|
import { ColumnModel } from "./column-model";
|
|
5
|
-
|
|
6
|
-
export declare class ListPropertyColumnModel<Row extends object, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
6
|
+
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
7
7
|
readonly property: P;
|
|
8
8
|
private _userFormat;
|
|
9
9
|
private _defaultSearchTextFormat;
|
|
10
|
-
constructor(id: string,
|
|
10
|
+
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
11
11
|
cellRenderer(componentType: ComponentType<CellRenderer<Types.ArrayElementType<Row, P>[]>>): Omit<this, "format">;
|
|
12
|
+
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, validators?: Validator<Types.ArrayElementType<Row, P>[]>[], initialiseComponent?: (component: C) => void): this;
|
|
13
|
+
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, initialiseComponent?: (component: C) => void): this;
|
|
12
14
|
format(formatter: (value: Types.ArrayElementType<Row, P>[]) => any): Omit<this, "cellRenderer">;
|
|
13
15
|
selectRowOnClick(selectRowOnClick: boolean): this;
|
|
14
16
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
-
import { Types } from "@coolon/pectin";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
export declare class PropertyColumnModel<Row
|
|
2
|
+
import { Types, Validator } from "@coolon/pectin";
|
|
3
|
+
import { EditableCellRenderer } from "../editor/editable-cell-renderer";
|
|
4
|
+
import { CellEditorComponent } from "../renderer/cell-editors";
|
|
5
|
+
import { CellRenderer } from "../renderer/cell-renderer";
|
|
6
|
+
import { CellRendererOptions, ColumnModel, MutableCellRendererOptions, OnComponentInit } from "./column-model";
|
|
7
|
+
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
8
8
|
readonly property: P;
|
|
9
9
|
private _userFormat;
|
|
10
10
|
private _defaultSearchTextFormatter;
|
|
11
|
-
constructor(id: string,
|
|
11
|
+
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
12
12
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): Omit<this, "format">;
|
|
13
13
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): Omit<this, "format">;
|
|
14
14
|
liveEditCellRenderer<E extends EditableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
@@ -18,6 +18,8 @@ export declare class PropertyColumnModel<Row extends object, P extends Types.Val
|
|
|
18
18
|
* @param options
|
|
19
19
|
*/
|
|
20
20
|
mutableCellRenderer<E extends EditableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
21
|
+
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
|
|
22
|
+
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
|
|
21
23
|
format(formatter: (value: Row[P]) => any): Omit<this, "cellRenderer">;
|
|
22
24
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
23
25
|
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { ThemePalette } from "@angular/material/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Proxified, SelectionModel } from "@coolon/pectin";
|
|
3
3
|
import { ColumnModel } from "./column-model";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare class SelectionColumnModel<Row> extends ColumnModel<Row> {
|
|
5
|
+
readonly selectionModel: Proxified<SelectionModel<Row>>;
|
|
6
6
|
private _enableHeaderControls;
|
|
7
7
|
private _color;
|
|
8
|
-
|
|
9
|
-
private _isUsingTemporarySelection$;
|
|
10
|
-
private _userSelectionModel;
|
|
11
|
-
constructor(columnId: string, order: ColumnOrderManager, defaults: ColumnModel.TextPropertiesProvider);
|
|
12
|
-
get selectionModel(): SelectionModel<Row>;
|
|
13
|
-
get isUsingTemporarySelectionModel$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
8
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: Proxified<SelectionModel<Row>>);
|
|
14
9
|
useSelectionModel(selectionModel: SelectionModel<Row>): void;
|
|
15
10
|
protected getDefaultHeaderText(): string;
|
|
16
11
|
enableHeaderControls(enable: boolean): this;
|
|
@@ -20,5 +15,4 @@ export declare class SelectionColumnModel<Row extends object> extends ColumnMode
|
|
|
20
15
|
color(color: ThemePalette): void;
|
|
21
16
|
selectRow(row: Row): void;
|
|
22
17
|
isSelected(row: Row): boolean;
|
|
23
|
-
withTemporarySelectionModel<S extends SelectionModel<Row>, R>(createSelectionModel: (garbage: GarbageCollector) => S, process: (selectionModel: S) => Promise<R>): Promise<R>;
|
|
24
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command, DirtyTrackingForm } from '@coolon/pectin';
|
|
2
|
+
import { DisposableComponent } from '../../../disposable-component';
|
|
3
|
+
import { EditSession } from '../edit-session';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class EditRowControls<Row> extends DisposableComponent {
|
|
6
|
+
row: Row;
|
|
7
|
+
accessor editRowCommand: Command<void>;
|
|
8
|
+
private _session;
|
|
9
|
+
set editSession(session: EditSession<Row>);
|
|
10
|
+
get editSession(): EditSession<Row>;
|
|
11
|
+
readonly saveCommand: Command<void>;
|
|
12
|
+
readonly cancelCommand: Command<void>;
|
|
13
|
+
constructor();
|
|
14
|
+
get form(): DirtyTrackingForm<Row>;
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command, DirtyTrackingForm, GarbageCollector } from '@coolon/pectin';
|
|
2
|
+
export declare class EditSession<Row> extends GarbageCollector {
|
|
3
|
+
readonly rowId: any;
|
|
4
|
+
readonly form: DirtyTrackingForm<Row>;
|
|
5
|
+
readonly saveCommand: Command<boolean | Promise<boolean>>;
|
|
6
|
+
private _liveRowValue$;
|
|
7
|
+
readonly liveRowValue$: import("@coolon/pectin").ValueModel<Row>;
|
|
8
|
+
constructor(rowId: any, row: Row, form: DirtyTrackingForm<Row>, saveCommand: Command<boolean | Promise<boolean>>);
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CellRenderer } from '../renderer/cell-renderer';
|
|
1
2
|
import { Disposable } from '@coolon/pectin';
|
|
2
|
-
import type { CellRenderer } from './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 type { 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,5 +1,5 @@
|
|
|
1
1
|
import { Disposable, DisposedWith, GarbageCollector, ListModel, Predicate, ValueModel } from "@coolon/pectin";
|
|
2
|
-
import
|
|
2
|
+
import { TextSearchPredicate } from "./text-search-predicate";
|
|
3
3
|
export declare class TableFilterModel<Row> extends GarbageCollector {
|
|
4
4
|
private readonly _source$;
|
|
5
5
|
private readonly _rowPredicate$;
|
|
@@ -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
|
-
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormListModel, FormValueModel, MutableListModel, MutableValueModel } from '@coolon/pectin';
|
|
2
|
+
export interface CellEditorComponent<T> {
|
|
3
|
+
value$: MutableValueModel<T> | FormValueModel<T>;
|
|
4
|
+
requestFocus?(): void;
|
|
5
|
+
}
|
|
6
|
+
export interface CellListEditorComponent<T> {
|
|
7
|
+
list$: MutableListModel<T> | FormListModel<T>;
|
|
8
|
+
requestFocus?(): void;
|
|
9
|
+
}
|
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { ColumnModel, RowData } from '../column/column-model';
|
|
4
|
+
import { EditSession } from '../editor/edit-session';
|
|
5
|
+
import { TableCellComponent } from './table-cell/table-cell.component';
|
|
6
|
+
import { TableHeaderCellComponent } from './table-header-cell/table-header-cell.component';
|
|
6
7
|
export declare const HEADER_CELL_RENDERER_PORTAL: unique symbol;
|
|
7
|
-
export declare const FOOTER_CELL_RENDERER_PORTAL: unique symbol;
|
|
8
8
|
export declare const CELL_RENDERER_PORTAL: unique symbol;
|
|
9
|
+
export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
9
10
|
export declare const PORTAL_RENDERER_COMPONENT: unique symbol;
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export declare const PORTAL_EDITOR_COMPONENT: unique symbol;
|
|
12
|
+
export declare abstract class CellPortalRef<Row, Host, Portal> {
|
|
13
|
+
constructor();
|
|
14
|
+
abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>): any;
|
|
15
|
+
abstract onPortalAttached(host: Host, portalComponent: Portal): any;
|
|
13
16
|
}
|
|
14
|
-
export declare class CellHeaderPortalRef<Row
|
|
17
|
+
export declare class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
15
18
|
readonly componentType: ComponentType<C>;
|
|
16
19
|
readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void;
|
|
17
20
|
constructor(componentType: ComponentType<C>, initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void);
|
|
18
|
-
initialiseHost(host:
|
|
21
|
+
initialiseHost(host: TableHeaderCellComponent, columnModel: ColumnModel<Row>): void;
|
|
19
22
|
onPortalAttached(host: TableHeaderCellComponent, portalComponent: C): void;
|
|
20
23
|
}
|
|
21
|
-
export declare abstract class CellRendererPortalRef<Row
|
|
24
|
+
export declare abstract class CellRendererPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellComponent<Row>, Portal> {
|
|
22
25
|
abstract pushState(host: TableCellComponent<Row>): void;
|
|
23
26
|
}
|
|
24
|
-
export declare class ComponentCellRendererPortalRef<Row
|
|
27
|
+
export declare class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {
|
|
25
28
|
readonly componentType: ComponentType<Portal>;
|
|
26
29
|
readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void;
|
|
27
30
|
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void);
|
|
28
|
-
initialiseHost(host:
|
|
31
|
+
initialiseHost(host: TableCellComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
29
32
|
onPortalAttached(host: TableCellComponent<Row>, portalComponent: Portal): void;
|
|
30
33
|
pushState(host: TableCellComponent<Row>): void;
|
|
31
34
|
}
|
|
32
|
-
export declare class
|
|
35
|
+
export declare class CellEditorPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellComponent<Row>, Portal> {
|
|
36
|
+
readonly componentType: ComponentType<Portal>;
|
|
37
|
+
readonly initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void;
|
|
38
|
+
constructor(componentType: ComponentType<Portal>, initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void);
|
|
39
|
+
initialiseHost(host: TableCellComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
40
|
+
onPortalAttached(host: TableCellComponent<Row>, portalComponent: Portal): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class TemplateCellRendererPortalRef<Row> extends CellRendererPortalRef<Row, undefined> {
|
|
33
43
|
private templateRef;
|
|
34
44
|
private viewContainer;
|
|
35
45
|
private fillCell;
|
|
36
46
|
private padChild;
|
|
37
47
|
constructor();
|
|
38
48
|
registerPortal(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
39
|
-
initialiseHost(host:
|
|
49
|
+
initialiseHost(host: TableCellComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
40
50
|
onPortalAttached(host: TableCellComponent<Row>, portalComponent: undefined): void;
|
|
41
51
|
pushState(host: TableCellComponent<Row>): void;
|
|
42
52
|
private createPortal;
|
|
43
53
|
}
|
|
44
|
-
export declare class CellFooterPortalRef<Row extends object, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
45
|
-
readonly componentType: ComponentType<C>;
|
|
46
|
-
readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void;
|
|
47
|
-
constructor(componentType: ComponentType<C>, initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void);
|
|
48
|
-
initialiseHost(host: Host): void;
|
|
49
|
-
onPortalAttached(host: TableHeaderCellComponent, portalComponent: C): void;
|
|
50
|
-
}
|
package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CellRenderer } from "../cell-renderer";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
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
|
}
|
package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemePalette } from
|
|
1
|
+
import { ThemePalette } from "@angular/material/core";
|
|
2
2
|
import { Command, MultipleSelectionModel, SelectionModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -12,8 +12,7 @@ export declare class SelectionHeaderCellComponent<Row> extends DisposableCompone
|
|
|
12
12
|
isIntermediate(): boolean;
|
|
13
13
|
isVisible(): boolean;
|
|
14
14
|
isMultiSelectionModel(): boolean;
|
|
15
|
-
ifMultiSelectionModel<T>(runnable: (model$: MultipleSelectionModel<Row,
|
|
16
|
-
handleClick(event$: Event): void;
|
|
15
|
+
ifMultiSelectionModel<T>(runnable: (model$: MultipleSelectionModel<Row, any>) => T, otherwise?: T): T;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionHeaderCellComponent<any>, never>;
|
|
18
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionHeaderCellComponent<any>, "aup-selection-header-cell", never, {}, {}, never, never, false, never>;
|
|
19
18
|
}
|
|
@@ -1,70 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ListModel, ListModelChain, MutableValueModel, ValueModel } from "@coolon/pectin";
|
|
4
|
-
import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnInit } from "@angular/core";
|
|
2
|
+
import { ListModel, ListModelChain, ValueModel } from "@coolon/pectin";
|
|
5
3
|
import { ResizeAwareComponent } from "../../../resize-aware.component";
|
|
6
4
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
7
|
-
import
|
|
8
|
-
import { FooterRowModel, ResolvedFooterRow } from "../../footer/footer-row-model";
|
|
5
|
+
import { ColumnModel } from "../../column/column-model";
|
|
9
6
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare
|
|
11
|
-
export declare const AUP_TABLE_OPTIMIZED_CHANGE_DETECTION: InjectionToken<boolean>;
|
|
12
|
-
export declare class TableRowAttributesDirective implements OnChanges {
|
|
13
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
14
|
-
aupTableRowAttributes: Record<string, string>;
|
|
15
|
-
/** Attribute names applied on the previous pass, so ones that disappear can be removed. */
|
|
16
|
-
private appliedAttributeNames;
|
|
17
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
18
|
-
ngOnChanges(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAttributesDirective, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowAttributesDirective, "[aupTableRowAttributes]", never, { "aupTableRowAttributes": { "alias": "aupTableRowAttributes"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
-
}
|
|
22
|
-
export declare class TableBodyComponent<Row extends object> extends ResizeAwareComponent implements AfterViewInit, OnDestroy {
|
|
23
|
-
protected bufferMultiplier: number;
|
|
7
|
+
export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements OnInit {
|
|
24
8
|
accessor data$: ListModel<Row>;
|
|
25
9
|
accessor tableModel: AbstractTableModel<Row>;
|
|
26
|
-
footerRows: FooterRowModel.Impl[];
|
|
27
10
|
accessor showHeader$: ValueModel<boolean>;
|
|
28
11
|
accessor showHeader: boolean;
|
|
12
|
+
readonly visibleRowCount: EventEmitter<number>;
|
|
29
13
|
trackBy: (index: number, item: Row) => any;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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;
|
|
39
26
|
baseCssClass: string;
|
|
40
|
-
|
|
41
|
-
protected readonly virtualScrollDataSource: TableVirtualScrollDataSource<Row>;
|
|
42
|
-
protected readonly virtualScrollActive$: MutableValueModel<boolean>;
|
|
43
|
-
protected readonly animationsDisabled$: MutableValueModel<boolean>;
|
|
44
|
-
private scrollTimeout;
|
|
45
|
-
private animationsResetRafId;
|
|
46
|
-
private scrollEndAbortController;
|
|
47
|
-
protected readonly optimisedChangeDetectionEnabled: boolean;
|
|
48
|
-
private viewInitialized;
|
|
49
|
-
protected markForCheck(): void;
|
|
50
|
-
constructor(bufferMultiplier?: number);
|
|
51
|
-
ngAfterViewInit(): void;
|
|
27
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
52
28
|
get hideHeader(): boolean;
|
|
53
|
-
|
|
54
|
-
get rowHeightCssVar(): string;
|
|
29
|
+
isEditing(row: Row): boolean;
|
|
55
30
|
notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
|
|
56
31
|
isFirstVisibleColumn(columnId: string): boolean;
|
|
57
32
|
isLastVisibleColumn(columnId: string): boolean;
|
|
58
33
|
getColumnClasses(columnId: string): string[];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
private notifyScrollEnded;
|
|
62
|
-
ngOnDestroy(): void;
|
|
63
|
-
private resetAnimationsAfterFrame;
|
|
64
|
-
private clearScrollTimeout;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "aup-table-body", never, { "data$": { "alias": "data$"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "footerRows": { "alias": "footerRows"; "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>;
|
|
67
|
-
}
|
|
68
|
-
export declare namespace TableBodyComponent {
|
|
69
|
-
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>;
|
|
70
36
|
}
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
import { CdkPortalOutletAttachedRef, Portal } from "@angular/cdk/portal";
|
|
2
|
-
import { OnChanges, SimpleChanges } from
|
|
2
|
+
import { OnChanges, SimpleChanges } from "@angular/core";
|
|
3
3
|
import { DisposableComponent } from "../../../disposable-component";
|
|
4
4
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
5
|
-
import { ColumnModel,
|
|
6
|
-
import {
|
|
5
|
+
import { ColumnModel, RowData } from "../../column/column-model";
|
|
6
|
+
import { EditSession } from "../../editor/edit-session";
|
|
7
|
+
import { CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL } from "../cell-portal-ref";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class TableCellComponent<Row
|
|
9
|
+
export declare class TableCellComponent<Row> extends DisposableComponent implements OnChanges {
|
|
9
10
|
row: Row;
|
|
10
11
|
column: ColumnModel<Row>;
|
|
12
|
+
editSession: EditSession<Row>;
|
|
11
13
|
tableModel: AbstractTableModel<Row>;
|
|
14
|
+
private editRowCommand;
|
|
12
15
|
[CELL_RENDERER_PORTAL]: Portal<any>;
|
|
16
|
+
[CELL_EDITOR_PORTAL]: Portal<any>;
|
|
13
17
|
defaultClassNames: string;
|
|
14
18
|
fillCell: boolean;
|
|
15
19
|
padChild: boolean;
|
|
20
|
+
private firstEditableColumn;
|
|
16
21
|
constructor();
|
|
22
|
+
hasActiveEditor(): boolean;
|
|
17
23
|
initialiseRenderer(ref: CdkPortalOutletAttachedRef): void;
|
|
24
|
+
initialiseEditor(ref: CdkPortalOutletAttachedRef): void;
|
|
25
|
+
private tryAndFocusEditor;
|
|
18
26
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
27
|
getRendererPortal(): Portal<any>;
|
|
28
|
+
getEditorPortal(): Portal<any>;
|
|
20
29
|
getRowData(): RowData<Row>;
|
|
21
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableCellComponent<any>, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableCellComponent<any>, "aup-table-cell", never, { "row": { "alias": "row"; "required": false; }; "column": { "alias": "column"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableCellComponent<any>, "aup-table-cell", never, { "row": { "alias": "row"; "required": false; }; "column": { "alias": "column"; "required": false; }; "editSession": { "alias": "editSession"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
32
|
}
|
|
@@ -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>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Command, ValueModel } from "@coolon/pectin";
|
|
2
|
+
import { DisposableComponent } from "../../../../disposable-component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableMoreMenuPopupComponent<T> extends DisposableComponent {
|
|
5
|
+
private _value$;
|
|
6
|
+
private readonly _visible$;
|
|
7
|
+
private readonly _closeCommand;
|
|
8
|
+
initialise(row$: ValueModel<T>, closeCommand: Command<void>): void;
|
|
9
|
+
protected visibleWhile(condition: ValueModel<boolean>): this;
|
|
10
|
+
get visible$(): ValueModel<boolean>;
|
|
11
|
+
get closeCommand(): Command<void>;
|
|
12
|
+
get value$(): ValueModel<T>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableMoreMenuPopupComponent<any>, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableMoreMenuPopupComponent<any>, "aup-table-more-menu-popup", never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CdkPortalOutletAttachedRef, ComponentPortal } from "@angular/cdk/portal";
|
|
2
|
+
import { MatLegacyMenuTrigger as MatMenuTrigger } from "@angular/material/legacy-menu";
|
|
3
|
+
import { ValueModelChain } from "@coolon/pectin";
|
|
4
|
+
import { Constructable } from "@coolon/typescript-utilities";
|
|
5
|
+
import { DisposableComponent } from "../../../disposable-component";
|
|
6
|
+
import { CellRenderer } from "../cell-renderer";
|
|
7
|
+
import { TableMoreMenuPopupComponent } from "./table-more-menu-popup/table-more-menu-popup.component";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class TableMoreMenuComponent<T> extends DisposableComponent implements CellRenderer<T> {
|
|
10
|
+
private value$;
|
|
11
|
+
accessor value: T;
|
|
12
|
+
matMenuTrigger: MatMenuTrigger;
|
|
13
|
+
private readonly popupType$;
|
|
14
|
+
popupComponentPortal$: ValueModelChain<ComponentPortal<TableMoreMenuPopupComponent<T>>>;
|
|
15
|
+
private readonly _visible$;
|
|
16
|
+
constructor();
|
|
17
|
+
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>): void;
|
|
18
|
+
preventDefault($event: MouseEvent): void;
|
|
19
|
+
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
20
|
+
get visible$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableMoreMenuComponent<any>, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableMoreMenuComponent<any>, "aup-table-more-menu", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|