@coolon/angular-ui-powerups 0.0.135 → 1.0.0-alpha.11
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/CHANGELOG.md +301 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +1142 -6275
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +16 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +1 -5
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/index.js +1 -5
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.js +32 -32
- package/esm2015/lib/angular-ui-powerups.module.js.map +1 -1
- package/esm2015/lib/angular-ui-powerups.module.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/animations/index.js +1 -5
- package/esm2015/lib/animations/index.js.map +1 -1
- package/esm2015/lib/animations/slide-animations.js +0 -8
- package/esm2015/lib/animations/slide-animations.js.map +1 -1
- package/esm2015/lib/components/components.module.js +39 -39
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/disposable-component.js +8 -9
- package/esm2015/lib/components/disposable-component.js.map +1 -1
- package/esm2015/lib/components/disposable-component.metadata.json +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.js +82 -114
- package/esm2015/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/abstract-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/number-input/number-input.component.js +12 -18
- package/esm2015/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/password-input/password-input.component.js +12 -18
- package/esm2015/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +38 -57
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +19 -41
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/index.js +13 -17
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/noop/noop.component.js +12 -15
- package/esm2015/lib/components/noop/noop.component.js.map +1 -1
- package/esm2015/lib/components/resize-aware.component.js +17 -64
- package/esm2015/lib/components/resize-aware.component.js.map +1 -1
- package/esm2015/lib/components/resize-aware.component.metadata.json +1 -1
- package/esm2015/lib/components/scroll-container/scroll-container.component.js +12 -18
- package/esm2015/lib/components/scroll-container/scroll-container.component.js.map +1 -1
- package/esm2015/lib/components/types/bounds.class.js +0 -29
- package/esm2015/lib/components/types/bounds.class.js.map +1 -1
- package/esm2015/lib/components/types/dimension.class.js +0 -14
- package/esm2015/lib/components/types/dimension.class.js.map +1 -1
- package/esm2015/lib/components/types/point.class.js +0 -23
- package/esm2015/lib/components/types/point.class.js.map +1 -1
- package/esm2015/lib/directives/command.directive.js +31 -85
- package/esm2015/lib/directives/command.directive.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +28 -28
- package/esm2015/lib/directives/directives.module.js.map +1 -1
- package/esm2015/lib/directives/directives.module.metadata.json +1 -1
- package/esm2015/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm2015/lib/directives/focus-binding.directive.js +41 -96
- package/esm2015/lib/directives/focus-binding.directive.js.map +1 -1
- package/esm2015/lib/directives/index.js +3 -7
- package/esm2015/lib/directives/index.js.map +1 -1
- package/esm2015/lib/interaction/abstract-interaction-context.js +4 -73
- package/esm2015/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.js +2 -79
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity.js +0 -72
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/alert.js +0 -22
- package/esm2015/lib/interaction/alert.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +41 -187
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +24 -74
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js +13 -24
- package/esm2015/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +15 -62
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -27
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +16 -71
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/confirm.js +0 -16
- package/esm2015/lib/interaction/confirm.js.map +1 -1
- package/esm2015/lib/interaction/index.js +15 -24
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/interaction-context.js +0 -50
- package/esm2015/lib/interaction/interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.js +41 -41
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/result.js +2 -23
- package/esm2015/lib/interaction/result.js.map +1 -1
- package/esm2015/lib/interaction/route-synchronisation-adapter.js +0 -16
- package/esm2015/lib/interaction/route-synchronisation-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js +0 -43
- package/esm2015/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +22 -172
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.metadata.json +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +17 -40
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.metadata.json +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +7 -86
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
- package/esm2015/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.metadata.json +1 -1
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js +0 -16
- package/esm2015/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +36 -105
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js +17 -34
- package/esm2015/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm2015/lib/place/components/empty-state/empty-state.component.js +12 -18
- package/esm2015/lib/place/components/empty-state/empty-state.component.js.map +1 -1
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +16 -33
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +52 -240
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/route-animations.js +0 -12
- package/esm2015/lib/place/components/place-outlet/route-animations.js.map +1 -1
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +12 -17
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/guards/consolidated-param-map.js +9 -92
- package/esm2015/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.js +12 -21
- package/esm2015/lib/place/guards/noop-auth-guard.service.js.map +1 -1
- package/esm2015/lib/place/guards/noop-auth-guard.service.metadata.json +1 -1
- package/esm2015/lib/place/guards/place.guard.js +10 -119
- package/esm2015/lib/place/guards/place.guard.js.map +1 -1
- package/esm2015/lib/place/index.js +38 -46
- package/esm2015/lib/place/index.js.map +1 -1
- package/esm2015/lib/place/nav-item.js +0 -22
- package/esm2015/lib/place/nav-item.js.map +1 -1
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js +3 -49
- package/esm2015/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js +0 -23
- package/esm2015/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +0 -11
- package/esm2015/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +2 -51
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +2 -54
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +2 -60
- package/esm2015/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js +0 -24
- package/esm2015/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +1 -19
- package/esm2015/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +0 -55
- package/esm2015/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +4 -60
- package/esm2015/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigating.js +0 -31
- package/esm2015/lib/place/navigation/session/navigating.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-context.js +0 -24
- package/esm2015/lib/place/navigation/session/navigation-context.js.map +1 -1
- package/esm2015/lib/place/navigation/session/navigation-session.js +12 -178
- package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js +0 -16
- package/esm2015/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
- package/esm2015/lib/place/place-component.js +22 -107
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place-config.js +0 -13
- package/esm2015/lib/place/place-config.js.map +1 -1
- package/esm2015/lib/place/place-definition.js +26 -163
- package/esm2015/lib/place/place-definition.js.map +1 -1
- package/esm2015/lib/place/place-history.js +11 -38
- package/esm2015/lib/place/place-history.js.map +1 -1
- package/esm2015/lib/place/place-history.metadata.json +1 -1
- package/esm2015/lib/place/place-router.js +38 -247
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/place.decorator.js +3 -38
- package/esm2015/lib/place/place.decorator.js.map +1 -1
- package/esm2015/lib/place/place.module.js +40 -42
- package/esm2015/lib/place/place.module.js.map +1 -1
- package/esm2015/lib/place/place.module.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/route/formatter.js +0 -30
- package/esm2015/lib/place/route/formatter.js.map +1 -1
- package/esm2015/lib/place/route/json-types.js +0 -12
- package/esm2015/lib/place/route/json-types.js.map +1 -1
- package/esm2015/lib/place/route/parameter-decorators.js +14 -133
- package/esm2015/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm2015/lib/place/route/parameter-definition.class.js +2 -147
- package/esm2015/lib/place/route/parameter-definition.class.js.map +1 -1
- package/esm2015/lib/place/route/parameter-sanitiser.js +0 -18
- package/esm2015/lib/place/route/parameter-sanitiser.js.map +1 -1
- package/esm2015/lib/place/route/parameter-snapshot.js +0 -19
- package/esm2015/lib/place/route/parameter-snapshot.js.map +1 -1
- package/esm2015/lib/place/route/visit-sanitiser.js +2 -47
- package/esm2015/lib/place/route/visit-sanitiser.js.map +1 -1
- package/esm2015/lib/place/url-service.js +13 -68
- package/esm2015/lib/place/url-service.js.map +1 -1
- package/esm2015/lib/place/url-service.metadata.json +1 -1
- package/esm2015/lib/place/url-snapshot.js +3 -86
- package/esm2015/lib/place/url-snapshot.js.map +1 -1
- package/esm2015/lib/place/visit.js +5 -73
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/public_api.js +6 -10
- package/esm2015/public_api.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +1 -5
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/index.js +1 -5
- package/esm5/index.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.js +29 -30
- package/esm5/lib/angular-ui-powerups.module.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/animations/index.js +1 -5
- package/esm5/lib/animations/index.js.map +1 -1
- package/esm5/lib/animations/slide-animations.js +0 -8
- package/esm5/lib/animations/slide-animations.js.map +1 -1
- package/esm5/lib/components/components.module.js +36 -37
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/disposable-component.js +7 -13
- package/esm5/lib/components/disposable-component.js.map +1 -1
- package/esm5/lib/components/forms/abstract-input.component.js +95 -157
- package/esm5/lib/components/forms/abstract-input.component.js.map +1 -1
- package/esm5/lib/components/forms/number-input/number-input.component.js +11 -22
- package/esm5/lib/components/forms/number-input/number-input.component.js.map +1 -1
- package/esm5/lib/components/forms/password-input/password-input.component.js +11 -22
- package/esm5/lib/components/forms/password-input/password-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +38 -61
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +19 -45
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm5/lib/components/index.js +13 -17
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/noop/noop.component.js +9 -13
- package/esm5/lib/components/noop/noop.component.js.map +1 -1
- package/esm5/lib/components/resize-aware.component.js +21 -80
- package/esm5/lib/components/resize-aware.component.js.map +1 -1
- package/esm5/lib/components/scroll-container/scroll-container.component.js +10 -20
- package/esm5/lib/components/scroll-container/scroll-container.component.js.map +1 -1
- package/esm5/lib/components/types/bounds.class.js +3 -30
- package/esm5/lib/components/types/bounds.class.js.map +1 -1
- package/esm5/lib/components/types/dimension.class.js +0 -10
- package/esm5/lib/components/types/dimension.class.js.map +1 -1
- package/esm5/lib/components/types/point.class.js +2 -30
- package/esm5/lib/components/types/point.class.js.map +1 -1
- package/esm5/lib/directives/command.directive.js +37 -103
- package/esm5/lib/directives/command.directive.js.map +1 -1
- package/esm5/lib/directives/directives.module.js +25 -26
- package/esm5/lib/directives/directives.module.js.map +1 -1
- package/esm5/lib/directives/directives.module.ngfactory.js.map +1 -1
- package/esm5/lib/directives/focus-binding.directive.js +50 -147
- package/esm5/lib/directives/focus-binding.directive.js.map +1 -1
- package/esm5/lib/directives/index.js +3 -7
- package/esm5/lib/directives/index.js.map +1 -1
- package/esm5/lib/interaction/abstract-interaction-context.js +7 -114
- package/esm5/lib/interaction/abstract-interaction-context.js.map +1 -1
- package/esm5/lib/interaction/activity-ref.js +12 -109
- package/esm5/lib/interaction/activity-ref.js.map +1 -1
- package/esm5/lib/interaction/activity.js +12 -121
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/alert.js +0 -22
- package/esm5/lib/interaction/alert.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +64 -330
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +26 -79
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +12 -25
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +17 -72
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +13 -32
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -1
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js +24 -117
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm5/lib/interaction/confirm.js +0 -16
- package/esm5/lib/interaction/confirm.js.map +1 -1
- package/esm5/lib/interaction/index.js +15 -24
- package/esm5/lib/interaction/index.js.map +1 -1
- package/esm5/lib/interaction/interaction-context.js +0 -50
- package/esm5/lib/interaction/interaction-context.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +38 -39
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/result.js +2 -23
- package/esm5/lib/interaction/result.js.map +1 -1
- package/esm5/lib/interaction/route-synchronisation-adapter.js +0 -16
- package/esm5/lib/interaction/route-synchronisation-adapter.js.map +1 -1
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js +6 -73
- package/esm5/lib/interaction/services/interaction-service-routing-adapter.js.map +1 -1
- package/esm5/lib/interaction/services/interaction.service.js +33 -290
- package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js +16 -41
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.js.map +1 -1
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js +14 -109
- package/esm5/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.js.map +1 -1
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js +1 -23
- package/esm5/lib/interaction/services/modal-interaction-context.factory.js.map +1 -1
- package/esm5/lib/place/components/abstract-place-navigation.component.js +37 -115
- package/esm5/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js +16 -37
- package/esm5/lib/place/components/busy-overlay/busy-overlay.component.js.map +1 -1
- package/esm5/lib/place/components/empty-state/empty-state.component.js +10 -20
- package/esm5/lib/place/components/empty-state/empty-state.component.js.map +1 -1
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +17 -42
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +64 -314
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/route-animations.js +0 -12
- package/esm5/lib/place/components/place-outlet/route-animations.js.map +1 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +10 -14
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js.map +1 -1
- package/esm5/lib/place/guards/consolidated-param-map.js +17 -117
- package/esm5/lib/place/guards/consolidated-param-map.js.map +1 -1
- package/esm5/lib/place/guards/noop-auth-guard.service.js +11 -26
- package/esm5/lib/place/guards/noop-auth-guard.service.js.map +1 -1
- package/esm5/lib/place/guards/place.guard.js +24 -172
- package/esm5/lib/place/guards/place.guard.js.map +1 -1
- package/esm5/lib/place/index.js +38 -46
- package/esm5/lib/place/index.js.map +1 -1
- package/esm5/lib/place/nav-item.js +0 -22
- package/esm5/lib/place/nav-item.js.map +1 -1
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js +11 -86
- package/esm5/lib/place/navigation/place-component-deactivation-handler.js.map +1 -1
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js +4 -34
- package/esm5/lib/place/navigation/session/abstract-pop-state-navigation.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js +4 -25
- package/esm5/lib/place/navigation/session/event-cleanup/event-clean-up-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js +11 -110
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-leaving-interaction-transition-cancelled.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js +12 -147
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-link-triggered-interaction-cancelation-finishes.js.map +1 -1
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js +11 -126
- package/esm5/lib/place/navigation/session/event-cleanup/wait-until-popstate-during-can-deactivate-transition-finishes.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js +7 -71
- package/esm5/lib/place/navigation/session/interactions/navigating-during-interaction.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js +6 -49
- package/esm5/lib/place/navigation/session/interactions/pop-state-during-interaction-navigation.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js +11 -120
- package/esm5/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js +13 -106
- package/esm5/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigating.js +6 -53
- package/esm5/lib/place/navigation/session/navigating.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigation-context.js +0 -17
- package/esm5/lib/place/navigation/session/navigation-context.js.map +1 -1
- package/esm5/lib/place/navigation/session/navigation-session.js +39 -306
- package/esm5/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm5/lib/place/navigation/session/pop-state-navigation.js +5 -33
- package/esm5/lib/place/navigation/session/pop-state-navigation.js.map +1 -1
- package/esm5/lib/place/place-component.js +30 -142
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place-config.js +0 -13
- package/esm5/lib/place/place-config.js.map +1 -1
- package/esm5/lib/place/place-definition.js +37 -219
- package/esm5/lib/place/place-definition.js.map +1 -1
- package/esm5/lib/place/place-history.js +11 -56
- package/esm5/lib/place/place-history.js.map +1 -1
- package/esm5/lib/place/place-router.js +59 -372
- package/esm5/lib/place/place-router.js.map +1 -1
- package/esm5/lib/place/place.decorator.js +3 -38
- package/esm5/lib/place/place.decorator.js.map +1 -1
- package/esm5/lib/place/place.module.js +37 -40
- package/esm5/lib/place/place.module.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/route/formatter.js +6 -60
- package/esm5/lib/place/route/formatter.js.map +1 -1
- package/esm5/lib/place/route/json-types.js +0 -12
- package/esm5/lib/place/route/json-types.js.map +1 -1
- package/esm5/lib/place/route/parameter-decorators.js +14 -133
- package/esm5/lib/place/route/parameter-decorators.js.map +1 -1
- package/esm5/lib/place/route/parameter-definition.class.js +21 -222
- package/esm5/lib/place/route/parameter-definition.class.js.map +1 -1
- package/esm5/lib/place/route/parameter-sanitiser.js +0 -18
- package/esm5/lib/place/route/parameter-sanitiser.js.map +1 -1
- package/esm5/lib/place/route/parameter-snapshot.js +0 -19
- package/esm5/lib/place/route/parameter-snapshot.js.map +1 -1
- package/esm5/lib/place/route/visit-sanitiser.js +4 -42
- package/esm5/lib/place/route/visit-sanitiser.js.map +1 -1
- package/esm5/lib/place/url-service.js +20 -119
- package/esm5/lib/place/url-service.js.map +1 -1
- package/esm5/lib/place/url-snapshot.js +15 -143
- package/esm5/lib/place/url-snapshot.js.map +1 -1
- package/esm5/lib/place/visit.js +14 -132
- package/esm5/lib/place/visit.js.map +1 -1
- package/esm5/public_api.js +6 -10
- package/esm5/public_api.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +861 -4526
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +1129 -6274
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +9 -9
- package/lib/components/resize-aware.component.d.ts +3 -3
- package/lib/directives/command.directive.d.ts +4 -2
- package/lib/directives/focus-binding.directive.d.ts +1 -1
- package/lib/interaction/activity-ref.d.ts +2 -2
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +3 -2
- package/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
- package/lib/interaction/services/interaction.service.d.ts +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context-factory.d.ts +1 -1
- package/lib/interaction/services/mat-dialog-interaction/dialog-interaction-context.d.ts +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -4
- package/lib/place/guards/consolidated-param-map.d.ts +1 -1
- package/lib/place/navigation/place-component-deactivation-handler.d.ts +2 -2
- package/lib/place/navigation/session/interactions/remove-last-interaction-from-url-navigation-session.d.ts +1 -1
- package/lib/place/navigation/session/navigation-session.d.ts +4 -4
- package/lib/place/place-component.d.ts +2 -2
- package/lib/place/place-router.d.ts +3 -3
- package/lib/place/route/formatter.d.ts +4 -3
- package/lib/place/route/parameter-definition.class.d.ts +2 -2
- package/package.json +10 -10
- package/schematics/place-routes/place-builder.js +4 -2
- package/schematics/place-routes/place-builder.js.map +1 -1
- package/schematics/place-routes/place-class-scanner.d.ts +3 -3
- package/schematics/place-routes/place-class-scanner.js +1 -1
- package/schematics/place-routes/place-class-scanner.js.map +1 -1
- package/schematics/place-routes/place-def.d.ts +9 -9
- /package/{styles → assets}/styles.scss +0 -0
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
6
2
|
/* tslint:disable:no-input-rename */
|
|
7
|
-
import { EventEmitter, HostListener, Input, Output } from '@angular/core';
|
|
3
|
+
import { EventEmitter, HostListener, Input, Output, Directive } from '@angular/core';
|
|
8
4
|
import { Command, DelegatingFormValueModel, UseDelegate, ValueModel } from '@coolon/pectin';
|
|
9
5
|
import { DisposableComponent } from '../disposable-component';
|
|
10
|
-
/**
|
|
11
|
-
* @abstract
|
|
12
|
-
* @template T
|
|
13
|
-
*/
|
|
14
6
|
var AbstractInputComponent = /** @class */ (function (_super) {
|
|
15
|
-
|
|
7
|
+
__extends(AbstractInputComponent, _super);
|
|
16
8
|
function AbstractInputComponent() {
|
|
17
9
|
var _this = _super.call(this) || this;
|
|
18
10
|
_this.valueModel = new DelegatingFormValueModel();
|
|
@@ -25,208 +17,154 @@ var AbstractInputComponent = /** @class */ (function (_super) {
|
|
|
25
17
|
_this.enterKey = new EventEmitter();
|
|
26
18
|
// tslint:disable-next-line:no-output-native
|
|
27
19
|
_this.escapeKey = new EventEmitter();
|
|
28
|
-
/** @type {?} */
|
|
29
20
|
var self = _this;
|
|
30
21
|
_this.errorStateMatcher = {
|
|
31
|
-
isErrorState:
|
|
32
|
-
* @param {?} control
|
|
33
|
-
* @param {?} form
|
|
34
|
-
* @return {?}
|
|
35
|
-
*/
|
|
36
|
-
function (control, form) {
|
|
22
|
+
isErrorState: function (control, form) {
|
|
37
23
|
return self.hasErrors();
|
|
38
24
|
}
|
|
39
25
|
};
|
|
40
26
|
return _this;
|
|
41
27
|
}
|
|
42
28
|
Object.defineProperty(AbstractInputComponent.prototype, "userValueModel", {
|
|
43
|
-
set:
|
|
44
|
-
* @param {?} model
|
|
45
|
-
* @return {?}
|
|
46
|
-
*/
|
|
47
|
-
function (model) {
|
|
29
|
+
set: function (model) {
|
|
48
30
|
this.valueModel.setDelegate(model);
|
|
49
31
|
},
|
|
50
32
|
enumerable: true,
|
|
51
33
|
configurable: true
|
|
52
34
|
});
|
|
53
|
-
|
|
54
|
-
* @return {?}
|
|
55
|
-
*/
|
|
56
|
-
AbstractInputComponent.prototype.notifyClick = /**
|
|
57
|
-
* @return {?}
|
|
58
|
-
*/
|
|
59
|
-
function () {
|
|
35
|
+
AbstractInputComponent.prototype.notifyClick = function () {
|
|
60
36
|
this.safelyInvoke(this.clickCommand);
|
|
61
37
|
};
|
|
62
|
-
|
|
63
|
-
* @return {?}
|
|
64
|
-
*/
|
|
65
|
-
AbstractInputComponent.prototype.notifyFocusIn = /**
|
|
66
|
-
* @return {?}
|
|
67
|
-
*/
|
|
68
|
-
function () {
|
|
38
|
+
AbstractInputComponent.prototype.notifyFocusIn = function () {
|
|
69
39
|
this.safelyInvoke(this.focusCommand);
|
|
70
40
|
this.focus.emit();
|
|
71
41
|
};
|
|
72
|
-
|
|
73
|
-
* @return {?}
|
|
74
|
-
*/
|
|
75
|
-
AbstractInputComponent.prototype.notifyFocusOut = /**
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
function () {
|
|
42
|
+
AbstractInputComponent.prototype.notifyFocusOut = function () {
|
|
79
43
|
this.safelyInvoke(this.blurCommand);
|
|
80
44
|
this.blur.emit();
|
|
81
45
|
};
|
|
82
|
-
|
|
83
|
-
* @return {?}
|
|
84
|
-
*/
|
|
85
|
-
AbstractInputComponent.prototype.notifyEnterKey = /**
|
|
86
|
-
* @return {?}
|
|
87
|
-
*/
|
|
88
|
-
function () {
|
|
46
|
+
AbstractInputComponent.prototype.notifyEnterKey = function () {
|
|
89
47
|
this.safelyInvoke(this.enterCommand);
|
|
90
48
|
this.enterKey.emit();
|
|
91
49
|
};
|
|
92
|
-
|
|
93
|
-
* @return {?}
|
|
94
|
-
*/
|
|
95
|
-
AbstractInputComponent.prototype.notifyEscapeKey = /**
|
|
96
|
-
* @return {?}
|
|
97
|
-
*/
|
|
98
|
-
function () {
|
|
50
|
+
AbstractInputComponent.prototype.notifyEscapeKey = function () {
|
|
99
51
|
this.safelyInvoke(this.escapeCommand);
|
|
100
52
|
this.escapeKey.emit();
|
|
101
53
|
};
|
|
102
|
-
|
|
103
|
-
* @protected
|
|
104
|
-
* @param {?} command
|
|
105
|
-
* @return {?}
|
|
106
|
-
*/
|
|
107
|
-
AbstractInputComponent.prototype.safelyInvoke = /**
|
|
108
|
-
* @protected
|
|
109
|
-
* @param {?} command
|
|
110
|
-
* @return {?}
|
|
111
|
-
*/
|
|
112
|
-
function (command) {
|
|
54
|
+
AbstractInputComponent.prototype.safelyInvoke = function (command) {
|
|
113
55
|
if (command && command.enabled.value) {
|
|
114
56
|
command.execute();
|
|
115
57
|
}
|
|
116
58
|
};
|
|
117
|
-
|
|
118
|
-
* @return {?}
|
|
119
|
-
*/
|
|
120
|
-
AbstractInputComponent.prototype.ngOnInit = /**
|
|
121
|
-
* @return {?}
|
|
122
|
-
*/
|
|
123
|
-
function () {
|
|
59
|
+
AbstractInputComponent.prototype.ngOnInit = function () {
|
|
124
60
|
};
|
|
125
|
-
|
|
126
|
-
* @return {?}
|
|
127
|
-
*/
|
|
128
|
-
AbstractInputComponent.prototype.isEnabled = /**
|
|
129
|
-
* @return {?}
|
|
130
|
-
*/
|
|
131
|
-
function () {
|
|
61
|
+
AbstractInputComponent.prototype.isEnabled = function () {
|
|
132
62
|
return this.enabled.value;
|
|
133
63
|
};
|
|
134
64
|
Object.defineProperty(AbstractInputComponent.prototype, "enabled", {
|
|
135
|
-
get:
|
|
136
|
-
* @return {?}
|
|
137
|
-
*/
|
|
138
|
-
function () {
|
|
65
|
+
get: function () {
|
|
139
66
|
return this.valueModel.enabled;
|
|
140
67
|
},
|
|
141
68
|
enumerable: true,
|
|
142
69
|
configurable: true
|
|
143
70
|
});
|
|
144
|
-
|
|
145
|
-
* @return {?}
|
|
146
|
-
*/
|
|
147
|
-
AbstractInputComponent.prototype.hasErrors = /**
|
|
148
|
-
* @return {?}
|
|
149
|
-
*/
|
|
150
|
-
function () {
|
|
71
|
+
AbstractInputComponent.prototype.hasErrors = function () {
|
|
151
72
|
return !this.errorList.query().isEmpty();
|
|
152
73
|
};
|
|
153
74
|
Object.defineProperty(AbstractInputComponent.prototype, "errorList", {
|
|
154
|
-
get:
|
|
155
|
-
* @return {?}
|
|
156
|
-
*/
|
|
157
|
-
function () {
|
|
75
|
+
get: function () {
|
|
158
76
|
return this.valueModel.errorList;
|
|
159
77
|
},
|
|
160
78
|
enumerable: true,
|
|
161
79
|
configurable: true
|
|
162
80
|
});
|
|
163
81
|
Object.defineProperty(AbstractInputComponent.prototype, "firstError", {
|
|
164
|
-
get:
|
|
165
|
-
* @return {?}
|
|
166
|
-
*/
|
|
167
|
-
function () {
|
|
82
|
+
get: function () {
|
|
168
83
|
return this.hasErrors() ? this.errorList.value[0] : null;
|
|
169
84
|
},
|
|
170
85
|
enumerable: true,
|
|
171
86
|
configurable: true
|
|
172
87
|
});
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
hint: [{ type: Input }],
|
|
178
|
-
placeholder: [{ type: Input }],
|
|
179
|
-
focusCommand: [{ type: Input, args: ['command.focus',] }],
|
|
180
|
-
blurCommand: [{ type: Input, args: ['command.blur',] }],
|
|
181
|
-
enterCommand: [{ type: Input, args: ['command.enter',] }],
|
|
182
|
-
escapeCommand: [{ type: Input, args: ['command.escape',] }],
|
|
183
|
-
clickCommand: [{ type: Input, args: ['command.click',] }],
|
|
184
|
-
focus: [{ type: Output }],
|
|
185
|
-
blur: [{ type: Output }],
|
|
186
|
-
enterKey: [{ type: Output }],
|
|
187
|
-
escapeKey: [{ type: Output }],
|
|
188
|
-
notifyClick: [{ type: HostListener, args: ['click',] }],
|
|
189
|
-
notifyFocusIn: [{ type: HostListener, args: ['focusin',] }],
|
|
190
|
-
notifyFocusOut: [{ type: HostListener, args: ['focusout',] }]
|
|
191
|
-
};
|
|
192
|
-
tslib_1.__decorate([
|
|
193
|
-
UseDelegate(),
|
|
194
|
-
tslib_1.__metadata("design:type", ValueModel),
|
|
195
|
-
tslib_1.__metadata("design:paramtypes", [ValueModel])
|
|
88
|
+
__decorate([
|
|
89
|
+
Input('valueModel'), UseDelegate(),
|
|
90
|
+
__metadata("design:type", ValueModel),
|
|
91
|
+
__metadata("design:paramtypes", [ValueModel])
|
|
196
92
|
], AbstractInputComponent.prototype, "userValueModel", null);
|
|
93
|
+
__decorate([
|
|
94
|
+
Input(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], AbstractInputComponent.prototype, "label", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
Input(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], AbstractInputComponent.prototype, "floatLabel", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
Input(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], AbstractInputComponent.prototype, "hint", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
Input(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], AbstractInputComponent.prototype, "placeholder", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
Input('command.focus'),
|
|
111
|
+
__metadata("design:type", Command)
|
|
112
|
+
], AbstractInputComponent.prototype, "focusCommand", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
Input('command.blur'),
|
|
115
|
+
__metadata("design:type", Command)
|
|
116
|
+
], AbstractInputComponent.prototype, "blurCommand", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
Input('command.enter'),
|
|
119
|
+
__metadata("design:type", Command)
|
|
120
|
+
], AbstractInputComponent.prototype, "enterCommand", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
Input('command.escape'),
|
|
123
|
+
__metadata("design:type", Command)
|
|
124
|
+
], AbstractInputComponent.prototype, "escapeCommand", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
Input('command.click'),
|
|
127
|
+
__metadata("design:type", Command)
|
|
128
|
+
], AbstractInputComponent.prototype, "clickCommand", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
Output(),
|
|
131
|
+
__metadata("design:type", Object)
|
|
132
|
+
], AbstractInputComponent.prototype, "focus", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
Output(),
|
|
135
|
+
__metadata("design:type", Object)
|
|
136
|
+
], AbstractInputComponent.prototype, "blur", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
Output(),
|
|
139
|
+
__metadata("design:type", Object)
|
|
140
|
+
], AbstractInputComponent.prototype, "enterKey", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
Output(),
|
|
143
|
+
__metadata("design:type", Object)
|
|
144
|
+
], AbstractInputComponent.prototype, "escapeKey", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
HostListener('click'),
|
|
147
|
+
__metadata("design:type", Function),
|
|
148
|
+
__metadata("design:paramtypes", []),
|
|
149
|
+
__metadata("design:returntype", void 0)
|
|
150
|
+
], AbstractInputComponent.prototype, "notifyClick", null);
|
|
151
|
+
__decorate([
|
|
152
|
+
HostListener('focusin'),
|
|
153
|
+
__metadata("design:type", Function),
|
|
154
|
+
__metadata("design:paramtypes", []),
|
|
155
|
+
__metadata("design:returntype", void 0)
|
|
156
|
+
], AbstractInputComponent.prototype, "notifyFocusIn", null);
|
|
157
|
+
__decorate([
|
|
158
|
+
HostListener('focusout'),
|
|
159
|
+
__metadata("design:type", Function),
|
|
160
|
+
__metadata("design:paramtypes", []),
|
|
161
|
+
__metadata("design:returntype", void 0)
|
|
162
|
+
], AbstractInputComponent.prototype, "notifyFocusOut", null);
|
|
163
|
+
AbstractInputComponent = __decorate([
|
|
164
|
+
Directive(),
|
|
165
|
+
__metadata("design:paramtypes", [])
|
|
166
|
+
], AbstractInputComponent);
|
|
197
167
|
return AbstractInputComponent;
|
|
198
168
|
}(DisposableComponent));
|
|
199
169
|
export { AbstractInputComponent };
|
|
200
|
-
if (false) {
|
|
201
|
-
/** @type {?} */
|
|
202
|
-
AbstractInputComponent.prototype.valueModel;
|
|
203
|
-
/** @type {?} */
|
|
204
|
-
AbstractInputComponent.prototype.label;
|
|
205
|
-
/** @type {?} */
|
|
206
|
-
AbstractInputComponent.prototype.floatLabel;
|
|
207
|
-
/** @type {?} */
|
|
208
|
-
AbstractInputComponent.prototype.hint;
|
|
209
|
-
/** @type {?} */
|
|
210
|
-
AbstractInputComponent.prototype.placeholder;
|
|
211
|
-
/** @type {?} */
|
|
212
|
-
AbstractInputComponent.prototype.focusCommand;
|
|
213
|
-
/** @type {?} */
|
|
214
|
-
AbstractInputComponent.prototype.blurCommand;
|
|
215
|
-
/** @type {?} */
|
|
216
|
-
AbstractInputComponent.prototype.enterCommand;
|
|
217
|
-
/** @type {?} */
|
|
218
|
-
AbstractInputComponent.prototype.escapeCommand;
|
|
219
|
-
/** @type {?} */
|
|
220
|
-
AbstractInputComponent.prototype.clickCommand;
|
|
221
|
-
/** @type {?} */
|
|
222
|
-
AbstractInputComponent.prototype.focus;
|
|
223
|
-
/** @type {?} */
|
|
224
|
-
AbstractInputComponent.prototype.blur;
|
|
225
|
-
/** @type {?} */
|
|
226
|
-
AbstractInputComponent.prototype.enterKey;
|
|
227
|
-
/** @type {?} */
|
|
228
|
-
AbstractInputComponent.prototype.escapeKey;
|
|
229
|
-
/** @type {?} */
|
|
230
|
-
AbstractInputComponent.prototype.errorStateMatcher;
|
|
231
|
-
}
|
|
232
170
|
//# sourceMappingURL=abstract-input.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abstract-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/abstract-input.component.ts"],"names":[],"mappings":"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","sourcesContent":["/* tslint:disable:no-input-rename */\nimport { EventEmitter, HostListener, Input, OnInit, Output, Directive } from '@angular/core';\nimport { FormControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { ErrorStateMatcher } from '@angular/material/core';\nimport { Command, DelegatingFormValueModel, ListModel, UseDelegate, ValueModel } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\n\n@Directive()\nexport abstract class AbstractInputComponent<T> extends DisposableComponent implements OnInit {\n\n readonly valueModel = new DelegatingFormValueModel<T>();\n\n @Input('valueModel') @UseDelegate()\n set userValueModel(model: ValueModel<T>) {\n this.valueModel.setDelegate(model);\n }\n\n @Input() label: string;\n @Input() floatLabel: 'auto' | 'always' | 'never';\n @Input() hint: string;\n @Input() placeholder: string;\n\n @Input('command.focus') focusCommand: Command<any>;\n @Input('command.blur') blurCommand: Command<any>;\n @Input('command.enter') enterCommand: Command<any>;\n @Input('command.escape') escapeCommand: Command<any>;\n @Input('command.click') clickCommand: Command<any>;\n\n // TODO: fix this.\n // tslint:disable-next-line:no-output-native\n @Output() focus = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() blur = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() enterKey = new EventEmitter();\n // tslint:disable-next-line:no-output-native\n @Output() escapeKey = new EventEmitter();\n\n readonly errorStateMatcher: ErrorStateMatcher;\n\n @HostListener('click')\n notifyClick() {\n this.safelyInvoke(this.clickCommand);\n }\n\n @HostListener('focusin')\n notifyFocusIn() {\n this.safelyInvoke(this.focusCommand);\n this.focus.emit();\n }\n\n @HostListener('focusout')\n notifyFocusOut() {\n this.safelyInvoke(this.blurCommand);\n this.blur.emit();\n }\n\n\n notifyEnterKey() {\n this.safelyInvoke(this.enterCommand);\n this.enterKey.emit();\n }\n\n notifyEscapeKey() {\n this.safelyInvoke(this.escapeCommand);\n this.escapeKey.emit();\n }\n\n protected safelyInvoke(command: Command<any>) {\n if (command && command.enabled.value) {\n command.execute();\n }\n }\n\n constructor() {\n super();\n const self = this;\n this.errorStateMatcher = {\n isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {\n return self.hasErrors();\n }\n };\n }\n\n ngOnInit(): void {\n }\n\n isEnabled(): boolean {\n return this.enabled.value;\n }\n\n get enabled(): ValueModel<boolean> {\n return this.valueModel.enabled;\n }\n\n hasErrors(): boolean {\n return !this.errorList.query().isEmpty();\n }\n\n get errorList(): ListModel<string> {\n return this.valueModel.errorList;\n }\n\n get firstError() {\n return this.hasErrors() ? this.errorList.value[0] : null;\n }\n\n\n}\n"]}
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
6
2
|
import { Component } from '@angular/core';
|
|
7
3
|
import { AbstractInputComponent } from '../abstract-input.component';
|
|
8
4
|
var NumberInputComponent = /** @class */ (function (_super) {
|
|
9
|
-
|
|
5
|
+
__extends(NumberInputComponent, _super);
|
|
10
6
|
function NumberInputComponent() {
|
|
11
7
|
return _super.call(this) || this;
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
* @return {?}
|
|
15
|
-
*/
|
|
16
|
-
NumberInputComponent.prototype.ngOnInit = /**
|
|
17
|
-
* @return {?}
|
|
18
|
-
*/
|
|
19
|
-
function () {
|
|
9
|
+
NumberInputComponent.prototype.ngOnInit = function () {
|
|
20
10
|
};
|
|
21
|
-
NumberInputComponent
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
NumberInputComponent.ctorParameters = function () { return []; };
|
|
11
|
+
NumberInputComponent = __decorate([
|
|
12
|
+
Component({
|
|
13
|
+
selector: 'aup-number-input',
|
|
14
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"number\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
15
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
16
|
+
}),
|
|
17
|
+
__metadata("design:paramtypes", [])
|
|
18
|
+
], NumberInputComponent);
|
|
30
19
|
return NumberInputComponent;
|
|
31
20
|
}(AbstractInputComponent));
|
|
32
21
|
export { NumberInputComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/number-input/number-input.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/number-input/number-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAQrE;IAA0C,wCAA8B;IAEtE;eACE,iBAAO;IACT,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IAPU,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,unBAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CAShC;IAAD,2BAAC;CAAA,AATD,CAA0C,sBAAsB,GAS/D;SATY,oBAAoB","sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n\n@Component({\n selector: 'aup-number-input',\n templateUrl: './number-input.component.html',\n styleUrls: ['./number-input.component.scss']\n})\nexport class NumberInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
6
2
|
import { Component } from '@angular/core';
|
|
7
3
|
import { AbstractInputComponent } from '../abstract-input.component';
|
|
8
4
|
var PasswordInputComponent = /** @class */ (function (_super) {
|
|
9
|
-
|
|
5
|
+
__extends(PasswordInputComponent, _super);
|
|
10
6
|
function PasswordInputComponent() {
|
|
11
7
|
return _super.call(this) || this;
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
* @return {?}
|
|
15
|
-
*/
|
|
16
|
-
PasswordInputComponent.prototype.ngOnInit = /**
|
|
17
|
-
* @return {?}
|
|
18
|
-
*/
|
|
19
|
-
function () {
|
|
9
|
+
PasswordInputComponent.prototype.ngOnInit = function () {
|
|
20
10
|
};
|
|
21
|
-
PasswordInputComponent
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
PasswordInputComponent.ctorParameters = function () { return []; };
|
|
11
|
+
PasswordInputComponent = __decorate([
|
|
12
|
+
Component({
|
|
13
|
+
selector: 'aup-password-input',
|
|
14
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"password\"\n matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
15
|
+
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
|
|
16
|
+
}),
|
|
17
|
+
__metadata("design:paramtypes", [])
|
|
18
|
+
], PasswordInputComponent);
|
|
30
19
|
return PasswordInputComponent;
|
|
31
20
|
}(AbstractInputComponent));
|
|
32
21
|
export { PasswordInputComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/password-input/password-input.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/password-input/password-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAA4C,0CAA8B;IAExE;eACE,iBAAO;IACT,CAAC;IAED,yCAAQ,GAAR;IACA,CAAC;IAPU,sBAAsB;QALlC,SAAS,CAAC;YACT,QAAQ,EAAE,oBAAoB;YAC9B,2nBAA8C;;SAE/C,CAAC;;OACW,sBAAsB,CASlC;IAAD,6BAAC;CAAA,AATD,CAA4C,sBAAsB,GASjE;SATY,sBAAsB","sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-password-input',\n templateUrl: './password-input.component.html',\n styleUrls: ['./password-input.component.scss']\n})\nexport class PasswordInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1,76 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
1
|
+
import { __decorate, __extends, __metadata } from "tslib";
|
|
6
2
|
import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
|
|
7
3
|
import { ListModel, StoreInListModel, UseDelegate } from '@coolon/pectin';
|
|
8
4
|
import { AbstractInputComponent } from '../abstract-input.component';
|
|
9
|
-
/**
|
|
10
|
-
* @template T
|
|
11
|
-
*/
|
|
12
5
|
var SelectInputComponent = /** @class */ (function (_super) {
|
|
13
|
-
|
|
6
|
+
__extends(SelectInputComponent, _super);
|
|
14
7
|
function SelectInputComponent() {
|
|
15
8
|
var _this = _super.call(this) || this;
|
|
16
|
-
_this.optionLabelFormat = (
|
|
17
|
-
* @param {?} option
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; });
|
|
9
|
+
_this.optionLabelFormat = function (option) { return (option && _this.optionLabel) ? option[_this.optionLabel] : option; };
|
|
21
10
|
return _this;
|
|
22
11
|
}
|
|
23
|
-
|
|
24
|
-
* @return {?}
|
|
25
|
-
*/
|
|
26
|
-
SelectInputComponent.prototype.ngOnInit = /**
|
|
27
|
-
* @return {?}
|
|
28
|
-
*/
|
|
29
|
-
function () {
|
|
12
|
+
SelectInputComponent.prototype.ngOnInit = function () {
|
|
30
13
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
35
|
-
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
36
|
-
}] }
|
|
37
|
-
];
|
|
38
|
-
/** @nocollapse */
|
|
39
|
-
SelectInputComponent.ctorParameters = function () { return []; };
|
|
40
|
-
SelectInputComponent.propDecorators = {
|
|
41
|
-
optionsModel: [{ type: Input }],
|
|
42
|
-
options: [{ type: Input }],
|
|
43
|
-
optionLabel: [{ type: Input }],
|
|
44
|
-
allowNil: [{ type: Input }],
|
|
45
|
-
optionTemplateRef: [{ type: ContentChild, args: ["optionTemplate", { static: false },] }],
|
|
46
|
-
nilOptionTemplateRef: [{ type: ContentChild, args: ["nilOptionTemplate", { static: false },] }],
|
|
47
|
-
optionLabelFormat: [{ type: Input }]
|
|
48
|
-
};
|
|
49
|
-
tslib_1.__decorate([
|
|
50
|
-
UseDelegate(),
|
|
51
|
-
tslib_1.__metadata("design:type", ListModel)
|
|
14
|
+
__decorate([
|
|
15
|
+
Input(), UseDelegate(),
|
|
16
|
+
__metadata("design:type", ListModel)
|
|
52
17
|
], SelectInputComponent.prototype, "optionsModel", void 0);
|
|
53
|
-
|
|
54
|
-
StoreInListModel('optionsModel'),
|
|
55
|
-
|
|
18
|
+
__decorate([
|
|
19
|
+
Input(), StoreInListModel('optionsModel'),
|
|
20
|
+
__metadata("design:type", Array)
|
|
56
21
|
], SelectInputComponent.prototype, "options", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
Input(),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], SelectInputComponent.prototype, "optionLabel", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Input(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], SelectInputComponent.prototype, "allowNil", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
ContentChild("optionTemplate"),
|
|
32
|
+
__metadata("design:type", TemplateRef)
|
|
33
|
+
], SelectInputComponent.prototype, "optionTemplateRef", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
ContentChild("nilOptionTemplate"),
|
|
36
|
+
__metadata("design:type", TemplateRef)
|
|
37
|
+
], SelectInputComponent.prototype, "nilOptionTemplateRef", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Input(),
|
|
40
|
+
__metadata("design:type", Function)
|
|
41
|
+
], SelectInputComponent.prototype, "optionLabelFormat", void 0);
|
|
42
|
+
SelectInputComponent = __decorate([
|
|
43
|
+
Component({
|
|
44
|
+
selector: 'aup-select-input',
|
|
45
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <mat-select placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n <mat-option *ngFor=\"let option of optionsModel.value; let i = index\" [value]=\"option\">\n <ng-container *ngIf=\"!optionTemplateRef\">{{optionLabelFormat(option)}}</ng-container>\n <ng-container *ngIf=\"optionTemplateRef\"\n [ngTemplateOutlet]=\"optionTemplateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: option, index: i }\"\n >\n </ng-container>\n </mat-option>\n </mat-select>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
46
|
+
styles: [":host{display:inline-block}mat-form-field{width:100%}"]
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:paramtypes", [])
|
|
49
|
+
], SelectInputComponent);
|
|
57
50
|
return SelectInputComponent;
|
|
58
51
|
}(AbstractInputComponent));
|
|
59
52
|
export { SelectInputComponent };
|
|
60
|
-
if (false) {
|
|
61
|
-
/** @type {?} */
|
|
62
|
-
SelectInputComponent.prototype.optionsModel;
|
|
63
|
-
/** @type {?} */
|
|
64
|
-
SelectInputComponent.prototype.options;
|
|
65
|
-
/** @type {?} */
|
|
66
|
-
SelectInputComponent.prototype.optionLabel;
|
|
67
|
-
/** @type {?} */
|
|
68
|
-
SelectInputComponent.prototype.allowNil;
|
|
69
|
-
/** @type {?} */
|
|
70
|
-
SelectInputComponent.prototype.optionTemplateRef;
|
|
71
|
-
/** @type {?} */
|
|
72
|
-
SelectInputComponent.prototype.nilOptionTemplateRef;
|
|
73
|
-
/** @type {?} */
|
|
74
|
-
SelectInputComponent.prototype.optionLabelFormat;
|
|
75
|
-
}
|
|
76
53
|
//# sourceMappingURL=select-input.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/select-input/select-input.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/select-input/select-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE;IAAmD,wCAAyB;IAuB1E;QAAA,YACE,iBAAO,SACR;QAJD,uBAAiB,GAAuB,UAAC,MAAM,IAAK,OAAA,CAAC,MAAM,IAAI,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,EAAhE,CAAgE,CAAC;;IAIrH,CAAC;IAED,uCAAQ,GAAR;IACA,CAAC;IAzBD;QADC,KAAK,EAAE,EAAE,WAAW,EAAE;kCACT,SAAS;8DAAI;IAG3B;QADC,KAAK,EAAE,EAAE,gBAAgB,CAAC,cAAc,CAAC;;yDAC7B;IAGb;QADC,KAAK,EAAE;;6DACa;IAGrB;QADC,KAAK,EAAE;;0DACU;IAGlB;QADC,YAAY,CAAC,gBAAgB,CAAC;kCACZ,WAAW;mEAAM;IAGpC;QADC,YAAY,CAAC,mBAAmB,CAAC;kCACZ,WAAW;sEAAM;IAGvC;QADC,KAAK,EAAE;;mEAC6G;IArB1G,oBAAoB;QALhC,SAAS,CAAC;YACT,QAAQ,EAAE,kBAAkB;YAC5B,2lCAA4C;;SAE7C,CAAC;;OACW,oBAAoB,CA8BhC;IAAD,2BAAC;CAAA,AA9BD,CAAmD,sBAAsB,GA8BxE;SA9BY,oBAAoB","sourcesContent":["import { Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';\nimport { ListModel, StoreInListModel, UseDelegate } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-select-input',\n templateUrl: './select-input.component.html',\n styleUrls: ['./select-input.component.scss']\n})\nexport class SelectInputComponent<T = any> extends AbstractInputComponent<T> implements OnInit {\n\n @Input() @UseDelegate()\n optionsModel: ListModel<T>;\n\n @Input() @StoreInListModel('optionsModel')\n options: T[];\n\n @Input()\n optionLabel: keyof T;\n\n @Input()\n allowNil: boolean;\n\n @ContentChild(\"optionTemplate\")\n optionTemplateRef: TemplateRef<any>;\n\n @ContentChild(\"nilOptionTemplate\")\n nilOptionTemplateRef: TemplateRef<any>;\n\n @Input()\n optionLabelFormat: (option: T) => any = (option) => (option && this.optionLabel) ? option[this.optionLabel] : option;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|