@coolon/angular-ui-powerups 1.9.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 +12 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +32 -16
- 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.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +2 -2
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- 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/interaction.module.js +4 -1
- 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/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +2 -2
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- 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/interaction.module.js +4 -1
- package/esm5/lib/interaction/interaction.module.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +28 -13
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +29 -13
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,2EAA2E,CAAC;AACpH,OAAO,EAAE,kCAAkC,EAAE,MAAM,kFAAkF,CAAC;AACtI,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,kCAAkC,EAAE,MAAM,iFAAiF,CAAC;AACrI,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"interaction.module.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0DAA0D,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,8DAA8D,CAAC;AAC1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,2EAA2E,CAAC;AACpH,OAAO,EAAE,kCAAkC,EAAE,MAAM,kFAAkF,CAAC;AACtI,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,gEAAgE,CAAC;AAC7G,OAAO,EAAE,kCAAkC,EAAE,MAAM,iFAAiF,CAAC;AACrI,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AA6CpE;IAAA;IACA,CAAC;IADY,iBAAiB;QA3C7B,QAAQ,CAAC;YACR,OAAO,EAAE;gBACP,YAAY;gBACZ,eAAe;gBACf,eAAe;gBACf,aAAa;gBACb,YAAY;gBACZ,YAAY;gBACZ,aAAa;gBACb,gBAAgB;gBAChB,UAAU;gBACV,UAAU;aACX;YACD,YAAY,EAAE;gBACZ,0BAA0B;gBAC1B,2BAA2B;gBAC3B,0BAA0B;gBAC1B,oBAAoB;gBACpB,uBAAuB;gBACvB,kCAAkC;gBAClC,kCAAkC;gBAClC,wBAAwB;aACzB;YACD,OAAO,EAAE;gBACP,0BAA0B;gBAC1B,uBAAuB;gBACvB,kCAAkC;gBAClC,kCAAkC;gBAClC,wBAAwB;aACzB;YACD,eAAe,EAAE;gBACf,0BAA0B;gBAC1B,2BAA2B;gBAC3B,0BAA0B;gBAC1B,oBAAoB;aACrB;YACD,SAAS,EAAE;gBACT,kBAAkB;aAInB;SACF,CAAC;OACW,iBAAiB,CAC7B;IAAD,wBAAC;CAAA,AADD,IACC;SADY,iBAAiB","sourcesContent":["import { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FlexModule, GridModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MAT_TABS_CONFIG } from '@angular/material/tabs';\nimport { RouterModule } from '@angular/router';\nimport { DirectivesModule } from '../directives/directives.module';\nimport { PlaceModule } from '../place/place.module';\nimport { ActivityActionsComponent } from './components/activity-actions/activity-actions.component';\nimport { ActivityContainerComponent } from './components/activity-container/activity-container.component';\nimport { ActivityOutletComponent } from './components/activity-container/activity-outlet/activity-outlet.component';\nimport { AddItemInteractionContextComponent } from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport { AlertDialogComponent } from './components/alert-dialog/alert-dialog.component';\nimport { ConfirmThenDialogComponent } from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport { ConfirmationDialogComponent } from './components/confirmation-dialog/confirmation-dialog.component';\nimport { InPlaceInteractionContextComponent } from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport { InteractionService } from './services/interaction.service';\n\n@NgModule({\n imports: [\n CommonModule,\n MatButtonModule,\n MatDialogModule,\n MatTabsModule,\n PortalModule,\n RouterModule,\n MatIconModule,\n DirectivesModule,\n FlexModule,\n GridModule\n ],\n declarations: [\n ActivityContainerComponent,\n ConfirmationDialogComponent,\n ConfirmThenDialogComponent,\n AlertDialogComponent,\n ActivityOutletComponent,\n InPlaceInteractionContextComponent,\n AddItemInteractionContextComponent,\n ActivityActionsComponent\n ],\n exports: [\n ActivityContainerComponent,\n ActivityOutletComponent,\n InPlaceInteractionContextComponent,\n AddItemInteractionContextComponent,\n ActivityActionsComponent\n ],\n entryComponents: [\n ActivityContainerComponent,\n ConfirmationDialogComponent,\n ConfirmThenDialogComponent,\n AlertDialogComponent\n ],\n providers: [\n InteractionService,\n // {\n // provide: MAT_TABS_CONFIG, useValue: { animationDuration: \"2s\" }\n // }\n ]\n})\nexport class InteractionModule {\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from '@angular/material/icon';\nimport * as i10 from '../directives/command.directive';\nimport * as i11 from '../directives/focus-binding.directive';\nimport * as i12 from './components/activity-container/activity-container.component';\nimport * as i13 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i14 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i15 from './components/alert-dialog/alert-dialog.component';\nimport * as i16 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i17 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i18 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i19 from './components/activity-actions/activity-actions.component';\nimport * as i20 from '../directives/directives.module';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (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.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.MatIcon = (<any>(null as any));\nvar _decl0_35:i10.CommandDirective<any> = (<any>(null as any));\nvar _decl0_36:i11.FocusBindingDirective = (<any>(null as any));\nvar _decl0_37:i12.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_38:i13.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_39:i14.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_40:i15.AlertDialogComponent = (<any>(null as any));\nvar _decl0_41:i16.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_42:i17.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_43:i18.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_44:i19.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_45:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_46:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_47:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_48:i2.JsonPipe = (<any>(null as any));\nvar _decl0_49:i2.SlicePipe = (<any>(null as any));\nvar _decl0_50:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_51:i2.PercentPipe = (<any>(null as any));\nvar _decl0_52:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_53:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_54:i2.DatePipe = (<any>(null as any));\nvar _decl0_55:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_56:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_57:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_58:i2.CommonModule = (<any>(null as any));\nvar _decl0_59:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_60:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_61:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_62:i7.PortalModule = (<any>(null as any));\nvar _decl0_63:i8.RouterModule = (<any>(null as any));\nvar _decl0_64:i9.MatIconModule = (<any>(null as any));\nvar _decl0_65:i20.DirectivesModule = (<any>(null as any));\nvar _decl0_66:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_67:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_37;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_37.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_37.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_37.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_37.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_38.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_38.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_38.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_38.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_38.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_38.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_38.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_38.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_38.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_39.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_39.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_39.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_39.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_39.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_39.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_39.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_39.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_39.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_40.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_40.alert.title();\n currVal_1;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_40.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_40.alert.content();\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = (_decl0_12.disabled || null);\n currVal_3;\n const currVal_4:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_4;\n const currVal_5:any = _decl0_40.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_40.done()) !== false);\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_42.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_42.animationDuration;\n currVal_2;\n const currVal_3:any = _decl0_19.dynamicHeight;\n currVal_3;\n const currVal_4:any = (_decl0_19.headerPosition === 'below');\n currVal_4;\n const currVal_5:any = false;\n currVal_5;\n}\nfunction _View_AddItemInteractionContextComponent_Host_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_43.active;\n currVal_0;\n const currVal_1:any = _decl0_43.tabindex;\n currVal_1;\n}\nfunction _View_AddItemInteractionContextComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = _decl0_43.clickCommand;\n currVal_1;\n const currVal_2:any = _decl0_34.inline;\n currVal_2;\n const currVal_3:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_3;\n const currVal_4:any = _decl0_43.label;\n currVal_4;\n const pd_5:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\nfunction _View_ActivityActionsComponent_Host_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_44.alignEnd;\n currVal_0;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (!_decl0_44.hasConfirmText()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_44.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_34.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_4;\n const pd_5:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (_decl0_44.hasConfirmText()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_44.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_44.confirmText;\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_44.cancelCommand;\n currVal_2;\n const currVal_3:any = _decl0_34.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_4;\n const currVal_5:any = !_decl0_44.hasConfirmText();\n currVal_5;\n const currVal_6:any = _decl0_44.hasConfirmText();\n currVal_6;\n const pd_7:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from '@angular/material/icon';\nimport * as i10 from '../directives/command.directive';\nimport * as i11 from '../directives/focus-binding.directive';\nimport * as i12 from '@angular/flex-layout/flex';\nimport * as i13 from '@angular/flex-layout/grid';\nimport * as i14 from './components/activity-container/activity-container.component';\nimport * as i15 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i16 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i17 from './components/alert-dialog/alert-dialog.component';\nimport * as i18 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i19 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i20 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i21 from './components/activity-actions/activity-actions.component';\nimport * as i22 from '../directives/directives.module';\nexport const InteractionModuleNgFactory:i0.NgModuleFactory<i1.InteractionModule> = (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.Dir = (<any>(null as any));\nvar _decl0_12:i4.MatButton = (<any>(null as any));\nvar _decl0_13:i4.MatAnchor = (<any>(null as any));\nvar _decl0_14:i5.MatDialogContainer = (<any>(null as any));\nvar _decl0_15:i5.MatDialogClose = (<any>(null as any));\nvar _decl0_16:i5.MatDialogTitle = (<any>(null as any));\nvar _decl0_17:i5.MatDialogContent = (<any>(null as any));\nvar _decl0_18:i5.MatDialogActions = (<any>(null as any));\nvar _decl0_19:i6.MatTabGroup = (<any>(null as any));\nvar _decl0_20:i6.MatTabLabel = (<any>(null as any));\nvar _decl0_21:i6.MatTab = (<any>(null as any));\nvar _decl0_22:i6.MatTabNav = (<any>(null as any));\nvar _decl0_23:i6.MatTabLink = (<any>(null as any));\nvar _decl0_24:i6.MatTabContent = (<any>(null as any));\nvar _decl0_25:i7.CdkPortal = (<any>(null as any));\nvar _decl0_26:i7.CdkPortalOutlet = (<any>(null as any));\nvar _decl0_27:i7.TemplatePortalDirective = (<any>(null as any));\nvar _decl0_28:i7.PortalHostDirective = (<any>(null as any));\nvar _decl0_29:i8.RouterOutlet = (<any>(null as any));\nvar _decl0_30:i8.RouterLink = (<any>(null as any));\nvar _decl0_31:i8.RouterLinkWithHref = (<any>(null as any));\nvar _decl0_32:i8.RouterLinkActive = (<any>(null as any));\nvar _decl0_33:i8.ɵangular_packages_router_router_l = (<any>(null as any));\nvar _decl0_34:i9.MatIcon = (<any>(null as any));\nvar _decl0_35:i10.CommandDirective<any> = (<any>(null as any));\nvar _decl0_36:i11.FocusBindingDirective = (<any>(null as any));\nvar _decl0_37:i12.DefaultLayoutDirective = (<any>(null as any));\nvar _decl0_38:i12.DefaultLayoutGapDirective = (<any>(null as any));\nvar _decl0_39:i12.DefaultLayoutAlignDirective = (<any>(null as any));\nvar _decl0_40:i12.DefaultFlexOrderDirective = (<any>(null as any));\nvar _decl0_41:i12.DefaultFlexOffsetDirective = (<any>(null as any));\nvar _decl0_42:i12.FlexFillDirective = (<any>(null as any));\nvar _decl0_43:i12.DefaultFlexAlignDirective = (<any>(null as any));\nvar _decl0_44:i12.DefaultFlexDirective = (<any>(null as any));\nvar _decl0_45:i13.ɵgrid_privatec = (<any>(null as any));\nvar _decl0_46:i13.ɵgrid_privatef = (<any>(null as any));\nvar _decl0_47:i13.ɵgrid_privatei = (<any>(null as any));\nvar _decl0_48:i13.ɵgrid_privatel = (<any>(null as any));\nvar _decl0_49:i13.ɵgrid_privateo = (<any>(null as any));\nvar _decl0_50:i13.ɵgrid_privater = (<any>(null as any));\nvar _decl0_51:i13.ɵgrid_privateu = (<any>(null as any));\nvar _decl0_52:i13.ɵgrid_privatex = (<any>(null as any));\nvar _decl0_53:i13.ɵgrid_privateba = (<any>(null as any));\nvar _decl0_54:i13.ɵgrid_privatebd = (<any>(null as any));\nvar _decl0_55:i13.ɵgrid_privatebg = (<any>(null as any));\nvar _decl0_56:i14.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_57:i15.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_58:i16.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_59:i17.AlertDialogComponent = (<any>(null as any));\nvar _decl0_60:i18.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_61:i19.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_62:i20.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_63:i21.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_64:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_65:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_66:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_67:i2.JsonPipe = (<any>(null as any));\nvar _decl0_68:i2.SlicePipe = (<any>(null as any));\nvar _decl0_69:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_70:i2.PercentPipe = (<any>(null as any));\nvar _decl0_71:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_72:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_73:i2.DatePipe = (<any>(null as any));\nvar _decl0_74:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_75:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_76:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_77:i2.CommonModule = (<any>(null as any));\nvar _decl0_78:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_79:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_80:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_81:i7.PortalModule = (<any>(null as any));\nvar _decl0_82:i8.RouterModule = (<any>(null as any));\nvar _decl0_83:i9.MatIconModule = (<any>(null as any));\nvar _decl0_84:i22.DirectivesModule = (<any>(null as any));\nvar _decl0_85:i12.FlexModule = (<any>(null as any));\nvar _decl0_86:i13.GridModule = (<any>(null as any));\nvar _decl0_87:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_88:i0.ElementRef<any> = (<any>(null as any));\nfunction _View_ActivityContainerComponent_Host_1_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityContainerComponent_1_1():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_56;\n currVal_0;\n const currVal_1:any = _any;\n currVal_1;\n}\nfunction _View_ActivityContainerComponent_1_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_56.dynamicHeight;\n currVal_0;\n const currVal_1:any = _decl0_19.dynamicHeight;\n currVal_1;\n const currVal_2:any = (_decl0_19.headerPosition === 'below');\n currVal_2;\n const currVal_3:any = !_decl0_56.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_56.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_56.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_57.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_57.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmationDialogComponent_2_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_57.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_57.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_57.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_57.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_57.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_57.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_57.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_58.confirm.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_58.confirm.title();\n currVal_1;\n }\n}\nfunction _View_ConfirmThenDialogComponent_3_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_58.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_58.confirm.content();\n currVal_1;\n const currVal_2:any = (_decl0_12.disabled || null);\n currVal_2;\n const currVal_3:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_3;\n const currVal_4:any = _decl0_58.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_58.isDestructive()? 'warn': 'primary');\n currVal_5;\n const currVal_6:any = (_decl0_12.disabled || null);\n currVal_6;\n const currVal_7:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_7;\n const currVal_8:any = _decl0_58.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_58.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_58.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_59.alert.title) {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_16.id;\n currVal_0;\n const currVal_1:any = _decl0_59.alert.title();\n currVal_1;\n }\n}\nfunction _View_AlertDialogComponent_4_2():void {\n var _any:any = (null as any);\n const currVal_0:any = _any;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_59.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_59.alert.content();\n currVal_1;\n const currVal_2:any = 'primary';\n currVal_2;\n const currVal_3:any = (_decl0_12.disabled || null);\n currVal_3;\n const currVal_4:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_4;\n const currVal_5:any = _decl0_59.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_59.done()) !== false);\n}\nfunction _View_ActivityOutletComponent_Host_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_ActivityOutletComponent_5_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_Host_6_0():void {\n var _any:any = (null as any);\n}\nfunction _View_InPlaceInteractionContextComponent_6_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = (_decl0_61.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_61.animationDuration;\n currVal_2;\n const currVal_3:any = _decl0_19.dynamicHeight;\n currVal_3;\n const currVal_4:any = (_decl0_19.headerPosition === 'below');\n currVal_4;\n const currVal_5:any = false;\n currVal_5;\n}\nfunction _View_AddItemInteractionContextComponent_Host_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_62.active;\n currVal_0;\n const currVal_1:any = _decl0_62.tabindex;\n currVal_1;\n}\nfunction _View_AddItemInteractionContextComponent_7_0():void {\n var _any:any = (null as any);\n const currVal_0:any = false;\n currVal_0;\n const currVal_1:any = _decl0_62.clickCommand;\n currVal_1;\n const currVal_2:any = _decl0_34.inline;\n currVal_2;\n const currVal_3:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_3;\n const currVal_4:any = _decl0_62.label;\n currVal_4;\n const pd_5:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\nfunction _View_ActivityActionsComponent_Host_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_63.alignEnd;\n currVal_0;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (!_decl0_63.hasConfirmText()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_63.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_34.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_4;\n const pd_5:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (_decl0_63.hasConfirmText()) {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_63.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_63.confirmText;\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_0():void {\n var _any:any = (null as any);\n const currVal_0:any = (_decl0_12.disabled || null);\n currVal_0;\n const currVal_1:any = (_decl0_12._animationMode === 'NoopAnimations');\n currVal_1;\n const currVal_2:any = _decl0_63.cancelCommand;\n currVal_2;\n const currVal_3:any = _decl0_34.inline;\n currVal_3;\n const currVal_4:any = (((_decl0_34.color !== 'primary') && (_decl0_34.color !== 'accent')) && (_decl0_34.color !== 'warn'));\n currVal_4;\n const currVal_5:any = !_decl0_63.hasConfirmText();\n currVal_5;\n const currVal_6:any = _decl0_63.hasConfirmText();\n currVal_6;\n const pd_7:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\n"]}
|
|
@@ -12,12 +12,12 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
13
|
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, Command, FocusManager, DelegatingFormValueModel, TrackExternal, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MutableValueModel, Deferred, Trace, MutableListModel, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
14
14
|
import { PortalModule } from '@angular/cdk/portal';
|
|
15
|
+
import { FlexModule, GridModule } from '@angular/flex-layout';
|
|
15
16
|
import { MatDialog, MatDialogConfig, MAT_DIALOG_DEFAULT_OPTIONS, MatDialogModule } from '@angular/material/dialog';
|
|
16
17
|
import { RouterModule, UrlSegment, Router, UrlSerializer, NavigationStart, NavigationEnd, NavigationError, NavigationCancel, RouterOutlet } from '@angular/router';
|
|
17
18
|
import ___default, { isEqual, isNil } from 'lodash';
|
|
18
19
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
19
20
|
import { assert as assert$1, lang as lang$1, Opts, Klass } from '@coolon/typescript-utilities';
|
|
20
|
-
import { FlexModule } from '@angular/flex-layout';
|
|
21
21
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
22
22
|
import { MatListModule } from '@angular/material/list';
|
|
23
23
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -1213,8 +1213,8 @@ __decorate([
|
|
|
1213
1213
|
ActivityActionsComponent = __decorate([
|
|
1214
1214
|
Component({
|
|
1215
1215
|
selector: 'aup-activity-actions',
|
|
1216
|
-
template: "<button mat-icon-button [pectinCommand]=\"cancelCommand\"
|
|
1217
|
-
styles: [":host{display:
|
|
1216
|
+
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",
|
|
1217
|
+
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}"]
|
|
1218
1218
|
})
|
|
1219
1219
|
], ActivityActionsComponent);
|
|
1220
1220
|
|
|
@@ -1488,6 +1488,8 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
1488
1488
|
}
|
|
1489
1489
|
ngAfterViewInit() {
|
|
1490
1490
|
const { chain, observe } = Dsl.disposeWith(this);
|
|
1491
|
+
// using the component directly rather than (animationDone)=.. allows us
|
|
1492
|
+
// to keep our callback private.
|
|
1491
1493
|
observe.valuesFrom(this.tabs.animationDone).subscribe(() => this.onAnimationFinished());
|
|
1492
1494
|
}
|
|
1493
1495
|
initialise(identifier, api) {
|
|
@@ -1582,6 +1584,12 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
1582
1584
|
// @Trace()
|
|
1583
1585
|
finishAndStartCleanup() {
|
|
1584
1586
|
if (!this._deferredCleanUp) {
|
|
1587
|
+
// Important:
|
|
1588
|
+
// Clear our tabs so the next activity triggers a tab change.
|
|
1589
|
+
// Without this our animation done wasn't called when a single
|
|
1590
|
+
// new activity followed a single tab activity (since we're tracking
|
|
1591
|
+
// by activity index)
|
|
1592
|
+
this.activityTabs = [];
|
|
1585
1593
|
const promise = this.interactionServiceApi.notifyFinished(this);
|
|
1586
1594
|
this._deferredCleanUp = promise
|
|
1587
1595
|
.finally(() => {
|
|
@@ -1593,26 +1601,31 @@ let ActivityContainerComponent = class ActivityContainerComponent extends Abstra
|
|
|
1593
1601
|
launchActivity(activityRef) {
|
|
1594
1602
|
const cleanedTabs = this.activityTabs.filter(tab => !tab.isComplete());
|
|
1595
1603
|
this.activityTabs = cleanedTabs.concat(activityRef);
|
|
1596
|
-
this.
|
|
1604
|
+
this.synchroniseSelectedTabIndex();
|
|
1597
1605
|
}
|
|
1598
1606
|
activityIndex(index, activityRef) {
|
|
1599
1607
|
return index;
|
|
1600
1608
|
}
|
|
1601
1609
|
;
|
|
1602
|
-
// @Trace()
|
|
1603
1610
|
onAnimationFinished() {
|
|
1604
|
-
this.
|
|
1605
|
-
|
|
1611
|
+
if (this.onAnimationFinishedJob) {
|
|
1612
|
+
this.onAnimationFinishedJob();
|
|
1613
|
+
this.onAnimationFinishedJob = undefined;
|
|
1614
|
+
}
|
|
1606
1615
|
}
|
|
1607
1616
|
/**
|
|
1608
|
-
* Synchronises the selected tab index.
|
|
1617
|
+
* Synchronises the selected tab index.
|
|
1609
1618
|
*/
|
|
1610
|
-
// @Trace()
|
|
1611
1619
|
synchroniseSelectedTabIndex() {
|
|
1612
1620
|
const previousIndex = this.tabs.selectedIndex;
|
|
1613
1621
|
const newIndex = this.getActiveActivityCount() - 1;
|
|
1614
|
-
|
|
1615
|
-
|
|
1622
|
+
if (previousIndex !== newIndex) {
|
|
1623
|
+
this.tabs.selectedIndex = newIndex;
|
|
1624
|
+
this.onAnimationFinishedJob = () => {
|
|
1625
|
+
this.getSelectedOutlet().component.onActivityReady();
|
|
1626
|
+
this.activityTabs = this.activityTabs.filter(tab => !tab.isComplete());
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1616
1629
|
}
|
|
1617
1630
|
getSelectedOutlet() {
|
|
1618
1631
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
@@ -1649,7 +1662,7 @@ __decorate([
|
|
|
1649
1662
|
ActivityContainerComponent = __decorate([
|
|
1650
1663
|
Component({
|
|
1651
1664
|
selector: 'aup-activity-container',
|
|
1652
|
-
template: "<mat-tab-group #tabs no-tab-header
|
|
1665
|
+
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",
|
|
1653
1666
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
1654
1667
|
}),
|
|
1655
1668
|
__metadata("design:paramtypes", [])
|
|
@@ -2056,7 +2069,9 @@ InteractionModule = __decorate([
|
|
|
2056
2069
|
PortalModule,
|
|
2057
2070
|
RouterModule,
|
|
2058
2071
|
MatIconModule,
|
|
2059
|
-
DirectivesModule
|
|
2072
|
+
DirectivesModule,
|
|
2073
|
+
FlexModule,
|
|
2074
|
+
GridModule
|
|
2060
2075
|
],
|
|
2061
2076
|
declarations: [
|
|
2062
2077
|
ActivityContainerComponent,
|