@coolon/angular-ui-powerups 16.1.0-aplpha.189 → 16.1.0-aplpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/assets/activities/activities.scss +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 +30 -55
- 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 -30
- 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 +22 -13
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +12 -17
- 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 +59 -79
- package/esm2022/lib/components/disposable-component.mjs +42 -38
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +9 -5
- package/esm2022/lib/components/exports.mjs +7 -15
- 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 -66
- 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 +13 -12
- 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 +10 -10
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +13 -90
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +7 -44
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +16 -17
- 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 +63 -112
- package/esm2022/lib/components/tables/abstract-table.component.mjs +8 -22
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +10 -21
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +4 -4
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +5 -6
- package/esm2022/lib/components/tables/column/property-column-model.mjs +5 -5
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +13 -35
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +7 -7
- package/esm2022/lib/components/tables/editor/edit-session.mjs +2 -4
- package/esm2022/lib/components/tables/editor/editable-cell-renderer.mjs +1 -1
- package/esm2022/lib/components/tables/filter/column-text-search-formatter.mjs +1 -1
- package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +2 -3
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +9 -14
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +5 -5
- package/esm2022/lib/components/tables/renderer/cell-editors.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +7 -23
- 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 -18
- package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +8 -11
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +51 -161
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +9 -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 +3 -12
- 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 +5 -5
- 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 -25
- 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 -4
- package/esm2022/lib/directives/focus-binding.directive.mjs +5 -5
- package/esm2022/lib/directives/focus-binding.mjs +1 -1
- package/esm2022/lib/directives/garbage-collector.directive.mjs +4 -5
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +4 -4
- package/esm2022/lib/directives/highlight.pipe.mjs +11 -12
- package/esm2022/lib/interaction/abstract-interaction-context.mjs +7 -6
- package/esm2022/lib/interaction/activity-ref.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +23 -23
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +10 -13
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +45 -4
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +17 -29
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +4 -10
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +19 -50
- 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 +3 -3
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +4 -4
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +4 -4
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +4 -4
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +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 +9 -9
- 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 -22
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +10 -9
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +5 -23
- 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 +12 -10
- 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 +10 -15
- 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 +9 -10
- 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 +6 -3
- 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 -2
- 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 +6 -7
- package/esm2022/lib/place/place-component.mjs +58 -54
- package/esm2022/lib/place/place-config.mjs +1 -1
- package/esm2022/lib/place/place-definition.mjs +4 -15
- package/esm2022/lib/place/place-history.mjs +8 -6
- package/esm2022/lib/place/place-router.mjs +68 -84
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +16 -16
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/json-types.mjs +1 -1
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +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 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- 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 +3003 -4341
- 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 +4 -9
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +5 -5
- 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 +1 -3
- 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 +53 -57
- package/lib/components/disposable-component.d.ts +9 -17
- package/lib/components/empty-state/empty-state.component.d.ts +4 -1
- package/lib/components/exports.d.ts +6 -14
- package/lib/components/forms/abstract-input.component.d.ts +7 -16
- 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 +6 -25
- package/lib/components/switch-case/switch-case.component.d.ts +7 -6
- package/lib/components/tables/abstract-table-model.d.ts +25 -50
- package/lib/components/tables/abstract-table.component.d.ts +5 -6
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +4 -8
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
- package/lib/components/tables/column/property-column-model.d.ts +2 -3
- package/lib/components/tables/column/selection-column-model.d.ts +4 -10
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +3 -3
- package/lib/components/tables/editor/edit-session.d.ts +1 -1
- package/lib/components/tables/editor/editable-cell-renderer.d.ts +1 -1
- package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +14 -21
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +1 -0
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -0
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -2
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +19 -43
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +3 -2
- 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-custom-more-menu/table-custom-more-menu.component.d.ts → table-more-menu/table-more-menu.component.d.ts} +8 -9
- package/lib/components/tables/table/table-model.d.ts +4 -4
- package/lib/components/tables/table/table.component.d.ts +11 -15
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +28 -0
- 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 +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +2 -5
- package/lib/components/tables/tree-table/tree-table-model.d.ts +5 -4
- 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/interaction/abstract-interaction-context.d.ts +1 -1
- package/lib/interaction/activity-ref.d.ts +2 -2
- package/lib/interaction/activity.d.ts +7 -7
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -2
- package/lib/interaction/components/abstract-dialog.component.d.ts +14 -5
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -12
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +5 -11
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +5 -4
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -6
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +4 -6
- package/lib/interaction/components/input-activities/string-input-activity.d.ts +1 -1
- package/lib/interaction/confirm.d.ts +0 -4
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +3 -3
- package/lib/interaction/exports.d.ts +0 -5
- package/lib/interaction/interaction-context.d.ts +1 -7
- package/lib/interaction/interaction.module.d.ts +33 -35
- package/lib/interaction/services/interaction-service-routing-adapter.d.ts +2 -2
- package/lib/interaction/services/interaction.service.d.ts +1 -2
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +3 -2
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +3 -4
- package/lib/place/components/abstract-place-navigation.component.d.ts +0 -1
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -0
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- 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/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +1 -0
- package/lib/place/place-auth-service.d.ts +4 -4
- package/lib/place/place-component.d.ts +16 -8
- package/lib/place/place-definition.d.ts +0 -2
- package/lib/place/place-history.d.ts +1 -0
- package/lib/place/place-router.d.ts +5 -10
- package/lib/place/place.decorator.d.ts +1 -1
- 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 +4 -3
- package/lib/place/route/parameter-definition.d.ts +2 -2
- package/lib/place/route/parameter-sanitiser.d.ts +0 -7
- package/lib/place/visit-segment.d.ts +4 -4
- package/lib/place/visit.d.ts +2 -2
- package/lib/services/markdown/markdown.service.d.ts +1 -0
- package/lib/services/visibility-service.d.ts +1 -1
- package/package.json +19 -18
- 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 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -7
- package/esm2022/lib/components/tables/renderer/table-action-column/menu-builder.mjs +0 -2
- package/esm2022/lib/components/tables/renderer/table-action-column/table-action-column.component.mjs +0 -153
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.mjs +0 -45
- package/esm2022/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu.component.mjs +0 -71
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/activity-context.mjs +0 -4
- package/esm2022/lib/interaction/components/alert-renderer/alert-renderer.component.mjs +0 -55
- package/esm2022/lib/interaction/components/confirm-renderer/confirm-renderer.component.mjs +0 -54
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
- package/esm2022/lib/interaction/interaction-context-provider.mjs +0 -17
- package/lib/components/commands/button-renderer/button-renderer.component.d.ts +0 -30
- package/lib/components/file/file-download/file-download.component.d.ts +0 -45
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/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 -22
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -6
- package/lib/components/tables/renderer/table-action-column/menu-builder.d.ts +0 -7
- package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts +0 -42
- package/lib/components/tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component.d.ts +0 -19
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/activity-context.d.ts +0 -9
- package/lib/interaction/components/alert-renderer/alert-renderer.component.d.ts +0 -17
- package/lib/interaction/components/confirm-renderer/confirm-renderer.component.d.ts +0 -15
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
- package/lib/interaction/interaction-context-provider.d.ts +0 -11
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input, Optional, ViewChild } from '@angular/core';
|
|
3
|
-
import { Command, proxify, Proxify } from "@coolon/pectin";
|
|
4
|
-
import { ActivityContext } from "../../activity-context";
|
|
5
|
-
import { Confirm } from "../../confirm";
|
|
6
|
-
import { ActivityActionsComponent } from "../activity-actions/activity-actions.component";
|
|
7
|
-
import { AlertRendererComponent } from "../alert-renderer/alert-renderer.component";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../activity-context";
|
|
10
|
-
import * as i2 from "@angular/common";
|
|
11
|
-
import * as i3 from "../../../components/text/markdown/markdown.component";
|
|
12
|
-
import * as i4 from "../activity-actions/activity-actions.component";
|
|
13
|
-
import * as i5 from "../activity-title/activity-title.component";
|
|
14
|
-
import * as i6 from "../activity-body/activity-body.component";
|
|
15
|
-
export class ConfirmRendererComponent extends AlertRendererComponent {
|
|
16
|
-
#cancelCommand_accessor_storage = proxify(Command);
|
|
17
|
-
get cancelCommand() { return this.#cancelCommand_accessor_storage; }
|
|
18
|
-
set cancelCommand(value) { this.#cancelCommand_accessor_storage = value; }
|
|
19
|
-
activityActions;
|
|
20
|
-
cancelFace;
|
|
21
|
-
constructor(activityContext) {
|
|
22
|
-
super(activityContext);
|
|
23
|
-
if (activityContext) {
|
|
24
|
-
activityContext.onActivityReady(() => {
|
|
25
|
-
if (this.activityActions) {
|
|
26
|
-
Confirm.isDestructive(this.config) ? this.activityActions.focusCancel() : this.activityActions.focusConfirm();
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
this.onInit(() => {
|
|
31
|
-
this.cancelFace = {
|
|
32
|
-
text: () => this.config.cancel(),
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmRendererComponent, deps: [{ token: i1.ActivityContext, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ConfirmRendererComponent, selector: "aup-confirm-renderer", inputs: { cancelCommand: "cancelCommand" }, viewQueries: [{ propertyName: "activityActions", first: true, predicate: ActivityActionsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MarkdownComponent, selector: "aup-markdown, [aupMarkdown]", inputs: ["content$", "content", "inline"] }, { kind: "component", type: i4.ActivityActionsComponent, selector: "aup-activity-actions", inputs: ["confirmCommand", "cancelCommand", "faces", "confirmFace", "cancelFace", "style", "layout", "align", "alignContent"] }, { kind: "component", type: i5.ActivityTitleComponent, selector: "aup-activity-title", inputs: ["hasTransparentBackground", "color"] }, { kind: "component", type: i6.ActivityBodyComponent, selector: "aup-activity-body", inputs: ["fullWidth", "fullHeight"] }] });
|
|
38
|
-
}
|
|
39
|
-
__decorate([
|
|
40
|
-
Proxify(),
|
|
41
|
-
__metadata("design:type", Command)
|
|
42
|
-
], ConfirmRendererComponent.prototype, "cancelCommand", null);
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ConfirmRendererComponent, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ selector: 'aup-confirm-renderer', template: "<aup-activity-title *ngIf=\"title\" [color]=\"color\"><aup-markdown [content]=\"title\" [inline]=\"true\"></aup-markdown></aup-activity-title>\n<aup-activity-body>\n <aup-markdown *ngFor=\"let line of content\" [content]=\"line\"></aup-markdown>\n</aup-activity-body>\n<aup-activity-actions [confirmFace]=\"confirmFace\" [cancelFace]=\"cancelFace\"></aup-activity-actions>\n\n" }]
|
|
46
|
-
}], ctorParameters: function () { return [{ type: i1.ActivityContext, decorators: [{
|
|
47
|
-
type: Optional
|
|
48
|
-
}] }]; }, propDecorators: { cancelCommand: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}], activityActions: [{
|
|
51
|
-
type: ViewChild,
|
|
52
|
-
args: [ActivityActionsComponent]
|
|
53
|
-
}] } });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1yZW5kZXJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9pbnRlcmFjdGlvbi9jb21wb25lbnRzL2NvbmZpcm0tcmVuZGVyZXIvY29uZmlybS1yZW5kZXJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItdWktcG93ZXJ1cHMvc3JjL2xpYi9pbnRlcmFjdGlvbi9jb21wb25lbnRzL2NvbmZpcm0tcmVuZGVyZXIvY29uZmlybS1yZW5kZXJl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dfQ==
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Inject, Input, Optional, ViewChild } from "@angular/core";
|
|
2
|
-
import { MAT_TABS_CONFIG } from "@angular/material/tabs";
|
|
3
|
-
import { slideDownWhenOpenAnimation } from "../../../animations/slide-animations";
|
|
4
|
-
import { DisposableComponent } from "../../../components/disposable-component";
|
|
5
|
-
import { INTERACTION_CONTEXT } from "../../interaction-context";
|
|
6
|
-
import { InteractionService } from "../../services/interaction.service";
|
|
7
|
-
import { ActivityContainerComponent } from "../activity-container/activity-container.component";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../activity-container/activity-container.component";
|
|
10
|
-
const cssDurationRegex = /(\d+)(m?s)/;
|
|
11
|
-
/**
|
|
12
|
-
* This interaction context remains hidden (height: 0) until it is active.
|
|
13
|
-
* @example
|
|
14
|
-
* <aup-slide-down-interaction-context #inPlaceInteractionContext>
|
|
15
|
-
* </aup-slide-down-interaction-context>
|
|
16
|
-
*
|
|
17
|
-
* in your component
|
|
18
|
-
* @ViewChild(SlideDownInteractionContextComponent)
|
|
19
|
-
* interactionContext: InteractionContext;
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export class SlideDownInteractionContextComponent extends DisposableComponent {
|
|
24
|
-
tabConfig;
|
|
25
|
-
activityContainerComponent;
|
|
26
|
-
// NOTE: disabling this as I'm using the initialise callback to release the hacky height clamp.
|
|
27
|
-
// The whole registration thing is a bit naf so I should really clean that up at some point.
|
|
28
|
-
// /**
|
|
29
|
-
// * If true the activity will sync with the router to enable back button support. This is a work around for
|
|
30
|
-
// * deeply nested activities that can't be linked with the root place interactionContext hook for cancelling
|
|
31
|
-
// * active interactions.
|
|
32
|
-
// */
|
|
33
|
-
// @Input()
|
|
34
|
-
// syncWithRoutes = true;
|
|
35
|
-
dynamicHeight = true;
|
|
36
|
-
get active() {
|
|
37
|
-
return this.isActive();
|
|
38
|
-
}
|
|
39
|
-
// Horrible hack to stop the div and activity container bouncing back for a bit in after closing. No idea why it's doing that.
|
|
40
|
-
clampShut = true;
|
|
41
|
-
interactionService = this.inject(InteractionService);
|
|
42
|
-
constructor(tabConfig) {
|
|
43
|
-
super();
|
|
44
|
-
this.tabConfig = tabConfig;
|
|
45
|
-
}
|
|
46
|
-
ngAfterViewInit() {
|
|
47
|
-
// NOTE: this is a temp work around to detach inplace contexts from the router until AUP-88 is implemented.
|
|
48
|
-
// https://coolon.atlassian.net/browse/AUP-88?atlOrigin=eyJpIjoiOTg5YjEzZGUzZjRmNDg0NmExOWU3ZGJmMzJiNTRmNGYiLCJwIjoiaiJ9
|
|
49
|
-
const self = this;
|
|
50
|
-
this.activityContainerComponent.initialise("dont-care", {
|
|
51
|
-
async notifyActive(interactionContext) {
|
|
52
|
-
self.clampShut = false;
|
|
53
|
-
return undefined;
|
|
54
|
-
},
|
|
55
|
-
async notifyFinished(interactionContext) {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
// if (this.syncWithRoutes) {
|
|
60
|
-
// this.interactionService.registerInplaceInteractionContext(this);
|
|
61
|
-
// }
|
|
62
|
-
}
|
|
63
|
-
getAnimationState() {
|
|
64
|
-
return {
|
|
65
|
-
value: this.isActive() ? "open" : "closed",
|
|
66
|
-
params: { duration: "200ms" }
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
// this is a regsitration callback from the interaction service
|
|
70
|
-
// @Trace() // webstorm says no usages... but I'm not sure.
|
|
71
|
-
onInplaceInteractionContextRegistered(id, api) {
|
|
72
|
-
this.activityContainerComponent.initialise(id, api);
|
|
73
|
-
}
|
|
74
|
-
get identifier() {
|
|
75
|
-
return this.activityContainerComponent.identifier;
|
|
76
|
-
}
|
|
77
|
-
alert(alert) {
|
|
78
|
-
return this.activityContainerComponent.alert(alert);
|
|
79
|
-
}
|
|
80
|
-
cancelActiveActivity() {
|
|
81
|
-
return this.activityContainerComponent.cancelActiveActivity();
|
|
82
|
-
}
|
|
83
|
-
confirm(confirm) {
|
|
84
|
-
return this.activityContainerComponent.confirm(confirm);
|
|
85
|
-
}
|
|
86
|
-
confirmOrReject(confirm) {
|
|
87
|
-
return this.activityContainerComponent.confirmOrReject(confirm);
|
|
88
|
-
}
|
|
89
|
-
confirmThen(confirm, activityType, data) {
|
|
90
|
-
return this.activityContainerComponent.confirmThen(confirm, activityType);
|
|
91
|
-
}
|
|
92
|
-
confirmThenExecute(confirm, operation) {
|
|
93
|
-
return this.activityContainerComponent.confirmThenExecute(confirm, operation);
|
|
94
|
-
}
|
|
95
|
-
isActive() {
|
|
96
|
-
return this.activityContainerComponent.isActive();
|
|
97
|
-
}
|
|
98
|
-
startActivity(activityType, data, options) {
|
|
99
|
-
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
100
|
-
}
|
|
101
|
-
onAnimationDone() {
|
|
102
|
-
if (!this.isActive()) {
|
|
103
|
-
this.clampShut = true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SlideDownInteractionContextComponent, deps: [{ token: MAT_TABS_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SlideDownInteractionContextComponent, selector: "aup-slide-down-interaction-context", inputs: { dynamicHeight: "dynamicHeight" }, host: { properties: { "class.active": "this.active" } }, providers: [
|
|
108
|
-
{ provide: INTERACTION_CONTEXT, useExisting: SlideDownInteractionContextComponent }
|
|
109
|
-
], viewQueries: [{ propertyName: "activityContainerComponent", first: true, predicate: ["activityContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div [@slideDownWhenOpen]=\"getAnimationState()\" (@slideDownWhenOpen.done)=\"onAnimationDone()\" [style.max-height.px]=\"clampShut ? 0 : undefined\">\n <aup-activity-container #activityContainer [dynamicHeight]=\"dynamicHeight\"></aup-activity-container>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column}:host>div{overflow:hidden}\n"], dependencies: [{ kind: "component", type: i1.ActivityContainerComponent, selector: "aup-activity-container", inputs: ["dynamicHeight", "animationDuration"] }], animations: [
|
|
110
|
-
slideDownWhenOpenAnimation
|
|
111
|
-
] });
|
|
112
|
-
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SlideDownInteractionContextComponent, decorators: [{
|
|
114
|
-
type: Component,
|
|
115
|
-
args: [{ selector: "aup-slide-down-interaction-context", providers: [
|
|
116
|
-
{ provide: INTERACTION_CONTEXT, useExisting: SlideDownInteractionContextComponent }
|
|
117
|
-
], animations: [
|
|
118
|
-
slideDownWhenOpenAnimation
|
|
119
|
-
], template: "<div [@slideDownWhenOpen]=\"getAnimationState()\" (@slideDownWhenOpen.done)=\"onAnimationDone()\" [style.max-height.px]=\"clampShut ? 0 : undefined\">\n <aup-activity-container #activityContainer [dynamicHeight]=\"dynamicHeight\"></aup-activity-container>\n</div>\n\n", styles: [":host{display:flex;flex-direction:column}:host>div{overflow:hidden}\n"] }]
|
|
120
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
121
|
-
type: Inject,
|
|
122
|
-
args: [MAT_TABS_CONFIG]
|
|
123
|
-
}, {
|
|
124
|
-
type: Optional
|
|
125
|
-
}] }]; }, propDecorators: { activityContainerComponent: [{
|
|
126
|
-
type: ViewChild,
|
|
127
|
-
args: ["activityContainer", { static: true }]
|
|
128
|
-
}], dynamicHeight: [{
|
|
129
|
-
type: Input
|
|
130
|
-
}], active: [{
|
|
131
|
-
type: HostBinding,
|
|
132
|
-
args: ["class.active"]
|
|
133
|
-
}] } });
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGUtZG93bi1pbnRlcmFjdGlvbi1jb250ZXh0LmNvbXB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9uU3RhdGUoKVwiIChAc2xpZGVEb3duV2hlbk9wZW4uZG9uZSk9XCJvbkFuaW1hdGlvbkRvbmUoKVwiIFtzdHlsZS5tYXgtaGVpZ2h0LnB4XT1cImNsYW1wU2h1dCA/IDAgOiB1bmRlZmluZWRcIj5cbiAgPGF1cC1hY3Rpdml0eS1jb250YWluZXIgI2FjdGl2aXR5Q29udGFpbmVyICBbZHluYW1pY0hlaWdodF09XCJkeW5hbWljSGVpZ2h0XCI+PC9hdXAtYWN0aXZpdHktY29udGFpbmVyPlxuPC9kaXY+XG5cbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class InteractionContextProvider {
|
|
2
|
-
static forActivity(activity) {
|
|
3
|
-
return new class extends InteractionContextProvider {
|
|
4
|
-
getInteractionContext() {
|
|
5
|
-
return activity.interactionContext;
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
static forInteractionContext(interactionContext) {
|
|
10
|
-
return new class extends InteractionContextProvider {
|
|
11
|
-
getInteractionContext() {
|
|
12
|
-
return interactionContext;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3Rpb24tY29udGV4dC1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci11aS1wb3dlcnVwcy9zcmMvbGliL2ludGVyYWN0aW9uL2ludGVyYWN0aW9uLWNvbnRleHQtcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0EsTUFBTSxPQUFnQiwwQkFBMEI7SUFDOUMsTUFBTSxDQUFDLFdBQVcsQ0FBQyxRQUE0QjtRQUM3QyxPQUFPLElBQUksS0FBTSxTQUFRLDBCQUEwQjtZQUNqRCxxQkF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1cm4gaW50ZXJhY3Rpb25Db250ZXh0O1xuICAgICAgfVxuICAgIH1cbiAgfVxuICBhYnN0cmFjdCBnZXRJbnRlcmFjdGlvbkNvbnRleHQoKTogSW50ZXJhY3Rpb25Db250ZXh0XG59XG5cblxuIl19
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { MatButton } from "@angular/material/button";
|
|
2
|
-
import { ThemePalette } from "@angular/material/core";
|
|
3
|
-
import { MatMenuItem } from "@angular/material/menu";
|
|
4
|
-
import { BooleanValueModelChain, CommandFace, ListModel, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
5
|
-
import { HorizontalAlignment } from "../../alignment";
|
|
6
|
-
import { CommandFace as CommandFaceUtils } from '../command-face';
|
|
7
|
-
import { PopupAwareComponent } from "../group/popup-aware.component";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ButtonRendererComponent extends PopupAwareComponent {
|
|
10
|
-
accessor faces$: ListModel<CommandFace>;
|
|
11
|
-
accessor faces: CommandFace[];
|
|
12
|
-
accessor enabled$: ValueModel<boolean>;
|
|
13
|
-
accessor enabled: boolean;
|
|
14
|
-
accessor busy$: ValueModel<boolean>;
|
|
15
|
-
accessor busy: boolean;
|
|
16
|
-
alignFace: HorizontalAlignment;
|
|
17
|
-
forceRenderAsButton: boolean;
|
|
18
|
-
matControl: MatMenuItem | MatButton;
|
|
19
|
-
readonly buttonStyle$: ValueModelChain<string>;
|
|
20
|
-
readonly color$: ValueModelChain<ThemePalette>;
|
|
21
|
-
private activeFace$;
|
|
22
|
-
readonly iconOnly$: BooleanValueModelChain;
|
|
23
|
-
readonly tooltip$: ValueModelChain<string>;
|
|
24
|
-
CommandFaceUtils: typeof CommandFaceUtils;
|
|
25
|
-
constructor();
|
|
26
|
-
get renderAsMenuItem(): boolean;
|
|
27
|
-
focus(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonRendererComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonRendererComponent, "aup-button-renderer", never, { "faces$": { "alias": "faces$"; "required": false; }; "faces": { "alias": "faces"; "required": false; }; "enabled$": { "alias": "enabled$"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "busy$": { "alias": "busy$"; "required": false; }; "busy": { "alias": "busy"; "required": false; }; "alignFace": { "alias": "alignFace"; "required": false; }; "forceRenderAsButton": { "alias": "forceRenderAsButton"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ThemePalette } from '@angular/material/core';
|
|
2
|
-
import { CommandFace, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
-
import { HorizontalAlignment } from '../../alignment';
|
|
4
|
-
import { CommandFace as CommandFaceUtil } from '../../commands/command-face';
|
|
5
|
-
import { PopupAwareComponent } from '../../commands/group/popup-aware.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare class FileDownloadComponent extends PopupAwareComponent {
|
|
11
|
-
protected readonly CommandFaceUtil: typeof CommandFaceUtil;
|
|
12
|
-
accessor download$: ValueModel<FileDownloadComponent.DownloadInfo>;
|
|
13
|
-
accessor download: FileDownloadComponent.DownloadInfo;
|
|
14
|
-
alignFace: HorizontalAlignment;
|
|
15
|
-
readonly faces$: ListModel<FileDownloadComponent.DownloadInfo>;
|
|
16
|
-
protected readonly buttonStyle$: ValueModelChain<string>;
|
|
17
|
-
protected readonly color$: ValueModelChain<ThemePalette>;
|
|
18
|
-
protected readonly tooltip$: ValueModelChain<string>;
|
|
19
|
-
protected readonly document: Document;
|
|
20
|
-
constructor();
|
|
21
|
-
downloadFile(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloadComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileDownloadComponent, "aup-file-download", never, { "download$": { "alias": "download$"; "required": false; }; "download": { "alias": "download"; "required": false; }; "alignFace": { "alias": "alignFace"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
-
}
|
|
25
|
-
export declare namespace FileDownloadComponent {
|
|
26
|
-
function createInfo(options: {
|
|
27
|
-
face: CommandFace;
|
|
28
|
-
url: string;
|
|
29
|
-
saveAs: string;
|
|
30
|
-
}): {
|
|
31
|
-
text?(): string;
|
|
32
|
-
icon?(): string;
|
|
33
|
-
iconPosition?(): string;
|
|
34
|
-
tooltip?(): string;
|
|
35
|
-
color?(): string;
|
|
36
|
-
style?(): string;
|
|
37
|
-
face: CommandFace;
|
|
38
|
-
url: string;
|
|
39
|
-
saveAs: string;
|
|
40
|
-
};
|
|
41
|
-
interface DownloadInfo extends CommandFace {
|
|
42
|
-
saveAs: string;
|
|
43
|
-
url: string;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from '@coolon/pectin';
|
|
2
|
-
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SearchInputComponent extends AbstractValueInputComponent<string> {
|
|
5
|
-
autocomplete: string;
|
|
6
|
-
readonly clearCommand: Command<void>;
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "aup-search-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { InjectOptions, OnInit, ProviderToken } from '@angular/core';
|
|
2
|
-
import { Loadable, LoadingStateTracker } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from './disposable-component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoadableComponent extends DisposableComponent implements OnInit {
|
|
6
|
-
#private;
|
|
7
|
-
protected readonly loadTracker: LoadingStateTracker.Tracker | undefined;
|
|
8
|
-
constructor();
|
|
9
|
-
get loaded$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
private loadDependencies;
|
|
12
|
-
protected injectLoadable<T extends Loadable>(token: ProviderToken<T>, options?: InjectOptions & {
|
|
13
|
-
wait: boolean;
|
|
14
|
-
}): T;
|
|
15
|
-
registerLoadable<T extends Loadable>(loadable: T, options?: {
|
|
16
|
-
wait: boolean;
|
|
17
|
-
}): T;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadableComponent, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadableComponent, never, never, {}, {}, never, never, false, never>;
|
|
20
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 object> 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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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,22 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
-
import { ComponentPortal } from "@angular/cdk/portal";
|
|
3
|
-
declare class RowClass {
|
|
4
|
-
readonly className: string;
|
|
5
|
-
readonly matches: () => boolean;
|
|
6
|
-
constructor(className: string, matches: () => boolean);
|
|
7
|
-
}
|
|
8
|
-
export declare abstract class FooterRowModel<C> {
|
|
9
|
-
protected readonly _rowClasses: RowClass[];
|
|
10
|
-
noPadding(): void;
|
|
11
|
-
addClass(className: string, condition?: () => boolean): void;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace FooterRowModel {
|
|
14
|
-
class Impl<C> extends FooterRowModel<C> {
|
|
15
|
-
protected readonly component: ComponentType<C>;
|
|
16
|
-
readonly onInit?: (component: C) => void;
|
|
17
|
-
readonly portal: ComponentPortal<C>;
|
|
18
|
-
constructor(component: ComponentType<C>, onInit?: (component: C) => void);
|
|
19
|
-
getActiveRowClasses(): string;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LoadableComponent } from "../../loadable-component";
|
|
2
|
-
import { CellRenderer } from "./cell-renderer";
|
|
3
|
-
export declare abstract class AbstractCellRenderer<T> extends LoadableComponent implements CellRenderer<T> {
|
|
4
|
-
abstract accessor value: T;
|
|
5
|
-
protected constructor();
|
|
6
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command, CommandFace } from '@coolon/pectin';
|
|
2
|
-
import { FileDownloadComponent } from '../../../file/file-download/file-download.component';
|
|
3
|
-
export interface MenuBuilder<Row extends object> {
|
|
4
|
-
addCommand(factory: Command.Factory<Row>, face: CommandFace): void;
|
|
5
|
-
addDownload(callback: (row: Row) => FileDownloadComponent.DownloadInfo): void;
|
|
6
|
-
addSeparator(): void;
|
|
7
|
-
}
|
package/lib/components/tables/renderer/table-action-column/table-action-column.component.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
2
|
-
import { Command } from '@coolon/pectin';
|
|
3
|
-
import { CommandFace } from '../../../commands/command-face';
|
|
4
|
-
import { DisposableComponent } from '../../../disposable-component';
|
|
5
|
-
import { FileDownloadComponent } from '../../../file/file-download/file-download.component';
|
|
6
|
-
import { CellRenderer } from '../cell-renderer';
|
|
7
|
-
import { MenuBuilder } from './menu-builder';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
declare class CommandData<T extends object> {
|
|
10
|
-
readonly factory: Command.Factory<T, void>;
|
|
11
|
-
readonly face: CommandFace;
|
|
12
|
-
constructor(factory: Command.Factory<T, void>, face: CommandFace);
|
|
13
|
-
}
|
|
14
|
-
declare class DownloadData<T extends object> {
|
|
15
|
-
private createInfo;
|
|
16
|
-
private cache;
|
|
17
|
-
constructor(createInfo: (value: T) => FileDownloadComponent.DownloadInfo);
|
|
18
|
-
createDownloadInfo(value: T): FileDownloadComponent.DownloadInfo;
|
|
19
|
-
}
|
|
20
|
-
type MenuItem<T extends object> = CommandData<T> | DownloadData<T> | null;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare class TableActionColumnComponent<T extends object> extends DisposableComponent implements CellRenderer<T>, MenuBuilder<T> {
|
|
25
|
-
value: T;
|
|
26
|
-
menu: MatMenuTrigger;
|
|
27
|
-
readonly actions: MenuItem<T>[];
|
|
28
|
-
readonly moreActions: MenuItem<T>[];
|
|
29
|
-
readonly trackByIndex: import("@angular/core").TrackByFunction<any>;
|
|
30
|
-
constructor();
|
|
31
|
-
addCommand(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
|
|
32
|
-
addSeparator(): void;
|
|
33
|
-
addDownload(factory: (row: T) => FileDownloadComponent.DownloadInfo): void;
|
|
34
|
-
addMoreMenu(builder: (menu: MenuBuilder<T>) => void): void;
|
|
35
|
-
private closeMoreMenu;
|
|
36
|
-
isCommand(item: MenuItem<T>): item is CommandData<T>;
|
|
37
|
-
isDownload(item: MenuItem<T>): item is DownloadData<T>;
|
|
38
|
-
isSeparator(item: MenuItem<T>): boolean;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableActionColumnComponent<any>, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableActionColumnComponent<any>, "aup-table-action-column", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Command, ValueModel } from "@coolon/pectin";
|
|
2
|
-
import { PopupAwareComponent } from "../../../commands/group/popup-aware.component";
|
|
3
|
-
import { PopupContainer } from "../../../commands/group/popup-container";
|
|
4
|
-
import { LoadableComponent } from "../../../loadable-component";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TableCustomMoreMenuPopupComponent<T> extends LoadableComponent implements PopupContainer {
|
|
7
|
-
private _value$;
|
|
8
|
-
private readonly _visible$;
|
|
9
|
-
private readonly _closeCommand;
|
|
10
|
-
constructor();
|
|
11
|
-
initialise(row$: ValueModel<T>, closeCommand: Command<void>): void;
|
|
12
|
-
protected visibleWhile(condition: ValueModel<boolean>): this;
|
|
13
|
-
get visible$(): ValueModel<boolean>;
|
|
14
|
-
get closeCommand(): Command<void>;
|
|
15
|
-
get value$(): ValueModel<T>;
|
|
16
|
-
register(comp: PopupAwareComponent): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomMoreMenuPopupComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableCustomMoreMenuPopupComponent<any>, "aup-table-more-menu-popup", never, {}, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CdkPortalOutletAttachedRef } from "@angular/cdk/portal";
|
|
2
|
-
import { FooterRowModel } from "../../footer/footer-row-model";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableFooterRow {
|
|
5
|
-
row: FooterRowModel.Impl<any>;
|
|
6
|
-
defaultClassNames: string;
|
|
7
|
-
get rowClasses(): string;
|
|
8
|
-
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableFooterRow, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableFooterRow, "aup-table-footer-row", never, { "row": { "alias": "row"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import { Command } from "@coolon/pectin";
|
|
2
|
-
import { InteractionContext } from "./interaction-context";
|
|
3
|
-
import { InteractionContextProvider } from "./interaction-context-provider";
|
|
4
|
-
export declare abstract class ActivityContext extends InteractionContextProvider {
|
|
5
|
-
abstract readonly interactionContext: InteractionContext;
|
|
6
|
-
abstract readonly confirmCommand: Command;
|
|
7
|
-
abstract readonly cancelCommand: Command;
|
|
8
|
-
abstract onActivityReady(callback: () => void): void;
|
|
9
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Command } from "@coolon/pectin";
|
|
2
|
-
import { CommandFace } from "../../../components/commands/command-face";
|
|
3
|
-
import { DisposableComponent } from "../../../components/disposable-component";
|
|
4
|
-
import { ActivityContext } from "../../activity-context";
|
|
5
|
-
import { Alert } from "../../alert";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AlertRendererComponent<T extends Alert = Alert> extends DisposableComponent {
|
|
8
|
-
config: T;
|
|
9
|
-
accessor confirmCommand: Command;
|
|
10
|
-
protected confirmFace: CommandFace;
|
|
11
|
-
protected title: string;
|
|
12
|
-
protected content: string[];
|
|
13
|
-
protected color?: 'primary' | 'accent' | 'warn';
|
|
14
|
-
constructor(activityContext: ActivityContext);
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlertRendererComponent<any>, [{ optional: true; }]>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AlertRendererComponent<any>, "aup-alert-renderer", never, { "config": { "alias": "config"; "required": false; }; "confirmCommand": { "alias": "confirmCommand"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Command } from "@coolon/pectin";
|
|
2
|
-
import { CommandFace } from "../../../components/commands/command-face";
|
|
3
|
-
import { ActivityContext } from "../../activity-context";
|
|
4
|
-
import { Confirm } from "../../confirm";
|
|
5
|
-
import { ActivityActionsComponent } from "../activity-actions/activity-actions.component";
|
|
6
|
-
import { AlertRendererComponent } from "../alert-renderer/alert-renderer.component";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ConfirmRendererComponent extends AlertRendererComponent<Confirm> {
|
|
9
|
-
accessor cancelCommand: Command;
|
|
10
|
-
protected activityActions: ActivityActionsComponent;
|
|
11
|
-
protected cancelFace: CommandFace;
|
|
12
|
-
constructor(activityContext: ActivityContext);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmRendererComponent, [{ optional: true; }]>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmRendererComponent, "aup-confirm-renderer", never, { "cancelCommand": { "alias": "cancelCommand"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
-
}
|