@coolon/angular-ui-powerups 1.3.2 → 1.3.4

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +71 -67
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.d.ts +1 -1
  7. package/coolon-angular-ui-powerups.metadata.json +1 -1
  8. package/esm2015/coolon-angular-ui-powerups.js +1 -1
  9. package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
  10. package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
  11. package/esm2015/lib/components/components.module.js +4 -0
  12. package/esm2015/lib/components/components.module.js.map +1 -1
  13. package/esm2015/lib/components/components.module.metadata.json +1 -1
  14. package/esm2015/lib/components/focusable.component.js +4 -4
  15. package/esm2015/lib/components/focusable.component.js.map +1 -1
  16. package/esm2015/lib/components/focusable.component.metadata.json +1 -1
  17. package/esm2015/lib/directives/focus-binding-factory.js +30 -0
  18. package/esm2015/lib/directives/focus-binding-factory.js.map +1 -0
  19. package/esm2015/lib/directives/focus-binding-factory.metadata.json +1 -0
  20. package/esm2015/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  21. package/esm2015/lib/directives/focus-binding.js +1 -25
  22. package/esm2015/lib/directives/focus-binding.js.map +1 -1
  23. package/esm2015/lib/directives/index.js +1 -0
  24. package/esm2015/lib/directives/index.js.map +1 -1
  25. package/esm2015/lib/directives/index.metadata.json +1 -1
  26. package/esm5/coolon-angular-ui-powerups.js +1 -1
  27. package/esm5/coolon-angular-ui-powerups.js.map +1 -1
  28. package/esm5/lib/components/components.module.js +4 -0
  29. package/esm5/lib/components/components.module.js.map +1 -1
  30. package/esm5/lib/components/focusable.component.js +4 -4
  31. package/esm5/lib/components/focusable.component.js.map +1 -1
  32. package/esm5/lib/directives/focus-binding-factory.js +31 -0
  33. package/esm5/lib/directives/focus-binding-factory.js.map +1 -0
  34. package/esm5/lib/directives/focus-binding-factory.ngfactory.js.map +1 -0
  35. package/esm5/lib/directives/focus-binding.js +1 -26
  36. package/esm5/lib/directives/focus-binding.js.map +1 -1
  37. package/esm5/lib/directives/index.js +1 -0
  38. package/esm5/lib/directives/index.js.map +1 -1
  39. package/fesm2015/coolon-angular-ui-powerups.js +67 -65
  40. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  41. package/fesm5/coolon-angular-ui-powerups.js +69 -67
  42. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  43. package/lib/components/focusable.component.d.ts +2 -2
  44. package/lib/directives/focus-binding-factory.d.ts +9 -0
  45. package/lib/directives/focus-binding.d.ts +1 -9
  46. package/lib/directives/index.d.ts +1 -0
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAC,uBAAuB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACzG,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,sBAA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MAAM,iGAAiG,CAAC;AAE1J,OAAO,EAAC,iBAAiB,IAAI,GAAG,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,kBAAkB,IAAI,GAAG,EAAC,MAAM,gDAAgD,CAAC;AACzF,OAAO,EAAC,8BAA8B,IAAI,GAAG,EAAC,MAAM,8DAA8D,CAAC;AACnH,OAAO,EAAC,gCAAgC,IAAI,GAAG,EAAC,MAAM,4DAA4D,CAAC;AACnH,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAC,qBAAqB,IAAI,GAAG,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,0BAA0B,IAAI,EAAE,EAAC,uBAAuB,IAAI,EAAE,EAAC,MAAM,sDAAsD,CAAC;AACpI,OAAO,EAAC,8BAA8B,IAAI,GAAG,EAAC,MAAM,kFAAkF,CAAC;AACvI,OAAO,EAAC,gBAAgB,IAAI,GAAG,EAAoB,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAC,YAAY,IAAI,GAAG,EAAC,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAC,WAAW,IAAI,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAC,WAAW,IAAI,EAAE,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,UAAU,IAAI,GAAG,EAAC,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ComponentsModule as ɵe} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵr} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵs} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵg} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵk} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵf} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵi} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵj} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵh} from './lib/components/forms/string-input/string-input.component';\nexport {NoopComponent as ɵm} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵl} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵq,SwitchCaseDefaultDirective as ɵp,SwitchCaseOption as ɵn,SwitchCaseWhenDirective as ɵo} from './lib/components/switch-case/switch-case.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBinding as ɵt} from './lib/directives/focus-binding';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbm} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbp,Activity as ɵbq} from './lib/interaction/activity';\nexport {Alert as ɵbu} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbl} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbn} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbt} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbs} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbo} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbv} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbr} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbk} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbd} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbe} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbi} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵw} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵv} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbj} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵx} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵz,leftRightPlaceAnimation as ɵy} from './lib/place/components/place-outlet/route-animations';\nexport {TabbedPlaceNavigationComponent as ɵbh} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵba,PlaceConfig as ɵbb} from './lib/place/place-config';\nexport {PlaceHistory as ɵbg} from './lib/place/place-history';\nexport {PlaceRouter as ɵbc} from './lib/place/place-router';\nexport {PlaceModule as ɵu} from './lib/place/place.module';\nexport {UrlService as ɵbf} from './lib/place/url-service';"]}
1
+ {"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAC,uBAAuB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACzG,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAC,sB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lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵr} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵs} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵg} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵk} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵf} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵi} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵj} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵh} from './lib/components/forms/string-input/string-input.component';\nexport {NoopComponent as ɵm} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵl} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵq,SwitchCaseDefaultDirective as ɵp,SwitchCaseOption as ɵn,SwitchCaseWhenDirective as ɵo} from './lib/components/switch-case/switch-case.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBindingFactory as ɵt} from './lib/directives/focus-binding-factory';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbm} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbp,Activity as ɵbq} from './lib/interaction/activity';\nexport {Alert as ɵbu} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbl} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbn} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbt} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbs} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbo} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbv} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbr} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbk} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbd} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbe} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbi} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵw} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵv} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbj} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵx} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵz,leftRightPlaceAnimation as ɵy} from './lib/place/components/place-outlet/route-animations';\nexport {TabbedPlaceNavigationComponent as ɵbh} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵba,PlaceConfig as ɵbb} from './lib/place/place-config';\nexport {PlaceHistory as ɵbg} from './lib/place/place-history';\nexport {PlaceRouter as ɵbc} from './lib/place/place-router';\nexport {PlaceModule as ɵu} from './lib/place/place.module';\nexport {UrlService as ɵbf} from './lib/place/url-service';"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵe"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/focus-container/focus-container.component","export":[{"name":"FocusContainerComponent","as":"ɵr"}]},{"from":"./lib/components/focusable.component","export":[{"name":"FocusableComponent","as":"ɵs"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/checkbox-input/checkbox-input.component","export":[{"name":"CheckboxInputComponent","as":"ɵk"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵf"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵj"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵh"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵm"}]},{"from":"./lib/components/scroll-container/scroll-container.component","export":[{"name":"ScrollContainerComponent","as":"ɵl"}]},{"from":"./lib/components/switch-case/switch-case.component","export":[{"name":"SwitchCaseComponent","as":"ɵq"},{"name":"SwitchCaseDefaultDirective","as":"ɵp"},{"name":"SwitchCaseOption","as":"ɵn"},{"name":"SwitchCaseWhenDirective","as":"ɵo"}]},{"from":"./lib/directives/command.directive","export":[{"name":"CommandDirective","as":"ɵb"}]},{"from":"./lib/directives/directives.module","export":[{"name":"DirectivesModule","as":"ɵa"}]},{"from":"./lib/directives/focus-binding","export":[{"name":"FocusBinding","as":"ɵt"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction/abstract-interaction-context","export":[{"name":"AbstractInteractionContext","as":"ɵbm"}]},{"from":"./lib/interaction/activity","export":[{"name":"ACTIVITY_DATA","as":"ɵbp"},{"name":"Activity","as":"ɵbq"}]},{"from":"./lib/interaction/alert","export":[{"name":"Alert","as":"ɵbu"}]},{"from":"./lib/interaction/components/activity-container/activity-container.component","export":[{"name":"ActivityContainerComponent","as":"ɵbl"}]},{"from":"./lib/interaction/components/activity-container/activity-outlet/activity-outlet.component","export":[{"name":"ActivityOutletComponent","as":"ɵbn"}]},{"from":"./lib/interaction/components/alert-dialog/alert-dialog.component","export":[{"name":"AlertDialogComponent","as":"ɵbt"}]},{"from":"./lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component","export":[{"name":"ConfirmThenDialogComponent","as":"ɵbs"}]},{"from":"./lib/interaction/components/confirmation-dialog/confirmation-dialog.component","export":[{"name":"ConfirmationDialogComponent","as":"ɵbo"}]},{"from":"./lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵbv"}]},{"from":"./lib/interaction/confirm","export":[{"name":"Confirm","as":"ɵbr"}]},{"from":"./lib/interaction/interaction.module","export":[{"name":"InteractionModule","as":"ɵbk"}]},{"from":"./lib/interaction/services/interaction.service","export":[{"name":"InteractionService","as":"ɵbd"}]},{"from":"./lib/interaction/services/modal-interaction-context.factory","export":[{"name":"ModalInteractionContextFactory","as":"ɵbe"}]},{"from":"./lib/place/components/abstract-place-navigation.component","export":[{"name":"AbstractPlaceNavigationComponent","as":"ɵbi"}]},{"from":"./lib/place/components/busy-overlay/busy-overlay.component","export":[{"name":"BusyOverlayComponent","as":"ɵw"}]},{"from":"./lib/place/components/empty-state/empty-state.component","export":[{"name":"EmptyStateComponent","as":"ɵv"}]},{"from":"./lib/place/components/list-place-nav/list-place-nav.component","export":[{"name":"ListPlaceNavComponent","as":"ɵbj"}]},{"from":"./lib/place/components/place-outlet/place-outlet.component","export":[{"name":"PlaceOutletComponent","as":"ɵx"}]},{"from":"./lib/place/components/place-outlet/route-animations","export":[{"name":"LEFT_RIGHT_PLACE_ANIMATION","as":"ɵz"},{"name":"leftRightPlaceAnimation","as":"ɵy"}]},{"from":"./lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component","export":[{"name":"TabbedPlaceNavigationComponent","as":"ɵbh"}]},{"from":"./lib/place/place-config","export":[{"name":"AUP_PLACE_CONFIG","as":"ɵba"},{"name":"PlaceConfig","as":"ɵbb"}]},{"from":"./lib/place/place-history","export":[{"name":"PlaceHistory","as":"ɵbg"}]},{"from":"./lib/place/place-router","export":[{"name":"PlaceRouter","as":"ɵbc"}]},{"from":"./lib/place/place.module","export":[{"name":"PlaceModule","as":"ɵu"}]},{"from":"./lib/place/url-service","export":[{"name":"UrlService","as":"ɵbf"}]}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵe"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/focus-container/focus-container.component","export":[{"name":"FocusContainerComponent","as":"ɵr"}]},{"from":"./lib/components/focusable.component","export":[{"name":"FocusableComponent","as":"ɵs"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/checkbox-input/checkbox-input.component","export":[{"name":"CheckboxInputComponent","as":"ɵk"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵf"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵj"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵh"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵm"}]},{"from":"./lib/components/scroll-container/scroll-container.component","export":[{"name":"ScrollContainerComponent","as":"ɵl"}]},{"from":"./lib/components/switch-case/switch-case.component","export":[{"name":"SwitchCaseComponent","as":"ɵq"},{"name":"SwitchCaseDefaultDirective","as":"ɵp"},{"name":"SwitchCaseOption","as":"ɵn"},{"name":"SwitchCaseWhenDirective","as":"ɵo"}]},{"from":"./lib/directives/command.directive","export":[{"name":"CommandDirective","as":"ɵb"}]},{"from":"./lib/directives/directives.module","export":[{"name":"DirectivesModule","as":"ɵa"}]},{"from":"./lib/directives/focus-binding-factory","export":[{"name":"FocusBindingFactory","as":"ɵt"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction/abstract-interaction-context","export":[{"name":"AbstractInteractionContext","as":"ɵbm"}]},{"from":"./lib/interaction/activity","export":[{"name":"ACTIVITY_DATA","as":"ɵbp"},{"name":"Activity","as":"ɵbq"}]},{"from":"./lib/interaction/alert","export":[{"name":"Alert","as":"ɵbu"}]},{"from":"./lib/interaction/components/activity-container/activity-container.component","export":[{"name":"ActivityContainerComponent","as":"ɵbl"}]},{"from":"./lib/interaction/components/activity-container/activity-outlet/activity-outlet.component","export":[{"name":"ActivityOutletComponent","as":"ɵbn"}]},{"from":"./lib/interaction/components/alert-dialog/alert-dialog.component","export":[{"name":"AlertDialogComponent","as":"ɵbt"}]},{"from":"./lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component","export":[{"name":"ConfirmThenDialogComponent","as":"ɵbs"}]},{"from":"./lib/interaction/components/confirmation-dialog/confirmation-dialog.component","export":[{"name":"ConfirmationDialogComponent","as":"ɵbo"}]},{"from":"./lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵbv"}]},{"from":"./lib/interaction/confirm","export":[{"name":"Confirm","as":"ɵbr"}]},{"from":"./lib/interaction/interaction.module","export":[{"name":"InteractionModule","as":"ɵbk"}]},{"from":"./lib/interaction/services/interaction.service","export":[{"name":"InteractionService","as":"ɵbd"}]},{"from":"./lib/interaction/services/modal-interaction-context.factory","export":[{"name":"ModalInteractionContextFactory","as":"ɵbe"}]},{"from":"./lib/place/components/abstract-place-navigation.component","export":[{"name":"AbstractPlaceNavigationComponent","as":"ɵbi"}]},{"from":"./lib/place/components/busy-overlay/busy-overlay.component","export":[{"name":"BusyOverlayComponent","as":"ɵw"}]},{"from":"./lib/place/components/empty-state/empty-state.component","export":[{"name":"EmptyStateComponent","as":"ɵv"}]},{"from":"./lib/place/components/list-place-nav/list-place-nav.component","export":[{"name":"ListPlaceNavComponent","as":"ɵbj"}]},{"from":"./lib/place/components/place-outlet/place-outlet.component","export":[{"name":"PlaceOutletComponent","as":"ɵx"}]},{"from":"./lib/place/components/place-outlet/route-animations","export":[{"name":"LEFT_RIGHT_PLACE_ANIMATION","as":"ɵz"},{"name":"leftRightPlaceAnimation","as":"ɵy"}]},{"from":"./lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component","export":[{"name":"TabbedPlaceNavigationComponent","as":"ɵbh"}]},{"from":"./lib/place/place-config","export":[{"name":"AUP_PLACE_CONFIG","as":"ɵba"},{"name":"PlaceConfig","as":"ɵbb"}]},{"from":"./lib/place/place-history","export":[{"name":"PlaceHistory","as":"ɵbg"}]},{"from":"./lib/place/place-router","export":[{"name":"PlaceRouter","as":"ɵbc"}]},{"from":"./lib/place/place.module","export":[{"name":"PlaceModule","as":"ɵu"}]},{"from":"./lib/place/url-service","export":[{"name":"UrlService","as":"ɵbf"}]}]}]
@@ -11,6 +11,7 @@ import { MatSelectModule } from '@angular/material/select';
11
11
  import { MatTabsModule } from '@angular/material/tabs';
12
12
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
13
13
  import { DirectivesModule } from '../directives/directives.module';
14
+ import { FocusBindingFactory } from '../directives/focus-binding-factory';
14
15
  import { FocusContainerComponent } from './focus-container/focus-container.component';
15
16
  import { FocusableComponent } from './focusable.component';
16
17
  import { AbstractInputComponent } from './forms/abstract-input.component';
@@ -67,6 +68,9 @@ ComponentsModule = __decorate([
67
68
  SwitchCaseDefaultDirective,
68
69
  FocusContainerComponent,
69
70
  FocusableComponent
71
+ ],
72
+ providers: [
73
+ FocusBindingFactory
70
74
  ]
71
75
  })
72
76
  ], ComponentsModule);
@@ -1 +1 @@
1
- {"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,W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AoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,oBAAoB;YACpB,sBAAsB;YACtB,wBAAwB;YACxB,aAAa;YACb,sBAAsB;YACtB,mBAAmB;YACnB,uBAAuB;YACvB,0BAA0B;YAC1B,uBAAuB;YACvB,kBAAkB;SACnB;QACD,OAAO,EAAE;YACP,YAAY;YACZ,uBAAuB;YACvB,WAAW;YACX,cAAc;YACd,kBAAkB;YAClB,eAAe;YACf,aAAa;YACb,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,iBAAiB;SAClB;QACD,OAAO,EAAE;YACP,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,sBAAsB;YACtB,oBAAoB;YACpB,wBAAwB;YACxB,aAAa;YACb,mBAAmB;YACnB,uBAAuB;YACvB,0BAA0B;YAC1B,uBAAuB;YACvB,kBAAkB;SACnB;KAEF,CAAC;GACW,gBAAgB,CAC5B;SADY,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\n\n@NgModule({\n declarations: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n AbstractInputComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ]\n\n})\nexport class ComponentsModule {\n}\n"]}
1
+ {"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MA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;YACf,aAAa;YACb,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,iBAAiB;SAClB;QACD,OAAO,EAAE;YACP,oBAAoB;YACpB,oBAAoB;YACpB,sBAAsB;YACtB,sBAAsB;YACtB,oBAAoB;YACpB,wBAAwB;YACxB,aAAa;YACb,mBAAmB;YACnB,uBAAuB;YACvB,0BAA0B;YAC1B,uBAAuB;YACvB,kBAAkB;SACnB;QACD,SAAS,EAAE;YACT,mBAAmB;SACpB;KAEF,CAAC;GACW,gBAAgB,CAC5B;SADY,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\n\n@NgModule({\n declarations: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n AbstractInputComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n providers: [\n FocusBindingFactory\n ]\n\n})\nexport class ComponentsModule {\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"ComponentsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":28,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./forms/number-input/number-input.component","name":"NumberInputComponent","line":30,"character":4},{"__symbolic":"reference","module":"./forms/string-input/string-input.component","name":"StringInputComponent","line":31,"character":4},{"__symbolic":"reference","module":"./forms/password-input/password-input.component","name":"PasswordInputComponent","line":32,"character":4},{"__symbolic":"reference","module":"./forms/select-input/select-input.component","name":"SelectInputComponent","line":33,"character":4},{"__symbolic":"reference","module":"./forms/checkbox-input/checkbox-input.component","name":"CheckboxInputComponent","line":34,"character":4},{"__symbolic":"reference","module":"./scroll-container/scroll-container.component","name":"ScrollContainerComponent","line":35,"character":4},{"__symbolic":"reference","module":"./noop/noop.component","name":"NoopComponent","line":36,"character":4},{"__symbolic":"reference","module":"./forms/abstract-input.component","name":"AbstractInputComponent","line":37,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseComponent","line":38,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseWhenDirective","line":39,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseDefaultDirective","line":40,"character":4},{"__symbolic":"reference","module":"./focus-container/focus-container.component","name":"FocusContainerComponent","line":41,"character":4},{"__symbolic":"reference","module":"./focusable.component","name":"FocusableComponent","line":42,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":45,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":46,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":47,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":48,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":49,"character":4},{"__symbolic":"reference","module":"@angular/material/select","name":"MatSelectModule","line":50,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":51,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":52,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":53,"character":4},{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":54,"character":4},{"__symbolic":"reference","module":"@angular/material/checkbox","name":"MatCheckboxModule","line":55,"character":4}],"exports":[{"__symbolic":"reference","module":"./forms/number-input/number-input.component","name":"NumberInputComponent","line":58,"character":4},{"__symbolic":"reference","module":"./forms/string-input/string-input.component","name":"StringInputComponent","line":59,"character":4},{"__symbolic":"reference","module":"./forms/password-input/password-input.component","name":"PasswordInputComponent","line":60,"character":4},{"__symbolic":"reference","module":"./forms/checkbox-input/checkbox-input.component","name":"CheckboxInputComponent","line":61,"character":4},{"__symbolic":"reference","module":"./forms/select-input/select-input.component","name":"SelectInputComponent","line":62,"character":4},{"__symbolic":"reference","module":"./scroll-container/scroll-container.component","name":"ScrollContainerComponent","line":63,"character":4},{"__symbolic":"reference","module":"./noop/noop.component","name":"NoopComponent","line":64,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseComponent","line":65,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseWhenDirective","line":66,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseDefaultDirective","line":67,"character":4},{"__symbolic":"reference","module":"./focus-container/focus-container.component","name":"FocusContainerComponent","line":68,"character":4},{"__symbolic":"reference","module":"./focusable.component","name":"FocusableComponent","line":69,"character":4}]}]}]}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"ComponentsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":29,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./forms/number-input/number-input.component","name":"NumberInputComponent","line":31,"character":4},{"__symbolic":"reference","module":"./forms/string-input/string-input.component","name":"StringInputComponent","line":32,"character":4},{"__symbolic":"reference","module":"./forms/password-input/password-input.component","name":"PasswordInputComponent","line":33,"character":4},{"__symbolic":"reference","module":"./forms/select-input/select-input.component","name":"SelectInputComponent","line":34,"character":4},{"__symbolic":"reference","module":"./forms/checkbox-input/checkbox-input.component","name":"CheckboxInputComponent","line":35,"character":4},{"__symbolic":"reference","module":"./scroll-container/scroll-container.component","name":"ScrollContainerComponent","line":36,"character":4},{"__symbolic":"reference","module":"./noop/noop.component","name":"NoopComponent","line":37,"character":4},{"__symbolic":"reference","module":"./forms/abstract-input.component","name":"AbstractInputComponent","line":38,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseComponent","line":39,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseWhenDirective","line":40,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseDefaultDirective","line":41,"character":4},{"__symbolic":"reference","module":"./focus-container/focus-container.component","name":"FocusContainerComponent","line":42,"character":4},{"__symbolic":"reference","module":"./focusable.component","name":"FocusableComponent","line":43,"character":4}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":46,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":47,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":48,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":49,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":50,"character":4},{"__symbolic":"reference","module":"@angular/material/select","name":"MatSelectModule","line":51,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":52,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":53,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":54,"character":4},{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":55,"character":4},{"__symbolic":"reference","module":"@angular/material/checkbox","name":"MatCheckboxModule","line":56,"character":4}],"exports":[{"__symbolic":"reference","module":"./forms/number-input/number-input.component","name":"NumberInputComponent","line":59,"character":4},{"__symbolic":"reference","module":"./forms/string-input/string-input.component","name":"StringInputComponent","line":60,"character":4},{"__symbolic":"reference","module":"./forms/password-input/password-input.component","name":"PasswordInputComponent","line":61,"character":4},{"__symbolic":"reference","module":"./forms/checkbox-input/checkbox-input.component","name":"CheckboxInputComponent","line":62,"character":4},{"__symbolic":"reference","module":"./forms/select-input/select-input.component","name":"SelectInputComponent","line":63,"character":4},{"__symbolic":"reference","module":"./scroll-container/scroll-container.component","name":"ScrollContainerComponent","line":64,"character":4},{"__symbolic":"reference","module":"./noop/noop.component","name":"NoopComponent","line":65,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseComponent","line":66,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseWhenDirective","line":67,"character":4},{"__symbolic":"reference","module":"./switch-case/switch-case.component","name":"SwitchCaseDefaultDirective","line":68,"character":4},{"__symbolic":"reference","module":"./focus-container/focus-container.component","name":"FocusContainerComponent","line":69,"character":4},{"__symbolic":"reference","module":"./focusable.component","name":"FocusableComponent","line":70,"character":4}],"providers":[{"__symbolic":"reference","module":"../directives/focus-binding-factory","name":"FocusBindingFactory","line":73,"character":4}]}]}]}}}]
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Component, ElementRef, HostBinding, HostListener } from '@angular/core';
3
- import { FocusManager, Dsl } from '@coolon/pectin';
4
- import { FocusBinding } from '../directives/focus-binding';
3
+ import { Dsl, FocusManager } from '@coolon/pectin';
4
+ import { FocusBindingFactory } from '../directives/focus-binding-factory';
5
5
  import { DisposableComponent } from './disposable-component';
6
6
  let FocusableComponent = class FocusableComponent extends DisposableComponent {
7
7
  constructor(el, focusManager, focusBindingFactory) {
@@ -32,7 +32,7 @@ let FocusableComponent = class FocusableComponent extends DisposableComponent {
32
32
  FocusableComponent.ctorParameters = () => [
33
33
  { type: ElementRef },
34
34
  { type: FocusManager },
35
- { type: FocusBinding.Factory }
35
+ { type: FocusBindingFactory }
36
36
  ];
37
37
  __decorate([
38
38
  HostBinding('attr.tabindex'),
@@ -53,7 +53,7 @@ __decorate([
53
53
  ], FocusableComponent.prototype, "onBlur", null);
54
54
  FocusableComponent = __decorate([
55
55
  Component({ template: '' }),
56
- __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBinding.Factory])
56
+ __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
57
57
  ], FocusableComponent);
58
58
  export { FocusableComponent };
59
59
  //# sourceMappingURL=focusable.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusable.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focusable.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE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C;;;;iDAGrB;AAGD;IADC,YAAY,CAAC,MAAM,CAAC;;;;gDAGpB;AAjBU,kBAAkB;IAD9B,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;qCAoBS,UAAU,EAAyB,YAAY,EAAuB,YAAY,CAAC,OAAO;GAnBlH,kBAAkB,CAgC9B;SAhCY,kBAAkB","sourcesContent":["import { Component, ElementRef, HostBinding, HostListener } from '@angular/core';\n\nimport { FocusManager, Dsl } from '@coolon/pectin';\nimport { FocusBinding } from '../directives/focus-binding';\nimport { DisposableComponent } from './disposable-component';\n\n@Component({ template: '' })\nexport class FocusableComponent extends DisposableComponent {\n\n private _focusContext: FocusManager.Context;\n\n @HostBinding('attr.tabindex')\n get focusable() {\n return !!this.focusContext ? 0 : undefined;\n }\n\n @HostListener('focus')\n onFocus() {\n this.focusContext?.notifyFocusIn();\n }\n\n @HostListener('blur')\n onBlur() {\n this.focusContext?.notifyFocusOut();\n }\n\n constructor(protected readonly el: ElementRef, readonly focusManager: FocusManager, focusBindingFactory: FocusBinding.Factory) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n if (this.focusManager) {\n this._focusContext = this.focusManager.registerFocusable(this);\n this.registerDisposable(focusBindingFactory.createBinding(el, this.focusContext));\n }\n }\n\n get focusContext(): FocusManager.Context {\n return this._focusContext;\n }\n\n}\n"]}
1
+ {"version":3,"file":"focusable.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focusable.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,IAAa,kBAAkB,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jH,kBAAkB,CAgC9B;SAhCY,kBAAkB","sourcesContent":["import { Component, ElementRef, HostBinding, HostListener } from '@angular/core';\n\nimport { Dsl, FocusManager } from '@coolon/pectin';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { DisposableComponent } from './disposable-component';\n\n@Component({ template: '' })\nexport class FocusableComponent extends DisposableComponent {\n\n private _focusContext: FocusManager.Context;\n\n @HostBinding('attr.tabindex')\n get focusable() {\n return !!this.focusContext ? 0 : undefined;\n }\n\n @HostListener('focus')\n onFocus() {\n this.focusContext?.notifyFocusIn();\n }\n\n @HostListener('blur')\n onBlur() {\n this.focusContext?.notifyFocusOut();\n }\n\n constructor(protected readonly el: ElementRef, readonly focusManager: FocusManager, focusBindingFactory: FocusBindingFactory) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n if (this.focusManager) {\n this._focusContext = this.focusManager.registerFocusable(this);\n this.registerDisposable(focusBindingFactory.createBinding(el, this.focusContext));\n }\n }\n\n get focusContext(): FocusManager.Context {\n return this._focusContext;\n }\n\n}\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{"FocusableComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./disposable-component","name":"DisposableComponent","line":7,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"template":""}]}],"members":{"focusable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":11,"character":3},"arguments":["attr.tabindex"]}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":16,"character":3},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":21,"character":3},"arguments":["blur"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":26,"character":37},{"__symbolic":"reference","module":"@coolon/pectin","name":"FocusManager","line":26,"character":72},{"__symbolic":"select","expression":{"__symbolic":"reference","module":"../directives/focus-binding","name":"FocusBinding","line":26,"character":107},"member":"Factory"}]}]}}}}]
1
+ [{"__symbolic":"module","version":4,"metadata":{"FocusableComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"./disposable-component","name":"DisposableComponent","line":7,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"template":""}]}],"members":{"focusable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":11,"character":3},"arguments":["attr.tabindex"]}]}],"onFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":16,"character":3},"arguments":["focus"]}]}],"onBlur":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":21,"character":3},"arguments":["blur"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":26,"character":37},{"__symbolic":"reference","module":"@coolon/pectin","name":"FocusManager","line":26,"character":72},{"__symbolic":"reference","module":"../directives/focus-binding-factory","name":"FocusBindingFactory","line":26,"character":107}]}]}}}}]
@@ -0,0 +1,30 @@
1
+ import { __decorate, __metadata, __param } from "tslib";
2
+ import { DOCUMENT } from '@angular/common';
3
+ import { ElementRef, Inject, Injectable, NgZone } from '@angular/core';
4
+ import { FocusBinding } from './focus-binding';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ let FocusBindingFactory = class FocusBindingFactory {
8
+ constructor(ngZone, document) {
9
+ this.ngZone = ngZone;
10
+ // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
11
+ this.document = document;
12
+ }
13
+ createBinding(el, focusContext) {
14
+ return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
15
+ }
16
+ };
17
+ FocusBindingFactory.ctorParameters = () => [
18
+ { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
19
+ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
20
+ ];
21
+ FocusBindingFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
22
+ FocusBindingFactory = __decorate([
23
+ Injectable({
24
+ providedIn: 'root'
25
+ }),
26
+ __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
27
+ __metadata("design:paramtypes", [NgZone, Object])
28
+ ], FocusBindingFactory);
29
+ export { FocusBindingFactory };
30
+ //# sourceMappingURL=focus-binding-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-binding-factory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding-factory.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;AAK/C,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAI9B,YAA6C,MAAc,EAAoB,QAAa;QAA/C,WAAM,GAAN,MAAM,CAAQ;QACzD,kHAAkH;QAClH,IAAI,CAAC,QAAQ,GAAG,QAAoB,CAAC;IACvC,CAAC;IAED,aAAa,CAAC,EAAc,EAAE,YAAkC;QAC9D,OAAO,IAAI,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACtF,CAAC;CACF,CAAA;;YARsD,MAAM,uBAA9C,MAAM,SAAC,MAAM;4CAAoC,MAAM,SAAC,QAAQ;;;AAJlE,mBAAmB;IAH/B,UAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;IAKa,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA,EAAmC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;qCAAzB,MAAM;GAJhD,mBAAmB,CAY/B;SAZY,mBAAmB","sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { ElementRef, Inject, Injectable, NgZone } from '@angular/core';\nimport { FocusManager } from '@coolon/pectin';\nimport { FocusBinding } from './focus-binding';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FocusBindingFactory {\n\n private document: Document;\n\n constructor(@Inject(NgZone) private readonly ngZone: NgZone, @Inject(DOCUMENT) document: any) {\n // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642\n this.document = document as Document;\n }\n\n createBinding(el: ElementRef, focusContext: FocusManager.Context): FocusBinding {\n return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ [{"__symbolic":"module","version":4,"metadata":{"FocusBindingFactory":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":12,"character":22}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":64},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":12,"character":71}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":12,"character":55},{"__symbolic":"reference","name":"any"}]}],"createBinding":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}}}}]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-binding-factory.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding-factory.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __metadata, __param } from "tslib";
2
2
  import { DOCUMENT } from '@angular/common';
3
- import { ElementRef, Inject, Injectable, NgZone } from '@angular/core';
3
+ import { Inject, NgZone } from '@angular/core';
4
4
  import { Dsl, FocusManager, GarbageCollector, Logger } from '@coolon/pectin';
5
5
  let FocusBinding = class FocusBinding extends GarbageCollector {
6
6
  constructor(focusTargetElement, ngZone, document, focusContext) {
@@ -75,28 +75,4 @@ FocusBinding = __decorate([
75
75
  NgZone, Object, Object])
76
76
  ], FocusBinding);
77
77
  export { FocusBinding };
78
- (function (FocusBinding) {
79
- let Factory = class Factory {
80
- constructor(ngZone, document) {
81
- this.ngZone = ngZone;
82
- // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
83
- this.document = document;
84
- }
85
- createBinding(el, focusContext) {
86
- return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
87
- }
88
- };
89
- Factory.ctorParameters = () => [
90
- { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
91
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
92
- ];
93
- Factory = __decorate([
94
- Injectable({
95
- providedIn: 'root'
96
- }),
97
- __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
98
- __metadata("design:paramtypes", [NgZone, Object])
99
- ], Factory);
100
- FocusBinding.Factory = Factory;
101
- })(FocusBinding || (FocusBinding = {}));
102
78
  //# sourceMappingURL=focus-binding.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"focus-binding.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7E,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,gBAAgB;IAIhD,YAA6B,kBAA+B,EACf,MAAc,EAC7B,QAAa,EACtB,YAAkC;QACrD,KAAK,EAAE,CAAC;QAJmB,uBAAkB,GAAlB,kBAAkB,CAAa;QACf,WAAM,GAAN,MAAM,CAAQ;QAEtC,iBAAY,GAAZ,YAAY,CAAsB;QAErD,kHAAkH;QAClH,IAAI,CAAC,QAAQ,GAAG,QAAoB,CAAC;QAErC,iEAAiE;QACjE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1D,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE;gBACtC,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,EAAE,EAAE,YAAY,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,SAAS;QACP,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;IACpC,CAAC;IAED,UAAU;QACR,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC;IACrC,CAAC;IAED,yCAAyC;IACzC,eAAe;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,C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AC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AA5EY,YAAY;IAKV,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;qCAFoB,WAAW;QACP,MAAM;GALhD,YAAY,CA4ExB;SA5EY,YAAY;AA8EzB,WAAiB,YAAY;IAK3B,IAAa,OAAO,GAApB,MAAa,OAAO;QAIlB,YAA6C,MAAc,EAAoB,QAAa;YAA/C,WAAM,GAAN,MAAM,CAAQ;YACzD,kHAAkH;YAClH,IAAI,CAAC,QAAQ,GAAG,QAAoB,CAAC;QACvC,CAAC;QAED,aAAa,CAAC,EAAc,EAAE,YAAkC;YAC9D,OAAO,IAAI,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACtF,CAAC;KACF,CAAA;;gBARsD,MAAM,uBAA9C,MAAM,SAAC,MAAM;gDAAoC,MAAM,SAAC,QAAQ;;IAJlE,OAAO;QAHnB,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;QAKa,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA,EAAmC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;yCAAzB,MAAM;OAJhD,OAAO,CAYnB;IAZY,oBAAO,UAYnB,CAAA;AACH,CAAC,EAlBgB,YAAY,KAAZ,YAAY,QAkB5B","sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { ElementRef, Inject, Injectable, NgZone } from '@angular/core';\nimport { Dsl, FocusManager, GarbageCollector, Logger } from '@coolon/pectin';\n\nexport class FocusBinding extends GarbageCollector {\n\n private readonly document: Document;\n\n constructor(private readonly focusTargetElement: HTMLElement,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(DOCUMENT) document: any,\n readonly focusContext: FocusManager.Context) {\n super();\n // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642\n this.document = document as Document;\n\n // TODO: Make this also track the current enabled/disabled state.\n const { when } = Dsl.disposeWith(this);\n when.valueOf(this.focusContext.focused).changes((focused) => {\n if (focused && !this.alreadyHasFocus()) {\n this.tryAndFocus();\n }\n }, { initialValue: 'triggerChangeUnlessNil' });\n }\n\n onFocusIn() {\n this.focusContext.notifyFocusIn();\n }\n\n onFocusOut() {\n this.focusContext.notifyFocusOut();\n }\n\n // Hook method for debugging via tracing.\n alreadyHasFocus() {\n return this.isElementFocused(this.focusTarget);\n }\n\n // Hook method for debugging via tracing.\n isElementFocused(element: Element): boolean {\n return this.document.activeElement === element;\n }\n\n tryAndFocus(retries: number = 5) {\n if (this.modelShouldStillHaveFocus() && this.canFocus()) {\n if (!this.alreadyHasFocus()) {\n this.focusTarget.focus();\n }\n // if we didn't get the focus we try again later.\n if (!this.alreadyHasFocus()) {\n Logger.get(this).log(`focus failed, trying ${retries} more times`);\n if (retries > 0) {\n // try again on the next paint\n // TODO: is there an angular way of doing this without calling a window function.\n requestAnimationFrame(() => {\n this.tryAndFocus(retries - 1);\n });\n } else {\n Logger.get(this).warn(`Tried to focus but gave up as the component wasn't enabled or visible.`);\n }\n }\n }\n }\n\n get focusTarget(): HTMLElement {\n return this.focusTargetElement;\n }\n\n // Hook method for debugging via tracing.\n modelShouldStillHaveFocus() {\n return this.focusContext.focused.value;\n }\n\n // Hook method for debugging via tracing.\n canFocus(): boolean {\n const dimension = this.focusTarget.getBoundingClientRect();\n const hasSize = dimension.height >= 0 && dimension.height >= 0;\n // tslint:disable-next-line:no-string-literal\n return hasSize && !this.focusTarget['disabled'];\n }\n}\n\nexport namespace FocusBinding {\n\n @Injectable({\n providedIn: 'root'\n })\n export class Factory {\n\n private document: Document;\n\n constructor(@Inject(NgZone) private readonly ngZone: NgZone, @Inject(DOCUMENT) document: any) {\n // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642\n this.document = document as Document;\n }\n\n createBinding(el: ElementRef, focusContext: FocusManager.Context): FocusBinding {\n return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"focus-binding.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAc,MAAM,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7E,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,gBAAgB;IAIhD,YAA6B,kBAA+B,EACf,MAAc,EAC7B,QAAa,EACtB,YAAkC;QACrD,KAAK,EAAE,CAAC;QAJmB,uBAAkB,GAAlB,kBAAkB,CAAa;QACf,WAAM,GAAN,MAAM,CAAQ;QAEtC,iBAAY,GAAZ,YAAY,CAAsB;QAErD,kHAAkH;QAClH,IAAI,CAAC,QAAQ,GAAG,QAAoB,CAAC;QAErC,iEAAiE;QACjE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC1D,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE;gBACtC,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,EAAE,EAAE,YAAY,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,SAAS;QACP,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;IACpC,CAAC;IAED,UAAU;QACR,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC;IACrC,CAAC;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C,MAAM,IAAI,CAAC,CAAC;QAC/D,6CAA6C;QAC7C,OAAO,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AA5EY,YAAY;IAKV,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA;IACd,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;qCAFoB,WAAW;QACP,MAAM;GALhD,YAAY,CA4ExB;SA5EY,YAAY","sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { ElementRef, Inject, Injectable, NgZone } from '@angular/core';\nimport { Dsl, FocusManager, GarbageCollector, Logger } from '@coolon/pectin';\n\nexport class FocusBinding extends GarbageCollector {\n\n private readonly document: Document;\n\n constructor(private readonly focusTargetElement: HTMLElement,\n @Inject(NgZone) private readonly ngZone: NgZone,\n @Inject(DOCUMENT) document: any,\n readonly focusContext: FocusManager.Context) {\n super();\n // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642\n this.document = document as Document;\n\n // TODO: Make this also track the current enabled/disabled state.\n const { when } = Dsl.disposeWith(this);\n when.valueOf(this.focusContext.focused).changes((focused) => {\n if (focused && !this.alreadyHasFocus()) {\n this.tryAndFocus();\n }\n }, { initialValue: 'triggerChangeUnlessNil' });\n }\n\n onFocusIn() {\n this.focusContext.notifyFocusIn();\n }\n\n onFocusOut() {\n this.focusContext.notifyFocusOut();\n }\n\n // Hook method for debugging via tracing.\n alreadyHasFocus() {\n return this.isElementFocused(this.focusTarget);\n }\n\n // Hook method for debugging via tracing.\n isElementFocused(element: Element): boolean {\n return this.document.activeElement === element;\n }\n\n tryAndFocus(retries: number = 5) {\n if (this.modelShouldStillHaveFocus() && this.canFocus()) {\n if (!this.alreadyHasFocus()) {\n this.focusTarget.focus();\n }\n // if we didn't get the focus we try again later.\n if (!this.alreadyHasFocus()) {\n Logger.get(this).log(`focus failed, trying ${retries} more times`);\n if (retries > 0) {\n // try again on the next paint\n // TODO: is there an angular way of doing this without calling a window function.\n requestAnimationFrame(() => {\n this.tryAndFocus(retries - 1);\n });\n } else {\n Logger.get(this).warn(`Tried to focus but gave up as the component wasn't enabled or visible.`);\n }\n }\n }\n }\n\n get focusTarget(): HTMLElement {\n return this.focusTargetElement;\n }\n\n // Hook method for debugging via tracing.\n modelShouldStillHaveFocus() {\n return this.focusContext.focused.value;\n }\n\n // Hook method for debugging via tracing.\n canFocus(): boolean {\n const dimension = this.focusTarget.getBoundingClientRect();\n const hasSize = dimension.height >= 0 && dimension.height >= 0;\n // tslint:disable-next-line:no-string-literal\n return hasSize && !this.focusTarget['disabled'];\n }\n}\n"]}
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export * from "./command.directive";
5
5
  export * from "./directives.module";
6
+ export * from "./focus-binding-factory";
6
7
  export * from "./focus-binding.directive";
7
8
  export * from "./focus-binding";
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./command.directive\";\nexport * from \"./directives.module\";\nexport * from \"./focus-binding.directive\";\nexport * from \"./focus-binding\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./command.directive\";\nexport * from \"./directives.module\";\nexport * from \"./focus-binding-factory\";\nexport * from \"./focus-binding.directive\";\nexport * from \"./focus-binding\";\n"]}
@@ -1 +1 @@
1
- [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./command.directive"},{"from":"./directives.module"},{"from":"./focus-binding.directive"},{"from":"./focus-binding"}]}]
1
+ [{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./command.directive"},{"from":"./directives.module"},{"from":"./focus-binding-factory"},{"from":"./focus-binding.directive"},{"from":"./focus-binding"}]}]
@@ -17,7 +17,7 @@ export { ScrollContainerComponent as ɵl } from './lib/components/scroll-contain
17
17
  export { SwitchCaseComponent as ɵq, SwitchCaseDefaultDirective as ɵp, SwitchCaseOption as ɵn, SwitchCaseWhenDirective as ɵo } from './lib/components/switch-case/switch-case.component';
18
18
  export { CommandDirective as ɵb } from './lib/directives/command.directive';
19
19
  export { DirectivesModule as ɵa } from './lib/directives/directives.module';
20
- export { FocusBinding as ɵt } from './lib/directives/focus-binding';
20
+ export { FocusBindingFactory as ɵt } from './lib/directives/focus-binding-factory';
21
21
  export { FocusBindingDirective as ɵc } from './lib/directives/focus-binding.directive';
22
22
  export { AbstractInteractionContext as ɵbm } from './lib/interaction/abstract-interaction-context';
23
23
  export { ACTIVITY_DATA as ɵbp, Activity as ɵbq } from './lib/interaction/activity';
@@ -1 +1 @@
1
- {"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAC,uBAAuB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACzG,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC;AAC9E,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C","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ComponentsModule as ɵe} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵr} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵs} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵg} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵk} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵf} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵi} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵj} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵh} from './lib/components/forms/string-input/string-input.component';\nexport {NoopComponent as ɵm} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵl} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵq,SwitchCaseDefaultDirective as ɵp,SwitchCaseOption as ɵn,SwitchCaseWhenDirective as ɵo} from './lib/components/switch-case/switch-case.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBinding as ɵt} from './lib/directives/focus-binding';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbm} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbp,Activity as ɵbq} from './lib/interaction/activity';\nexport {Alert as ɵbu} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbl} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbn} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbt} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbs} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbo} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbv} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbr} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbk} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbd} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbe} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbi} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵw} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵv} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbj} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵx} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵz,leftRightPlaceAnimation as ɵy} from './lib/place/components/place-outlet/route-animations';\nexport {TabbedPlaceNavigationComponent as ɵbh} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵba,PlaceConfig as ɵbb} from './lib/place/place-config';\nexport {PlaceHistory as ɵbg} from './lib/place/place-history';\nexport {PlaceRouter as ɵbc} from './lib/place/place-router';\nexport {PlaceModule as ɵu} from './lib/place/place.module';\nexport {UrlService as ɵbf} from './lib/place/url-service';"]}
1
+ {"version":3,"file":"coolon-angular-ui-powerups.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["coolon-angular-ui-powerups.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AAExB,OAAO,EAAC,gBAAgB,IAAI,EAAE,EAAC,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAC,mBAAmB,IAAI,EAAE,EAAC,MAAM,uCAAuC,CAAC;AACh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A0B,CAAC;AAC5D,OAAO,EAAC,WAAW,IAAI,EAAE,EAAC,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAC,UAAU,IAAI,GAAG,EAAC,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {ComponentsModule as ɵe} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵr} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵs} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵg} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵk} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵf} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵi} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵj} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵh} from './lib/components/forms/string-input/string-input.component';\nexport {NoopComponent as ɵm} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵl} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵq,SwitchCaseDefaultDirective as ɵp,SwitchCaseOption as ɵn,SwitchCaseWhenDirective as ɵo} from './lib/components/switch-case/switch-case.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBindingFactory as ɵt} from './lib/directives/focus-binding-factory';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbm} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbp,Activity as ɵbq} from './lib/interaction/activity';\nexport {Alert as ɵbu} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbl} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbn} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbt} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbs} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbo} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbv} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbr} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbk} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbd} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbe} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbi} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵw} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵv} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbj} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵx} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵz,leftRightPlaceAnimation as ɵy} from './lib/place/components/place-outlet/route-animations';\nexport {TabbedPlaceNavigationComponent as ɵbh} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵba,PlaceConfig as ɵbb} from './lib/place/place-config';\nexport {PlaceHistory as ɵbg} from './lib/place/place-history';\nexport {PlaceRouter as ɵbc} from './lib/place/place-router';\nexport {PlaceModule as ɵu} from './lib/place/place.module';\nexport {UrlService as ɵbf} from './lib/place/url-service';"]}
@@ -11,6 +11,7 @@ import { MatSelectModule } from '@angular/material/select';
11
11
  import { MatTabsModule } from '@angular/material/tabs';
12
12
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
13
13
  import { DirectivesModule } from '../directives/directives.module';
14
+ import { FocusBindingFactory } from '../directives/focus-binding-factory';
14
15
  import { FocusContainerComponent } from './focus-container/focus-container.component';
15
16
  import { FocusableComponent } from './focusable.component';
16
17
  import { AbstractInputComponent } from './forms/abstract-input.component';
@@ -68,6 +69,9 @@ var ComponentsModule = /** @class */ (function () {
68
69
  SwitchCaseDefaultDirective,
69
70
  FocusContainerComponent,
70
71
  FocusableComponent
72
+ ],
73
+ providers: [
74
+ FocusBindingFactory
71
75
  ]
72
76
  })
73
77
  ], ComponentsModule);
@@ -1 +1 @@
1
- {"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,qCAAqC,CAAC;AA+C7C;IAAA;IACA,CAAC;IADY,gBAAgB;QA7C5B,QAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,oBAAoB;gBACpB,oBAAoB;gBACpB,sBAAsB;gBACtB,oBAAoB;gBACpB,sBAAsB;gBACtB,wBAAwB;gBACxB,aAAa;gBACb,sBAAsB;gBACtB,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,kBAAkB;aACnB;YACD,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,WAAW;gBACX,cAAc;gBACd,kBAAkB;gBAClB,eAAe;gBACf,aAAa;gBACb,gBAAgB;gBAChB,aAAa;gBACb,eAAe;gBACf,iBAAiB;aAClB;YACD,OAAO,EAAE;gBACP,oBAAoB;gBACpB,oBAAoB;gBACpB,sBAAsB;gBACtB,sBAAsB;gBACtB,oBAAoB;gBACpB,wBAAwB;gBACxB,aAAa;gBACb,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,kBAAkB;aACnB;SAEF,CAAC;OACW,gBAAgB,CAC5B;IAAD,uBAAC;CAAA,AADD,IACC;SADY,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\n\n@NgModule({\n declarations: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n AbstractInputComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ]\n\n})\nexport class ComponentsModule {\n}\n"]}
1
+ {"version":3,"file":"components.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/components.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AACzF,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,qCAAqC,CAAC;AAkD7C;IAAA;IACA,CAAC;IADY,gBAAgB;QAhD5B,QAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,oBAAoB;gBACpB,oBAAoB;gBACpB,sBAAsB;gBACtB,oBAAoB;gBACpB,sBAAsB;gBACtB,wBAAwB;gBACxB,aAAa;gBACb,sBAAsB;gBACtB,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,kBAAkB;aACnB;YACD,OAAO,EAAE;gBACP,YAAY;gBACZ,uBAAuB;gBACvB,WAAW;gBACX,cAAc;gBACd,kBAAkB;gBAClB,eAAe;gBACf,aAAa;gBACb,gBAAgB;gBAChB,aAAa;gBACb,eAAe;gBACf,iBAAiB;aAClB;YACD,OAAO,EAAE;gBACP,oBAAoB;gBACpB,oBAAoB;gBACpB,sBAAsB;gBACtB,sBAAsB;gBACtB,oBAAoB;gBACpB,wBAAwB;gBACxB,aAAa;gBACb,mBAAmB;gBACnB,uBAAuB;gBACvB,0BAA0B;gBAC1B,uBAAuB;gBACvB,kBAAkB;aACnB;YACD,SAAS,EAAE;gBACT,mBAAmB;aACpB;SAEF,CAAC;OACW,gBAAgB,CAC5B;IAAD,uBAAC;CAAA,AADD,IACC;SADY,gBAAgB","sourcesContent":["import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { FocusContainerComponent } from './focus-container/focus-container.component';\nimport { FocusableComponent } from './focusable.component';\nimport { AbstractInputComponent } from './forms/abstract-input.component';\nimport { CheckboxInputComponent } from './forms/checkbox-input/checkbox-input.component';\nimport { NumberInputComponent } from './forms/number-input/number-input.component';\nimport { PasswordInputComponent } from './forms/password-input/password-input.component';\nimport { SelectInputComponent } from './forms/select-input/select-input.component';\nimport { StringInputComponent } from './forms/string-input/string-input.component';\nimport { NoopComponent } from './noop/noop.component';\nimport { ScrollContainerComponent } from './scroll-container/scroll-container.component';\nimport {\n SwitchCaseComponent,\n SwitchCaseDefaultDirective,\n SwitchCaseWhenDirective\n} from './switch-case/switch-case.component';\n\n@NgModule({\n declarations: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n SelectInputComponent,\n CheckboxInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n AbstractInputComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n imports: [\n CommonModule,\n BrowserAnimationsModule,\n FormsModule,\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n MatTabsModule,\n DirectivesModule,\n MatIconModule,\n MatButtonModule,\n MatCheckboxModule\n ],\n exports: [\n NumberInputComponent,\n StringInputComponent,\n PasswordInputComponent,\n CheckboxInputComponent,\n SelectInputComponent,\n ScrollContainerComponent,\n NoopComponent,\n SwitchCaseComponent,\n SwitchCaseWhenDirective,\n SwitchCaseDefaultDirective,\n FocusContainerComponent,\n FocusableComponent\n ],\n providers: [\n FocusBindingFactory\n ]\n\n})\nexport class ComponentsModule {\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __extends, __metadata } from "tslib";
2
2
  import { Component, ElementRef, HostBinding, HostListener } from '@angular/core';
3
- import { FocusManager, Dsl } from '@coolon/pectin';
4
- import { FocusBinding } from '../directives/focus-binding';
3
+ import { Dsl, FocusManager } from '@coolon/pectin';
4
+ import { FocusBindingFactory } from '../directives/focus-binding-factory';
5
5
  import { DisposableComponent } from './disposable-component';
6
6
  var FocusableComponent = /** @class */ (function (_super) {
7
7
  __extends(FocusableComponent, _super);
@@ -41,7 +41,7 @@ var FocusableComponent = /** @class */ (function (_super) {
41
41
  FocusableComponent.ctorParameters = function () { return [
42
42
  { type: ElementRef },
43
43
  { type: FocusManager },
44
- { type: FocusBinding.Factory }
44
+ { type: FocusBindingFactory }
45
45
  ]; };
46
46
  __decorate([
47
47
  HostBinding('attr.tabindex'),
@@ -62,7 +62,7 @@ var FocusableComponent = /** @class */ (function (_super) {
62
62
  ], FocusableComponent.prototype, "onBlur", null);
63
63
  FocusableComponent = __decorate([
64
64
  Component({ template: '' }),
65
- __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBinding.Factory])
65
+ __metadata("design:paramtypes", [ElementRef, FocusManager, FocusBindingFactory])
66
66
  ], FocusableComponent);
67
67
  return FocusableComponent;
68
68
  }(DisposableComponent));
@@ -1 +1 @@
1
- {"version":3,"file":"focusable.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focusable.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D;IAAwC,sCAAmB;IAmBzD,4BAA+B,EAAc,EAAW,YAA0B,EAAE,mBAAyC;QAA7H,YACE,iBAAO,SAMR;QAP8B,QAAE,GAAF,EAAE,CAAY;QA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ding, HostListener } from '@angular/core';\n\nimport { FocusManager, Dsl } from '@coolon/pectin';\nimport { FocusBinding } from '../directives/focus-binding';\nimport { DisposableComponent } from './disposable-component';\n\n@Component({ template: '' })\nexport class FocusableComponent extends DisposableComponent {\n\n private _focusContext: FocusManager.Context;\n\n @HostBinding('attr.tabindex')\n get focusable() {\n return !!this.focusContext ? 0 : undefined;\n }\n\n @HostListener('focus')\n onFocus() {\n this.focusContext?.notifyFocusIn();\n }\n\n @HostListener('blur')\n onBlur() {\n this.focusContext?.notifyFocusOut();\n }\n\n constructor(protected readonly el: ElementRef, readonly focusManager: FocusManager, focusBindingFactory: FocusBinding.Factory) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n if (this.focusManager) {\n this._focusContext = this.focusManager.registerFocusable(this);\n this.registerDisposable(focusBindingFactory.createBinding(el, this.focusContext));\n }\n }\n\n get focusContext(): FocusManager.Context {\n return this._focusContext;\n }\n\n}\n"]}
1
+ {"version":3,"file":"focusable.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/focusable.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEjF,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D;IAAwC,sCAAmB;IAmBzD,4BAA+B,EAAc,EAAW,YAA0B,EAAE,mBAAwC;QAA5H,YACE,iBAAO,SAMR;QAP8B,QAAE,GAAF,EAAE,CAAY;QAAW,kBAAY,GAAZ,YAAY,CAAc;QAE1E,IAAA,2BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,IAAI,KAAI,CAAC,YAAY,EAAE;YACrB,KAAI,CAAC,aAAa,GAAG,KAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAI,CAAC,CAAC;YAC/D,KAAI,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,EAAE,KAAI,CAAC,YAAY,CAAC,CAAC,CAAC;SACnF;;IACH,CAAC;IArBD,sBAAI,yCAAS;aAAb;YACE,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7C,CAAC;;;OAAA;IAGD,oCAAO,GAAP;;QACE,MAAA,IAAI,CAAC,YAAY,0CAAE,aAAa,GAAG;IACrC,CAAC;IAGD,mCAAM,GAAN;;QACE,MAAA,IAAI,CAAC,YAAY,0CAAE,cAAc,GAAG;IACtC,CAAC;IAWD,sBAAI,4CAAY;aAAhB;YACE,OAAO,IAAI,CAAC,aAAa,CAAC;QAC5B,CAAC;;;OAAA;;gBAXkC,UAAU;gBAAyB,YAAY;gBAAuB,mBAAmB;;IAd5H;QADC,WAAW,CAAC,eAAe,CAAC;;;uDAG5B;IAGD;QADC,YAAY,CAAC,OAAO,CAAC;;;;qDAGrB;IAGD;QADC,YAAY,CAAC,MAAM,CAAC;;;;oDAGpB;IAjBU,kBAAkB;QAD9B,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;yCAoBS,UAAU,EAAyB,YAAY,EAAuB,mBAAmB;OAnBjH,kBAAkB,CAgC9B;IAAD,yBAAC;CAAA,AAhCD,CAAwC,mBAAmB,GAgC1D;SAhCY,kBAAkB","sourcesContent":["import { Component, ElementRef, HostBinding, HostListener } from '@angular/core';\n\nimport { Dsl, FocusManager } from '@coolon/pectin';\nimport { FocusBindingFactory } from '../directives/focus-binding-factory';\nimport { DisposableComponent } from './disposable-component';\n\n@Component({ template: '' })\nexport class FocusableComponent extends DisposableComponent {\n\n private _focusContext: FocusManager.Context;\n\n @HostBinding('attr.tabindex')\n get focusable() {\n return !!this.focusContext ? 0 : undefined;\n }\n\n @HostListener('focus')\n onFocus() {\n this.focusContext?.notifyFocusIn();\n }\n\n @HostListener('blur')\n onBlur() {\n this.focusContext?.notifyFocusOut();\n }\n\n constructor(protected readonly el: ElementRef, readonly focusManager: FocusManager, focusBindingFactory: FocusBindingFactory) {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n if (this.focusManager) {\n this._focusContext = this.focusManager.registerFocusable(this);\n this.registerDisposable(focusBindingFactory.createBinding(el, this.focusContext));\n }\n }\n\n get focusContext(): FocusManager.Context {\n return this._focusContext;\n }\n\n}\n"]}
@@ -0,0 +1,31 @@
1
+ import { __decorate, __metadata, __param } from "tslib";
2
+ import { DOCUMENT } from '@angular/common';
3
+ import { ElementRef, Inject, Injectable, NgZone } from '@angular/core';
4
+ import { FocusBinding } from './focus-binding';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ var FocusBindingFactory = /** @class */ (function () {
8
+ function FocusBindingFactory(ngZone, document) {
9
+ this.ngZone = ngZone;
10
+ // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642
11
+ this.document = document;
12
+ }
13
+ FocusBindingFactory.prototype.createBinding = function (el, focusContext) {
14
+ return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);
15
+ };
16
+ FocusBindingFactory.ctorParameters = function () { return [
17
+ { type: NgZone, decorators: [{ type: Inject, args: [NgZone,] }] },
18
+ { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
19
+ ]; };
20
+ FocusBindingFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusBindingFactory_Factory() { return new FocusBindingFactory(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.DOCUMENT)); }, token: FocusBindingFactory, providedIn: "root" });
21
+ FocusBindingFactory = __decorate([
22
+ Injectable({
23
+ providedIn: 'root'
24
+ }),
25
+ __param(0, Inject(NgZone)), __param(1, Inject(DOCUMENT)),
26
+ __metadata("design:paramtypes", [NgZone, Object])
27
+ ], FocusBindingFactory);
28
+ return FocusBindingFactory;
29
+ }());
30
+ export { FocusBindingFactory };
31
+ //# sourceMappingURL=focus-binding-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-binding-factory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding-factory.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;AAK/C;IAIE,6BAA6C,MAAc,EAAoB,QAAa;QAA/C,WAAM,GAAN,MAAM,CAAQ;QACzD,kHAAkH;QAClH,IAAI,CAAC,QAAQ,GAAG,QAAoB,CAAC;IACvC,CAAC;IAED,2CAAa,GAAb,UAAc,EAAc,EAAE,YAAkC;QAC9D,OAAO,IAAI,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACtF,CAAC;;gBAPoD,MAAM,uBAA9C,MAAM,SAAC,MAAM;gDAAoC,MAAM,SAAC,QAAQ;;;IAJlE,mBAAmB;QAH/B,UAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;QAKa,WAAA,MAAM,CAAC,MAAM,CAAC,CAAA,EAAmC,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;yCAAzB,MAAM;OAJhD,mBAAmB,CAY/B;8BApBD;CAoBC,AAZD,IAYC;SAZY,mBAAmB","sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { ElementRef, Inject, Injectable, NgZone } from '@angular/core';\nimport { FocusManager } from '@coolon/pectin';\nimport { FocusBinding } from './focus-binding';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FocusBindingFactory {\n\n private document: Document;\n\n constructor(@Inject(NgZone) private readonly ngZone: NgZone, @Inject(DOCUMENT) document: any) {\n // @see https://stackoverflow.com/questions/49513359/could-not-resolve-type-document-in-angular5/53715642#53715642\n this.document = document as Document;\n }\n\n createBinding(el: ElementRef, focusContext: FocusManager.Context): FocusBinding {\n return new FocusBinding(el.nativeElement, this.ngZone, this.document, focusContext);\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-binding-factory.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/directives/focus-binding-factory.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}