@coolon/angular-ui-powerups 14.47.3 → 15.0.1
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/table.scss +1 -18
- package/esm2022/lib/angular-ui-powerups.module.mjs +80 -0
- package/esm2022/lib/components/busy-overlay/busy-overlay.component.mjs +34 -0
- package/esm2022/lib/components/cards/abstract-card-container.component.mjs +37 -0
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +131 -0
- package/{esm2020 → esm2022}/lib/components/cards/card-stack/card-stack.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +115 -0
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +85 -0
- package/{esm2020 → esm2022}/lib/components/commands/command-face.mjs +2 -1
- package/{esm2020 → esm2022}/lib/components/commands/flex.component.mjs +4 -4
- package/esm2022/lib/components/commands/group/command-container.mjs +22 -0
- package/esm2022/lib/components/commands/group/popup-aware.component.mjs +28 -0
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +90 -0
- package/esm2022/lib/components/commands/group/popup-menu/more-menu.component.mjs +58 -0
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +106 -0
- package/esm2022/lib/components/commands/group/popup-menu/popup-menu.component.mjs +55 -0
- package/{esm2020 → esm2022}/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -4
- package/esm2022/lib/components/commands/separator.component.mjs +42 -0
- package/esm2022/lib/components/components.module.mjs +340 -0
- package/{esm2020 → esm2022}/lib/components/disposable-component.mjs +4 -4
- package/esm2022/lib/components/empty-state/empty-state.component.mjs +23 -0
- package/esm2022/lib/components/exports.mjs +93 -0
- package/esm2022/lib/components/focus-container/focus-container.component.mjs +38 -0
- package/esm2022/lib/components/focusable.component.mjs +51 -0
- package/esm2022/lib/components/forms/abstract-input.component.mjs +175 -0
- package/esm2022/lib/components/forms/abstract-list-input.component.mjs +72 -0
- package/esm2022/lib/components/forms/abstract-value-input.component.mjs +72 -0
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +133 -0
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +29 -0
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +86 -0
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +35 -0
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +25 -0
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +130 -0
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +53 -0
- package/esm2022/lib/components/forms/text-input/text-input.component.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/icon/icon.component.mjs +11 -9
- package/esm2022/lib/components/labelled-value/labelled-value.component.mjs +22 -0
- package/esm2022/lib/components/loading-container/loading-container.component.mjs +54 -0
- package/{esm2020 → esm2022}/lib/components/noop/noop.component.mjs +4 -4
- package/esm2022/lib/components/resize-aware.component.mjs +47 -0
- package/esm2022/lib/components/scroll-container/scroll-container.component.mjs +37 -0
- package/esm2022/lib/components/section-header/section-header.component.mjs +36 -0
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +132 -0
- package/esm2022/lib/components/tables/abstract-table-model.mjs +254 -0
- package/esm2022/lib/components/tables/abstract-table.component.mjs +156 -0
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +190 -0
- package/esm2022/lib/components/tables/column/column-template/column-template.directive.mjs +40 -0
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +16 -0
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +38 -0
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +56 -0
- package/esm2022/lib/components/tables/column/property-column-model.mjs +98 -0
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +51 -0
- 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/filter/column-text-search-formatter.mjs +53 -0
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +58 -0
- package/esm2022/lib/components/tables/paginator/paginator.component.mjs +45 -0
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +103 -0
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +23 -0
- package/esm2022/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +16 -0
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +51 -0
- package/esm2022/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +33 -0
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +129 -0
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +101 -0
- package/esm2022/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +34 -0
- package/esm2022/lib/components/tables/table/table.component.mjs +175 -0
- 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 +174 -0
- package/esm2022/lib/components/tables/tree-table/flattened-tree-list-model.mjs +32 -0
- package/esm2022/lib/components/tables/tree-table/tree-expansion-model.mjs +70 -0
- package/esm2022/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +73 -0
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +100 -0
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +44 -0
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +115 -0
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +108 -0
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +83 -0
- package/esm2022/lib/components/types/bounds.class.mjs +31 -0
- package/{esm2020 → esm2022}/lib/components/types/dimension.class.mjs +3 -1
- package/esm2022/lib/components/types/point.class.mjs +15 -0
- package/esm2022/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +80 -0
- package/esm2022/lib/directives/command.directive.mjs +126 -0
- package/esm2022/lib/directives/directives.module.mjs +68 -0
- package/esm2022/lib/directives/focus-binding-factory.mjs +32 -0
- package/esm2022/lib/directives/focus-binding.directive.mjs +66 -0
- package/esm2022/lib/directives/focus-binding.mjs +83 -0
- package/{esm2020 → esm2022}/lib/directives/garbage-collector.directive.mjs +4 -4
- package/esm2022/lib/directives/highlight-text-model.directive.mjs +28 -0
- package/esm2022/lib/directives/highlight.pipe.mjs +49 -0
- package/esm2022/lib/interaction/activity-ref.mjs +69 -0
- package/{esm2020 → esm2022}/lib/interaction/activity.mjs +19 -13
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +28 -0
- package/esm2022/lib/interaction/components/abstract-dialog.component.mjs +66 -0
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +135 -0
- package/esm2022/lib/interaction/components/activity-body/activity-body.component.mjs +20 -0
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +250 -0
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +65 -0
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +43 -0
- package/esm2022/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +96 -0
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +25 -0
- package/esm2022/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +23 -0
- package/esm2022/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +31 -0
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +94 -0
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +79 -0
- package/{esm2020 → esm2022}/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +4 -4
- package/{esm2020 → esm2022}/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +4 -4
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +30 -0
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +52 -0
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +193 -0
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +143 -0
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +102 -0
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +52 -0
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +37 -0
- package/esm2022/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +134 -0
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +77 -0
- package/esm2022/lib/interaction/interaction.module.mjs +195 -0
- package/esm2022/lib/interaction/services/interaction-service-routing-adapter.mjs +32 -0
- package/esm2022/lib/interaction/services/interaction.service.mjs +157 -0
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +51 -0
- package/esm2022/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +68 -0
- package/esm2022/lib/place/components/abstract-place-navigation.component.mjs +109 -0
- package/{esm2020 → esm2022}/lib/place/components/list-place-nav/list-place-nav.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/place/components/not-authorised-notice/not-authorised-notice.component.mjs +4 -4
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +279 -0
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +97 -0
- package/{esm2020 → esm2022}/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.mjs +6 -6
- package/esm2022/lib/place/exports.mjs +48 -0
- package/{esm2020 → esm2022}/lib/place/guards/consolidated-param-map.mjs +3 -2
- package/{esm2020 → esm2022}/lib/place/guards/noop-auth-guard.service.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +158 -0
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +87 -0
- package/esm2022/lib/place/navigation/session/abstract-pop-state-navigation.mjs +15 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +45 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +159 -0
- package/esm2022/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +66 -0
- package/esm2022/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +35 -0
- package/esm2022/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +54 -0
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +89 -0
- package/{esm2020 → esm2022}/lib/place/navigation/session/navigating.mjs +4 -6
- package/esm2022/lib/place/navigation/session/navigation-context.mjs +19 -0
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +176 -0
- package/esm2022/lib/place/place-access-guard.mjs +15 -0
- package/esm2022/lib/place/place-component.mjs +200 -0
- package/esm2022/lib/place/place-definition.mjs +213 -0
- package/esm2022/lib/place/place-history.mjs +148 -0
- package/esm2022/lib/place/place-router.mjs +352 -0
- package/esm2022/lib/place/place.module.mjs +94 -0
- package/esm2022/lib/place/route/parameter-definition.mjs +121 -0
- package/esm2022/lib/place/route/visit-segment-sanitiser.mjs +46 -0
- package/esm2022/lib/place/url-service.mjs +68 -0
- package/esm2022/lib/place/url-snapshot.mjs +125 -0
- package/esm2022/lib/place/visit-segment.mjs +88 -0
- package/esm2022/lib/place/visit.mjs +97 -0
- package/{esm2020 → esm2022}/lib/services/markdown/markdown.service.mjs +4 -4
- package/{esm2020 → esm2022}/lib/services/visibility-service.mjs +8 -5
- package/{fesm2020 → fesm2022}/coolon-angular-ui-powerups.mjs +1827 -1526
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -0
- package/lib/angular-ui-powerups.module.d.ts +5 -5
- package/lib/components/alignment.d.ts +1 -1
- package/lib/components/busy-overlay/busy-overlay.component.d.ts +1 -1
- package/lib/components/cards/abstract-card-container.component.d.ts +1 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/cards/card-stack/card-stack.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +2 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +1 -1
- package/lib/components/commands/flex.component.d.ts +1 -1
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/popup-menu/more-menu.component.d.ts +1 -1
- package/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.d.ts +2 -2
- package/lib/components/commands/group/popup-menu/popup-menu.component.d.ts +1 -1
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/commands/separator.component.d.ts +1 -1
- package/lib/components/components.module.d.ts +21 -23
- package/lib/components/disposable-component.d.ts +1 -1
- package/lib/components/empty-state/empty-state.component.d.ts +1 -1
- package/lib/components/exports.d.ts +0 -2
- package/lib/components/focus-container/focus-container.component.d.ts +1 -1
- package/lib/components/focusable.component.d.ts +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +1 -1
- 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 +3 -3
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +1 -1
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +1 -1
- package/lib/components/forms/number-input/number-input.component.d.ts +1 -1
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +1 -2
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -1
- package/lib/components/forms/text-input/text-input.component.d.ts +1 -1
- package/lib/components/icon/icon.component.d.ts +1 -1
- package/lib/components/labelled-value/labelled-value.component.d.ts +1 -1
- package/lib/components/loading-container/loading-container.component.d.ts +1 -1
- package/lib/components/noop/noop.component.d.ts +1 -1
- package/lib/components/resize-aware.component.d.ts +1 -1
- package/lib/components/scroll-container/scroll-container.component.d.ts +1 -1
- package/lib/components/section-header/section-header.component.d.ts +1 -1
- package/lib/components/switch-case/switch-case.component.d.ts +3 -3
- package/lib/components/tables/abstract-table-model.d.ts +1 -3
- package/lib/components/tables/abstract-table.component.d.ts +1 -1
- package/lib/components/tables/column/column-model.d.ts +1 -1
- package/lib/components/tables/column/column-template/column-template.directive.d.ts +1 -1
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.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 +1 -1
- package/lib/components/tables/paginator/paginator.component.d.ts +1 -1
- package/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-header-cell/table-header-cell.component.d.ts +1 -1
- package/lib/components/tables/table/table.component.d.ts +1 -1
- package/lib/components/tables/table-row-menu/table-row-menu.component.d.ts +2 -2
- package/lib/components/tables/tree-table/decorated-tree-node.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.d.ts +1 -1
- 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-table-component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-table-model.d.ts +1 -1
- package/lib/components/text/markdown/markdown.component.d.ts +1 -1
- package/lib/components/vertical-focus-container/vertical-focus-container.component.d.ts +1 -1
- package/lib/directives/command.directive.d.ts +3 -3
- package/lib/directives/directives.module.d.ts +5 -5
- package/lib/directives/focus-binding.directive.d.ts +1 -1
- package/lib/directives/garbage-collector.directive.d.ts +1 -1
- package/lib/directives/highlight-text-model.directive.d.ts +1 -1
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +1 -1
- package/lib/interaction/components/abstract-dialog.component.d.ts +1 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +1 -1
- package/lib/interaction/components/activity-body/activity-body.component.d.ts +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +1 -1
- package/lib/interaction/components/alert-dialog/alert-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.d.ts +1 -1
- package/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.d.ts +1 -1
- package/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +2 -2
- package/lib/interaction/components/input-activities/input-activity.d.ts +3 -7
- package/lib/interaction/components/input-activities/select-input-activity.d.ts +2 -4
- 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 +1 -1
- package/lib/interaction/directives/interaction-context-trigger-for.directive.d.ts +1 -1
- package/lib/interaction/interaction.module.d.ts +6 -6
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +2 -2
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +2 -2
- package/lib/place/components/abstract-place-navigation.component.d.ts +3 -4
- package/lib/place/components/list-place-nav/list-place-nav.component.d.ts +1 -1
- package/lib/place/components/not-authorised-notice/not-authorised-notice.component.d.ts +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +1 -1
- package/lib/place/components/side-place-navigation/side-place-navigation.component.d.ts +1 -1
- package/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.d.ts +1 -1
- package/lib/place/exports.d.ts +0 -1
- package/lib/place/guards/noop-auth-guard.service.d.ts +2 -2
- package/lib/place/guards/place.guard.d.ts +4 -4
- package/lib/place/place-access-guard.d.ts +2 -2
- package/lib/place/place-component.d.ts +3 -6
- package/lib/place/place-router.d.ts +9 -2
- package/lib/place/place.module.d.ts +5 -5
- package/lib/place/route/json-types.d.ts +2 -2
- package/package.json +16 -24
- package/schematics/activity/index.js +1 -2
- package/schematics/activity/index.js.map +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -4
- package/schematics/aup-i18n/index.js +6 -6
- package/schematics/aup-i18n/index.js.map +1 -1
- package/schematics/bootstrap-app/index.js +10 -10
- package/schematics/bootstrap-app/index.js.map +1 -1
- package/schematics/component/index.js +2 -2
- package/schematics/component/index.js.map +1 -1
- package/schematics/component/schema.d.ts +1 -1
- package/schematics/component/schema.json +6 -6
- package/schematics/place-add/index.js +3 -3
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/place-add/schema.d.ts +1 -1
- package/schematics/place-add/schema.json +4 -4
- package/schematics/place-add/templates/component/__name@dasherize__.component.scss.template +0 -1
- package/schematics/place-routes/index.js.map +1 -1
- package/schematics/place-routes/place-def.js +1 -1
- package/schematics/place-routes/place-def.js.map +1 -1
- package/schematics/place-routes/schema.json +2 -1
- package/schematics/place-routes/templates/place-routes.ts.template +3 -2
- package/schematics/utils/import-def.js +3 -3
- package/schematics/utils/import-def.js.map +1 -1
- package/schematics/utils/stringy.js +3 -3
- package/schematics/utils/stringy.js.map +1 -1
- package/schematics/utils/workspace.js +3 -3
- package/schematics/utils/workspace.js.map +1 -1
- package/esm2020/lib/angular-ui-powerups.module.mjs +0 -80
- package/esm2020/lib/components/busy-overlay/busy-overlay.component.mjs +0 -32
- package/esm2020/lib/components/cards/abstract-card-container.component.mjs +0 -34
- package/esm2020/lib/components/cards/card-container/card-container.component.mjs +0 -129
- package/esm2020/lib/components/commands/command/command.component.mjs +0 -103
- package/esm2020/lib/components/commands/command-face/command-face.component.mjs +0 -80
- package/esm2020/lib/components/commands/group/command-container.mjs +0 -21
- package/esm2020/lib/components/commands/group/popup-aware.component.mjs +0 -26
- package/esm2020/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +0 -84
- package/esm2020/lib/components/commands/group/popup-menu/more-menu.component.mjs +0 -57
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +0 -101
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu.component.mjs +0 -53
- package/esm2020/lib/components/commands/separator.component.mjs +0 -41
- package/esm2020/lib/components/components.module.mjs +0 -350
- package/esm2020/lib/components/empty-state/empty-state.component.mjs +0 -23
- package/esm2020/lib/components/exports.mjs +0 -95
- package/esm2020/lib/components/focus-container/focus-container.component.mjs +0 -37
- package/esm2020/lib/components/focusable.component.mjs +0 -48
- package/esm2020/lib/components/forms/abstract-input.component.mjs +0 -154
- package/esm2020/lib/components/forms/abstract-list-input.component.mjs +0 -65
- package/esm2020/lib/components/forms/abstract-value-input.component.mjs +0 -65
- package/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +0 -120
- package/esm2020/lib/components/forms/checkbox-input/checkbox-input.component.mjs +0 -29
- package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +0 -78
- package/esm2020/lib/components/forms/number-input/number-input.component.mjs +0 -33
- package/esm2020/lib/components/forms/password-input/password-input.component.mjs +0 -24
- package/esm2020/lib/components/forms/select-input/select-input.component.mjs +0 -121
- package/esm2020/lib/components/forms/string-input/string-input.component.mjs +0 -48
- package/esm2020/lib/components/forms/text-input/text-input.component.mjs +0 -30
- package/esm2020/lib/components/labelled-value/labelled-value.component.mjs +0 -20
- package/esm2020/lib/components/loading-container/loading-container.component.mjs +0 -50
- package/esm2020/lib/components/resize-aware.component.mjs +0 -45
- package/esm2020/lib/components/scroll-container/scroll-container.component.mjs +0 -35
- package/esm2020/lib/components/section-header/section-header.component.mjs +0 -36
- package/esm2020/lib/components/switch-case/switch-case.component.mjs +0 -126
- package/esm2020/lib/components/tables/abstract-table-model.mjs +0 -246
- package/esm2020/lib/components/tables/abstract-table.component.mjs +0 -149
- package/esm2020/lib/components/tables/column/column-list-model.mjs +0 -43
- package/esm2020/lib/components/tables/column/column-model.mjs +0 -184
- package/esm2020/lib/components/tables/column/column-template/column-template.directive.mjs +0 -35
- package/esm2020/lib/components/tables/column/custom-template-column-model.mjs +0 -16
- package/esm2020/lib/components/tables/column/custom-value-column-model.mjs +0 -37
- package/esm2020/lib/components/tables/column/list-propery-column-model.mjs +0 -54
- package/esm2020/lib/components/tables/column/property-column-model.mjs +0 -96
- package/esm2020/lib/components/tables/column/selection-column-model.mjs +0 -50
- package/esm2020/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +0 -55
- package/esm2020/lib/components/tables/editor/edit-session.mjs +0 -23
- package/esm2020/lib/components/tables/filter/column-text-search-formatter.mjs +0 -51
- package/esm2020/lib/components/tables/filter/table-filter-model.mjs +0 -56
- package/esm2020/lib/components/tables/paginator/paginator.component.mjs +0 -44
- package/esm2020/lib/components/tables/renderer/cell-portal-ref.mjs +0 -93
- package/esm2020/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +0 -22
- package/esm2020/lib/components/tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component.mjs +0 -15
- package/esm2020/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +0 -47
- package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +0 -28
- package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +0 -120
- package/esm2020/lib/components/tables/renderer/table-cell/table-cell.component.mjs +0 -93
- package/esm2020/lib/components/tables/renderer/table-header-cell/table-header-cell.component.mjs +0 -32
- package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.mjs +0 -36
- package/esm2020/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +0 -55
- package/esm2020/lib/components/tables/table/table.component.mjs +0 -170
- package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +0 -80
- package/esm2020/lib/components/tables/tree-table/decorated-tree-node.mjs +0 -171
- package/esm2020/lib/components/tables/tree-table/flattened-tree-list-model.mjs +0 -29
- package/esm2020/lib/components/tables/tree-table/tree-expansion-model.mjs +0 -70
- package/esm2020/lib/components/tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component.mjs +0 -72
- package/esm2020/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +0 -91
- package/esm2020/lib/components/tables/tree-table/tree-label-column-model.mjs +0 -42
- package/esm2020/lib/components/tables/tree-table/tree-table-component.mjs +0 -113
- package/esm2020/lib/components/tables/tree-table/tree-table-model.mjs +0 -105
- package/esm2020/lib/components/text/markdown/markdown.component.mjs +0 -78
- package/esm2020/lib/components/types/bounds.class.mjs +0 -27
- package/esm2020/lib/components/types/point.class.mjs +0 -13
- package/esm2020/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +0 -77
- package/esm2020/lib/directives/command.directive.mjs +0 -122
- package/esm2020/lib/directives/directives.module.mjs +0 -68
- package/esm2020/lib/directives/focus-binding-factory.mjs +0 -30
- package/esm2020/lib/directives/focus-binding.directive.mjs +0 -62
- package/esm2020/lib/directives/focus-binding.mjs +0 -79
- package/esm2020/lib/directives/highlight-text-model.directive.mjs +0 -27
- package/esm2020/lib/directives/highlight.pipe.mjs +0 -47
- package/esm2020/lib/interaction/activity-ref.mjs +0 -65
- package/esm2020/lib/interaction/components/abstract-confirm-dialog.component.mjs +0 -27
- package/esm2020/lib/interaction/components/abstract-dialog.component.mjs +0 -61
- package/esm2020/lib/interaction/components/activity-actions/activity-actions.component.mjs +0 -122
- package/esm2020/lib/interaction/components/activity-body/activity-body.component.mjs +0 -23
- package/esm2020/lib/interaction/components/activity-container/activity-container.component.mjs +0 -241
- package/esm2020/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +0 -59
- package/esm2020/lib/interaction/components/activity-title/activity-title.component.mjs +0 -41
- package/esm2020/lib/interaction/components/activity-triggers/abstract-activity-trigger.component.mjs +0 -89
- package/esm2020/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +0 -24
- package/esm2020/lib/interaction/components/activity-triggers/modal-activity-trigger/modal-activity-trigger.component.mjs +0 -22
- package/esm2020/lib/interaction/components/activity-triggers/popup-activity-trigger/popup-activity-trigger.component.mjs +0 -30
- package/esm2020/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +0 -91
- package/esm2020/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +0 -73
- package/esm2020/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -29
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-editor-model.mjs +0 -50
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +0 -179
- package/esm2020/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +0 -133
- package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +0 -103
- package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +0 -65
- package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +0 -37
- package/esm2020/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.mjs +0 -128
- package/esm2020/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +0 -73
- package/esm2020/lib/interaction/interaction.module.mjs +0 -195
- package/esm2020/lib/interaction/services/interaction-service-routing-adapter.mjs +0 -29
- package/esm2020/lib/interaction/services/interaction.service.mjs +0 -144
- package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.mjs +0 -47
- package/esm2020/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.mjs +0 -62
- package/esm2020/lib/place/components/abstract-place-navigation.component.mjs +0 -101
- package/esm2020/lib/place/components/place-outlet/place-outlet.component.mjs +0 -257
- package/esm2020/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +0 -94
- package/esm2020/lib/place/exports.mjs +0 -49
- package/esm2020/lib/place/guards/place.guard.mjs +0 -154
- package/esm2020/lib/place/navigation/place-component-deactivation-handler.mjs +0 -83
- package/esm2020/lib/place/navigation/session/abstract-pop-state-navigation.mjs +0 -14
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.mjs +0 -43
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-navigation-interaction-cancelation-type-determined.mjs +0 -152
- package/esm2020/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.mjs +0 -62
- package/esm2020/lib/place/navigation/session/interactions/navigating-during-interaction.mjs +0 -38
- package/esm2020/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.mjs +0 -52
- package/esm2020/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +0 -88
- package/esm2020/lib/place/navigation/session/navigation-context.mjs +0 -14
- package/esm2020/lib/place/navigation/session/navigation-session.mjs +0 -173
- package/esm2020/lib/place/place-access-guard.mjs +0 -15
- package/esm2020/lib/place/place-auth-service.mjs +0 -142
- package/esm2020/lib/place/place-component.mjs +0 -203
- package/esm2020/lib/place/place-definition.mjs +0 -204
- package/esm2020/lib/place/place-history.mjs +0 -145
- package/esm2020/lib/place/place-router.mjs +0 -319
- package/esm2020/lib/place/place.module.mjs +0 -94
- package/esm2020/lib/place/route/parameter-definition.mjs +0 -122
- package/esm2020/lib/place/route/visit-segment-sanitiser.mjs +0 -41
- package/esm2020/lib/place/url-service.mjs +0 -65
- package/esm2020/lib/place/url-snapshot.mjs +0 -122
- package/esm2020/lib/place/visit-segment.mjs +0 -86
- package/esm2020/lib/place/visit.mjs +0 -95
- package/fesm2015/coolon-angular-ui-powerups.mjs +0 -11329
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +0 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +0 -1
- package/lib/components/tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component.d.ts +0 -15
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +0 -23
- package/lib/place/place-auth-service.d.ts +0 -49
- /package/{esm2020 → esm2022}/coolon-angular-ui-powerups.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/animations/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/animations/slide-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/alignment.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/commands/group/popup-container.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/column/column-text-properties.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/column/editor-controls-column-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/editor/editable-cell-renderer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/filter/text-search-predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-editors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/renderer/cell-renderer.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/tables/table/table-model.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/track-by.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/directives/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/abstract-interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/alert.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/components/editors/edit-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/confirm.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/in-place-interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/interaction-context.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/route-synchronisation-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/interaction/services/modal-interaction-context.factory.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/components/place-outlet/route-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/nav-item.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/event-cleanup/event-clean-up-session.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/navigation/session/pop-state-navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/place-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/place.decorator.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/formatter.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/json-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-decorators.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-sanitiser.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/place/route/parameter-snapshot.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/exports.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/services/markdown/pill-plugin.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
2
|
+
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
|
3
|
+
import { MatLegacyDialogConfig as MatDialogConfig } from '@angular/material/legacy-dialog';
|
|
4
4
|
import { BooleanValueModelChain } from '@coolon/pectin';
|
|
5
5
|
import { InteractionContext } from '../../interaction-context';
|
|
6
6
|
import { InteractionService } from '../interaction.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
1
|
+
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
|
2
|
+
import { MatLegacyDialogConfig as MatDialogConfig } from '@angular/material/legacy-dialog';
|
|
3
3
|
import { Constructable, Disposable } from '@coolon/pectin';
|
|
4
4
|
import { AbstractInteractionContext } from '../../abstract-interaction-context';
|
|
5
5
|
import { Activity } from '../../activity';
|
|
@@ -14,9 +14,9 @@ interface MenuItem {
|
|
|
14
14
|
export declare class AbstractPlaceNavigationComponent extends DisposableComponent implements OnInit {
|
|
15
15
|
readonly placeRouter: PlaceRouter;
|
|
16
16
|
places: Constructable<PlaceComponent>[];
|
|
17
|
-
|
|
17
|
+
placesModel: ListModel<Constructable<PlaceComponent>>;
|
|
18
18
|
placeOutlet: PlaceOutletComponent;
|
|
19
|
-
|
|
19
|
+
placeOutletModel: ValueModel<PlaceOutletComponent>;
|
|
20
20
|
private readonly placeDefinitions;
|
|
21
21
|
readonly menuItems: ListModelChain<MenuItem>;
|
|
22
22
|
readonly commandFactory: Command.Factory<PlaceDefinition, void>;
|
|
@@ -24,13 +24,12 @@ export declare class AbstractPlaceNavigationComponent extends DisposableComponen
|
|
|
24
24
|
private activePlaceDefinition;
|
|
25
25
|
private placeFaces;
|
|
26
26
|
readonly trackByPlaceDef: TrackByFunction<MenuItem>;
|
|
27
|
-
private authorisedPlaces$;
|
|
28
27
|
constructor(placeRouter: PlaceRouter);
|
|
29
28
|
protected handlePlaceOutLetChanged(outlet: PlaceOutletComponent): void;
|
|
30
29
|
getNavigationFace(placeDef: PlaceDefinition): CommandFace;
|
|
31
30
|
private createCommandFaceFor;
|
|
32
31
|
ngOnInit(): void;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPlaceNavigationComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPlaceNavigationComponent, "ng-component", never, { "places": "places"; "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPlaceNavigationComponent, "ng-component", never, { "places": { "alias": "places"; "required": false; }; "placesModel": { "alias": "placesModel"; "required": false; }; "placeOutlet": { "alias": "placeOutlet"; "required": false; }; "placeOutletModel": { "alias": "placeOutletModel"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
34
|
}
|
|
36
35
|
export {};
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class ListPlaceNavComponent extends AbstractPlaceNavigationComponent {
|
|
5
5
|
constructor(router: PlaceRouter);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListPlaceNavComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListPlaceNavComponent, "aup-list-place-nav", never, {}, {}, never, never, false>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListPlaceNavComponent, "aup-list-place-nav", never, {}, {}, never, never, false, never>;
|
|
8
8
|
}
|
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class NotAuthorisedNoticeComponent {
|
|
3
3
|
constructor();
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotAuthorisedNoticeComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotAuthorisedNoticeComponent, "aup-not-authorised-notice", never, {}, {}, never, never, false>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotAuthorisedNoticeComponent, "aup-not-authorised-notice", never, {}, {}, never, never, false, never>;
|
|
6
6
|
}
|
|
@@ -55,5 +55,5 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
55
55
|
animationStarted(): void;
|
|
56
56
|
animationDone(): void;
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceOutletComponent, [null, null, { optional: true; }, { optional: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate": "animate"; "animateModel": "animateModel"; "customPlaceAnimationOrderModel": "placeAnimationOrderModel"; "customPlaceAnimationOrder": "placeAnimationOrder"; }, { "placeChanged": "placeChanged"; }, never, never, false>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlaceOutletComponent, "aup-place-outlet", never, { "animate": { "alias": "animate"; "required": false; }; "animateModel": { "alias": "animateModel"; "required": false; }; "customPlaceAnimationOrderModel": { "alias": "placeAnimationOrderModel"; "required": false; }; "customPlaceAnimationOrder": { "alias": "placeAnimationOrder"; "required": false; }; }, { "placeChanged": "placeChanged"; }, never, never, false, never>;
|
|
59
59
|
}
|
|
@@ -54,5 +54,5 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
|
|
|
54
54
|
collapseMenu(): void;
|
|
55
55
|
toggleMenu(): void;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidePlaceNavigationComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidePlaceNavigationComponent, "aup-side-place-navigation", never, { "expanded$": "expanded$"; "expanded": "expanded"; }, {}, ["navEndTemplate"], never, false>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidePlaceNavigationComponent, "aup-side-place-navigation", never, { "expanded$": { "alias": "expanded$"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, ["navEndTemplate"], never, false, never>;
|
|
58
58
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
|
|
5
5
|
constructor(router: PlaceRouter);
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabbedPlaceNavigationComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabbedPlaceNavigationComponent, "aup-tabbed-place-navigation", never, {}, {}, never, ["[nav-start]", "[nav-end]"], false>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabbedPlaceNavigationComponent, "aup-tabbed-place-navigation", never, {}, {}, never, ["[nav-start]", "[nav-end]"], false, never>;
|
|
8
8
|
}
|
package/lib/place/exports.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot,
|
|
1
|
+
import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NoopAuthGuard
|
|
3
|
+
export declare class NoopAuthGuard {
|
|
4
4
|
constructor();
|
|
5
5
|
canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NoopAuthGuard, never>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { ActivatedRouteSnapshot,
|
|
2
|
+
import { ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
3
3
|
import { InteractionService } from '../../interaction/services/interaction.service';
|
|
4
|
-
import {
|
|
4
|
+
import { PlaceAccessGuard } from "../place-access-guard";
|
|
5
5
|
import { PlaceComponent } from '../place-component';
|
|
6
6
|
import { PlaceHistory } from '../place-history';
|
|
7
7
|
import { PlaceRouter } from '../place-router';
|
|
8
8
|
import { UrlService } from '../url-service';
|
|
9
9
|
import { UrlSnapshot } from '../url-snapshot';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class PlaceGuard
|
|
11
|
+
export declare class PlaceGuard {
|
|
12
12
|
private readonly router;
|
|
13
13
|
private urlService;
|
|
14
14
|
private readonly placeRouter;
|
|
@@ -16,7 +16,7 @@ export declare class PlaceGuard implements CanActivate, CanDeactivate<PlaceCompo
|
|
|
16
16
|
private readonly interactionService;
|
|
17
17
|
private readonly injector;
|
|
18
18
|
constructor(router: Router, urlService: UrlService, placeRouter: PlaceRouter, placeHistory: PlaceHistory, interactionService: InteractionService, injector: Injector);
|
|
19
|
-
get
|
|
19
|
+
get accessGuard(): PlaceAccessGuard;
|
|
20
20
|
canActivate(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean | UrlTree>;
|
|
21
21
|
private findBestAuthenticatedAlternative;
|
|
22
22
|
canDeactivate(component: PlaceComponent, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Promise<boolean | UrlTree>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PlaceDefinition } from './place-definition';
|
|
2
2
|
export interface PlaceAccessGuard {
|
|
3
|
-
isAuthenticated(): boolean
|
|
3
|
+
isAuthenticated(): boolean | Promise<boolean>;
|
|
4
4
|
isAuthorised(placeDefinition: PlaceDefinition): boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare namespace PlaceAccessGuard {
|
|
7
7
|
class NoAuth implements PlaceAccessGuard {
|
|
8
|
-
isAuthenticated(): boolean
|
|
8
|
+
isAuthenticated(): boolean | Promise<boolean>;
|
|
9
9
|
isAuthorised(placeDefinition: PlaceDefinition): boolean;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
-
import { Constructable,
|
|
2
|
+
import { Constructable, ValueModel } from '@coolon/pectin';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
4
|
import { DisposableComponent } from '../components/disposable-component';
|
|
5
5
|
import { InteractionContext } from '../interaction/interaction-context';
|
|
6
6
|
import { PlaceDefinition } from './place-definition';
|
|
7
|
-
import { PlaceRouter } from "./place-router";
|
|
8
7
|
import { ParameterDefinition } from './route/parameter-definition';
|
|
9
8
|
import { UrlSnapshot } from './url-snapshot';
|
|
10
9
|
import { VisitSegment } from './visit-segment';
|
|
@@ -17,13 +16,11 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
17
16
|
private _inVisitUpdate;
|
|
18
17
|
private _active;
|
|
19
18
|
interactionContext?: InteractionContext;
|
|
20
|
-
|
|
19
|
+
childPlaces: Constructable<PlaceComponent>[];
|
|
21
20
|
private readonly _parameterChangeInterceptors;
|
|
22
21
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
23
|
-
protected readonly placeRouter: PlaceRouter;
|
|
24
22
|
constructor();
|
|
25
23
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
26
|
-
get childPlaces(): Constructable<PlaceComponent>[];
|
|
27
24
|
updateVisit(visit: VisitSegment): void;
|
|
28
25
|
isInitialised(): boolean;
|
|
29
26
|
/**
|
|
@@ -56,7 +53,7 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
56
53
|
onPlaceReady(callback: () => void): void;
|
|
57
54
|
interceptVisitParameterChange<T>(model: ValueModel<T>, callback: PlaceComponent.InterceptCallback<T>, options?: PlaceComponent.InterceptOptions): void;
|
|
58
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceComponent, never>;
|
|
59
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceComponent, never, never, {}, {}, never, never, false>;
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceComponent, never, never, {}, {}, never, never, false, never>;
|
|
60
57
|
}
|
|
61
58
|
export declare namespace PlaceComponent {
|
|
62
59
|
function isPlaceComponentConstructor(target: any): target is Constructable<PlaceComponent>;
|
|
@@ -3,8 +3,8 @@ import { ActivatedRouteSnapshot, NavigationCancel, NavigationEnd, NavigationErro
|
|
|
3
3
|
import { GarbageCollector, MutableValueModel, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
4
4
|
import { Constructable } from "@coolon/typescript-utilities";
|
|
5
5
|
import { InteractionService } from "../interaction/services/interaction.service";
|
|
6
|
-
import { PlaceAuthService } from "./place-auth-service";
|
|
7
6
|
import { NavigationSession } from "./navigation/session/navigation-session";
|
|
7
|
+
import { PlaceAccessGuard } from "./place-access-guard";
|
|
8
8
|
import { PlaceComponent } from "./place-component";
|
|
9
9
|
import { PlaceHistory } from "./place-history";
|
|
10
10
|
import { UrlService } from "./url-service";
|
|
@@ -26,8 +26,15 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
26
26
|
private readonly _activeVisit$;
|
|
27
27
|
private readonly routerInteractionAdapter;
|
|
28
28
|
private sessionFinishedJobs;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* An observable model containing the authoriser function. This allows places to react to changes
|
|
31
|
+
* in permissions when any underlying auth logic changes, e.g. a role being removed from a user.
|
|
32
|
+
*/
|
|
33
|
+
private readonly _accessGuard$;
|
|
34
|
+
private redirections;
|
|
30
35
|
constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
|
|
36
|
+
get accessGuard$(): ValueModel<PlaceAccessGuard>;
|
|
37
|
+
configureAuth(accessGrant: ValueModel<PlaceAccessGuard>, redirections: PlaceRouter.Redirections): void;
|
|
31
38
|
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
32
39
|
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
33
40
|
get navigationSession(): NavigationSession;
|
|
@@ -7,11 +7,11 @@ import * as i5 from "./components/abstract-place-navigation.component";
|
|
|
7
7
|
import * as i6 from "./components/not-authorised-notice/not-authorised-notice.component";
|
|
8
8
|
import * as i7 from "@angular/common";
|
|
9
9
|
import * as i8 from "@angular/platform-browser/animations";
|
|
10
|
-
import * as i9 from "@angular/material/progress-spinner";
|
|
10
|
+
import * as i9 from "@angular/material/legacy-progress-spinner";
|
|
11
11
|
import * as i10 from "@angular/router";
|
|
12
|
-
import * as i11 from "@angular/material/tabs";
|
|
13
|
-
import * as i12 from "@angular/material/list";
|
|
14
|
-
import * as i13 from "@angular/material/tooltip";
|
|
12
|
+
import * as i11 from "@angular/material/legacy-tabs";
|
|
13
|
+
import * as i12 from "@angular/material/legacy-list";
|
|
14
|
+
import * as i13 from "@angular/material/legacy-tooltip";
|
|
15
15
|
import * as i14 from "@angular/material/icon";
|
|
16
16
|
import * as i15 from "../directives/directives.module";
|
|
17
17
|
import * as i16 from "@angular/flex-layout";
|
|
@@ -19,6 +19,6 @@ import * as i17 from "../components/components.module";
|
|
|
19
19
|
import * as i18 from "@angular/cdk/portal";
|
|
20
20
|
export declare class PlaceModule {
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceModule, [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent, typeof i6.NotAuthorisedNoticeComponent], [typeof i7.CommonModule, typeof i8.BrowserAnimationsModule, typeof i9.MatLegacyProgressSpinnerModule, typeof i10.RouterModule, typeof i11.MatLegacyTabsModule, typeof i12.MatLegacyListModule, typeof i13.MatLegacyTooltipModule, typeof i14.MatIconModule, typeof i15.DirectivesModule, typeof i16.FlexModule, typeof i17.ComponentsModule, typeof i18.PortalModule], [typeof i1.PlaceOutletComponent, typeof i2.TabbedPlaceNavigationComponent, typeof i3.ListPlaceNavComponent, typeof i4.SidePlaceNavigationComponent, typeof i5.AbstractPlaceNavigationComponent]>;
|
|
23
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlaceModule>;
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type JsonPrimitive = boolean | number | string;
|
|
2
|
+
export type AnyJson = JsonPrimitive | null | JsonArray | JsonMap;
|
|
3
3
|
export interface JsonArray extends Array<AnyJson> {
|
|
4
4
|
}
|
|
5
5
|
export interface JsonMap {
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/animations": "^
|
|
7
|
-
"@angular/common": "^
|
|
8
|
-
"@angular/core": "^
|
|
9
|
-
"@angular/cdk": "^
|
|
10
|
-
"@angular/forms": "^
|
|
11
|
-
"@angular/material": "^
|
|
12
|
-
"@angular/platform-browser": "^
|
|
13
|
-
"@angular/router": "^
|
|
14
|
-
"@coolon/pectin": "^3.
|
|
6
|
+
"@angular/animations": "^16.0.0",
|
|
7
|
+
"@angular/common": "^16.0.0",
|
|
8
|
+
"@angular/core": "^16.0.0",
|
|
9
|
+
"@angular/cdk": "^16.1.1",
|
|
10
|
+
"@angular/forms": "^16.0.0",
|
|
11
|
+
"@angular/material": "^16.1.1",
|
|
12
|
+
"@angular/platform-browser": "^16.0.0",
|
|
13
|
+
"@angular/router": "^16.0.0",
|
|
14
|
+
"@coolon/pectin": "^3.40.1",
|
|
15
15
|
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
16
16
|
"lodash-es": "^4.17.21",
|
|
17
17
|
"marked": "4.0.2",
|
|
@@ -22,22 +22,16 @@
|
|
|
22
22
|
"immer": ">=7.0.15",
|
|
23
23
|
"escape-string-regexp": "^5.0.0",
|
|
24
24
|
"ts-morph": "9.1.0",
|
|
25
|
-
"@angular/flex-layout": "14.0.0-beta.
|
|
26
|
-
"@teppeis/multimaps": "2.0.0",
|
|
27
|
-
"zone.js": "0.11.8"
|
|
25
|
+
"@angular/flex-layout": "14.0.0-beta.40"
|
|
28
26
|
},
|
|
29
27
|
"optionalDependencies": {
|
|
30
28
|
"@fortawesome/fontawesome-free": "^6.0.0"
|
|
31
29
|
},
|
|
32
30
|
"dependencies": {
|
|
33
31
|
"tslib": "^2.3.0",
|
|
34
|
-
"@coolon/typescript-utilities": "^
|
|
32
|
+
"@coolon/typescript-utilities": "^3.0.0-alpha.0"
|
|
35
33
|
},
|
|
36
|
-
"module": "
|
|
37
|
-
"es2020": "fesm2020/coolon-angular-ui-powerups.mjs",
|
|
38
|
-
"esm2020": "esm2020/coolon-angular-ui-powerups.mjs",
|
|
39
|
-
"fesm2020": "fesm2020/coolon-angular-ui-powerups.mjs",
|
|
40
|
-
"fesm2015": "fesm2015/coolon-angular-ui-powerups.mjs",
|
|
34
|
+
"module": "fesm2022/coolon-angular-ui-powerups.mjs",
|
|
41
35
|
"typings": "index.d.ts",
|
|
42
36
|
"exports": {
|
|
43
37
|
"./package.json": {
|
|
@@ -45,11 +39,9 @@
|
|
|
45
39
|
},
|
|
46
40
|
".": {
|
|
47
41
|
"types": "./index.d.ts",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"node": "./fesm2015/coolon-angular-ui-powerups.mjs",
|
|
52
|
-
"default": "./fesm2020/coolon-angular-ui-powerups.mjs"
|
|
42
|
+
"esm2022": "./esm2022/coolon-angular-ui-powerups.mjs",
|
|
43
|
+
"esm": "./esm2022/coolon-angular-ui-powerups.mjs",
|
|
44
|
+
"default": "./fesm2022/coolon-angular-ui-powerups.mjs"
|
|
53
45
|
}
|
|
54
46
|
},
|
|
55
47
|
"sideEffects": false
|
|
@@ -18,12 +18,11 @@ function addActivity(_options) {
|
|
|
18
18
|
project: _options.project,
|
|
19
19
|
name: _options.name
|
|
20
20
|
});
|
|
21
|
-
const i18nNamespace = componentPathParts.concat(componentName).map(p => stringy_1.Stringy.from(p).camelizeLower().toString()).join('.')
|
|
21
|
+
const i18nNamespace = `I18n.${componentPathParts.concat(componentName).map(p => stringy_1.Stringy.from(p).camelizeLower().toString()).join('.')}`;
|
|
22
22
|
const componentFiles = (0, template_utilities_1.applyTemplatesWithOverwrite)(tree, 'templates/component', {
|
|
23
23
|
name: componentName,
|
|
24
24
|
selectorPrefix: buildContext.selectorPrefix,
|
|
25
25
|
pathToRoot: pathToSourceRoot.map(p => '..').join('/'),
|
|
26
|
-
i18nClassName: buildContext.getI18nClasName(),
|
|
27
26
|
i18nNamespace
|
|
28
27
|
}, `${(pathToSourceRoot.join('/'))}/${componentName}`);
|
|
29
28
|
return (0, schematics_1.chain)([updateModule, componentFiles])(tree, context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/activity/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoG;AACpG,8CAA2C;AAC3C,oEAA0E;AAC1E,kDAA+C;AAI/C,SAAgB,WAAW,CAAC,QAAgB;IAE1C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,kBAAkB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,gBAAgB,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAElF,kHAAkH;QAClH,MAAM,YAAY,GAAG,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,WAAW,EAAE;YACzE,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAC,CAAC;QAEH,MAAM,aAAa,GAAG,kBAAkB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/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,cAAc;YAC3C,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACrD,aAAa;SACd,EACD,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,aAAa,EAAE,CACnD,CAAC;QAGF,OAAO,IAAA,kBAAK,EAAC,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,CAAC,CAAC;AAEJ,CAAC;AAtCD,kCAsCC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {Component, Inject, OnInit} from '@angular/core';
|
|
2
2
|
import { Dsl, Command } from '@coolon/pectin';
|
|
3
3
|
import {Activity} from "@coolon/angular-ui-powerups";
|
|
4
|
-
import {
|
|
4
|
+
import { I18n } from '<%=pathToRoot%>/i18n';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
7
7
|
selector: '<%=selectorPrefix%>-<%=dasherize(name)%>',
|
|
8
8
|
templateUrl: './<%=dasherize(name)%>.component.html',
|
|
9
9
|
styleUrls: ['./<%=dasherize(name)%>.component.scss'],
|
|
10
10
|
})
|
|
11
|
-
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> {
|
|
11
|
+
export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capitalize(camelize(name))%>Component.Data, void> implements OnInit {
|
|
12
12
|
|
|
13
|
-
readonly i18n = <%=
|
|
13
|
+
readonly i18n = <%=i18nNamespace%>;
|
|
14
14
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -29,11 +29,12 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
29
29
|
this.busyWhile(this.confirmCommand.busy);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
}
|
|
32
34
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export namespace <%=capitalize(camelize(name))%>Component {
|
|
36
38
|
export interface Data {
|
|
37
|
-
// add activity inputs here
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applyWithOverwrite = exports.run = void 0;
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const workspace_1 = require("../utils/workspace");
|
|
7
6
|
const package_util_1 = require("../package-util");
|
|
7
|
+
const workspace_1 = require("../utils/workspace");
|
|
8
8
|
// @see https://javascript-conference.com/blog/how-to-create-your-own-angular-schematics/
|
|
9
9
|
function run(_options) {
|
|
10
10
|
return (tree, _context) => {
|
|
@@ -12,12 +12,12 @@ function run(_options) {
|
|
|
12
12
|
const buildContext = workspace.getProject(_options.project);
|
|
13
13
|
const templateSource = applyWithOverwrite((0, schematics_1.url)('./templates'), [
|
|
14
14
|
(0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, _options), core_1.strings)),
|
|
15
|
-
(0, schematics_1.move)(buildContext.sourceRoot)
|
|
15
|
+
(0, schematics_1.move)(buildContext.sourceRoot),
|
|
16
16
|
]);
|
|
17
17
|
// tslint:disable-next-line:no-shadowed-variable
|
|
18
18
|
const updatePackageDependencies = (tree, _) => {
|
|
19
|
-
return (0, package_util_1.updatePackageJson)(tree, draft => {
|
|
20
|
-
draft.devDependencies = Object.assign(Object.assign({}, draft.devDependencies), {
|
|
19
|
+
return (0, package_util_1.updatePackageJson)(tree, (draft) => {
|
|
20
|
+
draft.devDependencies = Object.assign(Object.assign({}, draft.devDependencies), { '@coolon/i18n-resource-generator': '^3.0.2' });
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
const rules = [templateSource, updatePackageDependencies];
|
|
@@ -36,14 +36,14 @@ function applyWithOverwrite(source, rules) {
|
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
38
|
return fileEntry;
|
|
39
|
-
})
|
|
39
|
+
}),
|
|
40
40
|
]));
|
|
41
41
|
return rule(tree, _context);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
exports.applyWithOverwrite = applyWithOverwrite;
|
|
45
45
|
// function generateApp(name: string): Rule {
|
|
46
|
-
// return externalSchematic('@
|
|
46
|
+
// return externalSchematic('@nx/angular', 'application', {
|
|
47
47
|
// name,
|
|
48
48
|
// version: '9.0.0',
|
|
49
49
|
// directory: name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/aup-i18n/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAC7C,2DAYoC;AACpC,kDAAkD;AAClD,kDAA6C;AAG7C,yFAAyF;AAEzF,SAAgB,GAAG,CAAC,QAAgB;IAClC,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAAE;YAC5D,IAAA,2BAAc,kCAAK,QAAQ,GAAK,cAAO,EAAE;YACzC,IAAA,iBAAI,EAAC,YAAY,CAAC,UAAU,CAAC;SAC9B,CAAC,CAAC;QAEH,gDAAgD;QAChD,MAAM,yBAAyB,GAAS,CACtC,IAAU,EACV,CAAmB,EACb,EAAE;YACR,OAAO,IAAA,gCAAiB,EAAC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;gBACvC,KAA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;AAClB,UAAU;AACV,EAAE;AACF,2CAA2C;AAC3C,OAAO;AACP,IAAI;AAEJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
|
|
@@ -12,18 +12,18 @@ function bootstrapApp(_options) {
|
|
|
12
12
|
const buildContext = workspace.getApplicationOrDefault(_options.project);
|
|
13
13
|
const templateSource = applyWithOverwrite((0, schematics_1.url)('./templates'), [
|
|
14
14
|
(0, schematics_1.applyTemplates)(Object.assign(Object.assign({}, _options), core_1.strings)),
|
|
15
|
-
(0, schematics_1.move)(buildContext.rootDir)
|
|
15
|
+
(0, schematics_1.move)(buildContext.rootDir),
|
|
16
16
|
]);
|
|
17
17
|
const rules = [
|
|
18
18
|
templateSource,
|
|
19
19
|
(0, schematics_1.externalSchematic)('@coolon/angular-ui-powerups', 'aup-i18n', {
|
|
20
|
-
project: _options.project
|
|
20
|
+
project: _options.project,
|
|
21
21
|
}),
|
|
22
22
|
(0, schematics_1.externalSchematic)('@coolon/angular-ui-powerups', 'place-bootstrap', {
|
|
23
23
|
project: _options.project,
|
|
24
|
-
path:
|
|
24
|
+
path: 'places',
|
|
25
25
|
}),
|
|
26
|
-
updatePackageJsonScripts(buildContext)
|
|
26
|
+
updatePackageJsonScripts(buildContext),
|
|
27
27
|
];
|
|
28
28
|
// if (_options.initialPlaceName) {
|
|
29
29
|
// rules.push(externalSchematic('@coolon/angular-ui-powerups', 'place-add', {
|
|
@@ -38,12 +38,12 @@ function bootstrapApp(_options) {
|
|
|
38
38
|
exports.bootstrapApp = bootstrapApp;
|
|
39
39
|
function updatePackageJsonScripts(context) {
|
|
40
40
|
return (tree, _) => {
|
|
41
|
-
return (0, package_util_1.updatePackageJson)(tree, draft => {
|
|
41
|
+
return (0, package_util_1.updatePackageJson)(tree, (draft) => {
|
|
42
42
|
draft.scripts = Object.assign(Object.assign({}, draft.scripts), { [`i18n:${context.projectName}`]: `i18n-resource-generator ${context.rootDir}/i18n.config.json`, [`place-routes:${context.projectName}`]: `ng generate @coolon/angular-ui-powerups:place-routes --project ${context.projectName} places`, [`build:${context.projectName}`]: `nx build --prod --project ${context.projectName}`, [`start:${context.projectName}`]: `nx serve --project ${context.projectName}`, [`e2e:${context.projectName}-e2e`]: `nx e2e --watch --project ${context.projectName}-e2e`, [`e2e-headless:${context.projectName}-e2e`]: `nx e2e --headless --project ${context.projectName}-e2e` });
|
|
43
43
|
draft.watch = Object.assign(Object.assign({}, draft.watch), { [`i18n:${context.projectName}`]: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
'--comment--': "if your i18n.config.json has additional srcDirs you'll need add them here",
|
|
45
|
+
patterns: [context.sourceCodeRoot],
|
|
46
|
+
extensions: 'i18n.yml',
|
|
47
47
|
} });
|
|
48
48
|
});
|
|
49
49
|
};
|
|
@@ -59,14 +59,14 @@ function applyWithOverwrite(source, rules) {
|
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
61
|
return fileEntry;
|
|
62
|
-
})
|
|
62
|
+
}),
|
|
63
63
|
]));
|
|
64
64
|
return rule(tree, _context);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
exports.applyWithOverwrite = applyWithOverwrite;
|
|
68
68
|
// function generateApp(name: string): Rule {
|
|
69
|
-
// return externalSchematic('@
|
|
69
|
+
// return externalSchematic('@nx/angular', 'application', {
|
|
70
70
|
// name,
|
|
71
71
|
// version: '9.0.0',
|
|
72
72
|
// directory: name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/bootstrap-app/index.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/bootstrap-app/index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,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;oBAClD,OAAO,IAAI,CAAC;iBACb;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC,CAAC;SACH,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC;AAjBD,gDAiBC;AAED,6CAA6C;AAC7C,6DAA6D;AAC7D,YAAY;AACZ,wBAAwB;AACxB,uBAAuB;AACvB,qBAAqB;AACrB,qBAAqB;AACrB,0BAA0B;AAC1B,4BAA4B;AAC5B,QAAQ;AACR,IAAI;AAEJ,kDAAkD;AAClD,gCAAgC;AAChC,EAAE;AACF,yDAAyD;AACzD,EAAE;AACF,qDAAqD;AACrD,8CAA8C;AAC9C,UAAU;AACV,4EAA4E;AAC5E,EAAE;AACF,2BAA2B;AAC3B,kBAAkB;AAClB,UAAU;AACV,EAAE;AACF,2CAA2C;AAC3C,OAAO;AACP,IAAI;AAEJ,oDAAoD;AACpD,yDAAyD;AACzD,2EAA2E;AAC3E,mBAAmB;AACnB,OAAO;AACP,IAAI;AACJ,EAAE;AACF,qDAAqD;AACrD,yDAAyD;AACzD,oEAAoE;AACpE,mBAAmB;AACnB,OAAO;AACP,IAAI"}
|
|
@@ -18,12 +18,12 @@ function addComponent(_options) {
|
|
|
18
18
|
const updateModule = (0, schematics_1.externalSchematic)('@schematics/angular', 'component', {
|
|
19
19
|
project: _options.project,
|
|
20
20
|
name: _options.name,
|
|
21
|
-
standalone: _options.
|
|
21
|
+
standalone: !_options.useModules
|
|
22
22
|
});
|
|
23
23
|
const i18nNamespace = componentPathParts.concat(componentName).map(p => stringy_1.Stringy.from(p).camelizeLower().toString()).join('.');
|
|
24
24
|
const componentFiles = (0, template_utilities_1.applyTemplatesWithOverwrite)(tree, 'templates/component', {
|
|
25
25
|
name: componentName,
|
|
26
|
-
standalone: _options.
|
|
26
|
+
standalone: _options.useModules ? "standalone: true" : undefined,
|
|
27
27
|
selectorPrefix: buildContext.selectorPrefix,
|
|
28
28
|
pathToRoot: pathToSourceRoot.map(p => '..').join('/'),
|
|
29
29
|
i18nClassName: buildContext.getI18nClasName(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-powerups/schematics/component/index.ts"],"names":[],"mappings":";;;AACA,2DAAkG;AAClG,8CAAyC;AACzC,oEAAwE;AACxE,kDAA6C;AAI7C,SAAgB,YAAY,CAAC,QAAgB;IAE3C,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,QAAiC,CAAE,CAAA;QAElE,MAAM,SAAS,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhD,MAAM,YAAY,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE5D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC3C,MAAM,aAAa,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACtD,MAAM,kBAAkB,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACpE,MAAM,gBAAgB,GAAG,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAElF,kHAAkH;QAClH,MAAM,YAAY,GAAG,IAAA,8BAAiB,EAAC,qBAAqB,EAAE,WAAW,EAAE;YACzE,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,UAAU,EAAE,QAAQ,CAAC,UAAU;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/angular-ui-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GAAG,IAAA,gDAA2B,EAChD,IAAI,EACJ,qBAAqB,EACrB;YACE,IAAI,EAAE,aAAa;YACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;YAChE,cAAc,EAAE,YAAY,CAAC,cAAc;YAC3C,UAAU,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YACrD,aAAa,EAAE,YAAY,CAAC,eAAe,EAAE;YAC7C,aAAa;SACd,EACD,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,aAAa,EAAE,CACnD,CAAC;QAGF,OAAO,IAAA,kBAAK,EAAC,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE9D,CAAC,CAAC;AAEJ,CAAC;AA3CD,oCA2CC"}
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"x-prompt": "What name would you like to use for the component?"
|
|
22
22
|
},
|
|
23
|
-
"
|
|
23
|
+
"useModules": {
|
|
24
24
|
"type": "boolean",
|
|
25
|
-
"description": "
|
|
26
|
-
"$default":
|
|
27
|
-
"x-prompt": "Should this
|
|
25
|
+
"description": "Create a module based component",
|
|
26
|
+
"$default": false,
|
|
27
|
+
"x-prompt": "Should this component use modules?"
|
|
28
28
|
},
|
|
29
29
|
"export": {
|
|
30
30
|
"type": "boolean",
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Export component",
|
|
32
32
|
"$default": true,
|
|
33
|
-
"x-prompt": "Should this
|
|
33
|
+
"x-prompt": "Should this component be exported?"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"required": [
|
|
@@ -18,10 +18,10 @@ function addPlace(_options) {
|
|
|
18
18
|
const options = {
|
|
19
19
|
project: _options.project,
|
|
20
20
|
name: _options.name,
|
|
21
|
-
standalone: _options.
|
|
21
|
+
standalone: !_options.useModules,
|
|
22
22
|
module: undefined
|
|
23
23
|
};
|
|
24
|
-
if (
|
|
24
|
+
if (_options.useModules) {
|
|
25
25
|
const placeModulePath = buildContext.findFileInAncestorPath(pathToSourceRoot, 'places.module.ts');
|
|
26
26
|
if (!placeModulePath) {
|
|
27
27
|
throw new Error(`Places must be created in or under a directory containing a 'places.module.ts'. I couldn't find one in ${pathToSourceRoot.join('/')} or in any ancestor of it. You can run ng g @coolon/angular-ui-powerups:place-bootstrap --dir=<directory> to initialise one`);
|
|
@@ -32,7 +32,7 @@ function addPlace(_options) {
|
|
|
32
32
|
const i18nNamespace = componentPathParts.concat(componentName).map(p => stringy_1.Stringy.from(p).camelizeLower().toString()).join(".");
|
|
33
33
|
const componentFiles = (0, template_utilities_1.applyTemplatesWithOverwrite)(tree, 'templates/component', {
|
|
34
34
|
name: componentName,
|
|
35
|
-
standalone: _options.
|
|
35
|
+
standalone: !_options.useModules ? "standalone: true" : undefined,
|
|
36
36
|
selectorPrefix: buildContext.selectorPrefix,
|
|
37
37
|
pathToRoot: pathToSourceRoot.map(p => '..').join('/'),
|
|
38
38
|
i18nClassName: buildContext.getI18nClasName(),
|