@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-place-interaction-context.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAiB,SAAS,
|
|
1
|
+
{"version":3,"file":"in-place-interaction-context.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.ts"],"names":[],"mappings":";AAAA,OAAO,EAAiB,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAqB,MAAM,eAAe,CAAC;AAChH,OAAO,EAAE,eAAe,EAAiB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAA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AAC;IAClE,CAAC;IAED,WAAW,CAAa,OAAgB,EAAE,YAAiD,EAAE,IAAS;QACpG,OAAO,IAAI,CAAC,0BAA0B,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,0BAA0B,CAAC,QAAQ,EAAE,CAAC;IACpD,CAAC;IAED,aAAa,CAAa,YAAiD,EAAE,IAAS;QACpF,OAAO,IAAI,CAAC,0BAA0B,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;CAGF,CAAA;;YA7C0C,kBAAkB;4CAAG,MAAM,SAAC,eAAe,cAAG,QAAQ;;AAb/F;IADC,SAAS,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;8BACrB,0BAA0B;sFAAgB;AAOtE;IADC,KAAK,EAAE;;gFACoB;AAVjB,kCAAkC;IAL9C,SAAS,CAAC;QACT,QAAQ,EAAE,kCAAkC;QAC5C,oXAA4D;;KAE7D,CAAC;IAiB8D,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA,EAAE,WAAA,QAAQ,EAAE,CAAA;qCAAxD,kBAAkB;GAhBhD,kCAAkC,CA6D9C;SA7DY,kCAAkC","sourcesContent":["import { AfterViewInit, Component, Inject, Input, Optional, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { MAT_TABS_CONFIG, MatTabsConfig } from '@angular/material/tabs';\nimport { Constructable } from '@coolon/pectin';\nimport { DisposableComponent } from '../../../components/disposable-component';\nimport { Activity } from '../../activity';\nimport { Alert } from '../../alert';\nimport { Confirm } from '../../confirm';\nimport { InteractionContext } from '../../interaction-context';\nimport { InteractionService } from '../../services/interaction.service';\nimport { ActivityContainerComponent } from '../activity-container/activity-container.component';\n\n@Component({\n selector: 'aup-in-place-interaction-context',\n templateUrl: './in-place-interaction-context.component.html',\n styleUrls: ['./in-place-interaction-context.component.scss'],\n})\nexport class InPlaceInteractionContextComponent<D, R, E> extends DisposableComponent implements InteractionContext, AfterViewInit {\n\n @ViewChild('activityContainer', { static: true })\n activityContainerComponent: ActivityContainerComponent<any, any, any>;\n\n /**\n * If true then the first startActivity call will slide the activity into view. If false\n * the activity will replace the existing content immediately.\n */\n @Input()\n animateFirstActivity = true;\n\n get animationDuration():string {\n return this.animateFirstActivity ? (this.tabConfig?.animationDuration || '500ms') : \"0ms\";\n }\n\n constructor(readonly interactionService: InteractionService, @Inject(MAT_TABS_CONFIG) @Optional() private readonly tabConfig: MatTabsConfig) {\n super();\n }\n\n ngAfterViewInit(): void {\n this.interactionService.registerInplaceInteractionContext(this);\n }\n\n initialise(id: string, api: InteractionService.Api) {\n this.activityContainerComponent.initialise(id, api);\n }\n\n get identifier() {\n return this.activityContainerComponent.identifier;\n }\n\n alert(alert: Alert): Promise<void> {\n return this.activityContainerComponent.alert(alert);\n }\n\n cancelActiveActivity(): Promise<boolean> {\n return this.activityContainerComponent.cancelActiveActivity();\n }\n\n confirm(confirm: Confirm): Promise<boolean> {\n return this.activityContainerComponent.confirm(confirm);\n }\n\n confirmOrReject(confirm: Confirm): Promise<void> {\n return this.activityContainerComponent.confirmOrReject(confirm);\n }\n\n confirmThen<D1, R1, E1>(confirm: Confirm, activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1> {\n return this.activityContainerComponent.confirmThen(confirm, activityType);\n }\n\n isActive(): boolean {\n return this.activityContainerComponent.isActive();\n }\n\n startActivity<D1, R1, E1>(activityType: Constructable<Activity<D1, R1, E1>>, data?: D1): Promise<R1> {\n return this.activityContainerComponent.startActivity(activityType, data);\n }\n\n\n}\n"]}
|
|
@@ -5,8 +5,10 @@ export * from "./abstract-interaction-context";
|
|
|
5
5
|
export * from "./activity-ref";
|
|
6
6
|
export * from "./activity";
|
|
7
7
|
export * from "./interaction.module";
|
|
8
|
+
export * from "./components/activity-actions/activity-actions.component";
|
|
8
9
|
export * from "./components/activity-container/activity-container.component";
|
|
9
10
|
export * from "./components/activity-container/activity-outlet/activity-outlet.component";
|
|
11
|
+
export * from "./components/add-item-interaction-context/add-item-interaction-context.component";
|
|
10
12
|
export * from "./components/alert-dialog/alert-dialog.component";
|
|
11
13
|
export * from "./components/confirm-then-dialog/confirm-then-dialog.component";
|
|
12
14
|
export * from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAI3B,cAAc,sBAAsB,CAAC;AAGrC,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,kDAAkD,CAAC;AACjE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iFAAiF,CAAC;AAChG,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sEAAsE,CAAC;AACrF,cAAc,8DAA8D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./abstract-interaction-context\";\nexport * from \"./activity-ref\";\nexport * from \"./activity\";\nexport * from \"./alert\";\nexport * from \"./confirm\";\nexport * from \"./interaction-context\";\nexport * from \"./interaction.module\";\nexport * from \"./result\";\nexport * from \"./route-synchronisation-adapter\";\nexport * from \"./components/activity-container/activity-container.component\";\nexport * from \"./components/activity-container/activity-outlet/activity-outlet.component\";\nexport * from \"./components/alert-dialog/alert-dialog.component\";\nexport * from \"./components/confirm-then-dialog/confirm-then-dialog.component\";\nexport * from \"./components/confirmation-dialog/confirmation-dialog.component\";\nexport * from \"./components/inplace-interaction-context/in-place-interaction-context.component\";\nexport * from \"./services/interaction-service-routing-adapter\";\nexport * from \"./services/interaction.service\";\nexport * from \"./services/modal-interaction-context.factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context-factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAI3B,cAAc,sBAAsB,CAAC;AAGrC,cAAc,0DAA0D,CAAC;AACzE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,kFAAkF,CAAC;AACjG,cAAc,kDAAkD,CAAC;AACjE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iFAAiF,CAAC;AAChG,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sEAAsE,CAAC;AACrF,cAAc,8DAA8D,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./abstract-interaction-context\";\nexport * from \"./activity-ref\";\nexport * from \"./activity\";\nexport * from \"./alert\";\nexport * from \"./confirm\";\nexport * from \"./interaction-context\";\nexport * from \"./interaction.module\";\nexport * from \"./result\";\nexport * from \"./route-synchronisation-adapter\";\nexport * from \"./components/activity-actions/activity-actions.component\";\nexport * from \"./components/activity-container/activity-container.component\";\nexport * from \"./components/activity-container/activity-outlet/activity-outlet.component\";\nexport * from \"./components/add-item-interaction-context/add-item-interaction-context.component\";\nexport * from \"./components/alert-dialog/alert-dialog.component\";\nexport * from \"./components/confirm-then-dialog/confirm-then-dialog.component\";\nexport * from \"./components/confirmation-dialog/confirmation-dialog.component\";\nexport * from \"./components/inplace-interaction-context/in-place-interaction-context.component\";\nexport * from \"./services/interaction-service-routing-adapter\";\nexport * from \"./services/interaction.service\";\nexport * from \"./services/modal-interaction-context.factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context-factory\";\nexport * from \"./services/mat-dialog-interaction/dialog-interaction-context\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./abstract-interaction-context"},{"from":"./activity-ref"},{"from":"./activity"},{"from":"./alert"},{"from":"./confirm"},{"from":"./interaction-context"},{"from":"./interaction.module"},{"from":"./result"},{"from":"./route-synchronisation-adapter"},{"from":"./components/activity-container/activity-container.component"},{"from":"./components/activity-container/activity-outlet/activity-outlet.component"},{"from":"./components/alert-dialog/alert-dialog.component"},{"from":"./components/confirm-then-dialog/confirm-then-dialog.component"},{"from":"./components/confirmation-dialog/confirmation-dialog.component"},{"from":"./components/inplace-interaction-context/in-place-interaction-context.component"},{"from":"./services/interaction-service-routing-adapter"},{"from":"./services/interaction.service"},{"from":"./services/modal-interaction-context.factory"},{"from":"./services/mat-dialog-interaction/dialog-interaction-context-factory"},{"from":"./services/mat-dialog-interaction/dialog-interaction-context"}]}]
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./abstract-interaction-context"},{"from":"./activity-ref"},{"from":"./activity"},{"from":"./alert"},{"from":"./confirm"},{"from":"./interaction-context"},{"from":"./interaction.module"},{"from":"./result"},{"from":"./route-synchronisation-adapter"},{"from":"./components/activity-actions/activity-actions.component"},{"from":"./components/activity-container/activity-container.component"},{"from":"./components/activity-container/activity-outlet/activity-outlet.component"},{"from":"./components/add-item-interaction-context/add-item-interaction-context.component"},{"from":"./components/alert-dialog/alert-dialog.component"},{"from":"./components/confirm-then-dialog/confirm-then-dialog.component"},{"from":"./components/confirmation-dialog/confirmation-dialog.component"},{"from":"./components/inplace-interaction-context/in-place-interaction-context.component"},{"from":"./services/interaction-service-routing-adapter"},{"from":"./services/interaction.service"},{"from":"./services/modal-interaction-context.factory"},{"from":"./services/mat-dialog-interaction/dialog-interaction-context-factory"},{"from":"./services/mat-dialog-interaction/dialog-interaction-context"}]}]
|
|
@@ -2,12 +2,17 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { PortalModule } from '@angular/cdk/portal';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { NgModule } from '@angular/core';
|
|
5
|
+
import { FlexModule, GridModule } from '@angular/flex-layout';
|
|
5
6
|
import { MatButtonModule } from '@angular/material/button';
|
|
6
7
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
8
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
7
9
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
8
10
|
import { RouterModule } from '@angular/router';
|
|
11
|
+
import { DirectivesModule } from '../directives/directives.module';
|
|
12
|
+
import { ActivityActionsComponent } from './components/activity-actions/activity-actions.component';
|
|
9
13
|
import { ActivityContainerComponent } from './components/activity-container/activity-container.component';
|
|
10
14
|
import { ActivityOutletComponent } from './components/activity-container/activity-outlet/activity-outlet.component';
|
|
15
|
+
import { AddItemInteractionContextComponent } from './components/add-item-interaction-context/add-item-interaction-context.component';
|
|
11
16
|
import { AlertDialogComponent } from './components/alert-dialog/alert-dialog.component';
|
|
12
17
|
import { ConfirmThenDialogComponent } from './components/confirm-then-dialog/confirm-then-dialog.component';
|
|
13
18
|
import { ConfirmationDialogComponent } from './components/confirmation-dialog/confirmation-dialog.component';
|
|
@@ -23,7 +28,11 @@ InteractionModule = __decorate([
|
|
|
23
28
|
MatDialogModule,
|
|
24
29
|
MatTabsModule,
|
|
25
30
|
PortalModule,
|
|
26
|
-
RouterModule
|
|
31
|
+
RouterModule,
|
|
32
|
+
MatIconModule,
|
|
33
|
+
DirectivesModule,
|
|
34
|
+
FlexModule,
|
|
35
|
+
GridModule
|
|
27
36
|
],
|
|
28
37
|
declarations: [
|
|
29
38
|
ActivityContainerComponent,
|
|
@@ -31,12 +40,16 @@ InteractionModule = __decorate([
|
|
|
31
40
|
ConfirmThenDialogComponent,
|
|
32
41
|
AlertDialogComponent,
|
|
33
42
|
ActivityOutletComponent,
|
|
34
|
-
InPlaceInteractionContextComponent
|
|
43
|
+
InPlaceInteractionContextComponent,
|
|
44
|
+
AddItemInteractionContextComponent,
|
|
45
|
+
ActivityActionsComponent
|
|
35
46
|
],
|
|
36
47
|
exports: [
|
|
37
48
|
ActivityContainerComponent,
|
|
38
49
|
ActivityOutletComponent,
|
|
39
|
-
InPlaceInteractionContextComponent
|
|
50
|
+
InPlaceInteractionContextComponent,
|
|
51
|
+
AddItemInteractionContextComponent,
|
|
52
|
+
ActivityActionsComponent
|
|
40
53
|
],
|
|
41
54
|
entryComponents: [
|
|
42
55
|
ActivityContainerComponent,
|
|
@@ -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;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,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,sBA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kC;YAClC,kCAAkC;YAClC,wBAAwB;SACzB;QACD,eAAe,EAAE;YACf,0BAA0B;YAC1B,2BAA2B;YAC3B,0BAA0B;YAC1B,oBAAoB;SACrB;QACD,SAAS,EAAE;YACT,kBAAkB;SAInB;KACF,CAAC;GACW,iBAAiB,CAC7B;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
|
-
[{"__symbolic":"module","version":4,"metadata":{"InteractionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":
|
|
1
|
+
[{"__symbolic":"module","version":4,"metadata":{"InteractionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material/dialog","name":"MatDialogModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material/tabs","name":"MatTabsModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/cdk/portal","name":"PortalModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":30,"character":4},{"__symbolic":"reference","module":"../directives/directives.module","name":"DirectivesModule","line":31,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexModule","line":32,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"GridModule","line":33,"character":4}],"declarations":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":36,"character":4},{"__symbolic":"reference","module":"./components/confirmation-dialog/confirmation-dialog.component","name":"ConfirmationDialogComponent","line":37,"character":4},{"__symbolic":"reference","module":"./components/confirm-then-dialog/confirm-then-dialog.component","name":"ConfirmThenDialogComponent","line":38,"character":4},{"__symbolic":"reference","module":"./components/alert-dialog/alert-dialog.component","name":"AlertDialogComponent","line":39,"character":4},{"__symbolic":"reference","module":"./components/activity-container/activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":40,"character":4},{"__symbolic":"reference","module":"./components/inplace-interaction-context/in-place-interaction-context.component","name":"InPlaceInteractionContextComponent","line":41,"character":4},{"__symbolic":"reference","module":"./components/add-item-interaction-context/add-item-interaction-context.component","name":"AddItemInteractionContextComponent","line":42,"character":4},{"__symbolic":"reference","module":"./components/activity-actions/activity-actions.component","name":"ActivityActionsComponent","line":43,"character":4}],"exports":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":46,"character":4},{"__symbolic":"reference","module":"./components/activity-container/activity-outlet/activity-outlet.component","name":"ActivityOutletComponent","line":47,"character":4},{"__symbolic":"reference","module":"./components/inplace-interaction-context/in-place-interaction-context.component","name":"InPlaceInteractionContextComponent","line":48,"character":4},{"__symbolic":"reference","module":"./components/add-item-interaction-context/add-item-interaction-context.component","name":"AddItemInteractionContextComponent","line":49,"character":4},{"__symbolic":"reference","module":"./components/activity-actions/activity-actions.component","name":"ActivityActionsComponent","line":50,"character":4}],"entryComponents":[{"__symbolic":"reference","module":"./components/activity-container/activity-container.component","name":"ActivityContainerComponent","line":53,"character":4},{"__symbolic":"reference","module":"./components/confirmation-dialog/confirmation-dialog.component","name":"ConfirmationDialogComponent","line":54,"character":4},{"__symbolic":"reference","module":"./components/confirm-then-dialog/confirm-then-dialog.component","name":"ConfirmThenDialogComponent","line":55,"character":4},{"__symbolic":"reference","module":"./components/alert-dialog/alert-dialog.component","name":"AlertDialogComponent","line":56,"character":4}],"providers":[{"__symbolic":"reference","module":"./services/interaction.service","name":"InteractionService","line":59,"character":4}]}]}]}}}]
|
|
@@ -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 './components/activity-container/activity-container.component';\nimport * as i10 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i11 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i12 from './components/alert-dialog/alert-dialog.component';\nimport * as i13 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i14 from './components/inplace-interaction-context/in-place-interaction-context.component';\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.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_35:i10.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_36:i11.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_37:i12.AlertDialogComponent = (<any>(null as any));\nvar _decl0_38:i13.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_39:i14.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_40:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_41:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_42:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_43:i2.JsonPipe = (<any>(null as any));\nvar _decl0_44:i2.SlicePipe = (<any>(null as any));\nvar _decl0_45:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_46:i2.PercentPipe = (<any>(null as any));\nvar _decl0_47:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_48:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_49:i2.DatePipe = (<any>(null as any));\nvar _decl0_50:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_51:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_52:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_53:i2.CommonModule = (<any>(null as any));\nvar _decl0_54:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_55:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_56:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_57:i7.PortalModule = (<any>(null as any));\nvar _decl0_58:i8.RouterModule = (<any>(null as any));\nvar _decl0_59:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_60: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_34;\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_34.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_34.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_34.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_34.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_35.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_35.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_35.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_35.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_35.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_35.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_35.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_35.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_35.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_36.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_36.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_36.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_36.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_36.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_36.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_36.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_36.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_36.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_37.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_37.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_37.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_37.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_37.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_37.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_39.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_39.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}\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"]}
|
|
@@ -53,21 +53,6 @@ let InteractionService = InteractionService_1 = class InteractionService {
|
|
|
53
53
|
// Todo: allow multiple inplace interactions..
|
|
54
54
|
interactionContext.initialise(`ip${++inplaceMonitorCount}`, new InteractionService_1.ApiAdapter(this.placeRouter, this.inPlaceInteractionRegistry));
|
|
55
55
|
}
|
|
56
|
-
// private assertModalCanStart() {
|
|
57
|
-
// assert.isFalsey(this.inExclusiveInteraction.value);
|
|
58
|
-
// assert.isFalsey(this.modalActive.value);
|
|
59
|
-
// }
|
|
60
|
-
//
|
|
61
|
-
// private assertInPlaceCanStart() {
|
|
62
|
-
// assert.isFalsey(this.inExclusiveInteraction.value);
|
|
63
|
-
// assert.isFalsey(this.modalActive.value);
|
|
64
|
-
// assert.isFalsey(this._activeInlineContext.value);
|
|
65
|
-
// }
|
|
66
|
-
// // @Trace()
|
|
67
|
-
// getActiveContext(): InteractionContext {
|
|
68
|
-
// assert.isTruthy(this.isActive());
|
|
69
|
-
// return this._activeContext.value;
|
|
70
|
-
// }
|
|
71
56
|
/**
|
|
72
57
|
* Creates an interaction context that will prevent any other contexts from starting an
|
|
73
58
|
* activity until it is disposed. This is intended for use by the router for passing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.service.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/services/interaction.service.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,o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AW,CAAC,mCAAmC,EAAE,CAAC;QACpH,CAAC;QAED,WAAW;QACH,sBAAsB;YAC5B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC;QACrD,CAAC;QAED,WAAW;QACX,cAAc,CAAC,OAA2B;YACxC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACrC,kBAAkB;YAClB,8GAA8G;YAC9G,wFAAwF;YACxF,yGAAyG;YACzG,2EAA2E;YAC3E,iGAAiG;YACjG,iFAAiF;YACjF,OAAO,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,mCAAmC,EAAE,CAAC;QACpH,CAAC;KACF;IA7BY,6BAAU,aA6BtB,CAAA;AAEH,CAAC,EA5FgB,kBAAkB,KAAlB,kBAAkB,QA4FlC","sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n BooleanValueModelChain,\n DelegatingValueModel,\n Disposable,\n Dsl,\n GarbageCollector, ListModel,\n ListModelChain,\n MutableListModel,\n MutableValueModel, Trace,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { PlaceRouter } from '../../place/place-router';\nimport { InPlaceInteractionContextComponent } from '../components/inplace-interaction-context/in-place-interaction-context.component';\nimport { InteractionContext } from '../interaction-context';\nimport { InteractionServiceRoutingAdapter } from './interaction-service-routing-adapter';\n\nimport { ModalInteractionContextFactory } from './modal-interaction-context.factory';\n\nlet inplaceMonitorCount = 0;\n\n@Injectable({\n providedIn: 'root'\n})\nexport class InteractionService {\n\n private readonly garbage = new GarbageCollector();\n readonly active: BooleanValueModelChain;\n\n // private readonly _activeModalContext = new MutableValueModel<InteractionContext>();\n // private readonly _activeInlineContext = new MutableValueModel<InteractionContext>();\n // private readonly _activeContext: ValueModelChain<InteractionContext>;\n private readonly _navigationInProgress = new DelegatingValueModel<boolean>().withDefault(false);\n\n private placeRouter: PlaceRouter;\n private exclusiveInteractionRegistry: InteractionService.ContextRegistry;\n private modalInteractionRegistry: InteractionService.ContextRegistry;\n private inPlaceInteractionRegistry: InteractionService.ContextRegistry;\n private activeModalContext: ValueModelChain<InteractionContext>;\n\n readonly activeInteractionContextIds: ListModelChain<string>;\n readonly inModalInteraction: BooleanValueModelChain;\n\n constructor(readonly modelInteractionContextFactory: ModalInteractionContextFactory) {\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this.garbage);\n\n this.exclusiveInteractionRegistry = new InteractionService.ContextRegistry();\n this.modalInteractionRegistry = new InteractionService.ContextRegistry();\n this.inPlaceInteractionRegistry = new InteractionService.ContextRegistry();\n\n this.modalInteractionRegistry.disableWhen(valueOf.any(\n this.exclusiveInteractionRegistry.active,\n this.modalInteractionRegistry.active\n ).areTruthy());\n\n this.inPlaceInteractionRegistry.disableWhen(valueOf.any(\n this.exclusiveInteractionRegistry.active,\n this.modalInteractionRegistry.active,\n this.inPlaceInteractionRegistry.active\n ).areTruthy());\n\n this.active = valueOf.any(\n this.inPlaceInteractionRegistry.active,\n this.modalInteractionRegistry.active\n ).areTruthy();\n\n\n // TODO: chain.concat(listOrValueModels) would be nice.\n this.activeInteractionContextIds = chain(this.inPlaceInteractionRegistry.interactionContextIds)\n .concat(this.modalInteractionRegistry.interactionContextIds);\n\n this.activeModalContext = chain(this.modalInteractionRegistry.interactionContexts).first();\n this.inModalInteraction = chain(this.activeModalContext).isNotNil();\n\n }\n\n isActive(): boolean {\n return this.active.value;\n }\n\n /**\n * @deprecated use #createModalInteractionContextDisposedWith instead.\n * @param disposable\n */\n createModalInteractionContextFor(disposable: Disposable.Collector): InteractionContext {\n return this.createModalInteractionContextDisposedWith(disposable);\n }\n\n /**\n * Creates a new model interaction context that will be disposed along with the component.\n * @param disposable\n */\n createModalInteractionContextDisposedWith(disposable: Disposable.Collector): InteractionContext {\n // TODO: look at making the registry the factory..\n return this.modelInteractionContextFactory.createInteractionContext('modal', new InteractionService.ApiAdapter(this.placeRouter, this.modalInteractionRegistry));\n }\n\n registerInplaceInteractionContext(interactionContext: InPlaceInteractionContextComponent<any, any, any>) {\n // TODO: look at making the registry the factory..\n // Todo: check for double registration.\n // Todo: allow multiple inplace interactions..\n interactionContext.initialise(`ip${++inplaceMonitorCount}`, new InteractionService.ApiAdapter(this.placeRouter, this.inPlaceInteractionRegistry));\n }\n\n\n // private assertModalCanStart() {\n // assert.isFalsey(this.inExclusiveInteraction.value);\n // assert.isFalsey(this.modalActive.value);\n // }\n //\n // private assertInPlaceCanStart() {\n // assert.isFalsey(this.inExclusiveInteraction.value);\n // assert.isFalsey(this.modalActive.value);\n // assert.isFalsey(this._activeInlineContext.value);\n // }\n\n\n // // @Trace()\n // getActiveContext(): InteractionContext {\n // assert.isTruthy(this.isActive());\n // return this._activeContext.value;\n // }\n\n /**\n * Creates an interaction context that will prevent any other contexts from starting an\n * activity until it is disposed. This is intended for use by the router for passing\n * to PlaceComponent.canDeactivate(interactionContext). This ensures components don't\n * try and interact in a way that we can't track and synchronise with the browser back\n * button.\n */\n registerPlaceRouter(router: PlaceRouter): InteractionServiceRoutingAdapter {\n assert.isFalsey(this.placeRouter);\n this.placeRouter = router;\n this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);\n const self = this;\n return new InteractionServiceRoutingAdapter(\n this.activeInteractionContextIds,\n this.activeModalContext,\n () => {\n return self.modelInteractionContextFactory.createInteractionContext('exclusive', new InteractionService.ApiAdapter(this.placeRouter, this.exclusiveInteractionRegistry));\n });\n }\n\n}\n\nexport namespace InteractionService {\n\n export interface Api {\n\n /**\n * Notifies the interaction service that a particular interactionContext has become active. The interaction\n * services will then push changes to the router to track state. If the router is idle, the promise will\n * resolve when the routing has finished updating. Otherwise it will return immediately.\n * @param interactionContext\n */\n notifyActive(interactionContext: InteractionContext): Promise<unknown>;\n\n /**\n * Notifies the interaction service that a particular interactionContext has become idle. The interaction\n * services will then push changes to the router to track state. If the router is idle, the promise will\n * resolve when the routing has finished updating. Otherwise it will return immediately.\n * @param interactionContext\n */\n notifyFinished(interactionContext: InteractionContext): Promise<unknown>;\n }\n\n /**\n * Provides a mechanism for the service to keep track of what the API adapters are doing to\n * ensure the rules are followed, i.e. modal or in-place interaction aren't started while\n * an exclusive routing interaction is active.\n */\n export class ContextRegistry extends GarbageCollector {\n\n private _interactions = new MutableListModel<InteractionContext>();\n private _disabledDelegate = new DelegatingValueModel<boolean>().withDefault(false);\n readonly active: BooleanValueModelChain;\n readonly interactionContextIds: ListModelChain<string>;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.active = chain(this._interactions).isNotEmpty();\n this.interactionContextIds = chain(this._interactions).pluck(\"identifier\");\n }\n\n get interactionContexts():ListModel<InteractionContext> {\n return this._interactions.readonly;\n }\n\n start(context: InteractionContext) {\n this._interactions.push(context);\n }\n\n finish(context: InteractionContext) {\n this._interactions.remove(context);\n }\n\n isActive() {\n return this.active.value;\n }\n\n disableWhen(disabled: ValueModel<boolean>) {\n this._disabledDelegate.setDelegate(disabled);\n }\n }\n\n export class ApiAdapter implements Api {\n\n constructor(private readonly placeRouter: PlaceRouter, private readonly contextRegistry: ContextRegistry) {\n }\n\n // @Trace()\n notifyActive(context: InteractionContext): Promise<any> {\n assert.isTruthy(context.identifier);\n this.contextRegistry.start(context);\n return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();\n }\n\n // @Trace()\n private isNavigationInProgress() {\n return this.placeRouter.navigationInProgress.value;\n }\n\n // @Trace()\n notifyFinished(context: InteractionContext): Promise<any> {\n this.contextRegistry.finish(context);\n // :: Important ::\n // This method will be traversed by both the place router (during can canDeactivate guards) and user land code\n // (both when routing is idle and while it is active in PlaceComponent.canDeactivate()).\n // The result of pushInteractionIdsToRoute will not start until after the current route finishes, and the\n // current route won't finish until after this promise returns... Deadlock.\n // So in order to keep this logic out of the activities we perform the check here and ensure that\n // any interactions with the context while routing is active returns immediately.\n return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();\n }\n }\n\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interaction.service.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/services/interaction.service.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAEL,oBAAoB,EAEpB,GAAG,EACH,gBAAgB,EAEhB,gBAAgB,EAIjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAItD,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;;;AAErF,IAAI,mBAAmB,GAAG,CAAC,CAAC;AAK5B,IAAa,kBAAkB,0BAA/B,MAAa,kBAAkB;IAmB7B,YAAqB,8BAA8D;QAA9D,mCAA8B,GAA9B,8BAA8B,CAAgC;QAjBlE,YAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;QAGlD,sFAAsF;QACtF,uFAAuF;QACvF,wEAAwE;QACvD,0BAAqB,GAAG,IAAI,oBAAoB,EAAW,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAY9F,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEjG,IAAI,CAAC,4BAA4B,GAAG,IAAI,oBAAkB,CAAC,eAAe,EAAE,CAAC;QAC7E,IAAI,CAAC,wBAAwB,GAAG,IAAI,oBAAkB,CAAC,eAAe,EAAE,CAAC;QACzE,IAAI,CAAC,0BAA0B,GAAG,IAAI,oBAAkB,CAAC,eAAe,EAAE,CAAC;QA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,sBAAsB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,mCAAmC,EAAE,CAAC;QACpH,CAAC;QAED,WAAW;QACH,sBAAsB;YAC5B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,KAAK,CAAC;QACrD,CAAC;QAED,WAAW;QACX,cAAc,CAAC,OAA2B;YACxC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACrC,kBAAkB;YAClB,8GAA8G;YAC9G,wFAAwF;YACxF,yGAAyG;YACzG,2EAA2E;YAC3E,iGAAiG;YACjG,iFAAiF;YACjF,OAAO,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,mCAAmC,EAAE,CAAC;QACpH,CAAC;KACF;IA7BY,6BAAU,aA6BtB,CAAA;AAEH,CAAC,EA5FgB,kBAAkB,KAAlB,kBAAkB,QA4FlC","sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n BooleanValueModelChain,\n DelegatingValueModel,\n Disposable,\n Dsl,\n GarbageCollector, ListModel,\n ListModelChain,\n MutableListModel,\n MutableValueModel, Trace,\n ValueModel,\n ValueModelChain\n} from '@coolon/pectin';\nimport { assert } from '@coolon/typescript-utilities';\nimport { PlaceRouter } from '../../place/place-router';\nimport { InPlaceInteractionContextComponent } from '../components/inplace-interaction-context/in-place-interaction-context.component';\nimport { InteractionContext } from '../interaction-context';\nimport { InteractionServiceRoutingAdapter } from './interaction-service-routing-adapter';\n\nimport { ModalInteractionContextFactory } from './modal-interaction-context.factory';\n\nlet inplaceMonitorCount = 0;\n\n@Injectable({\n providedIn: 'root'\n})\nexport class InteractionService {\n\n private readonly garbage = new GarbageCollector();\n readonly active: BooleanValueModelChain;\n\n // private readonly _activeModalContext = new MutableValueModel<InteractionContext>();\n // private readonly _activeInlineContext = new MutableValueModel<InteractionContext>();\n // private readonly _activeContext: ValueModelChain<InteractionContext>;\n private readonly _navigationInProgress = new DelegatingValueModel<boolean>().withDefault(false);\n\n private placeRouter: PlaceRouter;\n private exclusiveInteractionRegistry: InteractionService.ContextRegistry;\n private modalInteractionRegistry: InteractionService.ContextRegistry;\n private inPlaceInteractionRegistry: InteractionService.ContextRegistry;\n private activeModalContext: ValueModelChain<InteractionContext>;\n\n readonly activeInteractionContextIds: ListModelChain<string>;\n readonly inModalInteraction: BooleanValueModelChain;\n\n constructor(readonly modelInteractionContextFactory: ModalInteractionContextFactory) {\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this.garbage);\n\n this.exclusiveInteractionRegistry = new InteractionService.ContextRegistry();\n this.modalInteractionRegistry = new InteractionService.ContextRegistry();\n this.inPlaceInteractionRegistry = new InteractionService.ContextRegistry();\n\n this.modalInteractionRegistry.disableWhen(valueOf.any(\n this.exclusiveInteractionRegistry.active,\n this.modalInteractionRegistry.active\n ).areTruthy());\n\n this.inPlaceInteractionRegistry.disableWhen(valueOf.any(\n this.exclusiveInteractionRegistry.active,\n this.modalInteractionRegistry.active,\n this.inPlaceInteractionRegistry.active\n ).areTruthy());\n\n this.active = valueOf.any(\n this.inPlaceInteractionRegistry.active,\n this.modalInteractionRegistry.active\n ).areTruthy();\n\n\n // TODO: chain.concat(listOrValueModels) would be nice.\n this.activeInteractionContextIds = chain(this.inPlaceInteractionRegistry.interactionContextIds)\n .concat(this.modalInteractionRegistry.interactionContextIds);\n\n this.activeModalContext = chain(this.modalInteractionRegistry.interactionContexts).first();\n this.inModalInteraction = chain(this.activeModalContext).isNotNil();\n\n }\n\n isActive(): boolean {\n return this.active.value;\n }\n\n /**\n * @deprecated use #createModalInteractionContextDisposedWith instead.\n * @param disposable\n */\n createModalInteractionContextFor(disposable: Disposable.Collector): InteractionContext {\n return this.createModalInteractionContextDisposedWith(disposable);\n }\n\n /**\n * Creates a new model interaction context that will be disposed along with the component.\n * @param disposable\n */\n createModalInteractionContextDisposedWith(disposable: Disposable.Collector): InteractionContext {\n // TODO: look at making the registry the factory..\n return this.modelInteractionContextFactory.createInteractionContext('modal', new InteractionService.ApiAdapter(this.placeRouter, this.modalInteractionRegistry));\n }\n\n registerInplaceInteractionContext(interactionContext: InPlaceInteractionContextComponent<any, any, any>) {\n // TODO: look at making the registry the factory..\n // Todo: check for double registration.\n // Todo: allow multiple inplace interactions..\n interactionContext.initialise(`ip${++inplaceMonitorCount}`, new InteractionService.ApiAdapter(this.placeRouter, this.inPlaceInteractionRegistry));\n }\n\n\n /**\n * Creates an interaction context that will prevent any other contexts from starting an\n * activity until it is disposed. This is intended for use by the router for passing\n * to PlaceComponent.canDeactivate(interactionContext). This ensures components don't\n * try and interact in a way that we can't track and synchronise with the browser back\n * button.\n */\n registerPlaceRouter(router: PlaceRouter): InteractionServiceRoutingAdapter {\n assert.isFalsey(this.placeRouter);\n this.placeRouter = router;\n this._navigationInProgress.setDelegate(this.placeRouter.navigationInProgress);\n const self = this;\n return new InteractionServiceRoutingAdapter(\n this.activeInteractionContextIds,\n this.activeModalContext,\n () => {\n return self.modelInteractionContextFactory.createInteractionContext('exclusive', new InteractionService.ApiAdapter(this.placeRouter, this.exclusiveInteractionRegistry));\n });\n }\n\n}\n\nexport namespace InteractionService {\n\n export interface Api {\n\n /**\n * Notifies the interaction service that a particular interactionContext has become active. The interaction\n * services will then push changes to the router to track state. If the router is idle, the promise will\n * resolve when the routing has finished updating. Otherwise it will return immediately.\n * @param interactionContext\n */\n notifyActive(interactionContext: InteractionContext): Promise<unknown>;\n\n /**\n * Notifies the interaction service that a particular interactionContext has become idle. The interaction\n * services will then push changes to the router to track state. If the router is idle, the promise will\n * resolve when the routing has finished updating. Otherwise it will return immediately.\n * @param interactionContext\n */\n notifyFinished(interactionContext: InteractionContext): Promise<unknown>;\n }\n\n /**\n * Provides a mechanism for the service to keep track of what the API adapters are doing to\n * ensure the rules are followed, i.e. modal or in-place interaction aren't started while\n * an exclusive routing interaction is active.\n */\n export class ContextRegistry extends GarbageCollector {\n\n private _interactions = new MutableListModel<InteractionContext>();\n private _disabledDelegate = new DelegatingValueModel<boolean>().withDefault(false);\n readonly active: BooleanValueModelChain;\n readonly interactionContextIds: ListModelChain<string>;\n\n constructor() {\n super();\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.active = chain(this._interactions).isNotEmpty();\n this.interactionContextIds = chain(this._interactions).pluck(\"identifier\");\n }\n\n get interactionContexts():ListModel<InteractionContext> {\n return this._interactions.readonly;\n }\n\n start(context: InteractionContext) {\n this._interactions.push(context);\n }\n\n finish(context: InteractionContext) {\n this._interactions.remove(context);\n }\n\n isActive() {\n return this.active.value;\n }\n\n disableWhen(disabled: ValueModel<boolean>) {\n this._disabledDelegate.setDelegate(disabled);\n }\n }\n\n export class ApiAdapter implements Api {\n\n constructor(private readonly placeRouter: PlaceRouter, private readonly contextRegistry: ContextRegistry) {\n }\n\n // @Trace()\n notifyActive(context: InteractionContext): Promise<any> {\n assert.isTruthy(context.identifier);\n this.contextRegistry.start(context);\n return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();\n }\n\n // @Trace()\n private isNavigationInProgress() {\n return this.placeRouter.navigationInProgress.value;\n }\n\n // @Trace()\n notifyFinished(context: InteractionContext): Promise<any> {\n this.contextRegistry.finish(context);\n // :: Important ::\n // This method will be traversed by both the place router (during can canDeactivate guards) and user land code\n // (both when routing is idle and while it is active in PlaceComponent.canDeactivate()).\n // The result of pushInteractionIdsToRoute will not start until after the current route finishes, and the\n // current route won't finish until after this promise returns... Deadlock.\n // So in order to keep this logic out of the activities we perform the check here and ensure that\n // any interactions with the context while routing is active returns immediately.\n return this.isNavigationInProgress() ? Promise.resolve() : this.placeRouter.syncInteractionContextIdsWithRouter();\n }\n }\n\n}\n"]}
|
|
@@ -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"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AoB,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 {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,IA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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
|
-
{"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"]}
|
|
@@ -27,7 +27,7 @@ var TextInputComponent = /** @class */ (function (_super) {
|
|
|
27
27
|
TextInputComponent = __decorate([
|
|
28
28
|
Component({
|
|
29
29
|
selector: 'aup-text-input',
|
|
30
|
-
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",
|
|
30
|
+
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",
|
|
31
31
|
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}"]
|
|
32
32
|
}),
|
|
33
33
|
__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;IAAwC,sCAA8B;IAQpE;QAAA,YACE,iBAAO,SAER;QANQ,UAAI,GAAG,CAAC,CAAC;;QAKhB,4FAA4F;IAC9F,CAAC;IAED,qCAAQ,GAAR;IACA,CAAC;IAXD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;;0DACJ;IAEtD;QAAR,KAAK,EAAE;;oDAAU;IACT;QAAR,KAAK,EAAE;;oDAAc;IANX,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,
|
|
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;IAAwC,sCAA8B;IAQpE;QAAA,YACE,iBAAO,SAER;QANQ,UAAI,GAAG,CAAC,CAAC;;QAKhB,4FAA4F;IAC9F,CAAC;IAED,qCAAQ,GAAR;IACA,CAAC;IAXD;QADC,KAAK,EAAE,EAAE,aAAa,CAAC,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;;0DACJ;IAEtD;QAAR,KAAK,EAAE;;oDAAU;IACT;QAAR,KAAK,EAAE;;oDAAc;IANX,kBAAkB;QAL9B,SAAS,CAAC;YACT,QAAQ,EAAE,gBAAgB;YAC1B,2tBAA0C;;SAE3C,CAAC;;OACW,kBAAkB,CAgB9B;IAAD,yBAAC;CAAA,AAhBD,CAAwC,sBAAsB,GAgB7D;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"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __decorate, __extends, __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
|
+
var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
7
|
+
__extends(ActivityActionsComponent, _super);
|
|
8
|
+
function ActivityActionsComponent() {
|
|
9
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
_this.align = 'start';
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(ActivityActionsComponent.prototype, "alignEnd", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this.align === 'end';
|
|
16
|
+
},
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true
|
|
19
|
+
});
|
|
20
|
+
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
21
|
+
};
|
|
22
|
+
ActivityActionsComponent.prototype.hasConfirmText = function () {
|
|
23
|
+
return !_.isEmpty(this.confirmText);
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
Input(),
|
|
27
|
+
TrackExternal(),
|
|
28
|
+
__metadata("design:type", Command)
|
|
29
|
+
], ActivityActionsComponent.prototype, "confirmCommand", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Input(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ActivityActionsComponent.prototype, "confirmText", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Input(),
|
|
36
|
+
TrackExternal(),
|
|
37
|
+
__metadata("design:type", Command)
|
|
38
|
+
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Input(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ActivityActionsComponent.prototype, "align", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
HostBinding('class.align-end'),
|
|
45
|
+
__metadata("design:type", Boolean),
|
|
46
|
+
__metadata("design:paramtypes", [])
|
|
47
|
+
], ActivityActionsComponent.prototype, "alignEnd", null);
|
|
48
|
+
ActivityActionsComponent = __decorate([
|
|
49
|
+
Component({
|
|
50
|
+
selector: 'aup-activity-actions',
|
|
51
|
+
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",
|
|
52
|
+
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}"]
|
|
53
|
+
})
|
|
54
|
+
], ActivityActionsComponent);
|
|
55
|
+
return ActivityActionsComponent;
|
|
56
|
+
}(DisposableComponent));
|
|
57
|
+
export { ActivityActionsComponent };
|
|
58
|
+
//# 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;IAA8C,4CAAmB;IAAjE;QAAA,qEA4BC;QAdC,WAAK,GAAoB,OAAO,CAAC;;IAcnC,CAAC;IAXC,sBAAI,8CAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QAC9B,CAAC;;;OAAA;IAED,2CAAQ,GAAR;IACA,CAAC;IAED,iDAAc,GAAd;QACE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAtBD;QAFC,KAAK,EAAE;QACP,aAAa,EAAE;kCACA,OAAO;oEAAM;IAG7B;QADC,KAAK,EAAE;;iEACY;IAIpB;QAFC,KAAK,EAAE;QACP,aAAa,EAAE;kCACD,OAAO;mEAAM;IAG5B;QADC,KAAK,EAAE;;2DACyB;IAGjC;QADC,WAAW,CAAC,iBAAiB,CAAC;;;4DAG9B;IAnBU,wBAAwB;QALpC,SAAS,CAAC;YACT,QAAQ,EAAE,sBAAsB;YAChC,gdAAgD;;SAEjD,CAAC;OACW,wBAAwB,CA4BpC;IAAD,+BAAC;CAAA,AA5BD,CAA8C,mBAAmB,GA4BhE;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/esm5/lib/interaction/components/activity-actions/activity-actions.component.ngfactory.js.map
ADDED
|
@@ -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"]}
|