@coolon/angular-ui-powerups 1.16.0 → 1.18.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 +57 -10
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js +11 -2
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +12 -3
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +8 -2
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +17 -2
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js +6 -2
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -1
- package/esm2015/lib/interaction/directives/interaction-context-trigger-for.directive.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/table/column-model.js +11 -2
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js +1 -1
- package/esm5/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +12 -3
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table.component.js +8 -2
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +21 -2
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js +6 -2
- package/esm5/lib/interaction/directives/interaction-context-trigger-for.directive.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +54 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +58 -11
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +10 -1
- package/lib/components/table/select-header-cell-renderer/select-header-cell-renderer.component.d.ts +1 -0
- package/lib/components/table/table-model.d.ts +4 -1
- package/lib/components/table/table.component.d.ts +2 -0
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +4 -1
- package/package.json +1 -1
|
@@ -51,6 +51,12 @@ var TableComponent = /** @class */ (function (_super) {
|
|
|
51
51
|
column.setTemplate(templateRef, viewContainer, fillCell, padChild);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
+
TableComponent.prototype.onRowClicked = function (row) {
|
|
55
|
+
this.tableModel.onRowClicked(row);
|
|
56
|
+
};
|
|
57
|
+
TableComponent.prototype.isRowSelectionEnabled = function () {
|
|
58
|
+
return this.tableModel.isRowSelectionEnabled();
|
|
59
|
+
};
|
|
54
60
|
__decorate([
|
|
55
61
|
Input(),
|
|
56
62
|
TrackExternal(),
|
|
@@ -59,8 +65,8 @@ var TableComponent = /** @class */ (function (_super) {
|
|
|
59
65
|
TableComponent = __decorate([
|
|
60
66
|
Component({
|
|
61
67
|
selector: 'aup-table',
|
|
62
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\"></tr>\n\n</table>\n",
|
|
63
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
68
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\" (click)=\"onRowClicked(row)\" [class.select-row-on-click]=\"isRowSelectionEnabled()\"></tr>\n\n</table>\n",
|
|
69
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}:host table tr.select-row-on-click td{cursor:pointer}"]
|
|
64
70
|
}),
|
|
65
71
|
__metadata("design:paramtypes", [])
|
|
66
72
|
], TableComponent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/table.component.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAyC,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,GAAG,EAAwC,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAe,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAMH;IAAuC,kCAAmB;IAUxD;eACE,iBAAO;IACT,CAAC;IAED,iCAAQ,GAAR;QACQ,IAAA,0BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7D,CAAC;IAED,kCAAS,GAAT,UAAU,GAAM;QACd,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,+CAAsB,GAAtB,UAAuB,QAAgB,EAAE,WAA6B,EAAE,aAA+B,EAAE,QAAiB,EAAE,QAAiB;QAC3I,IAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,MAAM,YAAY,yBAAyB,EAAE;YAC/C,MAAM,CAAC,WAAW,CAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACpE;IACH,CAAC;
|
|
1
|
+
{"version":3,"file":"table.component.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/components/table/table.component.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAyC,MAAM,eAAe,CAAC;AACxF,OAAO,EAAE,GAAG,EAAwC,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAe,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAMH;IAAuC,kCAAmB;IAUxD;eACE,iBAAO;IACT,CAAC;IAED,iCAAQ,GAAR;QACQ,IAAA,0BAAkF,EAAhF,gBAAK,EAAE,oBAAO,EAAE,kBAAM,EAAE,cAAI,EAAE,gBAAK,EAAE,oBAAO,EAAE,sBAAkC,CAAC;QACzF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC7D,CAAC;IAED,kCAAS,GAAT,UAAU,GAAM;QACd,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,+CAAsB,GAAtB,UAAuB,QAAgB,EAAE,WAA6B,EAAE,aAA+B,EAAE,QAAiB,EAAE,QAAiB;QAC3I,IAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,MAAM,YAAY,yBAAyB,EAAE;YAC/C,MAAM,CAAC,WAAW,CAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACpE;IACH,CAAC;IAED,qCAAY,GAAZ,UAAa,GAAQ;QACnB,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,8CAAqB,GAArB;QACE,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAC;IACjD,CAAC;IAlCD;QAFC,KAAK,EAAE;QACP,aAAa,EAAE;kCACJ,UAAU;sDAAI;IAJf,cAAc;QAL1B,SAAS,CAAC;YACT,QAAQ,EAAE,WAAW;YACrB,u3CAAqC;;SAEtC,CAAC;;OACW,cAAc,CAuC1B;IAAD,qBAAC;CAAA,AAvCD,CAAuC,mBAAmB,GAuCzD;SAvCY,cAAc","sourcesContent":["import { TemplatePortal } from '@angular/cdk/portal';\nimport { Component, Input, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { Dsl, ListModelChain, MapModelChain, Trace, TrackExternal } from '@coolon/pectin';\nimport { DisposableComponent } from '../disposable-component';\nimport { ColumnModel, CustomTemplateColumnModel } from './column-model';\nimport { TableModel } from './table-model';\n\n/**\n * Create your model:\n * @example\n * this.heroTableModel = TableModel.fromList(heroList, table => {\n * table.pluck(\"firstName\");\n * table.pluck(\"lastName\");\n * table.addCustomColumn(\"fullName\", hero => `${hero.firstName} ${hero.lastName}`);\n * });\n *\n * Create your table\n * @example\n * <aup-table [tableModel]=\"heroTableModel\"></aup-table>\n *\n * Styling\n * @example\n * aup-table {\n * --column-gap: 10px; // defaults to 24px\n * aup-table-cell-renderer {\n * &:first-column {\n * // do stuff\n * }\n * &:last-column {\n * // do stuff\n * }\n * }\n * }\n */\n@Component({\n selector: 'aup-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.scss']\n})\nexport class TableComponent<T> extends DisposableComponent implements OnInit {\n\n @Input()\n @TrackExternal()\n tableModel: TableModel<T>;\n\n columns: ListModelChain<ColumnModel<T>>;\n columnIds: ListModelChain<string>;\n private columnsById: MapModelChain<string, ColumnModel<T>>;\n\n constructor() {\n super();\n }\n\n ngOnInit(): void {\n const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);\n this.columns = chain(this.tableModel.columns);\n this.columnIds = chain(this.columns).pluck('columnId');\n this.columnsById = chain(this.columns).indexBy('columnId');\n }\n\n isEditing(row: T): boolean {\n return !!this.tableModel.getEditSessionFor(row);\n }\n\n registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean) {\n const column = this.columnsById.get(columnId);\n if (column instanceof CustomTemplateColumnModel) {\n column.setTemplate(templateRef, viewContainer, fillCell, padChild);\n }\n }\n\n onRowClicked(row: any) {\n this.tableModel.onRowClicked(row);\n }\n\n isRowSelectionEnabled() {\n return this.tableModel.isRowSelectionEnabled();\n }\n}\n"]}
|
|
@@ -17,11 +17,21 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
|
17
17
|
enumerable: true,
|
|
18
18
|
configurable: true
|
|
19
19
|
});
|
|
20
|
+
Object.defineProperty(ActivityActionsComponent.prototype, "alignStretch", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return this.align === 'stretch';
|
|
23
|
+
},
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
20
27
|
ActivityActionsComponent.prototype.ngOnInit = function () {
|
|
21
28
|
};
|
|
22
29
|
ActivityActionsComponent.prototype.hasConfirmText = function () {
|
|
23
30
|
return !_.isEmpty(this.confirmText);
|
|
24
31
|
};
|
|
32
|
+
ActivityActionsComponent.prototype.hasCancelText = function () {
|
|
33
|
+
return !_.isEmpty(this.cancelText);
|
|
34
|
+
};
|
|
25
35
|
__decorate([
|
|
26
36
|
Input(),
|
|
27
37
|
TrackExternal(),
|
|
@@ -36,6 +46,10 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
|
36
46
|
TrackExternal(),
|
|
37
47
|
__metadata("design:type", Command)
|
|
38
48
|
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Input(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], ActivityActionsComponent.prototype, "cancelText", void 0);
|
|
39
53
|
__decorate([
|
|
40
54
|
Input(),
|
|
41
55
|
__metadata("design:type", String)
|
|
@@ -45,11 +59,16 @@ var ActivityActionsComponent = /** @class */ (function (_super) {
|
|
|
45
59
|
__metadata("design:type", Boolean),
|
|
46
60
|
__metadata("design:paramtypes", [])
|
|
47
61
|
], ActivityActionsComponent.prototype, "alignEnd", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
HostBinding('class.align-stretch'),
|
|
64
|
+
__metadata("design:type", Boolean),
|
|
65
|
+
__metadata("design:paramtypes", [])
|
|
66
|
+
], ActivityActionsComponent.prototype, "alignStretch", null);
|
|
48
67
|
ActivityActionsComponent = __decorate([
|
|
49
68
|
Component({
|
|
50
69
|
selector: 'aup-activity-actions',
|
|
51
|
-
template: "<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"done\"></aup-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}"]
|
|
70
|
+
template: "<button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n<button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"done\"></aup-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",
|
|
71
|
+
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}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr 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}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.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}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}"]
|
|
53
72
|
})
|
|
54
73
|
], ActivityActionsComponent);
|
|
55
74
|
return ActivityActionsComponent;
|
|
@@ -1 +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,0CAA0C,CAAC;AAO/E;IAA8C,4CAAmB;IAAjE;QAAA,
|
|
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,0CAA0C,CAAC;AAO/E;IAA8C,4CAAmB;IAAjE;QAAA,qEA0CC;QAxBC,WAAK,GAAgC,OAAO,CAAC;;IAwB/C,CAAC;IArBC,sBAAI,8CAAQ;aAAZ;YACE,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAA;QAC7B,CAAC;;;OAAA;IAGD,sBAAI,kDAAY;aAAhB;YACE,OAAO,IAAI,CAAC,KAAK,KAAK,SAAS,CAAA;QACjC,CAAC;;;OAAA;IAED,2CAAQ,GAAR;IACA,CAAC;IAED,iDAAc,GAAd;QACE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,gDAAa,GAAb;QACE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACpC,CAAC;IAnCD;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;;gEACW;IAInB;QADC,KAAK,EAAE;;2DACqC;IAG7C;QADC,WAAW,CAAC,iBAAiB,CAAC;;;4DAG9B;IAGD;QADC,WAAW,CAAC,qBAAqB,CAAC;;;gEAGlC;IA5BU,wBAAwB;QALpC,SAAS,CAAC;YACT,QAAQ,EAAE,sBAAsB;YAChC,ioBAAgD;;SAEjD,CAAC;OACW,wBAAwB,CA0CpC;IAAD,+BAAC;CAAA,AA1CD,CAA8C,mBAAmB,GA0ChE;SA1CY,wBAAwB","sourcesContent":["import { Component, HostBinding, Input, OnInit } from '@angular/core';\nimport { Command, TrackExternal } from '@coolon/pectin';\nimport _ from 'lodash';\nimport { DisposableComponent } from '../../../components/disposable-component';\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 cancelText: string;\n\n\n @Input()\n align: 'start' | 'end' | 'stretch' = 'start';\n\n @HostBinding('class.align-end')\n get alignEnd():boolean {\n return this.align === 'end'\n }\n\n @HostBinding('class.align-stretch')\n get alignStretch():boolean {\n return this.align === 'stretch'\n }\n\n ngOnInit() {\n }\n\n hasConfirmText() {\n return !_.isEmpty(this.confirmText);\n }\n\n hasCancelText() {\n return !_.isEmpty(this.cancelText)\n }\n\n\n}\n"]}
|
|
@@ -11,6 +11,8 @@ var InteractionContextTriggerFor = /** @class */ (function (_super) {
|
|
|
11
11
|
return _this;
|
|
12
12
|
}
|
|
13
13
|
InteractionContextTriggerFor.prototype.onEnter = function (event) {
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
14
16
|
if (!this.aupInteractionContextTriggerFor.isActive()) {
|
|
15
17
|
this.startActivity();
|
|
16
18
|
}
|
|
@@ -19,6 +21,8 @@ var InteractionContextTriggerFor = /** @class */ (function (_super) {
|
|
|
19
21
|
}
|
|
20
22
|
};
|
|
21
23
|
InteractionContextTriggerFor.prototype.onClick = function (event) {
|
|
24
|
+
event.preventDefault();
|
|
25
|
+
event.stopPropagation();
|
|
22
26
|
if (!this.aupInteractionContextTriggerFor.isActive()) {
|
|
23
27
|
this.startActivity();
|
|
24
28
|
}
|
|
@@ -67,13 +71,13 @@ var InteractionContextTriggerFor = /** @class */ (function (_super) {
|
|
|
67
71
|
__metadata("design:type", Object)
|
|
68
72
|
], InteractionContextTriggerFor.prototype, "activityCancelled", void 0);
|
|
69
73
|
__decorate([
|
|
70
|
-
HostListener('keyup.enter'),
|
|
74
|
+
HostListener('keyup.enter', ['$event']),
|
|
71
75
|
__metadata("design:type", Function),
|
|
72
76
|
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
73
77
|
__metadata("design:returntype", void 0)
|
|
74
78
|
], InteractionContextTriggerFor.prototype, "onEnter", null);
|
|
75
79
|
__decorate([
|
|
76
|
-
HostListener('click'),
|
|
80
|
+
HostListener('click', ['$event']),
|
|
77
81
|
__metadata("design:type", Function),
|
|
78
82
|
__metadata("design:paramtypes", [MouseEvent]),
|
|
79
83
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-context-trigger-for.directive.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/directives/interaction-context-trigger-for.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,MAAM,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAOvB;IAA2D,gDAAgB;IAoBzE;QAAA,YACE,iBAAO,SACR;QAPD,kBAAY,GAAG,IAAI,YAAY,EAAK,CAAC;QAGrC,uBAAiB,GAAG,IAAI,YAAY,EAAK,CAAC;;IAI1C,CAAC;IAGD,8CAAO,GAAP,UAAQ,KAAoB;QAC1B,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,QAAQ,EAAE,EAAE;YACpD,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB;aAAM;YACL,IAAI,CAAC,+BAA+B,CAAC,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"interaction-context-trigger-for.directive.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/directives/interaction-context-trigger-for.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,MAAM,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAOvB;IAA2D,gDAAgB;IAoBzE;QAAA,YACE,iBAAO,SACR;QAPD,kBAAY,GAAG,IAAI,YAAY,EAAK,CAAC;QAGrC,uBAAiB,GAAG,IAAI,YAAY,EAAK,CAAC;;IAI1C,CAAC;IAGD,8CAAO,GAAP,UAAQ,KAAoB;QAC1B,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,QAAQ,EAAE,EAAE;YACpD,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB;aAAM;YACL,IAAI,CAAC,+BAA+B,CAAC,oBAAoB,EAAE,CAAC;SAC7D;IACH,CAAC;IAGD,8CAAO,GAAP,UAAQ,KAAiB;QACvB,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,QAAQ,EAAE,EAAE;YACpD,IAAI,CAAC,aAAa,EAAE,CAAC;SACtB;aAAM;YACL,IAAI,CAAC,+BAA+B,CAAC,oBAAoB,EAAE,CAAC;SAC7D;IACH,CAAC;IAES,oDAAa,GAAvB;QAAA,iBAWC;QAVC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;QACtD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,+BAA+B,CAAC,QAAQ,EAAE,CAAC,CAAC;QACjE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,IAAI,CAAC,+BAA+B,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC;aACtF,IAAI,CAAC,UAAA,MAAM;YACV,KAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC,CAAC;aACD,KAAK,CAAC,UAAA,KAAK;YACV,KAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACP,CAAC;IAED,0DAAmB,GAAnB;QACE,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;IACnG,CAAC;IA1DD;QADC,KAAK,EAAE;;yFACyG;IAGjH;QADC,KAAK,EAAE;;uEACwC;IAGhD;QADC,KAAK,EAAE;;sEACS;IAGjB;QADC,KAAK,EAAE;;6EACsB;IAG9B;QADC,MAAM,EAAE;;sEAC4B;IAGrC;QADC,MAAM,EAAE;;2EACiC;IAO1C;QADC,YAAY,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;;yCACzB,aAAa;;+DAQ3B;IAGD;QADC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;;yCACnB,UAAU;;+DAQxB;IA5CU,4BAA4B;QAHxC,SAAS,CAAC;YACT,QAAQ,EAAE,mCAAmC;SAC9C,CAAC;;OACW,4BAA4B,CA+DxC;IAAD,mCAAC;CAAA,AA/DD,CAA2D,gBAAgB,GA+D1E;SA/DY,4BAA4B","sourcesContent":["import { Directive, EventEmitter, HostListener, Input, Output } from '@angular/core';\nimport { assert, Constructable, GarbageCollector } from '@coolon/pectin';\nimport _ from 'lodash';\nimport { Activity } from '../activity';\nimport { InteractionContext } from '../interaction-context';\n\n@Directive({\n selector: '[aupInteractionContextTriggerFor]'\n})\nexport class InteractionContextTriggerFor<D, R, E> extends GarbageCollector {\n\n @Input()\n aupInteractionContextTriggerFor: Pick<InteractionContext, 'startActivity' | 'isActive' | 'cancelActiveActivity'>;\n\n @Input()\n activityClass: Constructable<Activity<D, R, E>>;\n\n @Input()\n activityData?: D;\n\n @Input()\n activityDataFactory?: () => D;\n\n @Output()\n activityDone = new EventEmitter<R>();\n\n @Output()\n activityCancelled = new EventEmitter<E>();\n\n constructor() {\n super();\n }\n\n @HostListener('keyup.enter', ['$event'])\n onEnter(event: KeyboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n if (!this.aupInteractionContextTriggerFor.isActive()) {\n this.startActivity();\n } else {\n this.aupInteractionContextTriggerFor.cancelActiveActivity();\n }\n }\n\n @HostListener('click', ['$event'])\n onClick(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n if (!this.aupInteractionContextTriggerFor.isActive()) {\n this.startActivity();\n } else {\n this.aupInteractionContextTriggerFor.cancelActiveActivity();\n }\n }\n\n protected startActivity() {\n assert.isTruthy(this.aupInteractionContextTriggerFor);\n assert.isFalsey(this.aupInteractionContextTriggerFor.isActive());\n assert.isTruthy(this.activityClass);\n this.aupInteractionContextTriggerFor.startActivity(this.activityClass, this.activityData)\n .then(result => {\n this.activityDone.emit(result);\n })\n .catch(error => {\n this.activityCancelled.emit(error);\n });\n }\n\n prepareActivityData(): D {\n return _.isFunction(this.activityDataFactory()) ? this.activityDataFactory() : this.activityData;\n }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction.module.ngfactory.js","sourceRoot":"ng://@coolon/angular-ui-powerups/","sources":["lib/interaction/interaction.module.ngfactory.ts"],"names":[],"mappings":"","sourcesContent":["import * as i0 from '@angular/core';\nimport * as i1 from './interaction.module';\nimport * as i2 from '@angular/common';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i4 from '@angular/material/button';\nimport * as i5 from '@angular/material/dialog';\nimport * as i6 from '@angular/material/tabs';\nimport * as i7 from '@angular/cdk/portal';\nimport * as i8 from '@angular/router';\nimport * as i9 from '@angular/material/icon';\nimport * as i10 from '../directives/command.directive';\nimport * as i11 from '../directives/focus-binding.directive';\nimport * as i12 from '@angular/flex-layout/flex';\nimport * as i13 from '@angular/flex-layout/grid';\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 '../components/table/table.component';\nimport * as i28 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i29 from '../components/table/column-template/column-template.directive';\nimport * as i30 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i31 from '../components/icon/icon.component';\nimport * as i32 from './components/activity-container/activity-container.component';\nimport * as i33 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i34 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i35 from './components/alert-dialog/alert-dialog.component';\nimport * as i36 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i37 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i38 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i39 from './components/activity-actions/activity-actions.component';\nimport * as i40 from './components/popup-interaction-context/popup-interaction-context.component';\nimport * as i41 from './components/input-activities/string-input-activity';\nimport * as i42 from './components/input-activities/select-input-activity';\nimport * as i43 from './components/input-activities/abstract-input-activity';\nimport * as i44 from './directives/interaction-context-trigger-for.directive';\nimport * as i45 from '../directives/directives.module';\nimport * as i46 from '../components/components.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.NumberInputComponent = (<any>(null as any));\nvar _decl0_57:i15.StringInputComponent = (<any>(null as any));\nvar _decl0_58:i16.TextInputComponent = (<any>(null as any));\nvar _decl0_59:i17.PasswordInputComponent = (<any>(null as any));\nvar _decl0_60:i18.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_61:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_62:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_63:i21.NoopComponent = (<any>(null as any));\nvar _decl0_64:i22.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_65:i22.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_66:i22.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_67:i23.FocusContainerComponent = (<any>(null as any));\nvar _decl0_68:i24.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_69:i25.FocusableComponent = (<any>(null as any));\nvar _decl0_70:i26.CardContainerComponent = (<any>(null as any));\nvar _decl0_71:i27.TableComponent<any> = (<any>(null as any));\nvar _decl0_72:i28.EditRowControls<any> = (<any>(null as any));\nvar _decl0_73:i29.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_74:i30.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_75:i31.IconComponent = (<any>(null as any));\nvar _decl0_76:i32.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_77:i33.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_78:i34.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_79:i35.AlertDialogComponent = (<any>(null as any));\nvar _decl0_80:i36.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_81:i37.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_82:i38.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_83:i39.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_84:i40.PopupInteractionContextComponent = (<any>(null as any));\nvar _decl0_85:i41.StringInputActivity = (<any>(null as any));\nvar _decl0_86:i42.SelectInputActivity<any> = (<any>(null as any));\nvar _decl0_87:i43.AbstractInputActivity<any,any> = (<any>(null as any));\nvar _decl0_88:i44.InteractionContextTriggerFor<any,any,any> = (<any>(null as any));\nvar _decl0_89:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_90:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_91:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_92:i2.JsonPipe = (<any>(null as any));\nvar _decl0_93:i2.SlicePipe = (<any>(null as any));\nvar _decl0_94:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_95:i2.PercentPipe = (<any>(null as any));\nvar _decl0_96:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_97:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_98:i2.DatePipe = (<any>(null as any));\nvar _decl0_99:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_100:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_101:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_102:i2.CommonModule = (<any>(null as any));\nvar _decl0_103:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_104:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_105:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_106:i7.PortalModule = (<any>(null as any));\nvar _decl0_107:i8.RouterModule = (<any>(null as any));\nvar _decl0_108:i9.MatIconModule = (<any>(null as any));\nvar _decl0_109:i45.DirectivesModule = (<any>(null as any));\nvar _decl0_110:i12.FlexModule = (<any>(null as any));\nvar _decl0_111:i13.GridModule = (<any>(null as any));\nvar _decl0_112:i46.ComponentsModule = (<any>(null as any));\nvar _decl0_113:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_114: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_76;\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_76.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_76.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_76.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_76.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_77.class;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_77.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_77.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_77.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_77.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_77.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_77.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_77.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_77.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_77.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_78.class;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_78.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_78.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_78.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_78.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_78.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_78.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_78.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_78.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_78.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_79.class;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_79.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_79.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_79.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_79.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_79.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_79.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_81.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_81.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_82.active;\n currVal_0;\n const currVal_1:any = _decl0_82.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_82.clickCommand;\n currVal_1;\n const currVal_2:any = 'mat:add';\n currVal_2;\n const currVal_3:any = _decl0_82.label;\n currVal_3;\n const pd_4: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_83.alignEnd;\n currVal_0;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (!_decl0_83.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_83.confirmCommand;\n currVal_2;\n const currVal_3:any = 'done';\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (_decl0_83.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_83.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_83.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_83.cancelCommand;\n currVal_2;\n const currVal_3:any = 'mat:clear';\n currVal_3;\n const currVal_4:any = !_decl0_83.hasConfirmText();\n currVal_4;\n const currVal_5:any = _decl0_83.hasConfirmText();\n currVal_5;\n const pd_6:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n}\nfunction _View_PopupInteractionContextComponent_Host_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_84.active;\n currVal_0;\n}\nfunction _View_PopupInteractionContextComponent_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_StringInputActivity_Host_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_85.class;\n currVal_0;\n}\nfunction _View_StringInputActivity_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_85.data.label;\n currVal_0;\n const currVal_1:any = _decl0_85.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_85.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_85.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_85.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_57.baseClassName;\n currVal_5;\n const currVal_6:any = _decl0_85.confirmCommand;\n currVal_6;\n const currVal_7:any = _decl0_85.cancelCommand;\n currVal_7;\n const currVal_8:any = 'end';\n currVal_8;\n const currVal_9:any = _decl0_83.alignEnd;\n currVal_9;\n const pd_10:any = ((<any>_decl0_57.notifyClick()) !== false);\n const pd_11:any = ((<any>_decl0_57.notifyFocusIn()) !== false);\n const pd_12:any = ((<any>_decl0_57.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputActivity_Host_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.class;\n currVal_0;\n}\nfunction _View_SelectInputActivity_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.data.label;\n currVal_0;\n const currVal_1:any = _decl0_86.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_86.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_86.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_86.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_86.options;\n currVal_5;\n const currVal_6:any = _decl0_86.optionLabelFormat;\n currVal_6;\n const currVal_7:any = _decl0_61.baseClassName;\n currVal_7;\n const currVal_8:any = _decl0_86.confirmCommand;\n currVal_8;\n const currVal_9:any = _decl0_86.cancelCommand;\n currVal_9;\n const currVal_10:any = 'end';\n currVal_10;\n const currVal_11:any = _decl0_83.alignEnd;\n currVal_11;\n const pd_12:any = ((<any>_decl0_61.notifyClick()) !== false);\n const pd_13:any = ((<any>_decl0_61.notifyFocusIn()) !== false);\n const pd_14:any = ((<any>_decl0_61.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputActivity_Host_12_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_87.class;\n currVal_0;\n}\nfunction _View_AbstractInputActivity_12_0():void {\n var _any:any = (null as any);\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/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 '../components/table/table.component';\nimport * as i28 from '../components/table/edit-row-controls/edit-row-controls.component';\nimport * as i29 from '../components/table/column-template/column-template.directive';\nimport * as i30 from '../components/forms/multiple-select-input/multiple-select-input.component';\nimport * as i31 from '../components/icon/icon.component';\nimport * as i32 from './components/activity-container/activity-container.component';\nimport * as i33 from './components/confirmation-dialog/confirmation-dialog.component';\nimport * as i34 from './components/confirm-then-dialog/confirm-then-dialog.component';\nimport * as i35 from './components/alert-dialog/alert-dialog.component';\nimport * as i36 from './components/activity-container/activity-outlet/activity-outlet.component';\nimport * as i37 from './components/inplace-interaction-context/in-place-interaction-context.component';\nimport * as i38 from './components/add-item-interaction-context/add-item-interaction-context.component';\nimport * as i39 from './components/activity-actions/activity-actions.component';\nimport * as i40 from './components/popup-interaction-context/popup-interaction-context.component';\nimport * as i41 from './components/input-activities/string-input-activity';\nimport * as i42 from './components/input-activities/select-input-activity';\nimport * as i43 from './components/input-activities/abstract-input-activity';\nimport * as i44 from './directives/interaction-context-trigger-for.directive';\nimport * as i45 from '../directives/directives.module';\nimport * as i46 from '../components/components.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.NumberInputComponent = (<any>(null as any));\nvar _decl0_57:i15.StringInputComponent = (<any>(null as any));\nvar _decl0_58:i16.TextInputComponent = (<any>(null as any));\nvar _decl0_59:i17.PasswordInputComponent = (<any>(null as any));\nvar _decl0_60:i18.CheckboxInputComponent = (<any>(null as any));\nvar _decl0_61:i19.SelectInputComponent<any> = (<any>(null as any));\nvar _decl0_62:i20.ScrollContainerComponent = (<any>(null as any));\nvar _decl0_63:i21.NoopComponent = (<any>(null as any));\nvar _decl0_64:i22.SwitchCaseComponent<any> = (<any>(null as any));\nvar _decl0_65:i22.SwitchCaseWhenDirective<any> = (<any>(null as any));\nvar _decl0_66:i22.SwitchCaseDefaultDirective<any> = (<any>(null as any));\nvar _decl0_67:i23.FocusContainerComponent = (<any>(null as any));\nvar _decl0_68:i24.VerticalFocusContainerComponent = (<any>(null as any));\nvar _decl0_69:i25.FocusableComponent = (<any>(null as any));\nvar _decl0_70:i26.CardContainerComponent = (<any>(null as any));\nvar _decl0_71:i27.TableComponent<any> = (<any>(null as any));\nvar _decl0_72:i28.EditRowControls<any> = (<any>(null as any));\nvar _decl0_73:i29.ColumnTemplateDirective = (<any>(null as any));\nvar _decl0_74:i30.MultipleSelectInputComponent<any> = (<any>(null as any));\nvar _decl0_75:i31.IconComponent = (<any>(null as any));\nvar _decl0_76:i32.ActivityContainerComponent<any,any,any> = (<any>(null as any));\nvar _decl0_77:i33.ConfirmationDialogComponent = (<any>(null as any));\nvar _decl0_78:i34.ConfirmThenDialogComponent<any,any,any> = (<any>(null as any));\nvar _decl0_79:i35.AlertDialogComponent = (<any>(null as any));\nvar _decl0_80:i36.ActivityOutletComponent<any,any,any> = (<any>(null as any));\nvar _decl0_81:i37.InPlaceInteractionContextComponent<any,any,any> = (<any>(null as any));\nvar _decl0_82:i38.AddItemInteractionContextComponent = (<any>(null as any));\nvar _decl0_83:i39.ActivityActionsComponent = (<any>(null as any));\nvar _decl0_84:i40.PopupInteractionContextComponent = (<any>(null as any));\nvar _decl0_85:i41.StringInputActivity = (<any>(null as any));\nvar _decl0_86:i42.SelectInputActivity<any> = (<any>(null as any));\nvar _decl0_87:i43.AbstractInputActivity<any,any> = (<any>(null as any));\nvar _decl0_88:i44.InteractionContextTriggerFor<any,any,any> = (<any>(null as any));\nvar _decl0_89:i2.AsyncPipe = (<any>(null as any));\nvar _decl0_90:i2.UpperCasePipe = (<any>(null as any));\nvar _decl0_91:i2.LowerCasePipe = (<any>(null as any));\nvar _decl0_92:i2.JsonPipe = (<any>(null as any));\nvar _decl0_93:i2.SlicePipe = (<any>(null as any));\nvar _decl0_94:i2.DecimalPipe = (<any>(null as any));\nvar _decl0_95:i2.PercentPipe = (<any>(null as any));\nvar _decl0_96:i2.TitleCasePipe = (<any>(null as any));\nvar _decl0_97:i2.CurrencyPipe = (<any>(null as any));\nvar _decl0_98:i2.DatePipe = (<any>(null as any));\nvar _decl0_99:i2.I18nPluralPipe = (<any>(null as any));\nvar _decl0_100:i2.I18nSelectPipe = (<any>(null as any));\nvar _decl0_101:i2.KeyValuePipe = (<any>(null as any));\nvar _decl0_102:i2.CommonModule = (<any>(null as any));\nvar _decl0_103:i4.MatButtonModule = (<any>(null as any));\nvar _decl0_104:i5.MatDialogModule = (<any>(null as any));\nvar _decl0_105:i6.MatTabsModule = (<any>(null as any));\nvar _decl0_106:i7.PortalModule = (<any>(null as any));\nvar _decl0_107:i8.RouterModule = (<any>(null as any));\nvar _decl0_108:i9.MatIconModule = (<any>(null as any));\nvar _decl0_109:i45.DirectivesModule = (<any>(null as any));\nvar _decl0_110:i12.FlexModule = (<any>(null as any));\nvar _decl0_111:i13.GridModule = (<any>(null as any));\nvar _decl0_112:i46.ComponentsModule = (<any>(null as any));\nvar _decl0_113:i0.TemplateRef<any> = (<any>(null as any));\nvar _decl0_114: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_76;\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_76.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_76.dynamicHeight;\n currVal_3;\n const currVal_4:any = _decl0_76.activityTabs;\n currVal_4;\n const currVal_5:any = _decl0_76.activityIndex;\n currVal_5;\n}\nfunction _View_ConfirmationDialogComponent_Host_2_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_77.class;\n currVal_0;\n}\nfunction _View_ConfirmationDialogComponent_2_1():void {\n if (_decl0_77.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_77.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_77.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_77.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_77.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_77.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_77.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_77.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_77.done()) !== false);\n}\nfunction _View_ConfirmThenDialogComponent_Host_3_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_78.class;\n currVal_0;\n}\nfunction _View_ConfirmThenDialogComponent_3_1():void {\n if (_decl0_78.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_78.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_78.confirm.title;\n currVal_0;\n const currVal_1:any = _decl0_78.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_78.confirm.cancel();\n currVal_4;\n const currVal_5:any = (_decl0_78.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_78.confirm.ok();\n currVal_8;\n const pd_9:any = ((<any>_decl0_78.cancel()) !== false);\n const pd_10:any = ((<any>_decl0_78.onConfirm()) !== false);\n}\nfunction _View_AlertDialogComponent_Host_4_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_79.class;\n currVal_0;\n}\nfunction _View_AlertDialogComponent_4_1():void {\n if (_decl0_79.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_79.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_79.alert.title;\n currVal_0;\n const currVal_1:any = _decl0_79.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_79.alert.ok();\n currVal_5;\n const pd_6:any = ((<any>_decl0_79.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_81.isActive()? 1: 0);\n currVal_1;\n const currVal_2:any = _decl0_81.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_82.active;\n currVal_0;\n const currVal_1:any = _decl0_82.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_82.clickCommand;\n currVal_1;\n const currVal_2:any = 'mat:add';\n currVal_2;\n const currVal_3:any = _decl0_82.label;\n currVal_3;\n const pd_4: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_83.alignEnd;\n currVal_0;\n const currVal_1:any = _decl0_83.alignStretch;\n currVal_1;\n}\nfunction _View_ActivityActionsComponent_8_1():void {\n if (_decl0_83.hasCancelText()) {\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_83.cancelCommand;\n currVal_2;\n const currVal_3:any = _decl0_83.cancelText;\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_2():void {\n if (!_decl0_83.hasCancelText()) {\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_83.cancelCommand;\n currVal_2;\n const currVal_3:any = 'mat:clear';\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_3():void {\n if (!_decl0_83.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_83.confirmCommand;\n currVal_2;\n const currVal_3:any = 'done';\n currVal_3;\n const pd_4:any = ((<any>_decl0_35.notifyClick(_any)) !== false);\n }\n}\nfunction _View_ActivityActionsComponent_8_4():void {\n if (_decl0_83.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_83.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_83.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_83.hasCancelText();\n currVal_0;\n const currVal_1:any = !_decl0_83.hasCancelText();\n currVal_1;\n const currVal_2:any = !_decl0_83.hasConfirmText();\n currVal_2;\n const currVal_3:any = _decl0_83.hasConfirmText();\n currVal_3;\n}\nfunction _View_PopupInteractionContextComponent_Host_9_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_84.active;\n currVal_0;\n}\nfunction _View_PopupInteractionContextComponent_9_0():void {\n var _any:any = (null as any);\n}\nfunction _View_StringInputActivity_Host_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_85.class;\n currVal_0;\n}\nfunction _View_StringInputActivity_10_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_85.data.label;\n currVal_0;\n const currVal_1:any = _decl0_85.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_85.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_85.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_85.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_57.baseClassName;\n currVal_5;\n const currVal_6:any = _decl0_85.confirmCommand;\n currVal_6;\n const currVal_7:any = _decl0_85.cancelCommand;\n currVal_7;\n const currVal_8:any = 'end';\n currVal_8;\n const currVal_9:any = _decl0_83.alignEnd;\n currVal_9;\n const currVal_10:any = _decl0_83.alignStretch;\n currVal_10;\n const pd_11:any = ((<any>_decl0_57.notifyClick()) !== false);\n const pd_12:any = ((<any>_decl0_57.notifyFocusIn()) !== false);\n const pd_13:any = ((<any>_decl0_57.notifyFocusOut()) !== false);\n}\nfunction _View_SelectInputActivity_Host_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.class;\n currVal_0;\n}\nfunction _View_SelectInputActivity_11_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_86.data.label;\n currVal_0;\n const currVal_1:any = _decl0_86.data.placeholder;\n currVal_1;\n const currVal_2:any = _decl0_86.confirmCommand;\n currVal_2;\n const currVal_3:any = _decl0_86.cancelCommand;\n currVal_3;\n const currVal_4:any = _decl0_86.valueModel;\n currVal_4;\n const currVal_5:any = _decl0_86.options;\n currVal_5;\n const currVal_6:any = _decl0_86.optionLabelFormat;\n currVal_6;\n const currVal_7:any = _decl0_61.baseClassName;\n currVal_7;\n const currVal_8:any = _decl0_86.confirmCommand;\n currVal_8;\n const currVal_9:any = _decl0_86.cancelCommand;\n currVal_9;\n const currVal_10:any = 'end';\n currVal_10;\n const currVal_11:any = _decl0_83.alignEnd;\n currVal_11;\n const currVal_12:any = _decl0_83.alignStretch;\n currVal_12;\n const pd_13:any = ((<any>_decl0_61.notifyClick()) !== false);\n const pd_14:any = ((<any>_decl0_61.notifyFocusIn()) !== false);\n const pd_15:any = ((<any>_decl0_61.notifyFocusOut()) !== false);\n}\nfunction _View_AbstractInputActivity_Host_12_0():void {\n var _any:any = (null as any);\n const currVal_0:any = _decl0_87.class;\n currVal_0;\n}\nfunction _View_AbstractInputActivity_12_0():void {\n var _any:any = (null as any);\n}\n"]}
|
|
@@ -13,7 +13,7 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
13
13
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
14
14
|
import { MatIconModule } from '@angular/material/icon';
|
|
15
15
|
import { MatTableModule } from '@angular/material/table';
|
|
16
|
-
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, Command, FocusManager, DelegatingFormListModel, DelegatingFormValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MutableValueModel, MultipleSelectionModel, MutableListModel, Form, Deferred, Trace, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
16
|
+
import { GarbageCollector, DelegatingValueModel, assert, UnaryCommand, lang, Dsl, Logger, TrackExternal, Command, FocusManager, DelegatingFormListModel, DelegatingFormValueModel, ListModel, StoreInListModel, ValueModel, StoreInValueModel, MutableValueModel, OptionsHelper, MultipleSelectionModel, MutableListModel, Form, Deferred, Trace, Guard, DebugContext, Binding, Functions } from '@coolon/pectin';
|
|
17
17
|
import { assert as assert$1, Opts, lang as lang$1, Klass } from '@coolon/typescript-utilities';
|
|
18
18
|
import { Memoize } from '@typescript-plus/fast-memoize-decorator/dist/src';
|
|
19
19
|
import ___default, { isEqual, isNil } from 'lodash';
|
|
@@ -1222,7 +1222,7 @@ let SelectHeaderCellRendererComponent = class SelectHeaderCellRendererComponent
|
|
|
1222
1222
|
SelectHeaderCellRendererComponent = __decorate([
|
|
1223
1223
|
Component({
|
|
1224
1224
|
selector: 'aup-select-header-cell-renderer',
|
|
1225
|
-
template: "<mat-checkbox [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [indeterminate]=\"this.isIntermediate()\"></mat-checkbox>\n",
|
|
1225
|
+
template: "<mat-checkbox *ngIf=\"enableHeaderControls\" [pectinCommand]=\"selectCommand\" [checked]=\"isSelected()\" [indeterminate]=\"this.isIntermediate()\"></mat-checkbox>\n",
|
|
1226
1226
|
styles: [""]
|
|
1227
1227
|
}),
|
|
1228
1228
|
__metadata("design:paramtypes", [])
|
|
@@ -1413,11 +1413,15 @@ class CustomTemplateColumnModel extends ColumnModel {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
class SelectionColumnModel extends ColumnModel {
|
|
1416
|
-
constructor(columnId, defaults, selectionModel) {
|
|
1416
|
+
constructor(columnId, defaults, selectionModel, options) {
|
|
1417
1417
|
super(columnId, defaults);
|
|
1418
|
+
this.selectionModel = selectionModel;
|
|
1419
|
+
const opts = OptionsHelper.for(options);
|
|
1420
|
+
this.selectOnRowClick = opts.get("selectOnRowClick", false);
|
|
1418
1421
|
if (selectionModel instanceof MultipleSelectionModel) {
|
|
1419
1422
|
this.cellHeaderRenderer(SelectHeaderCellRendererComponent, (component) => {
|
|
1420
1423
|
component.selectionModel = selectionModel;
|
|
1424
|
+
component.enableHeaderControls = opts.get("headerControl", true);
|
|
1421
1425
|
});
|
|
1422
1426
|
}
|
|
1423
1427
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(SelectCellRendererComponent, (component, rowData) => {
|
|
@@ -1428,6 +1432,11 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
1428
1432
|
getDefaultHeaderText() {
|
|
1429
1433
|
return '';
|
|
1430
1434
|
}
|
|
1435
|
+
onRowClick(row) {
|
|
1436
|
+
if (this.selectOnRowClick) {
|
|
1437
|
+
this.selectionModel.selectCommand.execute(row);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1431
1440
|
}
|
|
1432
1441
|
|
|
1433
1442
|
var TableModel_1;
|
|
@@ -1543,8 +1552,10 @@ let TableModel = TableModel_1 = class TableModel {
|
|
|
1543
1552
|
pluckList(property) {
|
|
1544
1553
|
return this.addColumn(new ListPropertyColumnModel(property, this));
|
|
1545
1554
|
}
|
|
1546
|
-
addSelectionColumn(selectionModel) {
|
|
1547
|
-
|
|
1555
|
+
addSelectionColumn(selectionModel, options) {
|
|
1556
|
+
assert.isNil(this.selectionColumnModel);
|
|
1557
|
+
this.selectionColumnModel = new SelectionColumnModel('selection', this, selectionModel, options);
|
|
1558
|
+
return this.addColumn(this.selectionColumnModel);
|
|
1548
1559
|
}
|
|
1549
1560
|
addEditControls(saveCommand) {
|
|
1550
1561
|
this.saveCommand = saveCommand;
|
|
@@ -1605,6 +1616,13 @@ let TableModel = TableModel_1 = class TableModel {
|
|
|
1605
1616
|
});
|
|
1606
1617
|
});
|
|
1607
1618
|
}
|
|
1619
|
+
onRowClicked(row) {
|
|
1620
|
+
var _a;
|
|
1621
|
+
(_a = this.selectionColumnModel) === null || _a === void 0 ? void 0 : _a.onRowClick(row);
|
|
1622
|
+
}
|
|
1623
|
+
isRowSelectionEnabled() {
|
|
1624
|
+
return this.selectionColumnModel ? this.selectionColumnModel.selectOnRowClick : false;
|
|
1625
|
+
}
|
|
1608
1626
|
};
|
|
1609
1627
|
TableModel.ctorParameters = () => [
|
|
1610
1628
|
{ type: ListModel }
|
|
@@ -1660,6 +1678,12 @@ let TableComponent = class TableComponent extends DisposableComponent {
|
|
|
1660
1678
|
column.setTemplate(templateRef, viewContainer, fillCell, padChild);
|
|
1661
1679
|
}
|
|
1662
1680
|
}
|
|
1681
|
+
onRowClicked(row) {
|
|
1682
|
+
this.tableModel.onRowClicked(row);
|
|
1683
|
+
}
|
|
1684
|
+
isRowSelectionEnabled() {
|
|
1685
|
+
return this.tableModel.isRowSelectionEnabled();
|
|
1686
|
+
}
|
|
1663
1687
|
};
|
|
1664
1688
|
__decorate([
|
|
1665
1689
|
Input(),
|
|
@@ -1669,8 +1693,8 @@ __decorate([
|
|
|
1669
1693
|
TableComponent = __decorate([
|
|
1670
1694
|
Component({
|
|
1671
1695
|
selector: 'aup-table',
|
|
1672
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\"></tr>\n\n</table>\n",
|
|
1673
|
-
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
1696
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.getTrackByFunction()\">\n\n <ng-container *ngFor=\"let column of columns.value; index as index; first as first; last as last\" matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef>\n <aup-table-header-cell-renderer [column]=\"column\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-header-cell-renderer>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [class.first-column]=\"first\"\n [class.last-column]=\"last\"\n ></aup-table-cell-renderer>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds.value\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds.value;\" (click)=\"onRowClicked(row)\" [class.select-row-on-click]=\"isRowSelectionEnabled()\"></tr>\n\n</table>\n",
|
|
1697
|
+
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}:host table tr.select-row-on-click td{cursor:pointer}"]
|
|
1674
1698
|
}),
|
|
1675
1699
|
__metadata("design:paramtypes", [])
|
|
1676
1700
|
], TableComponent);
|
|
@@ -2107,11 +2131,17 @@ let ActivityActionsComponent = class ActivityActionsComponent extends Disposable
|
|
|
2107
2131
|
get alignEnd() {
|
|
2108
2132
|
return this.align === 'end';
|
|
2109
2133
|
}
|
|
2134
|
+
get alignStretch() {
|
|
2135
|
+
return this.align === 'stretch';
|
|
2136
|
+
}
|
|
2110
2137
|
ngOnInit() {
|
|
2111
2138
|
}
|
|
2112
2139
|
hasConfirmText() {
|
|
2113
2140
|
return !___default.isEmpty(this.confirmText);
|
|
2114
2141
|
}
|
|
2142
|
+
hasCancelText() {
|
|
2143
|
+
return !___default.isEmpty(this.cancelText);
|
|
2144
|
+
}
|
|
2115
2145
|
};
|
|
2116
2146
|
__decorate([
|
|
2117
2147
|
Input(),
|
|
@@ -2127,6 +2157,10 @@ __decorate([
|
|
|
2127
2157
|
TrackExternal(),
|
|
2128
2158
|
__metadata("design:type", Command)
|
|
2129
2159
|
], ActivityActionsComponent.prototype, "cancelCommand", void 0);
|
|
2160
|
+
__decorate([
|
|
2161
|
+
Input(),
|
|
2162
|
+
__metadata("design:type", String)
|
|
2163
|
+
], ActivityActionsComponent.prototype, "cancelText", void 0);
|
|
2130
2164
|
__decorate([
|
|
2131
2165
|
Input(),
|
|
2132
2166
|
__metadata("design:type", String)
|
|
@@ -2136,11 +2170,16 @@ __decorate([
|
|
|
2136
2170
|
__metadata("design:type", Boolean),
|
|
2137
2171
|
__metadata("design:paramtypes", [])
|
|
2138
2172
|
], ActivityActionsComponent.prototype, "alignEnd", null);
|
|
2173
|
+
__decorate([
|
|
2174
|
+
HostBinding('class.align-stretch'),
|
|
2175
|
+
__metadata("design:type", Boolean),
|
|
2176
|
+
__metadata("design:paramtypes", [])
|
|
2177
|
+
], ActivityActionsComponent.prototype, "alignStretch", null);
|
|
2139
2178
|
ActivityActionsComponent = __decorate([
|
|
2140
2179
|
Component({
|
|
2141
2180
|
selector: 'aup-activity-actions',
|
|
2142
|
-
template: "<button class=\"cancel\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"done\"></aup-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",
|
|
2143
|
-
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}"]
|
|
2181
|
+
template: "<button class=\"cancel\" *ngIf=\"hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">{{cancelText}}</button>\n<button class=\"cancel\" *ngIf=\"!hasCancelText()\" mat-icon-button [pectinCommand]=\"cancelCommand\">\n <aup-icon icon=\"mat:clear\"></aup-icon>\n</button>\n<button class=\"confirm\" *ngIf=\"!hasConfirmText()\" mat-icon-button [pectinCommand]=\"confirmCommand\">\n <aup-icon icon=\"done\"></aup-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",
|
|
2182
|
+
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}:host.align-stretch{grid-template-areas:\"cancel content confirm\";-ms-grid-columns:auto 1fr auto;grid-template-columns:auto 1fr 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}:host.align-stretch>.cancel{-ms-grid-row:1;-ms-grid-column:1}.confirm{-ms-grid-row:1;-ms-grid-column:2;grid-area:confirm}:host.align-end>.confirm{-ms-grid-row:1;-ms-grid-column:3}:host.align-stretch>.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}:host.align-stretch>.content{-ms-grid-row:1;-ms-grid-column:2}"]
|
|
2144
2183
|
})
|
|
2145
2184
|
], ActivityActionsComponent);
|
|
2146
2185
|
|
|
@@ -3002,6 +3041,8 @@ let InteractionContextTriggerFor = class InteractionContextTriggerFor extends Ga
|
|
|
3002
3041
|
this.activityCancelled = new EventEmitter();
|
|
3003
3042
|
}
|
|
3004
3043
|
onEnter(event) {
|
|
3044
|
+
event.preventDefault();
|
|
3045
|
+
event.stopPropagation();
|
|
3005
3046
|
if (!this.aupInteractionContextTriggerFor.isActive()) {
|
|
3006
3047
|
this.startActivity();
|
|
3007
3048
|
}
|
|
@@ -3010,6 +3051,8 @@ let InteractionContextTriggerFor = class InteractionContextTriggerFor extends Ga
|
|
|
3010
3051
|
}
|
|
3011
3052
|
}
|
|
3012
3053
|
onClick(event) {
|
|
3054
|
+
event.preventDefault();
|
|
3055
|
+
event.stopPropagation();
|
|
3013
3056
|
if (!this.aupInteractionContextTriggerFor.isActive()) {
|
|
3014
3057
|
this.startActivity();
|
|
3015
3058
|
}
|
|
@@ -3058,13 +3101,13 @@ __decorate([
|
|
|
3058
3101
|
__metadata("design:type", Object)
|
|
3059
3102
|
], InteractionContextTriggerFor.prototype, "activityCancelled", void 0);
|
|
3060
3103
|
__decorate([
|
|
3061
|
-
HostListener('keyup.enter'),
|
|
3104
|
+
HostListener('keyup.enter', ['$event']),
|
|
3062
3105
|
__metadata("design:type", Function),
|
|
3063
3106
|
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
3064
3107
|
__metadata("design:returntype", void 0)
|
|
3065
3108
|
], InteractionContextTriggerFor.prototype, "onEnter", null);
|
|
3066
3109
|
__decorate([
|
|
3067
|
-
HostListener('click'),
|
|
3110
|
+
HostListener('click', ['$event']),
|
|
3068
3111
|
__metadata("design:type", Function),
|
|
3069
3112
|
__metadata("design:paramtypes", [MouseEvent]),
|
|
3070
3113
|
__metadata("design:returntype", void 0)
|