@coolon/angular-ui-powerups 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +375 -240
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +4 -0
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +4 -0
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/text-input/text-input.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +51 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +22 -9
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +69 -0
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -0
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.metadata.json +1 -0
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm2015/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/index.js +2 -0
- package/esm2015/lib/interaction/index.js.map +1 -1
- package/esm2015/lib/interaction/index.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.js +16 -3
- package/esm2015/lib/interaction/interaction.module.js.map +1 -1
- package/esm2015/lib/interaction/interaction.module.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +0 -15
- package/esm2015/lib/interaction/services/interaction.service.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +4 -0
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js +1 -1
- package/esm5/lib/components/forms/text-input/text-input.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +58 -0
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -0
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +23 -9
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js +76 -0
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.js.map +1 -0
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.js.map +1 -0
- package/esm5/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.js.map +1 -1
- package/esm5/lib/interaction/index.js +2 -0
- package/esm5/lib/interaction/index.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.js +16 -3
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/services/interaction.service.js +0 -15
- package/esm5/lib/interaction/services/interaction.service.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +328 -214
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +372 -243
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +12 -0
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -1
- package/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.d.ts +17 -0
- package/lib/interaction/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './index';
|
|
5
|
+
export { DisposableComponent as ɵcb } from './lib/components';
|
|
5
6
|
export { CardContainerComponent as ɵw } from './lib/components/card-container/card-container.component';
|
|
6
7
|
export { ComponentsModule as ɵf } from './lib/components/components.module';
|
|
7
8
|
export { DisposableComponent as ɵd } from './lib/components/disposable-component';
|
|
@@ -22,10 +23,13 @@ export { CommandDirective as ɵb } from './lib/directives/command.directive';
|
|
|
22
23
|
export { DirectivesModule as ɵa } from './lib/directives/directives.module';
|
|
23
24
|
export { FocusBindingFactory as ɵe } from './lib/directives/focus-binding-factory';
|
|
24
25
|
export { FocusBindingDirective as ɵc } from './lib/directives/focus-binding.directive';
|
|
26
|
+
export { InPlaceInteractionContextComponent as ɵcc } from './lib/interaction';
|
|
25
27
|
export { AbstractInteractionContext as ɵbq } from './lib/interaction/abstract-interaction-context';
|
|
26
28
|
export { ACTIVITY_DATA as ɵbt, Activity as ɵbu } from './lib/interaction/activity';
|
|
29
|
+
export { ActivityActionsComponent as ɵcd } from './lib/interaction/components/activity-actions/activity-actions.component';
|
|
27
30
|
export { ActivityContainerComponent as ɵbp } from './lib/interaction/components/activity-container/activity-container.component';
|
|
28
31
|
export { ActivityOutletComponent as ɵbr } from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';
|
|
32
|
+
export { AddItemInteractionContextComponent as ɵca } from './lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component';
|
|
29
33
|
export { AlertDialogComponent as ɵbx } from './lib/interaction/components/alert-dialog/alert-dialog.component';
|
|
30
34
|
export { ConfirmThenDialogComponent as ɵbw } from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';
|
|
31
35
|
export { ConfirmationDialogComponent as ɵbs } from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';
|
|
@@ -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,sBAAsB,IAAI,EAAE,EAAC,MAAM,0DAA0D,CAAC;AACtG,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,iD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AAC,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 {CardContainerComponent as ɵw} from './lib/components/card-container/card-container.component';\nexport {ComponentsModule as ɵf} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵt} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵv} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵh} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵm} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵg} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵk} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵl} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵi} from './lib/components/forms/string-input/string-input.component';\nexport {TextInputComponent as ɵj} from './lib/components/forms/text-input/text-input.component';\nexport {NoopComponent as ɵo} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵn} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵs,SwitchCaseDefaultDirective as ɵr,SwitchCaseOption as ɵp,SwitchCaseWhenDirective as ɵq} from './lib/components/switch-case/switch-case.component';\nexport {VerticalFocusContainerComponent as ɵu} from './lib/components/vertical-focus-container/vertical-focus-container.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBindingFactory as ɵe} from './lib/directives/focus-binding-factory';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {AbstractInteractionContext as ɵbq} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbt,Activity as ɵbu} from './lib/interaction/activity';\nexport {Alert as ɵby} from './lib/interaction/alert';\nexport {ActivityContainerComponent as ɵbp} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbr} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AlertDialogComponent as ɵbx} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbw} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbs} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbz} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbv} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbo} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbg} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbh} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbl} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵz} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵy} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbm} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵba} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵbc,leftRightPlaceAnimation as ɵbb} from './lib/place/components/place-outlet/route-animations';\nexport {SidePlaceNavigationComponent as ɵbn} from './lib/place/components/side-place-navigation/side-place-navigation.component';\nexport {TabbedPlaceNavigationComponent as ɵbk} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵbd,PlaceConfig as ɵbe} from './lib/place/place-config';\nexport {PlaceHistory as ɵbj} from './lib/place/place-history';\nexport {PlaceRouter as ɵbf} from './lib/place/place-router';\nexport {PlaceModule as ɵx} from './lib/place/place.module';\nexport {UrlService as ɵbi} 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,mBAAmB,IAAI,GAAG,EAAC,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAC,sBAAsB,IAAI,EAAE,EAAC,MAAM,0DAA0D,CAAC;AACtG,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,sBAAsB,IAAI,EAAE,EAAC,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,oBAAoB,IAAI,EAAE,EAAC,MAAM,4DAA4D,CAAC;AACtG,OAAO,EAAC,kBAAkB,IAAI,EAAE,EAAC,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAC,aAAa,IAAI,EAAE,EAAC,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAC,wBAAwB,IAAI,EAAE,EAAC,MAAM,8DAA8D,CAAC;AAC5G,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AiB,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,GAAG,EAAC,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAC,0BAA0B,IAAI,GAAG,EAAC,uBAAuB,IAAI,GAAG,EAAC,MAAM,sDAAsD,CAAC;AACtI,OAAO,EAAC,4BAA4B,IAAI,GAAG,EAAC,MAAM,8EAA8E,CAAC;AACjI,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 {DisposableComponent as ɵcb} from './lib/components';\nexport {CardContainerComponent as ɵw} from './lib/components/card-container/card-container.component';\nexport {ComponentsModule as ɵf} from './lib/components/components.module';\nexport {DisposableComponent as ɵd} from './lib/components/disposable-component';\nexport {FocusContainerComponent as ɵt} from './lib/components/focus-container/focus-container.component';\nexport {FocusableComponent as ɵv} from './lib/components/focusable.component';\nexport {AbstractInputComponent as ɵh} from './lib/components/forms/abstract-input.component';\nexport {CheckboxInputComponent as ɵm} from './lib/components/forms/checkbox-input/checkbox-input.component';\nexport {NumberInputComponent as ɵg} from './lib/components/forms/number-input/number-input.component';\nexport {PasswordInputComponent as ɵk} from './lib/components/forms/password-input/password-input.component';\nexport {SelectInputComponent as ɵl} from './lib/components/forms/select-input/select-input.component';\nexport {StringInputComponent as ɵi} from './lib/components/forms/string-input/string-input.component';\nexport {TextInputComponent as ɵj} from './lib/components/forms/text-input/text-input.component';\nexport {NoopComponent as ɵo} from './lib/components/noop/noop.component';\nexport {ScrollContainerComponent as ɵn} from './lib/components/scroll-container/scroll-container.component';\nexport {SwitchCaseComponent as ɵs,SwitchCaseDefaultDirective as ɵr,SwitchCaseOption as ɵp,SwitchCaseWhenDirective as ɵq} from './lib/components/switch-case/switch-case.component';\nexport {VerticalFocusContainerComponent as ɵu} from './lib/components/vertical-focus-container/vertical-focus-container.component';\nexport {CommandDirective as ɵb} from './lib/directives/command.directive';\nexport {DirectivesModule as ɵa} from './lib/directives/directives.module';\nexport {FocusBindingFactory as ɵe} from './lib/directives/focus-binding-factory';\nexport {FocusBindingDirective as ɵc} from './lib/directives/focus-binding.directive';\nexport {InPlaceInteractionContextComponent as ɵcc} from './lib/interaction';\nexport {AbstractInteractionContext as ɵbq} from './lib/interaction/abstract-interaction-context';\nexport {ACTIVITY_DATA as ɵbt,Activity as ɵbu} from './lib/interaction/activity';\nexport {Alert as ɵby} from './lib/interaction/alert';\nexport {ActivityActionsComponent as ɵcd} from './lib/interaction/components/activity-actions/activity-actions.component';\nexport {ActivityContainerComponent as ɵbp} from './lib/interaction/components/activity-container/activity-container.component';\nexport {ActivityOutletComponent as ɵbr} from './lib/interaction/components/activity-container/activity-outlet/activity-outlet.component';\nexport {AddItemInteractionContextComponent as ɵca} from './lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component';\nexport {AlertDialogComponent as ɵbx} from './lib/interaction/components/alert-dialog/alert-dialog.component';\nexport {ConfirmThenDialogComponent as ɵbw} from './lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component';\nexport {ConfirmationDialogComponent as ɵbs} from './lib/interaction/components/confirmation-dialog/confirmation-dialog.component';\nexport {InPlaceInteractionContextComponent as ɵbz} from './lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nexport {Confirm as ɵbv} from './lib/interaction/confirm';\nexport {InteractionModule as ɵbo} from './lib/interaction/interaction.module';\nexport {InteractionService as ɵbg} from './lib/interaction/services/interaction.service';\nexport {ModalInteractionContextFactory as ɵbh} from './lib/interaction/services/modal-interaction-context.factory';\nexport {AbstractPlaceNavigationComponent as ɵbl} from './lib/place/components/abstract-place-navigation.component';\nexport {BusyOverlayComponent as ɵz} from './lib/place/components/busy-overlay/busy-overlay.component';\nexport {EmptyStateComponent as ɵy} from './lib/place/components/empty-state/empty-state.component';\nexport {ListPlaceNavComponent as ɵbm} from './lib/place/components/list-place-nav/list-place-nav.component';\nexport {PlaceOutletComponent as ɵba} from './lib/place/components/place-outlet/place-outlet.component';\nexport {LEFT_RIGHT_PLACE_ANIMATION as ɵbc,leftRightPlaceAnimation as ɵbb} from './lib/place/components/place-outlet/route-animations';\nexport {SidePlaceNavigationComponent as ɵbn} from './lib/place/components/side-place-navigation/side-place-navigation.component';\nexport {TabbedPlaceNavigationComponent as ɵbk} from './lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nexport {AUP_PLACE_CONFIG as ɵbd,PlaceConfig as ɵbe} from './lib/place/place-config';\nexport {PlaceHistory as ɵbj} from './lib/place/place-history';\nexport {PlaceRouter as ɵbf} from './lib/place/place-router';\nexport {PlaceModule as ɵx} from './lib/place/place.module';\nexport {UrlService as ɵbi} from './lib/place/url-service';"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components/card-container/card-container.component","export":[{"name":"CardContainerComponent","as":"ɵw"}]},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵf"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/focus-container/focus-container.component","export":[{"name":"FocusContainerComponent","as":"ɵt"}]},{"from":"./lib/components/focusable.component","export":[{"name":"FocusableComponent","as":"ɵv"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵh"}]},{"from":"./lib/components/forms/checkbox-input/checkbox-input.component","export":[{"name":"CheckboxInputComponent","as":"ɵm"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵk"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵl"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/text-input/text-input.component","export":[{"name":"TextInputComponent","as":"ɵj"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵo"}]},{"from":"./lib/components/scroll-container/scroll-container.component","export":[{"name":"ScrollContainerComponent","as":"ɵn"}]},{"from":"./lib/components/switch-case/switch-case.component","export":[{"name":"SwitchCaseComponent","as":"ɵs"},{"name":"SwitchCaseDefaultDirective","as":"ɵr"},{"name":"SwitchCaseOption","as":"ɵp"},{"name":"SwitchCaseWhenDirective","as":"ɵq"}]},{"from":"./lib/components/vertical-focus-container/vertical-focus-container.component","export":[{"name":"VerticalFocusContainerComponent","as":"ɵu"}]},{"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":"ɵe"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction/abstract-interaction-context","export":[{"name":"AbstractInteractionContext","as":"ɵbq"}]},{"from":"./lib/interaction/activity","export":[{"name":"ACTIVITY_DATA","as":"ɵbt"},{"name":"Activity","as":"ɵbu"}]},{"from":"./lib/interaction/alert","export":[{"name":"Alert","as":"ɵby"}]},{"from":"./lib/interaction/components/activity-container/activity-container.component","export":[{"name":"ActivityContainerComponent","as":"ɵbp"}]},{"from":"./lib/interaction/components/activity-container/activity-outlet/activity-outlet.component","export":[{"name":"ActivityOutletComponent","as":"ɵbr"}]},{"from":"./lib/interaction/components/alert-dialog/alert-dialog.component","export":[{"name":"AlertDialogComponent","as":"ɵbx"}]},{"from":"./lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component","export":[{"name":"ConfirmThenDialogComponent","as":"ɵbw"}]},{"from":"./lib/interaction/components/confirmation-dialog/confirmation-dialog.component","export":[{"name":"ConfirmationDialogComponent","as":"ɵbs"}]},{"from":"./lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵbz"}]},{"from":"./lib/interaction/confirm","export":[{"name":"Confirm","as":"ɵbv"}]},{"from":"./lib/interaction/interaction.module","export":[{"name":"InteractionModule","as":"ɵbo"}]},{"from":"./lib/interaction/services/interaction.service","export":[{"name":"InteractionService","as":"ɵbg"}]},{"from":"./lib/interaction/services/modal-interaction-context.factory","export":[{"name":"ModalInteractionContextFactory","as":"ɵbh"}]},{"from":"./lib/place/components/abstract-place-navigation.component","export":[{"name":"AbstractPlaceNavigationComponent","as":"ɵbl"}]},{"from":"./lib/place/components/busy-overlay/busy-overlay.component","export":[{"name":"BusyOverlayComponent","as":"ɵz"}]},{"from":"./lib/place/components/empty-state/empty-state.component","export":[{"name":"EmptyStateComponent","as":"ɵy"}]},{"from":"./lib/place/components/list-place-nav/list-place-nav.component","export":[{"name":"ListPlaceNavComponent","as":"ɵbm"}]},{"from":"./lib/place/components/place-outlet/place-outlet.component","export":[{"name":"PlaceOutletComponent","as":"ɵba"}]},{"from":"./lib/place/components/place-outlet/route-animations","export":[{"name":"LEFT_RIGHT_PLACE_ANIMATION","as":"ɵbc"},{"name":"leftRightPlaceAnimation","as":"ɵbb"}]},{"from":"./lib/place/components/side-place-navigation/side-place-navigation.component","export":[{"name":"SidePlaceNavigationComponent","as":"ɵbn"}]},{"from":"./lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component","export":[{"name":"TabbedPlaceNavigationComponent","as":"ɵbk"}]},{"from":"./lib/place/place-config","export":[{"name":"AUP_PLACE_CONFIG","as":"ɵbd"},{"name":"PlaceConfig","as":"ɵbe"}]},{"from":"./lib/place/place-history","export":[{"name":"PlaceHistory","as":"ɵbj"}]},{"from":"./lib/place/place-router","export":[{"name":"PlaceRouter","as":"ɵbf"}]},{"from":"./lib/place/place.module","export":[{"name":"PlaceModule","as":"ɵx"}]},{"from":"./lib/place/url-service","export":[{"name":"UrlService","as":"ɵbi"}]}]}]
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./index"},{"from":"./lib/components","export":[{"name":"DisposableComponent","as":"ɵcb"}]},{"from":"./lib/components/card-container/card-container.component","export":[{"name":"CardContainerComponent","as":"ɵw"}]},{"from":"./lib/components/components.module","export":[{"name":"ComponentsModule","as":"ɵf"}]},{"from":"./lib/components/disposable-component","export":[{"name":"DisposableComponent","as":"ɵd"}]},{"from":"./lib/components/focus-container/focus-container.component","export":[{"name":"FocusContainerComponent","as":"ɵt"}]},{"from":"./lib/components/focusable.component","export":[{"name":"FocusableComponent","as":"ɵv"}]},{"from":"./lib/components/forms/abstract-input.component","export":[{"name":"AbstractInputComponent","as":"ɵh"}]},{"from":"./lib/components/forms/checkbox-input/checkbox-input.component","export":[{"name":"CheckboxInputComponent","as":"ɵm"}]},{"from":"./lib/components/forms/number-input/number-input.component","export":[{"name":"NumberInputComponent","as":"ɵg"}]},{"from":"./lib/components/forms/password-input/password-input.component","export":[{"name":"PasswordInputComponent","as":"ɵk"}]},{"from":"./lib/components/forms/select-input/select-input.component","export":[{"name":"SelectInputComponent","as":"ɵl"}]},{"from":"./lib/components/forms/string-input/string-input.component","export":[{"name":"StringInputComponent","as":"ɵi"}]},{"from":"./lib/components/forms/text-input/text-input.component","export":[{"name":"TextInputComponent","as":"ɵj"}]},{"from":"./lib/components/noop/noop.component","export":[{"name":"NoopComponent","as":"ɵo"}]},{"from":"./lib/components/scroll-container/scroll-container.component","export":[{"name":"ScrollContainerComponent","as":"ɵn"}]},{"from":"./lib/components/switch-case/switch-case.component","export":[{"name":"SwitchCaseComponent","as":"ɵs"},{"name":"SwitchCaseDefaultDirective","as":"ɵr"},{"name":"SwitchCaseOption","as":"ɵp"},{"name":"SwitchCaseWhenDirective","as":"ɵq"}]},{"from":"./lib/components/vertical-focus-container/vertical-focus-container.component","export":[{"name":"VerticalFocusContainerComponent","as":"ɵu"}]},{"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":"ɵe"}]},{"from":"./lib/directives/focus-binding.directive","export":[{"name":"FocusBindingDirective","as":"ɵc"}]},{"from":"./lib/interaction","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵcc"}]},{"from":"./lib/interaction/abstract-interaction-context","export":[{"name":"AbstractInteractionContext","as":"ɵbq"}]},{"from":"./lib/interaction/activity","export":[{"name":"ACTIVITY_DATA","as":"ɵbt"},{"name":"Activity","as":"ɵbu"}]},{"from":"./lib/interaction/alert","export":[{"name":"Alert","as":"ɵby"}]},{"from":"./lib/interaction/components/activity-actions/activity-actions.component","export":[{"name":"ActivityActionsComponent","as":"ɵcd"}]},{"from":"./lib/interaction/components/activity-container/activity-container.component","export":[{"name":"ActivityContainerComponent","as":"ɵbp"}]},{"from":"./lib/interaction/components/activity-container/activity-outlet/activity-outlet.component","export":[{"name":"ActivityOutletComponent","as":"ɵbr"}]},{"from":"./lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component","export":[{"name":"AddItemInteractionContextComponent","as":"ɵca"}]},{"from":"./lib/interaction/components/alert-dialog/alert-dialog.component","export":[{"name":"AlertDialogComponent","as":"ɵbx"}]},{"from":"./lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component","export":[{"name":"ConfirmThenDialogComponent","as":"ɵbw"}]},{"from":"./lib/interaction/components/confirmation-dialog/confirmation-dialog.component","export":[{"name":"ConfirmationDialogComponent","as":"ɵbs"}]},{"from":"./lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component","export":[{"name":"InPlaceInteractionContextComponent","as":"ɵbz"}]},{"from":"./lib/interaction/confirm","export":[{"name":"Confirm","as":"ɵbv"}]},{"from":"./lib/interaction/interaction.module","export":[{"name":"InteractionModule","as":"ɵbo"}]},{"from":"./lib/interaction/services/interaction.service","export":[{"name":"InteractionService","as":"ɵbg"}]},{"from":"./lib/interaction/services/modal-interaction-context.factory","export":[{"name":"ModalInteractionContextFactory","as":"ɵbh"}]},{"from":"./lib/place/components/abstract-place-navigation.component","export":[{"name":"AbstractPlaceNavigationComponent","as":"ɵbl"}]},{"from":"./lib/place/components/busy-overlay/busy-overlay.component","export":[{"name":"BusyOverlayComponent","as":"ɵz"}]},{"from":"./lib/place/components/empty-state/empty-state.component","export":[{"name":"EmptyStateComponent","as":"ɵy"}]},{"from":"./lib/place/components/list-place-nav/list-place-nav.component","export":[{"name":"ListPlaceNavComponent","as":"ɵbm"}]},{"from":"./lib/place/components/place-outlet/place-outlet.component","export":[{"name":"PlaceOutletComponent","as":"ɵba"}]},{"from":"./lib/place/components/place-outlet/route-animations","export":[{"name":"LEFT_RIGHT_PLACE_ANIMATION","as":"ɵbc"},{"name":"leftRightPlaceAnimation","as":"ɵbb"}]},{"from":"./lib/place/components/side-place-navigation/side-place-navigation.component","export":[{"name":"SidePlaceNavigationComponent","as":"ɵbn"}]},{"from":"./lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component","export":[{"name":"TabbedPlaceNavigationComponent","as":"ɵbk"}]},{"from":"./lib/place/place-config","export":[{"name":"AUP_PLACE_CONFIG","as":"ɵbd"},{"name":"PlaceConfig","as":"ɵbe"}]},{"from":"./lib/place/place-history","export":[{"name":"PlaceHistory","as":"ɵbj"}]},{"from":"./lib/place/place-router","export":[{"name":"PlaceRouter","as":"ɵbf"}]},{"from":"./lib/place/place.module","export":[{"name":"PlaceModule","as":"ɵx"}]},{"from":"./lib/place/url-service","export":[{"name":"UrlService","as":"ɵbi"}]}]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-ui-powerups.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/angular-ui-powerups.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './angular-ui-powerups.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/cdk/bidi';\nimport * as i6 from '@angular/material/form-field';\nimport * as i7 from '@angular/material/input';\nimport * as i8 from '@angular/cdk/scrolling';\nimport * as i9 from '@angular/material/core';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from './directives/command.directive';\nimport * as i13 from './directives/focus-binding.directive';\nimport * as i14 from './components/forms/number-input/number-input.component';\nimport * as i15 from './components/forms/string-input/string-input.component';\nimport * as i16 from './components/forms/text-input/text-input.component';\nimport * as i17 from './components/forms/password-input/password-input.component';\nimport * as i18 from './components/forms/checkbox-input/checkbox-input.component';\nimport * as i19 from './components/forms/select-input/select-input.component';\nimport * as i20 from './components/scroll-container/scroll-container.component';\nimport * as i21 from './components/noop/noop.component';\nimport * as i22 from './components/switch-case/switch-case.component';\nimport * as i23 from './components/focus-container/focus-container.component';\nimport * as i24 from './components/vertical-focus-container/vertical-focus-container.component';\nimport * as i25 from './components/focusable.component';\nimport * as i26 from './components/card-container/card-container.component';\nimport * as i27 from './place/components/busy-overlay/busy-overlay.component';\nimport * as i28 from './place/components/place-outlet/place-outlet.component';\nimport * as i29 from './place/components/empty-state/empty-state.component';\nimport * as i30 from './place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i31 from './place/components/list-place-nav/list-place-nav.component';\nimport * as i32 from './place/components/side-place-navigation/side-place-navigation.component';\nimport * as i33 from './place/components/abstract-place-navigation.component';\nimport * as i34 from './interaction/components/activity-container/activity-container.component';\nimport * as i35 from './interaction/components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i36 from './interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i37 from '@angular/platform-browser/animations';\nimport * as i38 from './directives/directives.module';\nimport * as i39 from './components/components.module';\nimport * as i40 from './place/place.module';\nimport * as i41 from './interaction/interaction.module';\nexport const AngularUiPowerupsModuleNgFactory:i0.NgModuleFactory<i1.AngularUiPowerupsModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_x = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_33:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_34:i5.Dir = (<any>(null as any));\nvar _decl0_35:i6.MatError = (<any>(null as any));\nvar _decl0_36:i6.MatFormField = (<any>(null as any));\nvar _decl0_37:i6.MatHint = (<any>(null as any));\nvar _decl0_38:i6.MatLabel = (<any>(null as any));\nvar _decl0_39:i6.MatPlaceholder = (<any>(null as any));\nvar _decl0_40:i6.MatPrefix = (<any>(null as any));\nvar _decl0_41:i6.MatSuffix = (<any>(null as any));\nvar _decl0_42:i7.MatInput = (<any>(null as any));\nvar _decl0_43:i7.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_44:i8.CdkScrollable = (<any>(null as any));\nvar _decl0_45:i9.MatOption = (<any>(null as any));\nvar _decl0_46:i9.MatOptgroup = (<any>(null as any));\nvar _decl0_47:i10.MatSelect = (<any>(null as any));\nvar _decl0_48:i10.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i11.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i11.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i11.MatTab = (<any>(null as any));\nvar _decl0_52:i11.MatTabNav = (<any>(null as any));\nvar _decl0_53:i11.MatTabLink = (<any>(null as any));\nvar _decl0_54:i11.MatTabContent = (<any>(null as any));\nvar _decl0_55:i12.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i13.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i14.NumberInputComponent = (<any>(null as any));\nvar _decl0_58:i15.StringInputComponent = (<any>(null as any));\nvar _decl0_59:i16.TextInputComponent = (<any>(null as any));\nvar _decl0_60:i17.PasswordInputComponent = (<any>(null as any));\nvar _decl0_61:i18.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_62:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_63:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_64:i21.NoopComponent = (<any>(null as any));\nvar _decl0_65:i22.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_66:i22.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_67:i22.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_68:i23.FocusContainerComponent = (<any>(null as any));\nvar _decl0_69:i24.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_70:i25.FocusableComponent = (<any>(null as any));\nvar _decl0_71:i26.CardContainerComponent = (<any>(null as any));\nvar _decl0_72:i27.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_73:i28.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_74:i29.EmptyStateComponent = (<any>(null as any));\nvar _decl0_75:i30.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_76:i31.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_77:i32.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_78:i33.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_79:i34.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_80:i35.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_81:i36.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_82:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_83:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_84:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_85:i2.JsonPipe = (<any>(null as any));\nvar _decl0_86:i2.SlicePipe = (<any>(null as any));\nvar _decl0_87:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_88:i2.PercentPipe = (<any>(null as any));\nvar _decl0_89:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_90:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_91:i2.DatePipe = (<any>(null as any));\nvar _decl0_92:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_93:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_94:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_95:i2.CommonModule = (<any>(null as any));\nvar _decl0_96:i37.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_97:i3.FormsModule = (<any>(null as any));\nvar _decl0_98:i7.MatInputModule = (<any>(null as any));\nvar _decl0_99:i6.MatFormFieldModule = (<any>(null as any));\nvar _decl0_100:i10.MatSelectModule = (<any>(null as any));\nvar _decl0_101:i11.MatTabsModule = (<any>(null as any));\nvar _decl0_108:i38.DirectivesModule = (<any>(null as any));\nvar _decl0_109:i39.ComponentsModule = (<any>(null as any));\nvar _decl0_107:i40.PlaceModule = (<any>(null as any));\nvar _decl0_106:i41.InteractionModule = (<any>(null as any));\nvar _decl0_110:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_111:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
1
|
+
{"version":3,"file":"angular-ui-powerups.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/angular-ui-powerups.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './angular-ui-powerups.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/forms';\nimport * as i4 from '@angular/cdk/text-field';\nimport * as i5 from '@angular/cdk/bidi';\nimport * as i6 from '@angular/material/form-field';\nimport * as i7 from '@angular/material/input';\nimport * as i8 from '@angular/cdk/scrolling';\nimport * as i9 from '@angular/material/core';\nimport * as i10 from '@angular/material/select';\nimport * as i11 from '@angular/material/tabs';\nimport * as i12 from './directives/command.directive';\nimport * as i13 from './directives/focus-binding.directive';\nimport * as i14 from './components/forms/number-input/number-input.component';\nimport * as i15 from './components/forms/string-input/string-input.component';\nimport * as i16 from './components/forms/text-input/text-input.component';\nimport * as i17 from './components/forms/password-input/password-input.component';\nimport * as i18 from './components/forms/checkbox-input/checkbox-input.component';\nimport * as i19 from './components/forms/select-input/select-input.component';\nimport * as i20 from './components/scroll-container/scroll-container.component';\nimport * as i21 from './components/noop/noop.component';\nimport * as i22 from './components/switch-case/switch-case.component';\nimport * as i23 from './components/focus-container/focus-container.component';\nimport * as i24 from './components/vertical-focus-container/vertical-focus-container.component';\nimport * as i25 from './components/focusable.component';\nimport * as i26 from './components/card-container/card-container.component';\nimport * as i27 from './place/components/busy-overlay/busy-overlay.component';\nimport * as i28 from './place/components/place-outlet/place-outlet.component';\nimport * as i29 from './place/components/empty-state/empty-state.component';\nimport * as i30 from './place/components/tabbed-place-navigation/tabbed-place-navigation.component';\nimport * as i31 from './place/components/list-place-nav/list-place-nav.component';\nimport * as i32 from './place/components/side-place-navigation/side-place-navigation.component';\nimport * as i33 from './place/components/abstract-place-navigation.component';\nimport * as i34 from './interaction/components/activity-container/activity-container.component';\nimport * as i35 from './interaction/components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i36 from './interaction/components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i37 from './interaction/components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i38 from './interaction/components/activity-actions/activity-actions.component';\nimport * as i39 from '@angular/platform-browser/animations';\nimport * as i40 from './directives/directives.module';\nimport * as i41 from './components/components.module';\nimport * as i42 from './place/place.module';\nimport * as i43 from './interaction/interaction.module';\nexport const AngularUiPowerupsModuleNgFactory:i0.NgModuleFactory<i1.AngularUiPowerupsModule> = (null as any);\nvar _decl0_0:i2.NgClass = (<any>(null as any));\nvar _decl0_1:i2.NgComponentOutlet = (<any>(null as any));\nvar _decl0_2:i2.NgForOf<any,any> = (<any>(null as any));\nvar _decl0_3:i2.NgIf<any> = (<any>(null as any));\nvar _decl0_4:i2.NgTemplateOutlet = (<any>(null as any));\nvar _decl0_5:i2.NgStyle = (<any>(null as any));\nvar _decl0_6:i2.NgSwitch = (<any>(null as any));\nvar _decl0_7:i2.NgSwitchCase = (<any>(null as any));\nvar _decl0_8:i2.NgSwitchDefault = (<any>(null as any));\nvar _decl0_9:i2.NgPlural = (<any>(null as any));\nvar _decl0_10:i2.NgPluralCase = (<any>(null as any));\nvar _decl0_11:i3.ɵangular_packages_forms_forms_y = (<any>(null as any));\nvar _decl0_12:i3.NgSelectOption = (<any>(null as any));\nvar _decl0_13:i3.ɵangular_packages_forms_forms_x = (<any>(null as any));\nvar _decl0_14:i3.DefaultValueAccessor = (<any>(null as any));\nvar _decl0_15:i3.NumberValueAccessor = (<any>(null as any));\nvar _decl0_16:i3.RangeValueAccessor = (<any>(null as any));\nvar _decl0_17:i3.CheckboxControlValueAccessor = (<any>(null as any));\nvar _decl0_18:i3.SelectControlValueAccessor = (<any>(null as any));\nvar _decl0_19:i3.SelectMultipleControlValueAccessor = (<any>(null as any));\nvar _decl0_20:i3.RadioControlValueAccessor = (<any>(null as any));\nvar _decl0_21:i3.NgControlStatus = (<any>(null as any));\nvar _decl0_22:i3.NgControlStatusGroup = (<any>(null as any));\nvar _decl0_23:i3.RequiredValidator = (<any>(null as any));\nvar _decl0_24:i3.MinLengthValidator = (<any>(null as any));\nvar _decl0_25:i3.MaxLengthValidator = (<any>(null as any));\nvar _decl0_26:i3.PatternValidator = (<any>(null as any));\nvar _decl0_27:i3.CheckboxRequiredValidator = (<any>(null as any));\nvar _decl0_28:i3.EmailValidator = (<any>(null as any));\nvar _decl0_29:i3.NgModel = (<any>(null as any));\nvar _decl0_30:i3.NgModelGroup = (<any>(null as any));\nvar _decl0_31:i3.NgForm = (<any>(null as any));\nvar _decl0_32:i4.CdkAutofill = (<any>(null as any));\nvar _decl0_33:i4.CdkTextareaAutosize = (<any>(null as any));\nvar _decl0_34:i5.Dir = (<any>(null as any));\nvar _decl0_35:i6.MatError = (<any>(null as any));\nvar _decl0_36:i6.MatFormField = (<any>(null as any));\nvar _decl0_37:i6.MatHint = (<any>(null as any));\nvar _decl0_38:i6.MatLabel = (<any>(null as any));\nvar _decl0_39:i6.MatPlaceholder = (<any>(null as any));\nvar _decl0_40:i6.MatPrefix = (<any>(null as any));\nvar _decl0_41:i6.MatSuffix = (<any>(null as any));\nvar _decl0_42:i7.MatInput = (<any>(null as any));\nvar _decl0_43:i7.MatTextareaAutosize = (<any>(null as any));\nvar _decl0_44:i8.CdkScrollable = (<any>(null as any));\nvar _decl0_45:i9.MatOption = (<any>(null as any));\nvar _decl0_46:i9.MatOptgroup = (<any>(null as any));\nvar _decl0_47:i10.MatSelect = (<any>(null as any));\nvar _decl0_48:i10.MatSelectTrigger = (<any>(null as any));\nvar _decl0_49:i11.MatTabGroup = (<any>(null as any));\nvar _decl0_50:i11.MatTabLabel = (<any>(null as any));\nvar _decl0_51:i11.MatTab = (<any>(null as any));\nvar _decl0_52:i11.MatTabNav = (<any>(null as any));\nvar _decl0_53:i11.MatTabLink = (<any>(null as any));\nvar _decl0_54:i11.MatTabContent = (<any>(null as any));\nvar _decl0_55:i12.CommandDirective<any> = (<any>(null as any));\nvar _decl0_56:i13.FocusBindingDirective = (<any>(null as any));\nvar _decl0_57:i14.NumberInputComponent = (<any>(null as any));\nvar _decl0_58:i15.StringInputComponent = (<any>(null as any));\nvar _decl0_59:i16.TextInputComponent = (<any>(null as any));\nvar _decl0_60:i17.PasswordInputComponent = (<any>(null as any));\nvar _decl0_61:i18.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_62:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_63:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_64:i21.NoopComponent = (<any>(null as any));\nvar _decl0_65:i22.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_66:i22.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_67:i22.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_68:i23.FocusContainerComponent = (<any>(null as any));\nvar _decl0_69:i24.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_70:i25.FocusableComponent = (<any>(null as any));\nvar _decl0_71:i26.CardContainerComponent = (<any>(null as any));\nvar _decl0_72:i27.BusyOverlayComponent = (<any>(null as any));\nvar _decl0_73:i28.PlaceOutletComponent = (<any>(null as any));\nvar _decl0_74:i29.EmptyStateComponent = (<any>(null as any));\nvar _decl0_75:i30.TabbedPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_76:i31.ListPlaceNavComponent = (<any>(null as any));\nvar _decl0_77:i32.SidePlaceNavigationComponent = (<any>(null as any));\nvar _decl0_78:i33.AbstractPlaceNavigationComponent = (<any>(null as any));\nvar _decl0_79:i34.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_80:i35.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_81:i36.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_82:i37.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_83:i38.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_84:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_85:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_86:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_87:i2.JsonPipe = (<any>(null as any));\nvar _decl0_88:i2.SlicePipe = (<any>(null as any));\nvar _decl0_89:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_90:i2.PercentPipe = (<any>(null as any));\nvar _decl0_91:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_92:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_93:i2.DatePipe = (<any>(null as any));\nvar _decl0_94:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_95:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_96:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_97:i2.CommonModule = (<any>(null as any));\nvar _decl0_98:i39.BrowserAnimationsModule = (<any>(null as any));\nvar _decl0_99:i3.FormsModule = (<any>(null as any));\nvar _decl0_100:i7.MatInputModule = (<any>(null as any));\nvar _decl0_101:i6.MatFormFieldModule = (<any>(null as any));\nvar _decl0_102:i10.MatSelectModule = (<any>(null as any));\nvar _decl0_103:i11.MatTabsModule = (<any>(null as any));\nvar _decl0_110:i40.DirectivesModule = (<any>(null as any));\nvar _decl0_111:i41.ComponentsModule = (<any>(null as any));\nvar _decl0_109:i42.PlaceModule = (<any>(null as any));\nvar _decl0_108:i43.InteractionModule = (<any>(null as any));\nvar _decl0_112:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_113:i0.ElementRef<any> = (<any>(null as any));\n"]}
|
|
@@ -26,7 +26,7 @@ __decorate([
|
|
|
26
26
|
TextInputComponent = __decorate([
|
|
27
27
|
Component({
|
|
28
28
|
selector: 'aup-text-input',
|
|
29
|
-
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
|
|
29
|
+
template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n",
|
|
30
30
|
styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]
|
|
31
31
|
}),
|
|
32
32
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/text-input/text-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAAqC,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,sBAA8B;IAQpE;QACE,KAAK,EAAE,CAAC;QAJD,SAAI,GAAG,CAAC,CAAC;QAKhB,4FAA4F;IAC9F,CAAC;IAED,QAAQ;IACR,CAAC;CAEF,CAAA;AAbC;IADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;;sDACJ;AAEtD;IAAR,KAAK,EAAE;;gDAAU;AACT;IAAR,KAAK,EAAE;;gDAAc;AANX,kBAAkB;IAL9B,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,
|
|
1
|
+
{"version":3,"file":"text-input.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/forms/text-input/text-input.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACzD,OAAO,EAAqC,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAOrE,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,sBAA8B;IAQpE;QACE,KAAK,EAAE,CAAC;QAJD,SAAI,GAAG,CAAC,CAAC;QAKhB,4FAA4F;IAC9F,CAAC;IAED,QAAQ;IACR,CAAC;CAEF,CAAA;AAbC;IADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;;sDACJ;AAEtD;IAAR,KAAK,EAAE;;gDAAU;AACT;IAAR,KAAK,EAAE;;gDAAc;AANX,kBAAkB;IAL9B,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,2tBAA0C;;KAE3C,CAAC;;GACW,kBAAkB,CAgB9B;SAhBY,kBAAkB","sourcesContent":["import { Component, Input, OnInit } from '@angular/core';\nimport { FormValueModel, MutableValueModel, TrackExternal } from '@coolon/pectin';\nimport { AbstractInputComponent } from '../abstract-input.component';\n\n@Component({\n selector: 'aup-text-input',\n templateUrl: './text-input.component.html',\n styleUrls: ['./text-input.component.scss']\n})\nexport class TextInputComponent extends AbstractInputComponent<string> implements OnInit {\n\n @Input() @TrackExternal({ delegateTo: 'delegatingFormValueModel' })\n valueModel: FormValueModel<string> | MutableValueModel<string>;\n\n @Input() rows = 2;\n @Input() cols: number;\n\n constructor() {\n super();\n // const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n }\n\n ngOnInit() {\n }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"TextInputComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../abstract-input.component","name":"AbstractInputComponent","line":9,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"aup-text-input","template":"<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n","styles":[":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]}]}],"members":{"valueModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":11,"character":12},"arguments":[{"delegateTo":"delegatingFormValueModel"}]}]}],"rows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"cols":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"TextInputComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../abstract-input.component","name":"AbstractInputComponent","line":9,"character":40},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"aup-text-input","template":"<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <textarea matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"delegatingFormValueModel.focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [rows]=\"rows\"\n [cols]=\"cols\"\n >\n </textarea>\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n\n","styles":[":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}textarea{overflow:auto}"]}]}],"members":{"valueModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":11,"character":12},"arguments":[{"delegateTo":"delegatingFormValueModel"}]}]}],"rows":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"cols":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, HostBinding, Input } from '@angular/core';
|
|
3
|
+
import { Command, TrackExternal } from '@coolon/pectin';
|
|
4
|
+
import _ from 'lodash';
|
|
5
|
+
import { DisposableComponent } from '../../../components';
|
|
6
|
+
let ActivityActionsComponent = class ActivityActionsComponent extends DisposableComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.align = 'start';
|
|
10
|
+
}
|
|
11
|
+
get alignEnd() {
|
|
12
|
+
return this.align === 'end';
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
}
|
|
16
|
+
hasConfirmText() {
|
|
17
|
+
return !_.isEmpty(this.confirmText);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
Input(),
|
|
22
|
+
TrackExternal(),
|
|
23
|
+
__metadata("design:type", Command)
|
|
24
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Input(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ActivityActionsComponent.prototype, "confirmText", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Input(),
|
|
31
|
+
TrackExternal(),
|
|
32
|
+
__metadata("design:type", Command)
|
|
33
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Input(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ActivityActionsComponent.prototype, "align", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
HostBinding('class.align-end'),
|
|
40
|
+
__metadata("design:type", Boolean),
|
|
41
|
+
__metadata("design:paramtypes", [])
|
|
42
|
+
], ActivityActionsComponent.prototype, "alignEnd", null);
|
|
43
|
+
ActivityActionsComponent = __decorate([
|
|
44
|
+
Component({
|
|
45
|
+
selector: 'aup-activity-actions',
|
|
46
|
+
template: "<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <mat-icon>clear</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <mat-icon>done</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n",
|
|
47
|
+
styles: [":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}"]
|
|
48
|
+
})
|
|
49
|
+
], ActivityActionsComponent);
|
|
50
|
+
export { ActivityActionsComponent };
|
|
51
|
+
//# sourceMappingURL=activity-actions.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-actions.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-actions/activity-actions.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO1D,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,mBAAmB;IAAjE;;QAcE,UAAK,GAAoB,OAAO,CAAC;IAcnC,CAAC;IAXC,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;IAC9B,CAAC;IAED,QAAQ;IACR,CAAC;IAED,cAAc;QACZ,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;CAEF,CAAA;AAxBC;IAFC,KAAK,EAAE;IACP,aAAa,EAAE;8BACA,OAAO;gEAAM;AAG7B;IADC,KAAK,EAAE;;6DACY;AAIpB;IAFC,KAAK,EAAE;IACP,aAAa,EAAE;8BACD,OAAO;+DAAM;AAG5B;IADC,KAAK,EAAE;;uDACyB;AAGjC;IADC,WAAW,CAAC,iBAAiB,CAAC;;;wDAG9B;AAnBU,wBAAwB;IALpC,SAAS,CAAC;QACT,QAAQ,EAAE,sBAAsB;QAChC,gdAAgD;;KAEjD,CAAC;GACW,wBAAwB,CA4BpC;SA5BY,wBAAwB","sourcesContent":["import { Component, HostBinding, Input, OnInit } from '@angular/core';\nimport { Command, TrackExternal } from '@coolon/pectin';\nimport _ from 'lodash';\nimport { DisposableComponent } from '../../../components';\n\n@Component({\n selector: 'aup-activity-actions',\n templateUrl: './activity-actions.component.html',\n styleUrls: ['./activity-actions.component.scss']\n})\nexport class ActivityActionsComponent extends DisposableComponent implements OnInit {\n\n @Input()\n @TrackExternal()\n confirmCommand: Command<any>;\n\n @Input()\n confirmText: string;\n\n @Input()\n @TrackExternal()\n cancelCommand: Command<any>;\n\n @Input()\n align: 'start' | 'end' = 'start';\n\n @HostBinding('class.align-end')\n get alignEnd(): boolean {\n return this.align === 'end';\n }\n\n ngOnInit() {\n }\n\n hasConfirmText() {\n return !_.isEmpty(this.confirmText);\n }\n\n}\n"]}
|
package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ActivityActionsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../components","name":"DisposableComponent","line":10,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"aup-activity-actions","template":"<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <mat-icon>clear</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <mat-icon>done</mat-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"hasConfirmText()\" mat-button [pectinCommand]=\"confirmCommand\">{{confirmText}}</button>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n","styles":[":host{display:-ms-grid;display:grid;grid-template-areas:\"cancel confirm content\";-ms-grid-columns:auto auto 1fr;grid-template-columns:auto auto 1fr;-ms-grid-rows:auto;grid-template-rows:auto;align-items:center;justify-content:end}:host.align-end{grid-template-areas:\"content cancel confirm\";-ms-grid-columns:1fr auto auto;grid-template-columns:1fr auto auto}.cancel{-ms-grid-row:1;-ms-grid-column:1;grid-area:cancel}:host.align-end>.cancel{-ms-grid-row:1;-ms-grid-column:2}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}.content{-ms-grid-row:1;-ms-grid-column:3;grid-area:content;text-align:left}:host.align-end>.content{-ms-grid-row:1;-ms-grid-column:1}"]}]}],"members":{"confirmCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":13,"character":3}}]}],"confirmText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"cancelCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":20,"character":3}}]}],"align":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"alignEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":26,"character":3},"arguments":["class.align-end"]}]}],"ngOnInit":[{"__symbolic":"method"}],"hasConfirmText":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-actions.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-actions/activity-actions.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-actions.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-actions/activity-actions.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
package/esm2015/lib/interaction/components/activity-container/activity-container.component.js
CHANGED
|
@@ -18,6 +18,8 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
18
18
|
}
|
|
19
19
|
ngAfterViewInit() {
|
|
20
20
|
const { chain, observe } = Dsl.disposeWith(this);
|
|
21
|
+
// using the component directly rather than (animationDone)=.. allows us
|
|
22
|
+
// to keep our callback private.
|
|
21
23
|
observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());
|
|
22
24
|
}
|
|
23
25
|
initialise(identifier, api) {
|
|
@@ -112,6 +114,12 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
112
114
|
// @Trace()
|
|
113
115
|
finishAndStartCleanup() {
|
|
114
116
|
if (!this._deferredCleanUp) {
|
|
117
|
+
// Important:
|
|
118
|
+
// Clear our tabs so the next activity triggers a tab change.
|
|
119
|
+
// Without this our animation done wasn't called when a single
|
|
120
|
+
// new activity followed a single tab activity (since we're tracking
|
|
121
|
+
// by activity index)
|
|
122
|
+
this.activityTabs = [];
|
|
115
123
|
const promise = this.interactionServiceApi.notifyFinished(this);
|
|
116
124
|
this._deferredCleanUp = promise
|
|
117
125
|
.finally(() => {
|
|
@@ -123,26 +131,31 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
123
131
|
launchActivity(activityRef) {
|
|
124
132
|
const cleanedTabs = this.activityTabs.filter(tab => !tab.isComplete());
|
|
125
133
|
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
126
|
-
this.
|
|
134
|
+
this.synchroniseSelectedTabIndex();
|
|
127
135
|
}
|
|
128
136
|
activityIndex(index, activityRef) {
|
|
129
137
|
return index;
|
|
130
138
|
}
|
|
131
139
|
;
|
|
132
|
-
// @Trace()
|
|
133
140
|
onAnimationFinished() {
|
|
134
|
-
this.
|
|
135
|
-
|
|
141
|
+
if (this.onAnimationFinishedJob) {
|
|
142
|
+
this.onAnimationFinishedJob();
|
|
143
|
+
this.onAnimationFinishedJob = undefined;
|
|
144
|
+
}
|
|
136
145
|
}
|
|
137
146
|
/**
|
|
138
|
-
* Synchronises the selected tab index.
|
|
147
|
+
* Synchronises the selected tab index.
|
|
139
148
|
*/
|
|
140
|
-
// @Trace()
|
|
141
149
|
synchroniseSelectedTabIndex() {
|
|
142
150
|
const previousIndex = this.tabs.selectedIndex;
|
|
143
151
|
const newIndex = this.getActiveActivityCount() - 1;
|
|
144
|
-
|
|
145
|
-
|
|
152
|
+
if (previousIndex !== newIndex) {
|
|
153
|
+
this.tabs.selectedIndex = newIndex;
|
|
154
|
+
this.onAnimationFinishedJob = () => {
|
|
155
|
+
this.getSelectedOutlet().component.onActivityReady();
|
|
156
|
+
this.activityTabs = this.activityTabs.filter(tab => !tab.isComplete());
|
|
157
|
+
};
|
|
158
|
+
}
|
|
146
159
|
}
|
|
147
160
|
getSelectedOutlet() {
|
|
148
161
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
@@ -179,7 +192,7 @@ __decorate([
|
|
|
179
192
|
ActivityContainerComponent = __decorate([
|
|
180
193
|
Component({
|
|
181
194
|
selector: 'aup-activity-container',
|
|
182
|
-
template: "<mat-tab-group #tabs no-tab-header
|
|
195
|
+
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
183
196
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
184
197
|
}),
|
|
185
198
|
__metadata("design:paramtypes", [])
|
package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-container.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,EAAU,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MA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AI,CAAC;YACnC,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;CACF,CAAA;AApLC;IADC,KAAK,EAAE;;iEACc;AAGtB;IADC,SAAS,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;8BAC9B,WAAW;wDAAC;AAGlB;IADC,YAAY,CAAC,uBAAuB,CAAC;8BACrB,SAAS;mEAAyC;AAoDnE;IADC,KAAK,EAAE;;;;yDAMP;AAlEU,0BAA0B;IALtC,SAAS,CAAC;QACT,QAAQ,EAAE,wBAAwB;QAClC,mVAAkD;;KAEnD,CAAC;;GACW,0BAA0B,CAuLtC;SAvLY,0BAA0B","sourcesContent":["import { AfterViewInit, Component, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';\nimport { MatTabGroup } from '@angular/material/tabs';\nimport { assert, Constructable, Disposable, Dsl, GarbageCollector, Trace, ValueModel } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport _ from 'lodash';\nimport { AbstractInteractionContext } from '../../abstract-interaction-context';\nimport { Activity } from '../../activity';\nimport { ActivityRef } from '../../activity-ref';\nimport { InteractionService } from '../../services/interaction.service';\nimport { ActivityOutletComponent } from './activity-outlet/activity-outlet.component';\n\n@Component({\n selector: 'aup-activity-container',\n templateUrl: './activity-container.component.html',\n styleUrls: ['./activity-container.component.scss']\n})\nexport class ActivityContainerComponent<D, R, E> extends AbstractInteractionContext implements OnInit, AfterViewInit {\n\n @Input()\n dynamicHeight = false;\n\n @ViewChild('tabs', { static: true })\n tabs: MatTabGroup;\n\n @ViewChildren(ActivityOutletComponent)\n activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;\n\n activityTabs: ActivityRef<any, any, any>[] = [];\n\n private _identifier: string;\n private _deferredCleanUp: Promise<any>;\n\n private interactionServiceApi: InteractionService.Api;\n\n private garbage = new GarbageCollector();\n private syncSelectedTabTimeout: any;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit(): void {\n const { chain, observe } = Dsl.disposeWith(this);\n observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());\n }\n\n initialise(identifier: string, api: InteractionService.Api) {\n assert.isFalsey(this.isInitialised());\n assert.notNil(identifier);\n assert.notNil(api);\n this._identifier = identifier;\n this.interactionServiceApi = api;\n }\n\n get identifier() {\n return this._identifier;\n }\n\n isInitialised() {\n return !!this.identifier;\n }\n\n /**\n * Returns true if an activity is currently running.\n */\n isActive(): boolean {\n return this.getActiveActivityCount() > 0;\n }\n\n registerDisposable<T extends Disposable>(disposable: T): T {\n return this.garbage.registerDisposable(disposable);\n }\n\n @Trace()\n dispose(): void {\n // TODO: think about auto cancelling any outstanding activity on dispose.\n // See NavigationState.Navigating for a use-case.\n assert.isFalsey(this.isActive());\n this.garbage.dispose();\n }\n\n getActiveActivityRef(): ActivityRef<any, any, any> {\n if (!this.isActive()) {\n lang.illegalState('no activity in progress');\n }\n return _.findLast(this.activityTabs, tab => !tab.isComplete());\n }\n\n /**\n * Cancels the current activity and returns true the context is no longer active, false if\n * there is still another activity running.\n */\n // @Trace()\n async cancelActiveActivity(): Promise<boolean> {\n const activity = this.getActiveActivityRef();\n activity.cancel();\n if (this.isCleaningUp()) {\n return this.waitForInteractionContextCleanupToFinish();\n } else {\n return !this.isActive();\n }\n }\n\n // TODO: this handling of multiple nested activities is only used by the activity component and is not a general case.\n // @Trace()\n protected createAndLaunchActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data: D1, disableClose: boolean): Promise<R1> {\n assert.isTruthy(this.isInitialised()); // make sure we've been initialised\n const activityRef = new ActivityRef<D1, R1, E1>(activityType, data, () => {\n const activeActivityCount = this.getActiveActivityCount() > 0;\n if (activeActivityCount) {\n this.triggerTabSynchronisation();\n } else {\n this.finishAndStartCleanup();\n }\n });\n this.launchActivity(activityRef);\n // if this is the first activity let the interaction service know.\n if (this.activityTabs.length === 1) {\n // console.log('Now active!!!');\n this.interactionServiceApi.notifyActive(this);\n }\n return activityRef.activityResult;\n }\n\n private getActiveActivityCount(): number {\n return this.activityTabs.filter(ref => !ref.isComplete()).length;\n }\n\n /**\n * Checks if this interaction context has finished an is in the process of waiting\n * for all the infrastructure (including route updates) to be completed.\n */\n isCleaningUp(): boolean {\n return !!this._deferredCleanUp;\n }\n\n async waitForInteractionContextCleanupToFinish(): Promise<any> {\n return this._deferredCleanUp ?\n this._deferredCleanUp :\n true;\n }\n\n // @Trace()\n private finishAndStartCleanup(): void {\n if (!this._deferredCleanUp) {\n const promise = this.interactionServiceApi.notifyFinished(this);\n this._deferredCleanUp = promise\n .finally(() => {\n this._deferredCleanUp = null;\n });\n }\n }\n\n// @Trace()\n launchActivity<D1, R1, E1>(activityRef: ActivityRef<D1, R1, E1>) {\n const cleanedTabs = this.activityTabs.filter(tab => !tab.isComplete());\n this.activityTabs = cleanedTabs.concat(activityRef);\n this.tabs.selectedIndex = this.activityTabs.length;\n }\n\n activityIndex(index: number, activityRef: ActivityRef<any, any, any>) {\n return index;\n };\n\n\n // @Trace()\n private onAnimationFinished() {\n this.getSelectedOutlet().component.onActivityReady();\n this.activityTabs = this.activityTabs.filter(tab => !tab.isComplete());\n }\n\n /**\n * Synchronises the selected tab index. Returns true if there was no change to the selected index.\n */\n // @Trace()\n private synchroniseSelectedTabIndex(): boolean {\n const previousIndex = this.tabs.selectedIndex;\n const newIndex = this.getActiveActivityCount() - 1;\n this.tabs.selectedIndex = newIndex;\n return previousIndex === newIndex;\n }\n\n private getSelectedOutlet() {\n return this.activityOutlets.toArray()[this.tabs.selectedIndex];\n }\n\n // @Trace()\n private triggerTabSynchronisation() {\n if (this.syncSelectedTabTimeout) {\n clearTimeout(this.syncSelectedTabTimeout);\n }\n this.syncSelectedTabTimeout = setTimeout(() => {\n this.syncSelectedTabTimeout = null;\n this.synchroniseSelectedTabIndex();\n }, 75);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"activity-container.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-container.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAiB,SAAS,EAAE,KAAK,EAAU,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAA6B,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAOtF,IAAa,0BAA0B,GAAvC,MAAa,0BAAoC,SAAQ,0BAA0B;IAsBjF;QACE,KAAK,EAAE,CAAC;QApBV,kBAAa,GAAG,KAAK,CAAC;QAQtB,iBAAY,GAAiC,EAAE,CAAC;QAOxC,YAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAMzC,CAAC;IAED,QAAQ;IACR,CAAC;IAED,eAAe;QACb,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjD,wEAAwE;QACxE,gCAAgC;QAChC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,UAAU,CAAC,UAAkB,EAAE,GAA2B;QACxD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,UA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AAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;YACzE,CAAC,CAAA;SACF;IACH,CAAC;IAEO,iBAAiB;QACvB,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACjE,CAAC;IAED,WAAW;IACH,yBAAyB;QAC/B,IAAI,IAAI,CAAC,sBAAsB,EAAE;YAC/B,YAAY,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;SAC3C;QACD,IAAI,CAAC,sBAAsB,GAAG,UAAU,CAAC,GAAG,EAAE;YAC5C,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;YACnC,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;CACF,CAAA;AAjMC;IADC,KAAK,EAAE;;iEACc;AAGtB;IADC,SAAS,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;8BAC9B,WAAW;wDAAC;AAGlB;IADC,YAAY,CAAC,uBAAuB,CAAC;8BACrB,SAAS;mEAAyC;AAuDnE;IADC,KAAK,EAAE;;;;yDAMP;AArEU,0BAA0B;IALtC,SAAS,CAAC;QACT,QAAQ,EAAE,wBAAwB;QAClC,mXAAkD;;KAEnD,CAAC;;GACW,0BAA0B,CAoMtC;SApMY,0BAA0B","sourcesContent":["import { AfterViewInit, Component, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';\nimport { MatTabGroup } from '@angular/material/tabs';\nimport { assert, Constructable, Disposable, Dsl, GarbageCollector, Trace } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport _ from 'lodash';\nimport { AbstractInteractionContext } from '../../abstract-interaction-context';\nimport { Activity } from '../../activity';\nimport { ActivityRef } from '../../activity-ref';\nimport { InteractionService } from '../../services/interaction.service';\nimport { ActivityOutletComponent } from './activity-outlet/activity-outlet.component';\n\n@Component({\n selector: 'aup-activity-container',\n templateUrl: './activity-container.component.html',\n styleUrls: ['./activity-container.component.scss']\n})\nexport class ActivityContainerComponent<D, R, E> extends AbstractInteractionContext implements OnInit, AfterViewInit {\n\n @Input()\n dynamicHeight = false;\n\n @ViewChild('tabs', { static: true })\n tabs: MatTabGroup;\n\n @ViewChildren(ActivityOutletComponent)\n activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;\n\n activityTabs: ActivityRef<any, any, any>[] = [];\n\n private _identifier: string;\n private _deferredCleanUp: Promise<any>;\n\n private interactionServiceApi: InteractionService.Api;\n\n private garbage = new GarbageCollector();\n private syncSelectedTabTimeout: any;\n private onAnimationFinishedJob: () => void;\n\n constructor() {\n super();\n }\n\n ngOnInit() {\n }\n\n ngAfterViewInit(): void {\n const { chain, observe } = Dsl.disposeWith(this);\n // using the component directly rather than (animationDone)=.. allows us\n // to keep our callback private.\n observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());\n }\n\n initialise(identifier: string, api: InteractionService.Api) {\n assert.isFalsey(this.isInitialised());\n assert.notNil(identifier);\n assert.notNil(api);\n this._identifier = identifier;\n this.interactionServiceApi = api;\n }\n\n get identifier() {\n return this._identifier;\n }\n\n isInitialised() {\n return !!this.identifier;\n }\n\n /**\n * Returns true if an activity is currently running.\n */\n isActive(): boolean {\n return this.getActiveActivityCount() > 0;\n }\n\n registerDisposable<T extends Disposable>(disposable: T): T {\n return this.garbage.registerDisposable(disposable);\n }\n\n @Trace()\n dispose(): void {\n // TODO: think about auto cancelling any outstanding activity on dispose.\n // See NavigationState.Navigating for a use-case.\n assert.isFalsey(this.isActive());\n this.garbage.dispose();\n }\n\n getActiveActivityRef(): ActivityRef<any, any, any> {\n if (!this.isActive()) {\n lang.illegalState('no activity in progress');\n }\n return _.findLast(this.activityTabs, tab => !tab.isComplete());\n }\n\n /**\n * Cancels the current activity and returns true the context is no longer active, false if\n * there is still another activity running.\n */\n // @Trace()\n async cancelActiveActivity(): Promise<boolean> {\n const activity = this.getActiveActivityRef();\n activity.cancel();\n if (this.isCleaningUp()) {\n return this.waitForInteractionContextCleanupToFinish();\n } else {\n return !this.isActive();\n }\n }\n\n // TODO: this handling of multiple nested activities is only used by the activity component and is not a general case.\n // @Trace()\n protected createAndLaunchActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data: D1, disableClose: boolean): Promise<R1> {\n assert.isTruthy(this.isInitialised()); // make sure we've been initialised\n const activityRef = new ActivityRef<D1, R1, E1>(activityType, data, () => {\n const activeActivityCount = this.getActiveActivityCount() > 0;\n if (activeActivityCount) {\n this.triggerTabSynchronisation();\n } else {\n this.finishAndStartCleanup();\n }\n });\n this.launchActivity(activityRef);\n // if this is the first activity let the interaction service know.\n if (this.activityTabs.length === 1) {\n // console.log('Now active!!!');\n this.interactionServiceApi.notifyActive(this);\n }\n return activityRef.activityResult;\n }\n\n private getActiveActivityCount(): number {\n return this.activityTabs.filter(ref => !ref.isComplete()).length;\n }\n\n /**\n * Checks if this interaction context has finished an is in the process of waiting\n * for all the infrastructure (including route updates) to be completed.\n */\n isCleaningUp(): boolean {\n return !!this._deferredCleanUp;\n }\n\n async waitForInteractionContextCleanupToFinish(): Promise<any> {\n return this._deferredCleanUp ?\n this._deferredCleanUp :\n true;\n }\n\n // @Trace()\n private finishAndStartCleanup(): void {\n if (!this._deferredCleanUp) {\n // Important:\n // Clear our tabs so the next activity triggers a tab change.\n // Without this our animation done wasn't called when a single\n // new activity followed a single tab activity (since we're tracking\n // by activity index)\n this.activityTabs = [];\n const promise = this.interactionServiceApi.notifyFinished(this);\n this._deferredCleanUp = promise\n .finally(() => {\n this._deferredCleanUp = null;\n });\n }\n }\n\n// @Trace()\n launchActivity<D1, R1, E1>(activityRef: ActivityRef<D1, R1, E1>) {\n const cleanedTabs = this.activityTabs.filter(tab => !tab.isComplete());\n this.activityTabs = cleanedTabs.concat(activityRef);\n this.synchroniseSelectedTabIndex();\n }\n\n activityIndex(index: number, activityRef: ActivityRef<any, any, any>) {\n return index;\n };\n\n private onAnimationFinished() {\n if (this.onAnimationFinishedJob) {\n this.onAnimationFinishedJob();\n this.onAnimationFinishedJob = undefined;\n }\n }\n\n /**\n * Synchronises the selected tab index.\n */\n private synchroniseSelectedTabIndex(): void {\n const previousIndex = this.tabs.selectedIndex;\n const newIndex = this.getActiveActivityCount() - 1;\n if (previousIndex !== newIndex) {\n this.tabs.selectedIndex = newIndex;\n this.onAnimationFinishedJob = () => {\n this.getSelectedOutlet().component.onActivityReady();\n this.activityTabs = this.activityTabs.filter(tab => !tab.isComplete());\n }\n }\n }\n\n private getSelectedOutlet() {\n return this.activityOutlets.toArray()[this.tabs.selectedIndex];\n }\n\n // @Trace()\n private triggerTabSynchronisation() {\n if (this.syncSelectedTabTimeout) {\n clearTimeout(this.syncSelectedTabTimeout);\n }\n this.syncSelectedTabTimeout = setTimeout(() => {\n this.syncSelectedTabTimeout = null;\n this.synchroniseSelectedTabIndex();\n }, 75);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"ActivityContainerComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../abstract-interaction-context","name":"AbstractInteractionContext","line":16,"character":57},"arity":3,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"aup-activity-container","template":"<mat-tab-group #tabs no-tab-header
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"ActivityContainerComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../abstract-interaction-context","name":"AbstractInteractionContext","line":16,"character":57},"arity":3,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"selector":"aup-activity-container","template":"<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n","styles":[":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]}]}],"members":{"dynamicHeight":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"tabs":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":21,"character":3},"arguments":["tabs",{"static":true}]}]}],"activityOutlets":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":24,"character":3},"arguments":[{"__symbolic":"reference","module":"./activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":24,"character":16}]}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"initialise":[{"__symbolic":"method"}],"isInitialised":[{"__symbolic":"method"}],"isActive":[{"__symbolic":"method"}],"registerDisposable":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"Trace","line":79,"character":3}}]}],"getActiveActivityRef":[{"__symbolic":"method"}],"cancelActiveActivity":[{"__symbolic":"method"}],"createAndLaunchActivity":[{"__symbolic":"method"}],"getActiveActivityCount":[{"__symbolic":"method"}],"isCleaningUp":[{"__symbolic":"method"}],"waitForInteractionContextCleanupToFinish":[{"__symbolic":"method"}],"finishAndStartCleanup":[{"__symbolic":"method"}],"launchActivity":[{"__symbolic":"method"}],"activityIndex":[{"__symbolic":"method"}],"onAnimationFinished":[{"__symbolic":"method"}],"synchroniseSelectedTabIndex":[{"__symbolic":"method"}],"getSelectedOutlet":[{"__symbolic":"method"}],"triggerTabSynchronisation":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-outlet.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAY,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD;;;GAGG;AAMH,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAsBlC,YACU,wBAAkD,EAClD,gBAAkC,EAClC,QAAkB;QAFlB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,aAAQ,GAAR,QAAQ,CAAU;IAE5B,CAAC;IAjBD,IAAI,WAAW,CAAC,WAAiC;QAC/C,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,EAAE;YACtD,IAAI,CAAC,YAAY,CAAC,qDAAqD,CAAC,CAAA;SACzE;QACD,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACjC,CAAC;IAAA,CAAC;IAEF,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IASD,QAAQ;IACR,CAAC;IAED,YAAY,CAAC,WAAiC;QAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;YAC/B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,CAAC,YAAY,EAAE;aAC/D;YACD,MAAM,EAAE,IAAI,CAAC,QAAQ;SACtB,CAAC,CAAC;QACH,MAAM,gBAAgB,GAAG,IAAI,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAC1G,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;QAC9B,0EAA0E;QAC1E,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;QACjG,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAC5G,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;IAC5C,CAAC;CAEF,CAAA;;YA3BqC,wBAAwB;YAChC,gBAAgB;YACxB,QAAQ;;AApB5B;IADC,KAAK,EAAE;;yEACqC;AAK7C;IADC,KAAK,EAAE;8BACqB,WAAW;qCAAX,WAAW;0DAMvC;AAhBU,uBAAuB;IALnC,SAAS,CAAC;QACT,QAAQ,EAAE,qBAAqB;QAC/B,QAAQ,EAAE,EAAE;;KAEb,CAAC;qCAwBoC,wBAAwB;QAChC,gBAAgB;QACxB,QAAQ;GAzBjB,uBAAuB,CAkDnC;SAlDY,uBAAuB","sourcesContent":["import {\n Component,\n ComponentFactoryResolver,\n ComponentRef,\n Injector,\n Input,\n OnInit,\n ViewContainerRef\n} from '@angular/core';\nimport { assert } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport { Activity, ACTIVITY_DATA } from '../../../activity';\nimport { ActivityRef } from '../../../activity-ref';\nimport { InteractionContext } from '../../../interaction-context';\n\n/**\n * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an\n * external service.\n */\n@Component({\n selector: 'aup-activity-outlet',\n template: '',\n styleUrls: ['./activity-outlet.component.scss']\n})\nexport class ActivityOutletComponent<D, R, E> implements OnInit {\n\n private activityComponentRef: ComponentRef<Activity<D, R, E>>;\n\n @Input()\n nestedInteractionContext: InteractionContext;\n\n private _activityRef: ActivityRef<D, R, E>;\n\n @Input()\n set activityRef(activityRef: ActivityRef<D, R, E>) {\n if (this.activityRef && !this.activityRef.isComplete()) {\n lang.illegalState(\"changing activity before previous one has completed\")\n }\n this._activityRef = activityRef;\n this.loadActivity(activityRef);\n };\n\n get activityRef(): ActivityRef<D, R, E> {\n return this._activityRef;\n }\n\n constructor(\n private componentFactoryResolver: ComponentFactoryResolver,\n private viewContainerRef: ViewContainerRef,\n private injector: Injector\n ) {\n }\n\n ngOnInit() {\n }\n\n loadActivity(activityRef: ActivityRef<D, R, E>) {\n const injector = Injector.create({\n providers: [\n { provide: ACTIVITY_DATA, useValue: activityRef.activityData }\n ],\n parent: this.injector\n });\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);\n this.viewContainerRef.clear();\n // console.log(`creating component -> ${activityRef.activityClass.name}`);\n this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);\n this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);\n }\n\n get component(): Activity<D, R, E> {\n return this.activityComponentRef.instance;\n }\n\n}\n"]}
|
|
1
|
+
{"version":3,"file":"activity-outlet.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAY,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD;;;GAGG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AED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC;IAC5C,CAAC;CAEF,CAAA;;YA3BqC,wBAAwB;YAChC,gBAAgB;YACxB,QAAQ;;AApB5B;IADC,KAAK,EAAE;;yEACqC;AAK7C;IADC,KAAK,EAAE;8BACqB,WAAW;qCAAX,WAAW;0DAMvC;AAhBU,uBAAuB;IALnC,SAAS,CAAC;QACT,QAAQ,EAAE,qBAAqB;QAC/B,QAAQ,EAAE,EAAE;;KAEb,CAAC;qCAwBoC,wBAAwB;QAChC,gBAAgB;QACxB,QAAQ;GAzBjB,uBAAuB,CAkDnC;SAlDY,uBAAuB","sourcesContent":["import {\n Component,\n ComponentFactoryResolver,\n ComponentRef,\n Injector,\n Input,\n OnInit,\n ViewContainerRef\n} from '@angular/core';\nimport { assert, Trace } from '@coolon/pectin';\nimport { lang } from '@coolon/typescript-utilities';\nimport { Activity, ACTIVITY_DATA } from '../../../activity';\nimport { ActivityRef } from '../../../activity-ref';\nimport { InteractionContext } from '../../../interaction-context';\n\n/**\n * ActivityOutletComponent creates and displays an activity and delegates the interaction context functionality to an\n * external service.\n */\n@Component({\n selector: 'aup-activity-outlet',\n template: '',\n styleUrls: ['./activity-outlet.component.scss']\n})\nexport class ActivityOutletComponent<D, R, E> implements OnInit {\n\n private activityComponentRef: ComponentRef<Activity<D, R, E>>;\n\n @Input()\n nestedInteractionContext: InteractionContext;\n\n private _activityRef: ActivityRef<D, R, E>;\n\n @Input()\n set activityRef(activityRef: ActivityRef<D, R, E>) {\n if (this.activityRef && !this.activityRef.isComplete()) {\n lang.illegalState(\"changing activity before previous one has completed\")\n }\n this._activityRef = activityRef;\n this.loadActivity(activityRef);\n };\n\n get activityRef(): ActivityRef<D, R, E> {\n return this._activityRef;\n }\n\n constructor(\n private componentFactoryResolver: ComponentFactoryResolver,\n private viewContainerRef: ViewContainerRef,\n private injector: Injector\n ) {\n }\n\n ngOnInit() {\n }\n\n loadActivity(activityRef: ActivityRef<D, R, E>) {\n const injector = Injector.create({\n providers: [\n { provide: ACTIVITY_DATA, useValue: activityRef.activityData }\n ],\n parent: this.injector\n });\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(activityRef.activityClass);\n this.viewContainerRef.clear();\n // console.log(`creating component -> ${activityRef.activityClass.name}`);\n this.activityComponentRef = this.viewContainerRef.createComponent(componentFactory, 0, injector);\n this.activityRef.notifyActivityCreated(this.activityComponentRef.instance, this.nestedInteractionContext);\n }\n\n get component(): Activity<D, R, E> {\n return this.activityComponentRef.instance;\n }\n\n}\n"]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Component, HostBinding, Input, ViewChild } from '@angular/core';
|
|
3
|
+
import { Command, TrackExternal } from '@coolon/pectin';
|
|
4
|
+
import { InPlaceInteractionContextComponent } from '../..';
|
|
5
|
+
import { DisposableComponent } from '../../../components';
|
|
6
|
+
let AddItemInteractionContextComponent = class AddItemInteractionContextComponent extends DisposableComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.tabindex = 0;
|
|
10
|
+
this.clickCommand = Command.create((context) => {
|
|
11
|
+
if (this.activityClass) {
|
|
12
|
+
this.startActivity(this.activityClass, this.activityData).catch(e => {
|
|
13
|
+
// don't care.
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.addCommand.withContext(context).execute();
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
get active() {
|
|
22
|
+
return this.interactionContext ? this.interactionContext.isActive() : false;
|
|
23
|
+
}
|
|
24
|
+
startActivity(activityType, data) {
|
|
25
|
+
return this.interactionContext.startActivity(activityType, data);
|
|
26
|
+
}
|
|
27
|
+
ngOnInit() {
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
Input(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AddItemInteractionContextComponent.prototype, "label", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Input(),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], AddItemInteractionContextComponent.prototype, "activityClass", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Input(),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], AddItemInteractionContextComponent.prototype, "activityData", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Input(),
|
|
44
|
+
TrackExternal(),
|
|
45
|
+
__metadata("design:type", Command)
|
|
46
|
+
], AddItemInteractionContextComponent.prototype, "addCommand", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
ViewChild(InPlaceInteractionContextComponent),
|
|
49
|
+
__metadata("design:type", InPlaceInteractionContextComponent)
|
|
50
|
+
], AddItemInteractionContextComponent.prototype, "interactionContext", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
HostBinding('class.interaction-active'),
|
|
53
|
+
__metadata("design:type", Boolean),
|
|
54
|
+
__metadata("design:paramtypes", [])
|
|
55
|
+
], AddItemInteractionContextComponent.prototype, "active", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
HostBinding('tabindex'),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], AddItemInteractionContextComponent.prototype, "tabindex", void 0);
|
|
60
|
+
AddItemInteractionContextComponent = __decorate([
|
|
61
|
+
Component({
|
|
62
|
+
selector: 'aup-add-item-interaction-context',
|
|
63
|
+
template: "<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><mat-icon>add</mat-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n",
|
|
64
|
+
styles: [":host{--def-link-color:var(--link-color, currentColor);--def-link-backgound:var(--link-background, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover{--link-background:rgba(0,0,0,0.1)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-backgound);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:paramtypes", [])
|
|
67
|
+
], AddItemInteractionContextComponent);
|
|
68
|
+
export { AddItemInteractionContextComponent };
|
|
69
|
+
//# sourceMappingURL=add-item-interaction-context.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-item-interaction-context.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAU,SAAS,EAAqB,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,OAAO,EAAiB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAY,kCAAkC,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO1D,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,mBAAmB;IA4BzE;QACE,KAAK,EAAE,CAAC;QAHD,aAAQ,GAAG,CAAC,CAAC;QAKpB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;oBACpE,eAAe;gBACf,CAAC,CAAC,CAAC;aACJ;iBAAM;gBACL,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;aAChD;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAnBD,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9E,CAAC;IAmBD,aAAa,CAAU,YAA8C,EAAE,IAAQ;QAC7E,OAAO,IAAI,CAAC,kBAAkB,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED,QAAQ;IACR,CAAC;CAGF,CAAA;AA/CC;IADC,KAAK,EAAE;;iEACM;AAGd;IADC,KAAK,EAAE;;yEAC8C;AAGtD;IADC,KAAK,EAAE;;wEACU;AAIlB;IAFC,KAAK,EAAE;IACP,aAAa,EAAE;8BACJ,OAAO;sEAAM;AAGzB;IADC,SAAS,CAAC,kCAAkC,CAAC;8BAChB,kCAAkC;8EAAgB;AAKhF;IADC,WAAW,CAAC,0BAA0B,CAAC;;;gEAGvC;AAGD;IADC,WAAW,CAAC,UAAU,CAAC;;oEACF;AA1BX,kCAAkC;IAL9C,SAAS,CAAC;QACT,QAAQ,EAAE,kCAAkC;QAC5C,uPAA4D;;KAE7D,CAAC;;GACW,kCAAkC,CAkD9C;SAlDY,kCAAkC","sourcesContent":["import { Component, HostBinding, Input, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { Command, Constructable, TrackExternal } from '@coolon/pectin';\nimport { Activity, InPlaceInteractionContextComponent } from '../..';\nimport { DisposableComponent } from '../../../components';\n\n@Component({\n selector: 'aup-add-item-interaction-context',\n templateUrl: './add-item-interaction-context.component.html',\n styleUrls: ['./add-item-interaction-context.component.scss']\n})\nexport class AddItemInteractionContextComponent extends DisposableComponent implements OnInit {\n\n @Input()\n label: string;\n\n @Input()\n activityClass: Constructable<Activity<any, any, any>>;\n\n @Input()\n activityData: any;\n\n @Input()\n @TrackExternal()\n addCommand: Command<any>;\n\n @ViewChild(InPlaceInteractionContextComponent)\n protected interactionContext: InPlaceInteractionContextComponent<any, any, any>;\n\n readonly clickCommand: Command<void>;\n\n @HostBinding('class.interaction-active')\n public get active(): boolean {\n return this.interactionContext ? this.interactionContext.isActive() : false;\n }\n\n @HostBinding('tabindex')\n readonly tabindex = 0;\n\n constructor() {\n super();\n\n this.clickCommand = Command.create((context) => {\n if (this.activityClass) {\n this.startActivity(this.activityClass, this.activityData).catch(e => {\n // don't care.\n });\n } else {\n this.addCommand.withContext(context).execute();\n }\n });\n }\n\n startActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R> {\n return this.interactionContext.startActivity(activityType, data);\n }\n\n ngOnInit() {\n }\n\n\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"AddItemInteractionContextComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"../../../components","name":"DisposableComponent","line":10,"character":56},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"aup-add-item-interaction-context","template":"<aup-in-place-interaction-context #interactionContext [animateFirstActivity]=\"false\">\n <a part=\"link\" class=\"link\" [pectinCommand]=\"clickCommand\"><mat-icon>add</mat-icon> {{label}}</a>\n</aup-in-place-interaction-context>\n","styles":[":host{--def-link-color:var(--link-color, currentColor);--def-link-backgound:var(--link-background, rgba(0, 0, 0, 0.05));--def-link-border-radius:var(--link-border-radius, 4px);--def-link-padding:var(--link-padding, calc(var(--aup-default-padding) / 2));display:flex;flex-direction:column;border-radius:var(--def-link-border-radius);box-sizing:border-box;outline:0}:host:hover{--link-background:rgba(0,0,0,0.1)}aup-in-place-interaction-context{border-radius:var(--def-link-border-radius)}a.link{display:flex;flex-direction:row;align-items:center;border-radius:var(--def-link-border-radius);color:var(--def-link-color);background:var(--def-link-backgound);padding:var(--def-link-padding);cursor:pointer;text-decoration:none}a.link mat-icon{margin-right:8px}"]}]}],"members":{"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"activityClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"activityData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"addCommand":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@coolon/pectin","name":"TrackExternal","line":22,"character":3}}]}],"interactionContext":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":25,"character":3},"arguments":[{"__symbolic":"reference","module":"../..","name":"InPlaceInteractionContextComponent","line":25,"character":13}]}]}],"active":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":30,"character":3},"arguments":["class.interaction-active"]}]}],"tabindex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":35,"character":3},"arguments":["tabindex"]}]}],"__ctor__":[{"__symbolic":"constructor"}],"startActivity":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}}}}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-item-interaction-context.component.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-item-interaction-context.component.scss.shim.ngstyle.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.scss.shim.ngstyle.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\ni0.ComponentFactory;\n"]}
|