@coolon/angular-ui-powerups 2.0.0-alpha.20 → 2.0.0-alpha.22
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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +210 -60
- 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 +35 -34
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +33 -32
- 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/commands/command-face.js +66 -0
- package/esm2015/lib/components/commands/command-face.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.metadata.json +1 -0
- package/esm2015/lib/components/components.module.js +9 -3
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/index.js +2 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +3 -5
- 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-row-menu/table-row-menu.component.js +82 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/components/table/table.component.js +1 -1
- 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/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +33 -32
- 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/commands/command-face.js +91 -0
- package/esm5/lib/components/commands/command-face.js.map +1 -0
- package/esm5/lib/components/components.module.js +9 -3
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/index.js +2 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +3 -6
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +66 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/components/table/table.component.js +1 -1
- package/esm5/lib/components/table/table.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +152 -11
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +161 -12
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-face.d.ts +22 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/table/table-model.d.ts +4 -7
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +25 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0-alpha.22](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.21...v2.0.0-alpha.22) (2020-08-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added CommandFace interface and TableRowMenuComponent ([103a54e](https://bitbucket.org/coolon/angular-ui-powerups/commit/103a54e2d2136ceda8defe54ce1f822176c40bd3))
|
|
11
|
+
|
|
12
|
+
## [2.0.0-alpha.21](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.20...v2.0.0-alpha.21) (2020-08-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* aup-table now inserts the trackBy id into the rendered output ([d195b98](https://bitbucket.org/coolon/angular-ui-powerups/commit/d195b9830061f376fb83613e4c2f7dbf284113a5))
|
|
18
|
+
|
|
5
19
|
## [2.0.0-alpha.20](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.19...v2.0.0-alpha.20) (2020-08-11)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('lodash'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('resize-observer-polyfill'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', 'lodash', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', 'resize-observer-polyfill', '@angular/material/progress-spinner', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
-
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.___default, global.typescriptUtilities, global.src, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ResizeObserver, global.ng.material.progressSpinner, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
-
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, icon, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, ___default, typescriptUtilities, src, produce, flexLayout, dialog, router, overlay, ResizeObserver, progressSpinner, list, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/platform-browser/animations'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/material/autocomplete'), require('@angular/material/button'), require('@angular/material/checkbox'), require('@angular/material/icon'), require('@angular/material/menu'), require('@angular/material/table'), require('@angular/material/tooltip'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-solid-svg-icons'), require('@coolon/pectin'), require('lodash'), require('@coolon/typescript-utilities'), require('@typescript-plus/fast-memoize-decorator/dist/src'), require('immer'), require('@angular/flex-layout'), require('@angular/material/dialog'), require('@angular/router'), require('@angular/cdk/overlay'), require('resize-observer-polyfill'), require('@angular/material/progress-spinner'), require('@angular/material/list'), require('@typescript-plus/fast-memoize-decorator'), require('reflect-metadata'), require('@angular/animations'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@coolon/angular-ui-powerups', ['exports', '@angular/common', '@angular/core', '@angular/forms', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/platform-browser/animations', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/material/autocomplete', '@angular/material/button', '@angular/material/checkbox', '@angular/material/icon', '@angular/material/menu', '@angular/material/table', '@angular/material/tooltip', '@fortawesome/angular-fontawesome', '@fortawesome/free-solid-svg-icons', '@coolon/pectin', 'lodash', '@coolon/typescript-utilities', '@typescript-plus/fast-memoize-decorator/dist/src', 'immer', '@angular/flex-layout', '@angular/material/dialog', '@angular/router', '@angular/cdk/overlay', 'resize-observer-polyfill', '@angular/material/progress-spinner', '@angular/material/list', '@typescript-plus/fast-memoize-decorator', 'reflect-metadata', '@angular/animations', 'rxjs'], factory) :
|
|
4
|
+
(global = global || self, factory((global.coolon = global.coolon || {}, global.coolon['angular-ui-powerups'] = {}), global.ng.common, global.ng.core, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.platformBrowser.animations, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.material.autocomplete, global.ng.material.button, global.ng.material.checkbox, global.ng.material.icon, global.ng.material.menu, global.ng.material.table, global.ng.material.tooltip, global.angularFontawesome, global.freeSolidSvgIcons, global.pectin, global.___default, global.typescriptUtilities, global.src, global.produce, global.ng.flexLayout, global.ng.material.dialog, global.ng.router, global.ng.cdk.overlay, global.ResizeObserver, global.ng.material.progressSpinner, global.ng.material.list, global.fastMemoizeDecorator, null, global.ng.animations, global.rxjs));
|
|
5
|
+
}(this, (function (exports, common, core, forms, formField, input, select, tabs, animations, portal, scrolling, autocomplete, button, checkbox, icon, menu, table, tooltip, angularFontawesome, freeSolidSvgIcons, pectin, ___default, typescriptUtilities, src, produce, flexLayout, dialog, router, overlay, ResizeObserver, progressSpinner, list, fastMemoizeDecorator, reflectMetadata, animations$1, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var ___default__default = 'default' in ___default ? ___default['default'] : ___default;
|
|
8
8
|
produce = produce && Object.prototype.hasOwnProperty.call(produce, 'default') ? produce['default'] : produce;
|
|
@@ -2272,6 +2272,9 @@
|
|
|
2272
2272
|
this._editorSessions = new pectin.MutableListModel();
|
|
2273
2273
|
this.rowClassNamePredicates = [];
|
|
2274
2274
|
this._createForm = function (row) { return new pectin.DirtyTrackingForm(); };
|
|
2275
|
+
this.trackBy = function (index, item) {
|
|
2276
|
+
return _this.identityOf ? _this.identityOf(item) : index;
|
|
2277
|
+
};
|
|
2275
2278
|
this.identityOf = sourceOfTruth.identityOf;
|
|
2276
2279
|
var _a = pectin.Dsl.disposeWith(this._garbage), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
2277
2280
|
this._columnsById = chain(this._columns).indexBy('columnId');
|
|
@@ -2298,12 +2301,6 @@
|
|
|
2298
2301
|
enumerable: true,
|
|
2299
2302
|
configurable: true
|
|
2300
2303
|
});
|
|
2301
|
-
TableModel.prototype.getTrackByFunction = function () {
|
|
2302
|
-
var _this = this;
|
|
2303
|
-
return function (index, item) {
|
|
2304
|
-
return _this.identityOf ? _this.identityOf(item) : index;
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
2304
|
Object.defineProperty(TableModel.prototype, "columns", {
|
|
2308
2305
|
get: function () {
|
|
2309
2306
|
return this._columns.readonly;
|
|
@@ -2483,7 +2480,7 @@
|
|
|
2483
2480
|
TableComponent = __decorate([
|
|
2484
2481
|
core.Component({
|
|
2485
2482
|
selector: 'aup-table',
|
|
2486
|
-
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.
|
|
2483
|
+
template: "<table mat-table [dataSource]=\"tableModel.dataSource.value\" [trackBy]=\"tableModel.trackBy\">\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 [attr.column-id]=\"column.columnId\"\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\" (click)=\"onCellClicked(column, row)\" [class.enable-cursor]=\"tableModel.isRowSelectionEnabledFor(column)\">\n <aup-table-cell-renderer [column]=\"column\"\n [row]=\"row\"\n [tableModel]=\"tableModel\"\n [editSession]=\"tableModel.getEditSessionFor(row)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\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; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\" [attr.trackBy]=\"tableModel.trackBy(i, row)\"\n ></tr>\n\n</table>\n",
|
|
2487
2484
|
styles: [":host{display:flex;flex-direction:column;align-items:stretch}:host table{flex:1}"]
|
|
2488
2485
|
}),
|
|
2489
2486
|
__metadata("design:paramtypes", [])
|
|
@@ -2666,6 +2663,153 @@
|
|
|
2666
2663
|
return TableHeaderCellRendererComponent;
|
|
2667
2664
|
}());
|
|
2668
2665
|
|
|
2666
|
+
|
|
2667
|
+
(function (CommandFace) {
|
|
2668
|
+
var Position;
|
|
2669
|
+
(function (Position) {
|
|
2670
|
+
Position["START"] = "start";
|
|
2671
|
+
Position["END"] = "end";
|
|
2672
|
+
})(Position = CommandFace.Position || (CommandFace.Position = {}));
|
|
2673
|
+
var Instance = /** @class */ (function () {
|
|
2674
|
+
function Instance(face) {
|
|
2675
|
+
this.face = face;
|
|
2676
|
+
}
|
|
2677
|
+
Object.defineProperty(Instance.prototype, "text", {
|
|
2678
|
+
get: function () {
|
|
2679
|
+
return ___default__default.isFunction(this.face.text) ? this.face.text() : '';
|
|
2680
|
+
},
|
|
2681
|
+
enumerable: true,
|
|
2682
|
+
configurable: true
|
|
2683
|
+
});
|
|
2684
|
+
Object.defineProperty(Instance.prototype, "icon", {
|
|
2685
|
+
get: function () {
|
|
2686
|
+
return ___default__default.isFunction(this.face.icon) ? this.face.icon() : CommandFace.Position.START;
|
|
2687
|
+
},
|
|
2688
|
+
enumerable: true,
|
|
2689
|
+
configurable: true
|
|
2690
|
+
});
|
|
2691
|
+
Object.defineProperty(Instance.prototype, "iconPosition", {
|
|
2692
|
+
get: function () {
|
|
2693
|
+
return ___default__default.isFunction(this.face.iconPosition) ? this.face.iconPosition() : CommandFace.Position.START;
|
|
2694
|
+
},
|
|
2695
|
+
enumerable: true,
|
|
2696
|
+
configurable: true
|
|
2697
|
+
});
|
|
2698
|
+
Object.defineProperty(Instance.prototype, "tooltip", {
|
|
2699
|
+
get: function () {
|
|
2700
|
+
return ___default__default.isFunction(this.face.tooltip) ? this.face.tooltip() : '';
|
|
2701
|
+
},
|
|
2702
|
+
enumerable: true,
|
|
2703
|
+
configurable: true
|
|
2704
|
+
});
|
|
2705
|
+
Object.defineProperty(Instance.prototype, "iconPositionStart", {
|
|
2706
|
+
get: function () {
|
|
2707
|
+
return this.iconPosition === CommandFace.Position.START;
|
|
2708
|
+
},
|
|
2709
|
+
enumerable: true,
|
|
2710
|
+
configurable: true
|
|
2711
|
+
});
|
|
2712
|
+
Object.defineProperty(Instance.prototype, "iconPositionEnd", {
|
|
2713
|
+
get: function () {
|
|
2714
|
+
return this.iconPosition === CommandFace.Position.END;
|
|
2715
|
+
},
|
|
2716
|
+
enumerable: true,
|
|
2717
|
+
configurable: true
|
|
2718
|
+
});
|
|
2719
|
+
__decorate([
|
|
2720
|
+
src.Memoize(),
|
|
2721
|
+
__metadata("design:type", Object),
|
|
2722
|
+
__metadata("design:paramtypes", [])
|
|
2723
|
+
], Instance.prototype, "text", null);
|
|
2724
|
+
__decorate([
|
|
2725
|
+
src.Memoize(),
|
|
2726
|
+
__metadata("design:type", Object),
|
|
2727
|
+
__metadata("design:paramtypes", [])
|
|
2728
|
+
], Instance.prototype, "icon", null);
|
|
2729
|
+
__decorate([
|
|
2730
|
+
src.Memoize(),
|
|
2731
|
+
__metadata("design:type", Object),
|
|
2732
|
+
__metadata("design:paramtypes", [])
|
|
2733
|
+
], Instance.prototype, "iconPosition", null);
|
|
2734
|
+
__decorate([
|
|
2735
|
+
src.Memoize(),
|
|
2736
|
+
__metadata("design:type", Object),
|
|
2737
|
+
__metadata("design:paramtypes", [])
|
|
2738
|
+
], Instance.prototype, "tooltip", null);
|
|
2739
|
+
__decorate([
|
|
2740
|
+
src.Memoize(),
|
|
2741
|
+
__metadata("design:type", Boolean),
|
|
2742
|
+
__metadata("design:paramtypes", [])
|
|
2743
|
+
], Instance.prototype, "iconPositionStart", null);
|
|
2744
|
+
__decorate([
|
|
2745
|
+
src.Memoize(),
|
|
2746
|
+
__metadata("design:type", Boolean),
|
|
2747
|
+
__metadata("design:paramtypes", [])
|
|
2748
|
+
], Instance.prototype, "iconPositionEnd", null);
|
|
2749
|
+
return Instance;
|
|
2750
|
+
}());
|
|
2751
|
+
CommandFace.Instance = Instance;
|
|
2752
|
+
})(exports.CommandFace || (exports.CommandFace = {}));
|
|
2753
|
+
|
|
2754
|
+
var MenuItemData = /** @class */ (function (_super) {
|
|
2755
|
+
__extends(MenuItemData, _super);
|
|
2756
|
+
function MenuItemData(factory, face) {
|
|
2757
|
+
var _this = _super.call(this, face) || this;
|
|
2758
|
+
_this.factory = factory;
|
|
2759
|
+
return _this;
|
|
2760
|
+
}
|
|
2761
|
+
return MenuItemData;
|
|
2762
|
+
}(exports.CommandFace.Instance));
|
|
2763
|
+
/**
|
|
2764
|
+
*
|
|
2765
|
+
*/
|
|
2766
|
+
var TableRowMenuComponent = /** @class */ (function (_super) {
|
|
2767
|
+
__extends(TableRowMenuComponent, _super);
|
|
2768
|
+
function TableRowMenuComponent() {
|
|
2769
|
+
var _this = _super.call(this) || this;
|
|
2770
|
+
_this.actions = [];
|
|
2771
|
+
_this.moreActions = [];
|
|
2772
|
+
return _this;
|
|
2773
|
+
}
|
|
2774
|
+
TableRowMenuComponent.prototype.registerAction = function (commandFactory, properties) {
|
|
2775
|
+
this.actions.push(new MenuItemData(commandFactory, properties));
|
|
2776
|
+
};
|
|
2777
|
+
TableRowMenuComponent.prototype.registerMoreAction = function (commandFactory, properties) {
|
|
2778
|
+
this.moreActions.push(new MenuItemData(commandFactory, properties));
|
|
2779
|
+
};
|
|
2780
|
+
TableRowMenuComponent.prototype.ngOnInit = function () {
|
|
2781
|
+
};
|
|
2782
|
+
TableRowMenuComponent.prototype.createCommandFor = function (item, value) {
|
|
2783
|
+
var _this = this;
|
|
2784
|
+
var when = pectin.Dsl.disposeWith(this).when;
|
|
2785
|
+
var command = item.factory.create(value);
|
|
2786
|
+
when(command.busy).becomesFalsey(function () {
|
|
2787
|
+
_this.closeMenu();
|
|
2788
|
+
});
|
|
2789
|
+
return command;
|
|
2790
|
+
};
|
|
2791
|
+
TableRowMenuComponent.prototype.closeMenu = function () {
|
|
2792
|
+
this.menu.closeMenu();
|
|
2793
|
+
};
|
|
2794
|
+
__decorate([
|
|
2795
|
+
core.Input(),
|
|
2796
|
+
__metadata("design:type", Object)
|
|
2797
|
+
], TableRowMenuComponent.prototype, "value", void 0);
|
|
2798
|
+
__decorate([
|
|
2799
|
+
core.ViewChild(menu.MatMenuTrigger),
|
|
2800
|
+
__metadata("design:type", menu.MatMenuTrigger)
|
|
2801
|
+
], TableRowMenuComponent.prototype, "menu", void 0);
|
|
2802
|
+
TableRowMenuComponent = __decorate([
|
|
2803
|
+
core.Component({
|
|
2804
|
+
selector: 'aup-table-row-menu',
|
|
2805
|
+
template: "\n <button mat-icon-button *ngFor=\"let action of actions\" [pectinCommand]=\"createCommandFor(action, value)\">\n <aup-icon [icon]=\"action.icon\"></aup-icon>\n </button>\n <ng-container *ngIf=\"moreActions.length > 0\">\n <button #trigger mat-icon-button [matMenuTriggerFor]=\"menu\">\n <aup-icon icon=\"mat:more_vert\"></aup-icon>\n </button>\n <mat-menu #menu=\"matMenu\" xPosition=\"before\" matTooltip=\"More options...\">\n <button *ngFor=\"let action of moreActions\"\n mat-menu-item\n [pectinCommand]=\"createCommandFor(action, value)\"\n >\n <aup-icon *ngIf=\"action.icon && action.iconPositionStart\"></aup-icon>\n {{action.text}}\n <aup-icon *ngIf=\"action.icon && action.iconPositionEnd\"></aup-icon>\n </button>\n </mat-menu>\n </ng-container>\n ",
|
|
2806
|
+
styles: [":host {\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n }"]
|
|
2807
|
+
}),
|
|
2808
|
+
__metadata("design:paramtypes", [])
|
|
2809
|
+
], TableRowMenuComponent);
|
|
2810
|
+
return TableRowMenuComponent;
|
|
2811
|
+
}(DisposableComponent));
|
|
2812
|
+
|
|
2669
2813
|
var VerticalFocusContainerComponent = /** @class */ (function (_super) {
|
|
2670
2814
|
__extends(VerticalFocusContainerComponent, _super);
|
|
2671
2815
|
function VerticalFocusContainerComponent(focusManager) {
|
|
@@ -2791,7 +2935,8 @@
|
|
|
2791
2935
|
DefaultHeaderCellRendererComponent,
|
|
2792
2936
|
TableHeaderCellRendererComponent,
|
|
2793
2937
|
IconComponent,
|
|
2794
|
-
SectionHeaderComponent
|
|
2938
|
+
SectionHeaderComponent,
|
|
2939
|
+
TableRowMenuComponent
|
|
2795
2940
|
],
|
|
2796
2941
|
imports: [
|
|
2797
2942
|
common.CommonModule,
|
|
@@ -2810,7 +2955,9 @@
|
|
|
2810
2955
|
scrolling.CdkScrollableModule,
|
|
2811
2956
|
angularFontawesome.FontAwesomeModule,
|
|
2812
2957
|
tooltip.MatTooltipModule,
|
|
2813
|
-
autocomplete.MatAutocompleteModule
|
|
2958
|
+
autocomplete.MatAutocompleteModule,
|
|
2959
|
+
menu._MatMenuDirectivesModule,
|
|
2960
|
+
menu.MatMenuModule
|
|
2814
2961
|
],
|
|
2815
2962
|
exports: [
|
|
2816
2963
|
NumberInputComponent,
|
|
@@ -2834,7 +2981,8 @@
|
|
|
2834
2981
|
EditRowControls,
|
|
2835
2982
|
ColumnTemplateDirective,
|
|
2836
2983
|
IconComponent,
|
|
2837
|
-
SectionHeaderComponent
|
|
2984
|
+
SectionHeaderComponent,
|
|
2985
|
+
TableRowMenuComponent
|
|
2838
2986
|
],
|
|
2839
2987
|
providers: [
|
|
2840
2988
|
FocusBindingFactory
|
|
@@ -3485,7 +3633,7 @@
|
|
|
3485
3633
|
}());
|
|
3486
3634
|
|
|
3487
3635
|
var inplaceMonitorCount = 0;
|
|
3488
|
-
exports.ɵ
|
|
3636
|
+
exports.ɵbx = /** @class */ (function () {
|
|
3489
3637
|
function InteractionService(modelInteractionContextFactory) {
|
|
3490
3638
|
this.modelInteractionContextFactory = modelInteractionContextFactory;
|
|
3491
3639
|
this.garbage = new pectin.GarbageCollector();
|
|
@@ -3630,7 +3778,7 @@
|
|
|
3630
3778
|
return ApiAdapter;
|
|
3631
3779
|
}());
|
|
3632
3780
|
InteractionService.ApiAdapter = ApiAdapter;
|
|
3633
|
-
})(exports.ɵ
|
|
3781
|
+
})(exports.ɵbx || (exports.ɵbx = {}));
|
|
3634
3782
|
|
|
3635
3783
|
var InPlaceInteractionContextComponent = /** @class */ (function (_super) {
|
|
3636
3784
|
__extends(InPlaceInteractionContextComponent, _super);
|
|
@@ -3688,7 +3836,7 @@
|
|
|
3688
3836
|
return this.activityContainerComponent.startActivity(activityType, data, options);
|
|
3689
3837
|
};
|
|
3690
3838
|
InPlaceInteractionContextComponent.ctorParameters = function () { return [
|
|
3691
|
-
{ type: exports.ɵ
|
|
3839
|
+
{ type: exports.ɵbx },
|
|
3692
3840
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tabs.MAT_TABS_CONFIG,] }, { type: core.Optional }] }
|
|
3693
3841
|
]; };
|
|
3694
3842
|
__decorate([
|
|
@@ -3706,7 +3854,7 @@
|
|
|
3706
3854
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
3707
3855
|
}),
|
|
3708
3856
|
__param(1, core.Inject(tabs.MAT_TABS_CONFIG)), __param(1, core.Optional()),
|
|
3709
|
-
__metadata("design:paramtypes", [exports.ɵ
|
|
3857
|
+
__metadata("design:paramtypes", [exports.ɵbx, Object])
|
|
3710
3858
|
], InPlaceInteractionContextComponent);
|
|
3711
3859
|
return InPlaceInteractionContextComponent;
|
|
3712
3860
|
}(DisposableComponent));
|
|
@@ -4245,7 +4393,7 @@
|
|
|
4245
4393
|
AlertDialogComponent
|
|
4246
4394
|
],
|
|
4247
4395
|
providers: [
|
|
4248
|
-
exports.ɵ
|
|
4396
|
+
exports.ɵbx
|
|
4249
4397
|
// {
|
|
4250
4398
|
// provide: MAT_TABS_CONFIG, useValue: { animationDuration: "2s" }
|
|
4251
4399
|
// }
|
|
@@ -5367,7 +5515,7 @@
|
|
|
5367
5515
|
return PopStateNavigation;
|
|
5368
5516
|
}(AbstractPopStateNavigation));
|
|
5369
5517
|
|
|
5370
|
-
exports.ɵ
|
|
5518
|
+
exports.ɵca = /** @class */ (function () {
|
|
5371
5519
|
function PlaceHistory() {
|
|
5372
5520
|
this._archive = new Map();
|
|
5373
5521
|
this.placeHistoryDepth = 4;
|
|
@@ -5504,7 +5652,7 @@
|
|
|
5504
5652
|
// }
|
|
5505
5653
|
//
|
|
5506
5654
|
// }
|
|
5507
|
-
})(exports.ɵ
|
|
5655
|
+
})(exports.ɵca || (exports.ɵca = {}));
|
|
5508
5656
|
|
|
5509
5657
|
exports.UrlSnapshot = /** @class */ (function () {
|
|
5510
5658
|
// TODO: Update this accept a url Parser so it can be immutable and generate new trees on mutation using toString() are parseUrl.
|
|
@@ -5959,20 +6107,20 @@
|
|
|
5959
6107
|
PlaceRouter.ctorParameters = function () { return [
|
|
5960
6108
|
{ type: router.Router },
|
|
5961
6109
|
{ type: common.Location },
|
|
5962
|
-
{ type: exports.ɵ
|
|
6110
|
+
{ type: exports.ɵbx },
|
|
5963
6111
|
{ type: UrlService },
|
|
5964
|
-
{ type: exports.ɵ
|
|
6112
|
+
{ type: exports.ɵca }
|
|
5965
6113
|
]; };
|
|
5966
|
-
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵ
|
|
6114
|
+
PlaceRouter.ɵprov = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(common.Location), core.ɵɵinject(exports.ɵbx), core.ɵɵinject(UrlService), core.ɵɵinject(exports.ɵca)); }, token: PlaceRouter, providedIn: "root" });
|
|
5967
6115
|
PlaceRouter = __decorate([
|
|
5968
6116
|
core.Injectable({
|
|
5969
6117
|
providedIn: 'root'
|
|
5970
6118
|
}),
|
|
5971
6119
|
__metadata("design:paramtypes", [router.Router,
|
|
5972
6120
|
common.Location,
|
|
5973
|
-
exports.ɵ
|
|
6121
|
+
exports.ɵbx,
|
|
5974
6122
|
UrlService,
|
|
5975
|
-
exports.ɵ
|
|
6123
|
+
exports.ɵca])
|
|
5976
6124
|
], PlaceRouter);
|
|
5977
6125
|
return PlaceRouter;
|
|
5978
6126
|
}(pectin.GarbageCollector));
|
|
@@ -7175,7 +7323,7 @@
|
|
|
7175
7323
|
exports.InPlaceInteractionContextComponent = InPlaceInteractionContextComponent;
|
|
7176
7324
|
exports.InteractionContextTriggerFor = InteractionContextTriggerFor;
|
|
7177
7325
|
exports.InteractionModule = InteractionModule;
|
|
7178
|
-
exports.InteractionService = exports.ɵ
|
|
7326
|
+
exports.InteractionService = exports.ɵbx;
|
|
7179
7327
|
exports.InteractionServiceRoutingAdapter = InteractionServiceRoutingAdapter;
|
|
7180
7328
|
exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7181
7329
|
exports.ListPlaceNavComponent = ListPlaceNavComponent;
|
|
@@ -7195,7 +7343,7 @@
|
|
|
7195
7343
|
exports.PlaceComponentDeactivationHandler = PlaceComponentDeactivationHandler;
|
|
7196
7344
|
exports.PlaceDefinition = PlaceDefinition;
|
|
7197
7345
|
exports.PlaceGuard = PlaceGuard;
|
|
7198
|
-
exports.PlaceHistory = exports.ɵ
|
|
7346
|
+
exports.PlaceHistory = exports.ɵca;
|
|
7199
7347
|
exports.PlaceModule = PlaceModule;
|
|
7200
7348
|
exports.PlaceOutletComponent = PlaceOutletComponent;
|
|
7201
7349
|
exports.PlaceRouter = PlaceRouter;
|
|
@@ -7228,6 +7376,7 @@
|
|
|
7228
7376
|
exports.TableComponent = TableComponent;
|
|
7229
7377
|
exports.TableHeaderCellRendererComponent = TableHeaderCellRendererComponent;
|
|
7230
7378
|
exports.TableModel = TableModel;
|
|
7379
|
+
exports.TableRowMenuComponent = TableRowMenuComponent;
|
|
7231
7380
|
exports.TemplateCellRendererPortalRef = TemplateCellRendererPortalRef;
|
|
7232
7381
|
exports.TextInputComponent = TextInputComponent;
|
|
7233
7382
|
exports.UrlService = UrlService;
|
|
@@ -7257,39 +7406,40 @@
|
|
|
7257
7406
|
exports.ɵbj = TableHeaderCellRendererComponent;
|
|
7258
7407
|
exports.ɵbk = IconComponent;
|
|
7259
7408
|
exports.ɵbl = SectionHeaderComponent;
|
|
7260
|
-
exports.ɵbm =
|
|
7261
|
-
exports.ɵbn =
|
|
7262
|
-
exports.ɵbo =
|
|
7263
|
-
exports.ɵbp =
|
|
7264
|
-
exports.ɵbq =
|
|
7265
|
-
exports.ɵbr =
|
|
7266
|
-
exports.ɵbs =
|
|
7267
|
-
exports.ɵbt =
|
|
7268
|
-
exports.ɵ
|
|
7269
|
-
exports.ɵ
|
|
7270
|
-
exports.ɵby =
|
|
7409
|
+
exports.ɵbm = TableRowMenuComponent;
|
|
7410
|
+
exports.ɵbn = PlaceModule;
|
|
7411
|
+
exports.ɵbo = ComponentsModule;
|
|
7412
|
+
exports.ɵbp = EmptyStateComponent;
|
|
7413
|
+
exports.ɵbq = BusyOverlayComponent;
|
|
7414
|
+
exports.ɵbr = PlaceOutletComponent;
|
|
7415
|
+
exports.ɵbs = leftRightPlaceAnimation;
|
|
7416
|
+
exports.ɵbt = LEFT_RIGHT_PLACE_ANIMATION;
|
|
7417
|
+
exports.ɵbu = AUP_PLACE_CONFIG;
|
|
7418
|
+
exports.ɵbw = PlaceRouter;
|
|
7419
|
+
exports.ɵby = ModalInteractionContextFactory;
|
|
7420
|
+
exports.ɵbz = UrlService;
|
|
7271
7421
|
exports.ɵc = FocusBindingDirective;
|
|
7272
|
-
exports.ɵ
|
|
7273
|
-
exports.ɵ
|
|
7274
|
-
exports.ɵ
|
|
7275
|
-
exports.ɵ
|
|
7276
|
-
exports.ɵ
|
|
7277
|
-
exports.ɵ
|
|
7278
|
-
exports.ɵ
|
|
7279
|
-
exports.ɵ
|
|
7280
|
-
exports.ɵ
|
|
7281
|
-
exports.ɵ
|
|
7282
|
-
exports.ɵ
|
|
7283
|
-
exports.ɵ
|
|
7284
|
-
exports.ɵ
|
|
7285
|
-
exports.ɵ
|
|
7286
|
-
exports.ɵ
|
|
7287
|
-
exports.ɵ
|
|
7288
|
-
exports.ɵ
|
|
7289
|
-
exports.ɵ
|
|
7290
|
-
exports.ɵ
|
|
7291
|
-
exports.ɵ
|
|
7292
|
-
exports.ɵ
|
|
7422
|
+
exports.ɵcb = TabbedPlaceNavigationComponent;
|
|
7423
|
+
exports.ɵcc = AbstractPlaceNavigationComponent;
|
|
7424
|
+
exports.ɵcd = ListPlaceNavComponent;
|
|
7425
|
+
exports.ɵce = SidePlaceNavigationComponent;
|
|
7426
|
+
exports.ɵcf = InteractionModule;
|
|
7427
|
+
exports.ɵcg = ActivityContainerComponent;
|
|
7428
|
+
exports.ɵch = AbstractInteractionContext;
|
|
7429
|
+
exports.ɵci = ActivityOutletComponent;
|
|
7430
|
+
exports.ɵcj = ConfirmationDialogComponent;
|
|
7431
|
+
exports.ɵck = ACTIVITY_DATA;
|
|
7432
|
+
exports.ɵcl = Activity;
|
|
7433
|
+
exports.ɵcn = ConfirmThenDialogComponent;
|
|
7434
|
+
exports.ɵco = AlertDialogComponent;
|
|
7435
|
+
exports.ɵcq = InPlaceInteractionContextComponent;
|
|
7436
|
+
exports.ɵcr = AddItemInteractionContextComponent;
|
|
7437
|
+
exports.ɵcs = ActivityActionsComponent;
|
|
7438
|
+
exports.ɵct = PopupInteractionContextComponent;
|
|
7439
|
+
exports.ɵcu = StringInputActivity;
|
|
7440
|
+
exports.ɵcv = AbstractInputActivity;
|
|
7441
|
+
exports.ɵcw = SelectInputActivity;
|
|
7442
|
+
exports.ɵcx = InteractionContextTriggerFor;
|
|
7293
7443
|
exports.ɵd = DisposableComponent;
|
|
7294
7444
|
exports.ɵe = FocusBindingFactory;
|
|
7295
7445
|
exports.ɵf = ComponentsModule;
|